:root {
  --bg: #eef5ef;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.94);
  --panel-tint: #f7fcf8;
  --line: #d9e6dc;
  --line-strong: #b7d0bf;
  --text: #16332e;
  --muted: #637b74;
  --brand: #0f7d63;
  --brand-dark: #0b5c49;
  --brand-soft: #e8f7f1;
  --accent: #d98f33;
  --danger: #b03c3c;
  --shadow: 0 14px 30px rgba(18, 51, 46, 0.08);
  --shadow-soft: 0 10px 24px rgba(18, 51, 46, 0.06);
  --shadow-strong: 0 18px 40px rgba(18, 51, 46, 0.1);
  --surface-border: rgba(183, 208, 191, 0.76);
  --surface-border-soft: rgba(183, 208, 191, 0.58);
  --surface-shadow: 0 14px 30px rgba(18, 51, 46, 0.055);
  --surface-shadow-soft: 0 10px 22px rgba(18, 51, 46, 0.04);
  --surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 28%),
    radial-gradient(circle at top right, rgba(217, 143, 51, 0.08) 0%, rgba(217, 143, 51, 0) 24%),
    linear-gradient(180deg, #f5faf6 0%, #edf4ef 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
}

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

.panel-heading > div > .eyebrow:last-child {
  margin-bottom: 0;
}

.login-screen {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.login-card,
.panel,
.metric-card,
.order-card {
  background: var(--panel-soft);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(12px);
}

.login-card {
  width: min(560px, 100%);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.login-card::after {
  content: "";
  position: absolute;
  inset: -80px -20px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 125, 99, 0.12) 0%, rgba(15, 125, 99, 0) 70%);
  pointer-events: none;
}

.login-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.login-intro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.login-copy {
  margin: 0;
  max-width: 40rem;
  line-height: 1.65;
}

.login-form,
.external-order-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
  padding: 13px 14px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 247, 0.96) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 10.5 12 15l4.5-4.5' stroke='%230f7d63' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 18px 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(18, 51, 46, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

select:hover {
  border-color: rgba(15, 125, 99, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(18, 51, 46, 0.06);
}

select:disabled {
  color: rgba(99, 123, 116, 0.92);
  background:
    linear-gradient(180deg, rgba(245, 248, 246, 0.98) 0%, rgba(238, 244, 240, 0.96) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 10.5 12 15l4.5-4.5' stroke='%2386a098' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 18px 18px;
  cursor: not-allowed;
}

select::-ms-expand {
  display: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 125, 99, 0.65);
  box-shadow: 0 0 0 4px rgba(15, 125, 99, 0.12);
}

textarea {
  resize: vertical;
}

.modern-file-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(149, 198, 182, 0.8);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 247, 0.96) 100%);
  color: var(--muted);
  font-size: 0.88rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 20px rgba(18, 51, 46, 0.04);
}

.modern-file-input:hover {
  border-color: rgba(15, 125, 99, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 249, 244, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px rgba(18, 51, 46, 0.06);
}

.modern-file-input::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 125, 99, 0.2);
  background: linear-gradient(135deg, rgba(232, 247, 241, 0.98) 0%, rgba(243, 251, 247, 0.96) 100%);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.modern-file-input:hover::file-selector-button {
  border-color: rgba(15, 125, 99, 0.34);
  background: linear-gradient(135deg, rgba(222, 244, 235, 1) 0%, rgba(238, 249, 243, 0.98) 100%);
  box-shadow: 0 6px 14px rgba(15, 125, 99, 0.08);
}

.modern-file-input:focus::file-selector-button {
  border-color: rgba(15, 125, 99, 0.54);
}

.modern-file-input::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 125, 99, 0.2);
  background: linear-gradient(135deg, rgba(232, 247, 241, 0.98) 0%, rgba(243, 251, 247, 0.96) 100%);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button {
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    filter 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand) 0%, #1a9d7d 100%);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 125, 99, 0.16);
}

.secondary-button,
.ghost-button,
.small-button {
  padding: 11px 16px;
}

.secondary-button {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: rgba(15, 125, 99, 0.18);
  font-weight: 700;
}

.secondary-button:hover {
  border-color: rgba(15, 125, 99, 0.32);
  background: linear-gradient(180deg, rgba(232, 247, 241, 0.98) 0%, rgba(221, 244, 234, 0.96) 100%);
  box-shadow: 0 8px 18px rgba(15, 125, 99, 0.1);
  transform: translateY(-1px);
}

.ghost-button {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(15, 125, 99, 0.2);
  font-weight: 700;
}

.ghost-button:hover,
.small-button:hover {
  border-color: rgba(15, 125, 99, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 249, 245, 0.96) 100%);
  box-shadow: 0 8px 18px rgba(18, 51, 46, 0.08);
  transform: translateY(-1px);
}

.ghost-button.danger-button,
.small-button.danger-button {
  color: #9d3f3f;
  border-color: rgba(184, 86, 86, 0.24);
  background: linear-gradient(180deg, rgba(255, 251, 251, 0.98) 0%, rgba(255, 244, 244, 0.96) 100%);
}

.ghost-button.danger-button:hover,
.small-button.danger-button:hover {
  border-color: rgba(184, 86, 86, 0.34);
  background: linear-gradient(180deg, rgba(255, 248, 248, 0.99) 0%, rgba(255, 238, 238, 0.96) 100%);
}

.small-button {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(15, 125, 99, 0.18);
  font-size: 0.86rem;
  font-weight: 700;
}

.primary-button.is-busy,
.secondary-button.is-busy,
.ghost-button.is-busy,
.small-button.is-busy {
  cursor: wait;
  pointer-events: none;
  transform: none;
  filter: none;
  box-shadow: none;
  opacity: 0.84;
}

.primary-button.is-busy::before,
.secondary-button.is-busy::before,
.ghost-button.is-busy::before,
.small-button.is-busy::before {
  content: "";
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-right: 0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -0.11em;
  animation: button-busy-spin 0.8s linear infinite;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.small-button:active,
.dashboard-tab-button:active,
.proof-file-button:active {
  transform: translateY(0) scale(0.992);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.small-button:focus-visible,
.dashboard-tab-button:focus-visible,
.proof-file-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(15, 125, 99, 0.12),
    0 10px 24px rgba(18, 51, 46, 0.1);
}

.topbar {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 252, 248, 0.94) 100%);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 125, 99, 0.12) 0%, rgba(15, 125, 99, 0) 72%);
  pointer-events: none;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand) 0%, #77cfb3 100%);
}

.topbar h1,
.panel-heading h2 {
  margin: 0;
}

.panel-heading h2 {
  font-size: clamp(1.18rem, 1.2vw, 1.52rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.panel-heading > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.panel-heading .muted {
  margin: 0;
  max-width: 42rem;
  line-height: 1.52;
  font-size: 0.89rem;
}

.topbar-copy,
.topbar-side {
  position: relative;
  z-index: 1;
}

.topbar-copy {
  max-width: 56rem;
}

.topbar-copy .muted {
  margin: 8px 0 0;
  line-height: 1.65;
}

.topbar-actions,
.topbar-side {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-side {
  min-width: 320px;
  display: grid;
  gap: 12px;
}

.header-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-badge {
  min-width: 250px;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 249, 244, 0.96) 100%);
  padding: 14px 15px;
  display: grid;
  gap: 6px;
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
}

.user-badge strong {
  font-size: 1rem;
}

.user-badge span {
  color: var(--muted);
  font-size: 0.9rem;
}

.user-badge-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.metric-card {
  padding: 19px 18px 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 248, 0.96) 100%);
  min-height: 148px;
  display: grid;
  align-content: start;
  gap: 6px;
  box-shadow: var(--surface-shadow), var(--surface-highlight);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, #5fc5a4 100%);
}

.metric-card strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 10px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-card .muted {
  margin: 0;
  max-width: 16ch;
  line-height: 1.5;
}

.dashboard-loading-grid {
  pointer-events: none;
}

.dashboard-reveal > * {
  animation: dashboard-reveal 260ms ease;
}

@keyframes dashboard-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skeleton-card,
.chart-skeleton,
.dashboard-loading-surface {
  position: relative;
  overflow: hidden;
}

.skeleton-card::after,
.chart-skeleton::after,
.dashboard-loading-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.62) 48%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.35s linear infinite;
  pointer-events: none;
}

@keyframes skeleton-shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.skeleton-line,
.skeleton-circle,
.skeleton-bar {
  display: block;
  background: linear-gradient(180deg, rgba(230, 239, 234, 0.98) 0%, rgba(221, 233, 226, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.skeleton-line {
  width: 100%;
  height: 12px;
  border-radius: 999px;
}

.skeleton-line-short {
  width: 42%;
}

.skeleton-line-medium {
  width: 74%;
}

.skeleton-line-value {
  width: 34%;
  height: 34px;
  border-radius: 16px;
  margin-top: 10px;
}

.skeleton-circle {
  width: 96px;
  height: 96px;
  border-radius: 999px;
}

.chart-skeleton {
  display: grid;
  gap: 14px;
  min-height: 220px;
}

.chart-skeleton-activity {
  align-content: end;
}

.chart-skeleton-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 172px;
}

.chart-skeleton-column {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
}

.skeleton-bar {
  width: 16px;
  border-radius: 999px 999px 5px 5px;
}

.chart-skeleton-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.dashboard-tabbar-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 252, 248, 0.96) 100%);
  box-shadow: var(--surface-shadow), var(--surface-highlight);
  position: relative;
  overflow: hidden;
}

.dashboard-tabbar-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.24) 0%, rgba(15, 125, 99, 0) 100%);
}

.dashboard-tabbar-copy {
  display: grid;
  gap: 3px;
}

.dashboard-tabbar-copy strong {
  font-size: 1.03rem;
}

.dashboard-tabbar-copy .muted {
  font-size: 0.84rem;
  line-height: 1.55;
}

.dashboard-tabbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.account-summary-card {
  display: grid;
  gap: 12px;
}

.account-summary-shell,
.export-page-shell {
  overflow: visible;
}

.account-summary-shell .panel-heading {
  margin-bottom: 12px;
}

.account-summary-badge {
  padding: 18px 20px;
  border: 1px solid var(--surface-border);
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(180deg, rgba(252, 255, 253, 0.99) 0%, rgba(244, 251, 247, 0.97) 100%);
  box-shadow:
    var(--surface-highlight),
    var(--surface-shadow-soft);
}

.account-admin-layout {
  display: grid;
  gap: 16px;
}

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

.account-summary-actions > * {
  flex: 1 1 180px;
}

.export-layout {
  display: grid;
  gap: 12px;
}

.export-summary-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(251, 254, 252, 0.98) 0%, rgba(244, 250, 246, 0.95) 100%);
  box-shadow: var(--surface-highlight), var(--surface-shadow-soft);
}

.export-summary-card strong {
  font-size: 1rem;
}

.export-summary-card .muted {
  margin: 0;
  line-height: 1.55;
}

.export-filter-grid {
  align-items: end;
}

.export-filter-grid {
  padding: 16px 18px;
  border: 1px solid var(--surface-border);
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 248, 0.97) 100%);
  box-shadow:
    var(--surface-highlight),
    var(--surface-shadow-soft);
}

.export-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.import-page-shell,
.external-editor-shell,
.external-list-shell {
  overflow: visible;
}

.import-layout,
.external-workspace {
  display: grid;
  gap: 16px;
}

.import-summary-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--surface-border);
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(180deg, rgba(251, 254, 252, 0.98) 0%, rgba(244, 250, 246, 0.95) 100%);
  box-shadow:
    var(--surface-highlight),
    var(--surface-shadow-soft);
}

.import-summary-card strong {
  font-size: 1rem;
}

.import-summary-card .muted {
  margin: 0;
  line-height: 1.55;
}

.dashboard-tab-button {
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 125, 99, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
  position: relative;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.dashboard-tab-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dashboard-tab-button-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.dashboard-tab-button-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dashboard-tab-button-label {
  display: inline-block;
  line-height: 1.15;
}

.dashboard-tab-button:hover {
  border-color: rgba(15, 125, 99, 0.32);
  transform: translateY(-1px);
}

.dashboard-tab-button.active {
  background: linear-gradient(135deg, var(--brand) 0%, #1a9d7d 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(15, 125, 99, 0.18);
}

.dashboard-tab-button.active::after {
  display: none;
}

.dashboard-tab-panel {
  display: grid;
  gap: 16px;
}

.dashboard-tab-panel.tab-panel-enter {
  animation: tab-panel-enter 220ms ease;
}

@keyframes tab-panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3200;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(15, 125, 99, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 244, 0.96) 100%);
  color: var(--brand-dark);
  box-shadow: 0 18px 34px rgba(18, 51, 46, 0.12);
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
  cursor: pointer;
}

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

.toast.removing {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
}

.toast.error {
  border-color: rgba(176, 60, 60, 0.18);
  background: linear-gradient(180deg, rgba(255, 252, 252, 0.98) 0%, rgba(255, 239, 239, 0.96) 100%);
  color: var(--danger);
}

.toast-body {
  line-height: 1.48;
  font-weight: 700;
}

.panel {
  padding: 21px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 253, 250, 0.95) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--surface-shadow), var(--surface-highlight);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.18) 0%, rgba(217, 143, 51, 0.18) 100%);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(183, 208, 191, 0.62);
}

.panel-heading:has(> div:empty) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-grid,
.double-grid,
.triple-grid,
.quad-grid,
.content-grid {
  display: grid;
  gap: 14px;
}

.filter-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  align-items: end;
}

.filter-grid > label:first-child {
  grid-column: span 2;
}

.filter-grid .filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.filter-actions,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(183, 208, 191, 0.46);
}

.filter-actions > *,
.form-actions > * {
  min-height: 42px;
}

.mobile-filter-tools {
  display: none;
}

.mobile-filter-summary {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: right;
}

.mobile-filter-toggle-button {
  white-space: nowrap;
}

.filter-chip-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 125, 99, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 250, 246, 0.97) 100%);
  color: var(--brand-dark);
  box-shadow:
    var(--surface-highlight),
    0 8px 18px rgba(18, 51, 46, 0.035);
}

.filter-chip.is-removable {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.filter-chip.is-removable:hover {
  border-color: rgba(15, 125, 99, 0.34);
  transform: translateY(-1px);
  box-shadow:
    var(--surface-highlight),
    0 10px 22px rgba(18, 51, 46, 0.05);
}

.filter-chip-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-chip strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 125, 99, 0.08);
  color: var(--brand-dark);
  font-size: 0.78rem;
  line-height: 1;
}

.filter-chip-reset {
  flex: 0 0 auto;
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.filter-content {
  display: block;
}

.filter-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  border: 0;
  padding: 0;
  background: rgba(18, 51, 46, 0.18);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.filter-drawer-backdrop.drawer-open,
.filter-drawer-backdrop.drawer-closing {
  display: block !important;
}

.filter-drawer-backdrop.drawer-open {
  opacity: 1;
  pointer-events: auto;
}

.filter-drawer-backdrop.drawer-closing {
  opacity: 0;
  pointer-events: none;
}

.content-grid {
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
  margin-top: 18px;
}

#orders-tab-panel .content-grid {
  grid-template-columns: 1fr;
}

.statistics-header {
  align-items: end;
  gap: 10px;
}

.statistics-timeframe-control {
  width: min(210px, 100%);
  display: grid;
  gap: 6px;
}

.statistics-timeframe-control span {
  font-size: 0.84rem;
  font-weight: 700;
}

.statistics-timeframe-control select {
  padding-top: 10px;
  padding-bottom: 10px;
}

.statistics-timeframe-trigger {
  display: none;
}

#statistics-range-label {
  margin: 6px 0 0;
  line-height: 1.45;
}

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

.statistics-summary-card {
  min-height: 100%;
}

.statistics-summary-card.compact {
  gap: 4px;
}

.statistics-summary-card.compact .muted {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.statistics-insight-rail {
  display: none;
}

.statistics-mobile-nav {
  display: none;
}

.statistics-mobile-nav-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.5);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 6px 14px rgba(18, 51, 46, 0.04);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.statistics-mobile-nav-button.active {
  border-color: rgba(15, 125, 99, 0.38);
  background: linear-gradient(180deg, #159777 0%, #0f7d63 100%);
  color: #fff;
  box-shadow:
    0 10px 18px rgba(15, 125, 99, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.statistics-section-enter {
  animation: statistics-section-enter 240ms ease;
}

@keyframes statistics-section-enter {
  from {
    opacity: 0.7;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
  transform: translateY(0);
  }
}

.orders-mobile-quick-actions {
  display: none;
}

.orders-mobile-action-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.supplier-price-head,
.proof-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.supplier-price-state,
.proof-summary-state {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.56);
  background: rgba(243, 250, 247, 0.92);
  color: rgba(10, 94, 77, 0.9);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.supplier-price-state.is-filled,
.proof-summary-state.is-filled {
  border-color: rgba(115, 205, 178, 0.52);
  background: rgba(236, 248, 242, 0.94);
  color: rgba(9, 103, 84, 0.95);
}

.supplier-price-state.is-empty,
.proof-summary-state.is-empty {
  border-color: rgba(201, 212, 206, 0.66);
  background: rgba(247, 250, 249, 0.94);
  color: rgba(95, 118, 111, 0.9);
}

.status-meta-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-meta-pill {
  display: inline-grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 12px;
  border: 1px solid rgba(178, 208, 198, 0.44);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(252, 255, 253, 0.98) 0%, rgba(245, 251, 248, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 5px 12px rgba(18, 51, 46, 0.035);
}

.status-meta-pill-label {
  color: rgba(10, 94, 77, 0.82);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.15;
}

.status-meta-pill strong {
  font-size: 0.74rem;
  line-height: 1.25;
  color: var(--brand-dark);
}

.statistics-insight-card {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 15px;
  border: 1px solid rgba(183, 208, 191, 0.46);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(18, 51, 46, 0.045);
}

.statistics-insight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.22) 0%, rgba(95, 197, 164, 0.2) 100%);
}

.statistics-insight-card.brand::before {
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.92) 0%, rgba(95, 197, 164, 0.82) 100%);
}

.statistics-insight-card.warning::before {
  background: linear-gradient(90deg, rgba(217, 143, 51, 0.94) 0%, rgba(241, 186, 108, 0.82) 100%);
}

.statistics-insight-card.accent::before {
  background: linear-gradient(90deg, rgba(111, 133, 128, 0.88) 0%, rgba(174, 206, 196, 0.84) 100%);
}

.statistics-insight-card.ready::before {
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.7) 0%, rgba(115, 205, 178, 0.74) 100%);
}

.statistics-insight-card.neutral::before {
  background: linear-gradient(90deg, rgba(174, 206, 196, 0.9) 0%, rgba(221, 235, 229, 0.88) 100%);
}

.statistics-insight-title {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(10, 94, 77, 0.9);
  text-transform: uppercase;
}

.statistics-insight-card strong {
  font-size: 0.92rem;
  line-height: 1.08;
  color: var(--brand-dark);
}

.statistics-insight-hint {
  font-size: 0.72rem;
  line-height: 1.34;
  color: var(--muted);
}

.statistics-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}

.statistics-side-column {
  display: grid;
  gap: 18px;
}

.chart-card {
  background: #fbfdfb;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow:
    var(--surface-highlight),
    var(--surface-shadow-soft);
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.18) 0%, rgba(95, 197, 164, 0.18) 100%);
}

.chart-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.dashboard-reveal .chart-card {
  animation: chart-surface-reveal 320ms ease both;
}

.dashboard-reveal .chart-animate-card {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation: chart-element-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--chart-delay, 0ms);
}

.dashboard-reveal .chart-bar-enter {
  transform-origin: center bottom;
  transform: scaleY(0);
  animation: chart-bar-grow 520ms cubic-bezier(0.2, 1, 0.32, 1) forwards;
  animation-delay: var(--chart-delay, 0ms);
}

.dashboard-reveal .chart-fill-enter {
  transform-origin: left center;
  transform: scaleX(0);
  animation: chart-fill-grow 520ms cubic-bezier(0.2, 1, 0.32, 1) forwards;
  animation-delay: var(--chart-delay, 0ms);
}

.dashboard-reveal .status-donut-ring {
  animation: donut-ring-settle 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--chart-delay, 0ms) + 40ms);
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chart-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.chart-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.chart-dot.imported,
.activity-bar.imported,
.distribution-fill.brand {
  background: linear-gradient(180deg, #15a57f 0%, #0f7d63 100%);
}

.chart-dot.external,
.activity-bar.external,
.distribution-fill.accent {
  background: linear-gradient(180deg, #f0ab56 0%, #d98f33 100%);
}

.activity-chart-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.activity-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 10px;
  align-items: end;
  min-width: 100%;
}

.activity-column {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.activity-total {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

@keyframes chart-surface-reveal {
  from {
    opacity: 0.72;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-busy-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes chart-element-reveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chart-bar-grow {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes chart-fill-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes donut-ring-settle {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.activity-bars {
  height: 156px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  padding: 0 2px;
}

.activity-bar {
  width: 14px;
  min-height: 0;
  border-radius: 999px 999px 4px 4px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.26);
}

.activity-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.activity-label.is-sparse {
  opacity: 0;
}

.distribution-chart {
  display: grid;
  gap: 12px;
}

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

.status-donut-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(183, 208, 191, 0.7);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 249, 0.96) 100%);
}

.status-donut-visual {
  display: grid;
  place-items: center;
}

.status-donut-ring {
  --donut-value: 0%;
  --donut-color: #0f7d63;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: conic-gradient(var(--donut-color) 0 var(--donut-value), #eaf2ed var(--donut-value) 100%);
  display: grid;
  place-items: center;
}

.status-donut-center {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(183, 208, 191, 0.6);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.status-donut-center strong {
  font-size: 1.02rem;
  line-height: 1;
}

.status-donut-center span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
}

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

.status-donut-meta strong {
  font-size: 0.9rem;
}

.status-donut-meta span,
.status-donut-meta small {
  color: var(--muted);
  line-height: 1.4;
}

.status-donut-meta span {
  font-size: 0.82rem;
  font-weight: 700;
}

.status-donut-meta small {
  font-size: 0.74rem;
}

.status-compare-list {
  display: grid;
  gap: 12px;
}

.status-compare-row {
  display: grid;
  gap: 8px;
}

.status-compare-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-compare-meta strong {
  font-size: 0.9rem;
}

.status-compare-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-compare-track {
  height: 12px;
  border-radius: 999px;
  background: #edf4ef;
  overflow: hidden;
}

.status-compare-fill {
  height: 100%;
  border-radius: inherit;
}

.status-compare-fill.brand {
  background: linear-gradient(90deg, #15a57f 0%, #0f7d63 100%);
}

.status-compare-fill.accent {
  background: linear-gradient(90deg, #f0ab56 0%, #d98f33 100%);
}

.status-compare-note {
  margin: 0;
}

.distribution-list {
  display: grid;
  gap: 12px;
}

.distribution-row {
  display: grid;
  gap: 8px;
}

.distribution-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.distribution-meta strong {
  font-size: 0.9rem;
}

.distribution-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.distribution-track {
  height: 10px;
  border-radius: 999px;
  background: #edf4ef;
  overflow: hidden;
}

.distribution-fill {
  height: 100%;
  border-radius: inherit;
}

.dashboard-order-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
  overflow-y: hidden;
}

.dashboard-order-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.imported-order-table.admin-view {
  min-width: 1080px;
}

.imported-order-table.supplier-view,
.external-order-table {
  min-width: 960px;
}

.dashboard-order-table th,
.dashboard-order-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dashboard-order-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(239, 249, 244, 0.98) 0%, rgba(228, 247, 241, 0.95) 100%);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 -1px 0 rgba(183, 208, 191, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard-order-table tbody tr:nth-child(even) td {
  background: rgba(15, 125, 99, 0.02);
}

.dashboard-order-table tbody tr td {
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dashboard-order-table tbody tr:hover td {
  background: rgba(15, 125, 99, 0.055);
}

.dashboard-order-table td {
  line-height: 1.55;
}

.order-workbench-shell {
  display: grid;
  gap: 0;
}

.order-workbench-toolbar {
  display: none;
}

.order-workbench-copy,
.order-workbench-side,
.order-workbench-chip-list,
.order-workbench-actions {
  display: grid;
}

.order-workbench-chip {
  display: inline-grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(183, 208, 191, 0.46);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 6px 14px rgba(18, 51, 46, 0.035);
}

.order-workbench-chip-label {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(10, 94, 77, 0.82);
}

.order-workbench-chip strong {
  font-size: 0.76rem;
  line-height: 1.28;
  color: var(--brand-dark);
}

.order-workbench-button.is-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #159777 0%, #0f7d63 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 125, 99, 0.14);
}

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

.dashboard-order-row td:first-child {
  box-shadow: inset 4px 0 0 rgba(15, 125, 99, 0.16);
}

.table-cell-stack,
.table-form-stack,
.table-actions,
.table-item-list {
  display: grid;
  gap: 8px;
}

.table-form-stack {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfb;
}

.table-status-stack {
  gap: 10px;
}

.status-badge-stack {
  display: grid;
  gap: 8px;
  align-content: start;
}

.table-price-stack {
  min-height: 100%;
}

.table-cell-stack strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.table-cell-stack span {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
  word-break: break-word;
}

.table-item-list span {
  display: block;
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.table-item-list strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.55;
}

.buyer-address-cell {
  gap: 6px;
}

.buyer-address-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.buyer-address-header strong {
  flex: 1 1 auto;
  min-width: 0;
}

.buyer-address-identity {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.buyer-contact-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(175, 205, 196, 0.72);
  background: rgba(244, 250, 247, 0.94);
  color: rgba(11, 96, 79, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.buyer-address-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.buyer-address-meta-list {
  display: grid;
  gap: 3px;
}

.buyer-address-meta-item {
  color: var(--muted);
}

.address-primary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  word-break: break-word;
}

.buyer-address-meta {
  font-size: 0.79rem;
}

.compact-input,
.compact-select,
.compact-textarea {
  width: 100%;
  padding: 9px 10px;
  font-size: 0.86rem;
  border-radius: 12px;
}

.compact-textarea {
  min-height: 84px;
}

.status-admin-editable {
  border-color: rgba(15, 125, 99, 0.26);
  background: rgba(233, 247, 241, 0.92);
  color: var(--brand-dark);
  font-weight: 700;
}

.status-supplier-editable {
  border-color: rgba(217, 143, 51, 0.28);
  background: rgba(251, 244, 232, 0.96);
  color: #8c5a16;
  font-weight: 700;
}

.status-readonly {
  background: #f4f7f5;
  border-color: rgba(183, 208, 191, 0.9);
  color: var(--muted);
  font-weight: 700;
}

.status-readonly:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.table-proof-area .proof-area {
  padding: 12px;
  border: 1px dashed rgba(104, 163, 145, 0.42);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(254, 255, 254, 0.98) 0%, rgba(247, 252, 249, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  gap: 8px;
}

.proof-area-readonly {
  min-height: 100%;
  align-content: start;
}

.proof-file-stack {
  display: grid;
  gap: 6px;
}

.proof-empty-text {
  display: inline-block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.proof-booking-code {
  display: inline-block;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
}

.status-summary-stack {
  display: grid;
  gap: 8px;
  align-content: start;
}

.status-summary-stack .badge {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 8px 10px;
}

.proof-file-button {
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(15, 125, 99, 0.18);
  background: #fff;
  color: var(--brand-dark);
  text-align: left;
  font-weight: 700;
  word-break: break-word;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.proof-file-button:hover {
  border-color: rgba(15, 125, 99, 0.32);
  background: rgba(232, 247, 241, 0.7);
  box-shadow: 0 8px 18px rgba(18, 51, 46, 0.08);
  transform: translateY(-1px);
}

.table-proof-area {
  min-width: 0;
}

.table-proof-area .proof-file-stack,
.table-proof-area .proof-empty-text {
  display: grid;
  justify-items: start;
}

.table-actions {
  min-width: 154px;
  align-content: start;
}

.table-actions .small-button {
  width: 100%;
  justify-content: center;
  padding: 9px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.dashboard-order-row.is-preview-open td {
  background: rgba(15, 125, 99, 0.05);
}

.dashboard-order-preview-row td {
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 253, 250, 0.98) 0%, rgba(241, 249, 245, 0.96) 100%);
}

.dashboard-order-preview-row .row-preview-shell {
  opacity: 0;
  transform: translateY(-8px) scale(0.992);
}

.dashboard-order-preview-row.is-revealed .row-preview-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.dashboard-order-table tbody tr:nth-child(even).dashboard-order-preview-row td,
.dashboard-order-table tbody tr.dashboard-order-preview-row:hover td {
  background: linear-gradient(180deg, rgba(248, 253, 250, 0.98) 0%, rgba(241, 249, 245, 0.96) 100%);
}

.dashboard-order-preview-row td:first-child {
  box-shadow: none;
}

.row-preview-shell {
  margin-top: -2px;
  padding: 15px;
  border: 1px solid rgba(120, 169, 154, 0.22);
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 248, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(18, 51, 46, 0.045);
}

.row-preview-grid {
  display: grid;
  gap: 12px;
}

.row-preview-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(120, 169, 154, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(18, 51, 46, 0.035);
}

.row-preview-card h4 {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.35;
}

.row-preview-eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.row-preview-body,
.row-preview-list,
.row-preview-meta-list,
.row-preview-doc-grid,
.row-preview-badge-stack {
  display: grid;
  gap: 10px;
}

.row-preview-badge-stack {
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  align-items: start;
}

.row-preview-badge-stack .badge {
  width: auto;
}

.row-preview-list-item,
.row-preview-meta-list > div,
.row-preview-doc-block {
  display: grid;
  gap: 4px;
}

.row-preview-list-item strong,
.row-preview-meta-list strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.row-preview-list-item span,
.row-preview-meta-list span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  word-break: break-word;
}

.row-preview-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.row-preview-inline-head span {
  flex: 1 1 auto;
  min-width: 0;
}

.row-preview-doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.row-preview-doc-block {
  padding: 10px 11px;
  border: 1px dashed rgba(120, 169, 154, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.row-preview-subtitle {
  color: var(--brand-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.row-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.row-preview-actions .small-button {
  width: auto;
  min-width: 132px;
  padding: 9px 12px;
}

.copy-address-button {
  width: auto;
  min-width: 0;
  padding: 7px 10px;
  font-size: 0.74rem;
  white-space: nowrap;
  justify-self: start;
}

.copy-address-button.copied {
  background: var(--brand-soft);
  border-color: rgba(15, 125, 99, 0.32);
}

.imported-order-table td[data-label="Status"],
.external-order-table td[data-label="Status"] {
  min-width: 0;
}

.imported-order-table td[data-label="Bukti Transfer"],
.imported-order-table td[data-label="Bukti Kirim"],
.external-order-table td[data-label="Bukti Transfer"] {
  min-width: 0;
}

@media (min-width: 1180px) {
  body:not(.force-mobile-view) .csv-preview-table-wrap {
    max-height: min(56vh, 460px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body:not(.force-mobile-view) .external-order-table td[data-label="Order"] > .table-cell-stack,
  body:not(.force-mobile-view) .external-order-table td[data-label="Ringkasan"] > .table-cell-stack {
    min-height: 100%;
    padding: 10px 11px;
    border: 1px solid rgba(120, 169, 154, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 248, 0.96) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      0 8px 20px rgba(18, 51, 46, 0.035);
  }

  body:not(.force-mobile-view) .account-table th {
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow:
      inset 0 -1px 0 rgba(183, 208, 191, 0.65),
      0 1px 0 rgba(255, 255, 255, 0.78);
  }

  body:not(.force-mobile-view) .import-layout {
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 18px;
  }

  body:not(.force-mobile-view) .import-summary-card {
    position: sticky;
    top: 24px;
  }

  body:not(.force-mobile-view) .external-workspace {
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 18px;
  }

  body:not(.force-mobile-view) .external-editor-shell {
    position: sticky;
    top: 24px;
  }

  body:not(.force-mobile-view) .external-list-shell #external-orders-list .dashboard-order-table-wrap {
    max-height: min(68vh, 860px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body:not(.force-mobile-view) .account-summary-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    align-items: start;
    gap: 18px;
  }

  body:not(.force-mobile-view) .account-admin-layout {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 18px;
  }

  body:not(.force-mobile-view) #account-user-editor-panel {
    position: sticky;
    top: 24px;
  }

  body:not(.force-mobile-view) #account-users-panel .account-table-wrap {
    max-height: min(68vh, 840px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body:not(.force-mobile-view) .export-layout {
    grid-template-columns: minmax(250px, 0.74fr) minmax(0, 1.26fr);
    align-items: start;
    gap: 18px;
  }

  body:not(.force-mobile-view) .export-summary-card {
    position: sticky;
    top: 24px;
    padding: 18px 20px;
  }

  body:not(.force-mobile-view) .export-filter-grid {
    padding: 18px 20px;
  }

  body:not(.force-mobile-view) .dashboard-order-table-wrap {
    max-height: min(68vh, 860px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow:
      var(--shadow-soft),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  body:not(.force-mobile-view) .dashboard-order-table td,
  body:not(.force-mobile-view) .dashboard-order-table th {
    padding: 13px 14px;
  }

  body:not(.force-mobile-view) .dashboard-order-row td:first-child {
    box-shadow: inset 5px 0 0 rgba(15, 125, 99, 0.18);
  }

  body:not(.force-mobile-view) .imported-preview-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(260px, 0.9fr) minmax(280px, 1fr);
    align-items: start;
  }

  body:not(.force-mobile-view) .external-preview-grid {
    grid-template-columns: minmax(210px, 0.92fr) minmax(0, 1.08fr) minmax(0, 1fr) minmax(240px, 0.86fr);
    align-items: start;
  }

  body:not(.force-mobile-view) .row-preview-shell {
    padding-bottom: 12px;
  }

  body:not(.force-mobile-view) .row-preview-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    background: linear-gradient(180deg, rgba(246, 251, 248, 0) 0%, rgba(246, 251, 248, 0.9) 28%, rgba(246, 251, 248, 0.98) 100%);
    border-top: 1px solid rgba(120, 169, 154, 0.18);
  }

  body:not(.force-mobile-view) .table-cell-stack,
  body:not(.force-mobile-view) .table-actions,
  body:not(.force-mobile-view) .table-item-list,
  body:not(.force-mobile-view) .status-summary-stack,
  body:not(.force-mobile-view) .status-badge-stack {
    gap: 6px;
  }

  body:not(.force-mobile-view) .status-summary-stack .badge,
  body:not(.force-mobile-view) .status-badge-stack .badge {
    padding: 7px 9px;
    font-size: 0.76rem;
  }

  body:not(.force-mobile-view) .imported-order-table td[data-label="Status"] > .status-badge-stack,
  body:not(.force-mobile-view) .external-order-table td[data-label="Status"] > .status-badge-stack {
    min-height: 100%;
    justify-content: start;
  }

  body:not(.force-mobile-view) .table-proof-area .proof-file-stack,
  body:not(.force-mobile-view) .table-proof-area .proof-empty-text {
    gap: 5px;
  }

  body:not(.force-mobile-view) .imported-order-table td[data-label="Bukti Transfer"] > .table-proof-area,
  body:not(.force-mobile-view) .imported-order-table td[data-label="Bukti Kirim"] > .table-proof-area,
  body:not(.force-mobile-view) .external-order-table td[data-label="Bukti Transfer"] > .table-proof-area {
    min-height: 100%;
    padding: 10px 11px;
    border: 1px dashed rgba(120, 169, 154, 0.34);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.97) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 8px 20px rgba(18, 51, 46, 0.035);
  }

  body:not(.force-mobile-view) .proof-file-button {
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  body:not(.force-mobile-view) .proof-empty-text,
  body:not(.force-mobile-view) .proof-booking-code {
    font-size: 0.75rem;
  }

  body:not(.force-mobile-view) .table-actions {
    min-width: 126px;
  }

  body:not(.force-mobile-view) .table-actions .small-button {
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  body:not(.force-mobile-view) .imported-order-table td[data-label="Status"],
  body:not(.force-mobile-view) .external-order-table td[data-label="Status"] {
    padding-right: 10px;
  }

  body:not(.force-mobile-view) .imported-order-table td[data-label="Bukti Transfer"],
  body:not(.force-mobile-view) .imported-order-table td[data-label="Bukti Kirim"],
  body:not(.force-mobile-view) .external-order-table td[data-label="Bukti Transfer"],
  body:not(.force-mobile-view) .imported-order-table td[data-label="Aksi"],
  body:not(.force-mobile-view) .external-order-table td[data-label="Aksi"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.proof-modal.is-open,
.proof-modal.is-closing {
  display: block !important;
}

.proof-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.proof-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.proof-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 34, 29, 0.54);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.proof-modal-dialog {
  --modal-static-transform: none;
  position: relative;
  z-index: 1;
  width: min(92vw, 820px);
  margin: min(6vh, 44px) auto;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: var(--modal-static-transform) translateY(20px) scale(0.985);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.proof-modal.is-open .proof-modal-backdrop,
.proof-modal.is-closing .proof-modal-backdrop {
  opacity: 1;
}

.proof-modal.is-open .proof-modal-dialog {
  opacity: 1;
  transform: var(--modal-static-transform) translateY(0) scale(1);
}

.proof-modal.is-closing .proof-modal-backdrop {
  opacity: 0;
}

.proof-modal.is-closing .proof-modal-dialog {
  opacity: 0;
  transform: var(--modal-static-transform) translateY(20px) scale(0.985);
}

.proof-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 125, 99, 0.18);
  background: #fff;
  color: var(--brand-dark);
  font-size: 1.3rem;
  line-height: 1;
}

.proof-modal-header {
  display: grid;
  gap: 4px;
  padding-right: 48px;
  margin-bottom: 14px;
}

.proof-modal-body {
  display: grid;
  place-items: center;
  min-height: 240px;
}

.proof-modal-body img {
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  border-radius: 18px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f7faf8;
}

.copy-order-modal-dialog {
  width: min(92vw, 760px);
}

.copy-order-body {
  display: grid;
  gap: 10px;
}

.copy-order-textarea {
  min-height: 320px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.6;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 254, 252, 0.98) 0%, rgba(245, 250, 247, 0.96) 100%);
}

.copy-order-actions {
  margin-top: 14px;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.detail-modal.is-open,
.detail-modal.is-closing {
  display: block !important;
}

.detail-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 34, 29, 0.54);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.detail-modal-dialog {
  --modal-static-transform: none;
  position: relative;
  z-index: 1;
  width: min(96vw, 1120px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  margin: 22px auto;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: var(--modal-static-transform) translateY(22px) scale(0.986);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.detail-modal.is-open .detail-modal-backdrop,
.detail-modal.is-closing .detail-modal-backdrop {
  opacity: 1;
}

.detail-modal.is-open .detail-modal-dialog {
  opacity: 1;
  transform: var(--modal-static-transform) translateY(0) scale(1);
}

.detail-modal.is-closing .detail-modal-backdrop {
  opacity: 0;
}

.detail-modal.is-closing .detail-modal-dialog {
  opacity: 0;
  transform: var(--modal-static-transform) translateY(22px) scale(0.986);
}

.detail-modal-dialog::before {
  content: "";
  position: sticky;
  display: block;
  top: -24px;
  margin: -24px -24px 18px;
  height: 5px;
  background: linear-gradient(90deg, var(--brand) 0%, #86d7bd 50%, rgba(217, 143, 51, 0.72) 100%);
}

.detail-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15, 125, 99, 0.18);
  background: #fff;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.detail-modal-shell {
  display: grid;
  gap: 18px;
}

.detail-modal-header {
  display: grid;
  gap: 6px;
  padding-right: 52px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(183, 208, 191, 0.62);
}

.detail-modal-header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.detail-modal-feedback {
  margin: 0;
}

.detail-modal-layout,
.detail-modal-left-column,
.detail-modal-right-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.detail-overview-item {
  padding: 14px 16px;
  border: 1px solid rgba(178, 208, 197, 0.82);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(252, 255, 253, 0.99) 0%, rgba(244, 251, 247, 0.97) 100%);
  display: grid;
  gap: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 26px rgba(18, 51, 46, 0.05);
}

.detail-overview-item span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-overview-item strong {
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--brand-dark);
}

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

.detail-modal-grid-compact {
  grid-template-columns: 1.2fr 0.8fr;
}

.detail-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdfb;
  display: grid;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.detail-card-heading {
  display: grid;
  gap: 4px;
}

.detail-card-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.detail-accordion {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.detail-accordion-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  list-style: none;
  cursor: default;
}

.detail-accordion[open] .detail-accordion-summary {
  padding-bottom: 12px;
}

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

.detail-accordion-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 125, 99, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 250, 246, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  display: none;
}

.detail-accordion-icon::before,
.detail-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.detail-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.detail-accordion[open] .detail-accordion-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.3);
}

.detail-accordion-body {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(183, 208, 191, 0.56);
}

.detail-product-list {
  display: grid;
  gap: 10px;
}

.detail-product-item {
  padding: 12px 13px;
  border: 1px solid rgba(183, 208, 191, 0.72);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 249, 0.97) 100%);
  display: grid;
  gap: 5px;
}

.detail-product-editor {
  display: grid;
  gap: 6px;
}

.detail-product-editor span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-product-item strong {
  font-size: 0.97rem;
  line-height: 1.55;
}

.detail-product-subtitle,
.detail-product-qty {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.detail-product-meta {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-form-stack {
  display: grid;
  gap: 12px;
}

.detail-form-stack label {
  display: grid;
  gap: 6px;
}

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

.detail-contact-item {
  padding: 11px 12px;
  border: 1px solid rgba(183, 208, 191, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 4px;
}

.detail-contact-item span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-contact-item strong {
  font-size: 0.92rem;
  line-height: 1.45;
}

.detail-address-box {
  padding: 14px;
  border: 1px dashed rgba(108, 158, 143, 0.38);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(254, 255, 254, 0.98) 0%, rgba(246, 252, 248, 0.96) 100%);
  display: grid;
  gap: 10px;
}

.detail-address-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-address-title {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-address-text,
.detail-address-note {
  margin: 0;
}

.detail-address-text {
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 600;
  color: var(--brand-dark);
}

.detail-address-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.detail-readonly-value {
  min-height: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 6px;
  align-items: center;
}

.detail-readonly-value strong {
  font-size: 1rem;
}

.detail-readonly-value span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-proof-card .proof-area {
  min-height: 100%;
}

.detail-proof-area {
  padding: 14px;
  border: 1px solid rgba(108, 158, 143, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 12px;
  align-content: start;
}

.detail-proof-status-row {
  display: grid;
  gap: 6px;
}

.detail-proof-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.detail-proof-state.is-ready {
  color: var(--brand-dark);
  background: rgba(15, 125, 99, 0.08);
  border: 1px solid rgba(15, 125, 99, 0.16);
}

.detail-proof-state.is-empty {
  color: #946321;
  background: rgba(217, 143, 51, 0.08);
  border: 1px solid rgba(217, 143, 51, 0.16);
}

.detail-proof-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.detail-proof-preview-card {
  min-height: 88px;
  padding: 14px;
  border: 1px dashed rgba(120, 169, 154, 0.42);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 249, 246, 0.98) 100%);
  display: grid;
  align-content: center;
  gap: 8px;
}

.detail-proof-preview-card .proof-file-stack {
  gap: 8px;
}

.detail-proof-upload-panel {
  display: grid;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(120, 169, 154, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.detail-proof-upload-field {
  display: grid;
  gap: 7px;
}

.detail-proof-actions {
  justify-content: stretch;
}

.detail-upload-proof-cta {
  width: 100%;
}

.detail-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(183, 208, 191, 0.6);
}

.view-mode-footer {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.view-mode-footer::after {
  content: "";
  position: absolute;
  inset: auto -50px -50px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 125, 99, 0.12) 0%, rgba(15, 125, 99, 0) 72%);
  pointer-events: none;
}

.view-mode-footer-copy {
  display: grid;
  gap: 2px;
}

.view-mode-footer-copy strong {
  font-size: 0.88rem;
}

.view-mode-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.view-mode-switch .view-mode-button {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.view-mode-button.active {
  background: var(--brand-soft);
  border-color: rgba(15, 125, 99, 0.28);
  color: var(--brand-dark);
}

.side-column {
  display: grid;
  gap: 18px;
}

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

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

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

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

.order-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  border-color: rgba(15, 125, 99, 0.12);
}

.order-card header {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
}

.order-card header h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.order-code {
  font-size: 1.05rem;
  font-weight: 800;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.brand {
  background: rgba(15, 125, 99, 0.12);
  color: var(--brand-dark);
}

.badge.neutral {
  background: #edf4ef;
  color: var(--muted);
}

.badge.warning {
  background: rgba(217, 143, 51, 0.13);
  color: #8c5a16;
}

.badge.danger {
  background: rgba(176, 60, 60, 0.12);
  color: var(--danger);
}

.order-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.order-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fbfdfb;
}

.order-block h4 {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-row {
  display: grid;
  gap: 4px;
}

.detail-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-row strong {
  font-size: 0.96rem;
}

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

.item-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
}

.item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #f4f8f6;
}

.item-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.item-card h5 {
  margin: 0 0 4px;
  font-size: 0.94rem;
}

.item-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.84rem;
}

.proof-area,
.state-area {
  display: grid;
  gap: 10px;
}

.csv-import-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--surface-border);
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 248, 0.97) 100%);
  box-shadow:
    var(--surface-highlight),
    var(--surface-shadow-soft);
}

.csv-import-panel > .hint:first-child {
  margin: 0;
  line-height: 1.6;
}

.csv-import-panel code {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f8f5;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--brand-dark);
}

.csv-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 253, 251, 0.99) 0%, rgba(245, 250, 247, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(18, 51, 46, 0.035);
}

.csv-preview-header {
  display: grid;
  gap: 4px;
}

.csv-preview-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--surface-border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
}

.csv-preview-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.csv-preview-table th,
.csv-preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.86rem;
}

.csv-preview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--brand-dark);
  background: linear-gradient(180deg, rgba(239, 249, 244, 0.98) 0%, rgba(228, 247, 241, 0.95) 100%);
  font-weight: 700;
  box-shadow:
    inset 0 -1px 0 rgba(183, 208, 191, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.78);
}

.csv-preview-table tbody tr:nth-child(even) td {
  background: rgba(15, 125, 99, 0.02);
}

.csv-preview-table tbody tr:hover td {
  background: rgba(15, 125, 99, 0.05);
}

.account-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
}

.account-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.account-table th,
.account-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.account-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--brand-dark);
  background: linear-gradient(180deg, rgba(239, 249, 244, 0.98) 0%, rgba(228, 247, 241, 0.95) 100%);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-table tbody tr:nth-child(even) td {
  background: rgba(15, 125, 99, 0.02);
}

.account-table tbody tr:hover td {
  background: rgba(15, 125, 99, 0.055);
}

.account-table td:first-child {
  box-shadow: inset 4px 0 0 rgba(15, 125, 99, 0.16);
}

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

.account-primary strong,
.account-primary span {
  display: block;
}

.account-primary strong {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.account-primary span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.edit-account-user-button {
  width: 100%;
  justify-content: center;
}

.proof-preview {
  display: grid;
  gap: 8px;
}

.proof-preview img {
  width: min(100%, 260px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f8fbf8;
}

.proof-link {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.proof-link:hover {
  text-decoration: underline;
}

.feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(234, 247, 241, 0.95) 0%, rgba(224, 244, 236, 0.92) 100%);
  color: var(--brand-dark);
  border: 1px solid rgba(15, 125, 99, 0.16);
  box-shadow: var(--surface-highlight), 0 8px 18px rgba(18, 51, 46, 0.035);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  line-height: 1.52;
}

.feedback::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(15, 125, 99, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 125, 99, 0.28) 0 35%, rgba(15, 125, 99, 0.08) 36% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 14px rgba(15, 125, 99, 0.08);
}

.feedback.success {
  border-color: rgba(15, 125, 99, 0.18);
}

.feedback.error {
  background: linear-gradient(180deg, rgba(255, 244, 244, 0.96) 0%, rgba(255, 236, 236, 0.92) 100%);
  color: var(--danger);
  border-color: rgba(176, 60, 60, 0.16);
}

.feedback.error::before {
  border-color: rgba(176, 60, 60, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(176, 60, 60, 0.28) 0 35%, rgba(176, 60, 60, 0.08) 36% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 6px 14px rgba(176, 60, 60, 0.08);
}

.empty-state {
  position: relative;
  padding: 18px;
  padding-left: 56px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(183, 208, 191, 0.9);
  background: linear-gradient(180deg, rgba(250, 253, 251, 0.98) 0%, rgba(244, 250, 246, 0.96) 100%);
  color: var(--muted);
  line-height: 1.58;
  box-shadow: var(--surface-highlight), 0 8px 18px rgba(18, 51, 46, 0.03);
}

.empty-state::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px dashed rgba(120, 169, 154, 0.5);
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 169, 154, 0.2) 0 34%, rgba(120, 169, 154, 0.05) 35% 100%);
}

.empty-state.info-state {
  border-style: solid;
  border-color: rgba(120, 169, 154, 0.28);
  background: linear-gradient(180deg, rgba(250, 253, 251, 0.99) 0%, rgba(239, 247, 243, 0.97) 100%);
  color: var(--brand-dark);
}

.empty-state.info-state::before {
  border-style: solid;
  border-color: rgba(15, 125, 99, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 125, 99, 0.24) 0 34%, rgba(15, 125, 99, 0.06) 35% 100%);
}

.empty-state.loading-state {
  border-style: solid;
  border-color: rgba(120, 169, 154, 0.24);
  background: linear-gradient(180deg, rgba(251, 254, 252, 0.99) 0%, rgba(241, 248, 244, 0.97) 100%);
}

.empty-state.loading-state::before {
  border-style: solid;
  border-color: rgba(120, 169, 154, 0.34);
  border-top-color: var(--brand);
  background: transparent;
  animation: empty-state-spin 0.9s linear infinite;
}

@keyframes empty-state-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-tab-panel.tab-panel-enter {
    animation: none;
  }

  .dashboard-reveal > * {
    animation: none;
  }

  .toast,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .small-button,
  .dashboard-tab-button,
  .proof-file-button,
  .dashboard-order-table tbody tr td,
  .dashboard-order-preview-row .row-preview-shell,
  .proof-modal,
  .proof-modal-backdrop,
  .proof-modal-dialog,
  .detail-modal,
  .detail-modal-backdrop,
  .detail-modal-dialog,
  .filter-drawer-backdrop,
  .filter-panel.mobile-expanded,
  body.force-mobile-view .filter-panel.mobile-expanded,
  .detail-accordion-summary,
  .detail-accordion-icon,
  .detail-accordion-body,
  .skeleton-card::after,
  .chart-skeleton::after,
  .dashboard-loading-surface::after,
  .empty-state.loading-state::before,
  .dashboard-reveal .chart-card,
  .dashboard-reveal .chart-animate-card,
  .dashboard-reveal .chart-bar-enter,
  .dashboard-reveal .chart-fill-enter,
  .dashboard-reveal .status-donut-ring {
    transition: none;
    animation: none;
  }

  .primary-button.is-busy::before,
  .secondary-button.is-busy::before,
  .ghost-button.is-busy::before,
  .small-button.is-busy::before {
    animation: none;
  }
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
}

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

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

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

  .statistics-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tabbar-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .filter-grid,
  .double-grid,
  .triple-grid,
  .quad-grid,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid > label:first-child,
  .filter-grid .filter-actions {
    grid-column: auto;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-actions,
  .topbar-side {
    width: 100%;
    justify-content: stretch;
  }

  .user-badge {
    width: 100%;
  }

  .header-action-row {
    width: 100%;
    justify-content: stretch;
  }

  .header-action-row > * {
    flex: 1 1 0;
  }

  .statistics-header {
    align-items: stretch;
  }

  .statistics-timeframe-control {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 14px, 100%);
    padding-top: 10px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .dashboard-tab-panel {
    gap: 10px;
  }

  .toast-stack {
    top: auto;
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
  }

  .login-card,
  .panel,
  .metric-card,
  .order-card {
    border-radius: 20px;
  }

  .topbar,
  .panel,
  .metric-card {
    border-radius: 16px;
  }

  .metric-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(124px, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .statistics-summary-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .metric-card,
  .statistics-summary-card {
    scroll-snap-align: start;
  }

  .metric-card {
    min-height: 114px;
    padding: 10px 10px 9px;
    gap: 4px;
  }

  .metric-card::before {
    height: 3px;
  }

  .metric-card .eyebrow {
    margin-bottom: 4px;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    line-height: 1.25;
  }

  .metric-card strong {
    margin-top: 2px;
    font-size: 1.1rem;
    line-height: 1.05;
  }

  .metric-card .muted {
    font-size: 0.68rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .panel-heading.statistics-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .statistics-header {
    align-items: center;
    gap: 8px;
  }

  .statistics-header > div:first-child {
    display: grid;
    gap: 3px;
  }

  .statistics-header .eyebrow {
    margin-bottom: 2px;
  }

  .statistics-header h2 {
    font-size: 0.96rem;
    line-height: 1.16;
  }

  #statistics-range-label {
    margin-top: 0;
    font-size: 0.76rem;
    line-height: 1.32;
    max-width: 15rem;
  }

  .statistics-timeframe-control {
    width: min(170px, 100%);
    gap: 4px;
    align-self: center;
  }

  .statistics-timeframe-control span {
    font-size: 0.72rem;
  }

  .statistics-timeframe-control select {
    padding: 8px 10px;
    font-size: 0.86rem;
    border-radius: 12px;
  }

  #orders-tab-panel .metric-grid {
    margin-bottom: 6px;
  }

  #orders-tab-panel .content-grid {
    margin-top: 6px;
  }

  .order-card header {
    flex-direction: column;
    gap: 10px;
  }

  .item-card {
    grid-template-columns: 54px 1fr;
    padding: 9px;
  }

  .item-thumb {
    width: 54px;
    height: 54px;
  }

  .login-card {
    padding: 22px 18px;
  }

  .login-card h1 {
    font-size: 1.58rem;
    line-height: 1.2;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 8px;
    padding: 13px 12px 11px;
    position: static;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
    box-shadow: var(--shadow-soft);
  }

  .topbar::after,
  .topbar::before {
    display: none;
  }

  .topbar .eyebrow {
    margin-bottom: 5px;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .topbar h1 {
    font-size: 1.14rem;
    line-height: 1.12;
  }

  .panel-heading h2 {
    font-size: 1.14rem;
    line-height: 1.12;
  }

  .topbar .muted {
    display: none;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-side {
    display: none;
  }

  .user-badge {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 14px;
    gap: 4px;
  }

  .user-badge strong {
    font-size: 0.86rem;
  }

  .user-badge span {
    font-size: 0.71rem;
    word-break: break-word;
  }

  .user-badge-meta {
    gap: 6px;
  }

  .header-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .header-action-row > * {
    width: 100%;
  }

  .panel {
    padding: 13px 12px;
  }

  .filter-panel .panel-heading {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .filter-panel.mobile-collapsed {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .filter-panel.mobile-collapsed .panel-heading {
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .filter-panel.mobile-collapsed .panel-heading > div:first-child {
    display: flex;
    align-items: center;
  }

  .filter-chip-rail {
    margin-bottom: 10px;
    gap: 8px;
    align-items: flex-start;
  }

  .filter-chip-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    gap: 6px;
  }

  .filter-chip-label {
    font-size: 0.66rem;
  }

  .filter-chip strong {
    font-size: 0.76rem;
  }

  .filter-chip-reset {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .mobile-filter-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
  }

  .mobile-filter-summary {
    display: inline-flex;
    align-items: center;
    max-width: 132px;
  }

  .mobile-filter-toggle-button {
    padding: 7px 11px;
    font-size: 0.76rem;
  }

  .filter-panel.mobile-collapsed .filter-content {
    display: none;
  }

  .filter-panel.mobile-expanded .filter-content {
    display: block;
  }

  .filter-panel.mobile-expanded {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
    z-index: 60;
    margin: 0;
    padding: 14px 13px 14px;
    border-radius: 22px 22px 18px 18px;
    box-shadow: 0 20px 44px rgba(18, 51, 46, 0.22);
    max-height: min(76vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
  }

  .filter-panel.mobile-expanded.drawer-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .filter-panel.mobile-expanded.mobile-closing {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
  }

  .filter-panel.mobile-expanded .panel-heading {
    position: sticky;
    top: -14px;
    z-index: 2;
    margin: -14px -13px 10px;
    padding: 14px 13px 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 248, 0.96));
    backdrop-filter: blur(8px);
  }

  .filter-panel.mobile-expanded .filter-actions {
    position: sticky;
    bottom: -14px;
    margin: 10px -13px -14px;
    padding: 12px 13px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(244, 251, 248, 0.92), rgba(255, 255, 255, 0.98));
    border-top: 1px solid rgba(95, 166, 149, 0.18);
  }

  .dashboard-tab-button {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .dashboard-tabbar-shell {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    transform: translateX(-50%);
    width: min(100vw - 14px, 410px);
    z-index: 42;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    margin-bottom: 0;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(18, 51, 46, 0.14);
  }

  .dashboard-tabbar-copy {
    display: none;
  }

  .dashboard-tabbar {
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .dashboard-tab-button {
    min-height: 48px;
    padding: 7px 5px 8px;
    font-size: 0.68rem;
    line-height: 1.15;
    text-align: center;
  }

  .account-summary-card {
    gap: 10px;
  }

  .account-admin-layout,
  .import-layout,
  .external-workspace {
    gap: 10px;
  }

  .export-layout {
    gap: 10px;
  }

  .account-summary-badge,
  .export-summary-card,
  .import-summary-card,
  .export-filter-grid,
  .csv-import-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .account-summary-badge strong,
  .export-summary-card strong,
  .import-summary-card strong {
    font-size: 0.92rem;
  }

  .export-summary-card {
    gap: 4px;
  }

  .export-summary-card .muted,
  .import-summary-card .muted {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .external-order-form {
    gap: 10px;
  }

  .export-actions,
  .csv-import-panel .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-summary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dashboard-tab-button-content {
    flex-direction: column;
    gap: 3px;
  }

  .dashboard-tab-button-icon,
  .dashboard-tab-button-icon svg {
    width: 17px;
    height: 17px;
  }

  .dashboard-tab-button.active::after {
    display: none;
  }

  .panel-heading {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .mobile-filter-summary {
    font-size: 0.74rem;
  }

  label {
    gap: 6px;
  }

  label span,
  .detail-row span,
  .hint,
  .empty-state {
    font-size: 0.78rem;
  }

  input,
  select,
  textarea {
    padding: 11px 12px;
    font-size: 0.92rem;
    border-radius: 12px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .small-button {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .metric-card {
    padding: 12px;
  }

  .metric-card strong {
    margin-top: 6px;
    font-size: 1.35rem;
  }

  .metric-card .muted {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .filter-grid {
    gap: 10px;
  }

  .filter-actions,
  .form-actions {
    gap: 8px;
  }

  .filter-actions > *,
  .form-actions > * {
    flex: 1 1 0;
  }

  .content-grid,
  .side-column {
    gap: 12px;
    margin-top: 12px;
  }

  .order-card {
    padding: 13px;
    gap: 12px;
  }

  .order-code {
    font-size: 0.96rem;
  }

  .order-card header h3 {
    font-size: 0.96rem;
  }

  .badge {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .order-grid {
    gap: 10px;
  }

  .order-block {
    padding: 11px;
    border-radius: 14px;
  }

  .order-block h4 {
    margin-bottom: 8px;
    font-size: 0.86rem;
  }

  .detail-list,
  .item-list,
  .proof-area,
  .state-area,
  .csv-import-panel {
    gap: 8px;
  }

  .detail-row strong {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .item-card h5 {
    font-size: 0.88rem;
  }

  .item-card p,
  .item-meta {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .proof-preview img {
    width: 100%;
    max-width: 100%;
  }

  .feedback,
  .empty-state {
    padding: 12px;
    border-radius: 14px;
  }

  .csv-preview {
    padding: 11px;
  }

  .csv-preview-table-wrap {
    border-radius: 12px;
  }

  .csv-preview-table th,
  .csv-preview-table td {
    padding: 8px 9px;
    font-size: 0.78rem;
  }

  .chart-card {
    padding: 12px;
  }

  .chart-card h3 {
    font-size: 0.94rem;
  }

  .chart-card-header {
    flex-direction: column;
  }

  .status-donut-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .status-donut-card {
    gap: 10px;
    padding: 10px;
  }

  .status-donut-ring {
    width: 84px;
    height: 84px;
  }

  .status-donut-center {
    width: 56px;
    height: 56px;
  }

  .status-donut-center strong {
    font-size: 0.94rem;
  }

  .status-donut-meta strong {
    font-size: 0.84rem;
  }

  .status-donut-meta span,
  .status-donut-meta small,
  .status-compare-meta span,
  .status-compare-note {
    font-size: 0.76rem;
  }

  .activity-chart-grid {
    grid-template-columns: repeat(15, minmax(40px, 1fr));
    min-width: 720px;
  }

  .account-table {
    min-width: 0;
  }

  .account-table thead {
    display: none;
  }

  .account-table,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
    width: 100%;
  }

  .account-table tr {
    padding: 11px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    background: #fff;
  }

  .account-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .account-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .account-table td:first-child {
    box-shadow: none;
  }

  .account-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dashboard-order-table {
    min-width: 0;
  }

  .dashboard-order-table thead {
    display: none;
  }

  .dashboard-order-table,
  .dashboard-order-table tbody,
  .dashboard-order-table tr,
  .dashboard-order-table td {
    display: block;
    width: 100%;
  }

  .dashboard-order-table tr {
    padding: 10px 11px;
    margin-bottom: 10px;
    border: 1.5px solid rgba(15, 125, 99, 0.34);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(18, 51, 46, 0.12), 0 0 0 1px rgba(15, 125, 99, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 252, 248, 0.97) 100%);
    position: relative;
    overflow: hidden;
  }

  .dashboard-order-table tr::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, var(--brand) 0%, #73cdb2 100%);
  }

  .dashboard-order-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .dashboard-order-table td {
    padding: 7px 0;
    border-bottom: 0;
  }

  .dashboard-order-row td:first-child {
    box-shadow: none;
  }

  .dashboard-order-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100vw - 10px, 100%);
    padding-top: 8px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .login-screen {
    min-height: calc(100vh - 20px);
    place-items: start stretch;
  }

  .login-card {
    width: 100%;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .topbar,
  .panel,
  .metric-card {
    border-radius: 14px;
  }

  .login-card h1,
  .topbar h1 {
    font-size: 1.02rem;
  }

  .panel-heading h2 {
    font-size: 1.02rem;
    line-height: 1.12;
  }

  .panel-heading.statistics-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .statistics-header {
    gap: 6px;
  }

  .statistics-header h2 {
    font-size: 0.9rem;
    line-height: 1.14;
  }

  #statistics-range-label {
    font-size: 0.72rem;
    line-height: 1.26;
    max-width: 13rem;
  }

  .statistics-timeframe-control {
    width: min(150px, 100%);
  }

  .statistics-timeframe-control span {
    font-size: 0.68rem;
  }

  .statistics-timeframe-control select {
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .filter-panel.mobile-collapsed {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .filter-panel.mobile-collapsed .eyebrow {
    margin-bottom: 0;
  }

  .topbar .eyebrow {
    font-size: 0.58rem;
  }

  .mobile-filter-summary {
    font-size: 0.68rem;
    max-width: 118px;
  }

  .metric-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(116px, 1fr);
    gap: 8px;
    margin-bottom: 6px;
    overflow-x: auto;
  }

  .dashboard-tab-panel {
    gap: 8px;
  }

  #orders-tab-panel .content-grid {
    margin-top: 2px;
  }

  .statistics-summary-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 8px;
    overflow-x: auto;
  }

  .metric-card {
    padding: 9px 9px 8px;
    border-radius: 16px;
    min-height: 104px;
  }

  .metric-card strong {
    font-size: 1rem;
  }

  .metric-card .eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.1em;
  }

  .metric-card .muted {
    font-size: 0.64rem;
    line-height: 1.28;
  }

  .panel {
    padding: 10px;
    border-radius: 18px;
  }

  .dashboard-tab-button {
    font-size: 0.82rem;
    padding: 9px 10px;
  }

  .dashboard-tabbar-copy strong {
    font-size: 0.96rem;
  }

  .dashboard-tabbar-copy .muted {
    font-size: 0.78rem;
  }

  .panel-heading {
    gap: 8px;
  }

  .panel-heading h2 {
    font-size: 0.98rem;
  }

  .user-badge {
    padding: 8px 9px;
  }

  .topbar-actions .secondary-button,
  .topbar-actions .ghost-button {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .filter-actions,
  .form-actions {
    flex-direction: column;
  }

  .filter-actions > *,
  .form-actions > * {
    width: 100%;
  }

  .order-card {
    padding: 10px;
    border-radius: 18px;
    gap: 10px;
  }

  .order-block {
    padding: 10px;
    border-radius: 12px;
  }

  .order-code,
  .order-card header h3 {
    font-size: 0.9rem;
  }

  .badge-row {
    gap: 6px;
  }

  .badge {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .item-card {
    grid-template-columns: 46px 1fr;
    gap: 8px;
    padding: 8px;
  }

  .item-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .item-card h5 {
    font-size: 0.82rem;
  }

  .proof-link,
  .detail-row strong,
  .item-card p,
  .item-meta,
  .feedback,
  .empty-state {
    font-size: 0.76rem;
  }

  .csv-import-panel code,
  .csv-preview-table th,
  .csv-preview-table td {
    font-size: 0.72rem;
  }

  .account-table-wrap {
    border-radius: 14px;
  }

  .dashboard-order-table-wrap {
    border-radius: 14px;
  }

  .activity-bars {
    height: 128px;
  }

  .account-table tr {
    padding: 8px;
  }

  .account-primary strong {
    font-size: 0.84rem;
  }

  .account-primary span,
  .account-table td {
    font-size: 0.74rem;
  }

  .dashboard-order-table td,
  .table-item-list span,
  .table-cell-stack span,
  .table-cell-stack strong,
  .compact-input,
  .compact-select,
  .compact-textarea {
    font-size: 0.74rem;
  }

  .proof-modal-dialog {
    --modal-static-transform: translateX(-50%);
    width: min(calc(100vw - 8px), 392px);
    margin: 0 auto;
    padding: 10px;
    border-radius: 18px 18px 0 0;
    position: absolute;
    left: 50%;
    bottom: 0;
  }

  .copy-order-textarea {
    min-height: 220px;
    font-size: 0.8rem;
  }

  .proof-modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 0.92rem;
  }

  .proof-modal-body img {
    max-height: min(62vh, 460px);
    border-radius: 12px;
  }

  .detail-modal-dialog {
    --modal-static-transform: translateX(-50%);
    width: min(calc(100vw - 8px), 392px);
    margin: 0 auto;
    padding: 10px;
    border-radius: 18px 18px 0 0;
    position: absolute;
    left: 50%;
    bottom: 0;
    max-height: calc(100vh - 6px);
  }

  .detail-modal-dialog::before {
    top: -10px;
    margin: -10px -10px 10px;
    height: 4px;
  }

  .detail-modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 0.92rem;
  }

  .detail-modal-shell {
    gap: 10px;
  }

  .detail-modal-header {
    gap: 3px;
    padding-right: 38px;
  }

  .detail-modal-header h2 {
    font-size: 0.9rem;
    line-height: 1.18;
  }

  .detail-modal-feedback {
    font-size: 0.74rem;
  }

  .detail-accordion-summary {
    padding: 10px;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, padding-bottom 0.2s ease;
  }

  .detail-accordion-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .detail-accordion-body {
    max-height: 0;
    opacity: 0;
    padding: 0 10px;
    gap: 8px;
    border-top-color: transparent;
    transition:
      max-height 0.24s ease,
      opacity 0.2s ease,
      padding 0.2s ease,
      border-color 0.2s ease;
  }

  .detail-accordion[open] .detail-accordion-summary {
    background: linear-gradient(180deg, rgba(248, 252, 250, 0.98) 0%, rgba(243, 249, 246, 0.96) 100%);
  }

  .detail-accordion[open] .detail-accordion-icon {
    border-color: rgba(15, 125, 99, 0.24);
    background: linear-gradient(180deg, rgba(233, 247, 241, 0.98) 0%, rgba(244, 251, 247, 0.96) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 6px 14px rgba(15, 125, 99, 0.08);
  }

  .detail-accordion[open] .detail-accordion-body {
    max-height: 1200px;
    opacity: 1;
    padding: 0 10px 10px;
    border-top-color: rgba(183, 208, 191, 0.56);
  }

  .modern-file-input {
    padding: 9px 10px;
    border-radius: 13px;
    font-size: 0.8rem;
  }

  .modern-file-input::file-selector-button,
  .modern-file-input::-webkit-file-upload-button {
    margin-right: 8px;
    padding: 8px 11px;
    font-size: 0.74rem;
  }

  .detail-overview-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .detail-overview-item {
    padding: 10px 11px;
    border-radius: 14px;
    gap: 4px;
  }

  .detail-overview-item span {
    font-size: 0.66rem;
  }

  .detail-overview-item strong {
    font-size: 0.79rem;
  }

  .detail-modal-grid,
  .detail-modal-grid-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-card {
    padding: 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .detail-card-heading {
    gap: 2px;
  }

  .detail-card-heading h3 {
    font-size: 0.78rem;
  }

  .detail-product-list {
    gap: 8px;
  }

  .detail-product-item {
    padding: 10px 11px;
    border-radius: 13px;
    gap: 4px;
  }

  .detail-product-editor span {
    font-size: 0.67rem;
  }

  .detail-product-item strong {
    font-size: 0.84rem;
  }

  .detail-product-subtitle,
  .detail-product-qty {
    font-size: 0.72rem;
  }

  .detail-product-meta {
    font-size: 0.7rem;
  }

  .detail-form-stack {
    gap: 8px;
  }

  .detail-contact-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-contact-item {
    padding: 9px 10px;
    border-radius: 12px;
    gap: 3px;
  }

  .detail-contact-item span {
    font-size: 0.67rem;
  }

  .detail-contact-item strong {
    font-size: 0.8rem;
  }

  .detail-address-box {
    padding: 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .detail-address-title {
    font-size: 0.68rem;
  }

  .detail-address-text {
    font-size: 0.8rem;
  }

  .detail-address-note {
    font-size: 0.72rem;
  }

  .detail-readonly-value {
    padding: 10px 11px;
    border-radius: 12px;
    gap: 4px;
  }

  .detail-readonly-value strong {
    font-size: 0.86rem;
  }

  .detail-readonly-value span {
    font-size: 0.72rem;
  }

  .detail-proof-area {
    padding: 10px;
    border-radius: 14px;
  }

  .detail-proof-state {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .detail-proof-meta {
    font-size: 0.74rem;
  }

  .detail-proof-preview-card {
    min-height: 72px;
    padding: 10px;
    border-radius: 13px;
  }

  .detail-proof-upload-panel {
    gap: 8px;
    padding: 10px;
    border-radius: 13px;
  }

  .detail-modal-actions {
    gap: 8px;
    padding-top: 2px;
  }

  .detail-modal-actions .primary-button,
  .detail-modal-actions .secondary-button,
  .detail-modal-actions .ghost-button,
  .detail-modal-actions .small-button {
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 0.8rem;
  }

  .view-mode-footer {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    padding: 9px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .view-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .view-mode-footer-copy strong {
    font-size: 0.82rem;
  }

  .view-mode-switch .view-mode-button {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

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

  .topbar-actions,
  .header-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .user-badge {
    grid-column: 1 / -1;
  }

  input,
  select,
  textarea,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .small-button {
    font-size: 0.86rem;
  }

  .quad-grid,
  .double-grid {
    gap: 10px;
  }
}

body.force-mobile-view .page-shell {
  width: min(430px, calc(100vw - 12px));
  padding-top: 8px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

body.force-mobile-view .topbar,
body.force-mobile-view .dashboard-tabbar-shell {
  grid-template-columns: 1fr;
  flex-direction: column;
}

body.force-mobile-view .topbar {
  gap: 8px;
  margin-bottom: 8px;
  padding: 13px 12px 11px;
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
  box-shadow: var(--shadow-soft);
}

body.force-mobile-view .topbar,
body.force-mobile-view .panel,
body.force-mobile-view .metric-card {
  border-radius: 16px;
}

body.force-mobile-view .topbar::after,
body.force-mobile-view .topbar::before {
  display: none;
}

body.force-mobile-view .topbar .eyebrow {
  margin-bottom: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

body.force-mobile-view .topbar h1 {
  font-size: 1.14rem;
  line-height: 1.12;
}

body.force-mobile-view .topbar .muted {
  display: none;
}

body.force-mobile-view .topbar-actions {
  gap: 6px;
}

body.force-mobile-view .topbar-side {
  display: none;
}

body.force-mobile-view .user-badge {
  padding: 8px 10px;
  border-radius: 14px;
  gap: 4px;
}

body.force-mobile-view .user-badge strong {
  font-size: 0.86rem;
}

body.force-mobile-view .user-badge span {
  font-size: 0.71rem;
}

body.force-mobile-view .topbar-actions,
body.force-mobile-view .topbar-side,
body.force-mobile-view .header-action-row,
body.force-mobile-view .filter-actions,
body.force-mobile-view .form-actions {
  width: 100%;
  justify-content: stretch;
}

body.force-mobile-view .filter-panel .panel-heading {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

body.force-mobile-view .filter-panel.mobile-collapsed {
  padding-top: 11px;
  padding-bottom: 11px;
}

body.force-mobile-view .filter-panel.mobile-collapsed .panel-heading {
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

body.force-mobile-view .filter-chip-rail {
  margin-bottom: 10px;
  gap: 8px;
  align-items: flex-start;
}

body.force-mobile-view .filter-chip-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

body.force-mobile-view .filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  gap: 6px;
}

body.force-mobile-view .filter-chip-label {
  font-size: 0.66rem;
}

body.force-mobile-view .filter-chip strong {
  font-size: 0.76rem;
}

body.force-mobile-view .filter-chip-reset {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.74rem;
}

body.force-mobile-view .mobile-filter-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

body.force-mobile-view .mobile-filter-summary {
  display: inline-flex;
  align-items: center;
  max-width: 132px;
}

body.force-mobile-view .mobile-filter-toggle-button {
  padding: 7px 11px;
  font-size: 0.76rem;
}

body.force-mobile-view .filter-panel.mobile-collapsed .filter-content {
  display: none;
}

body.force-mobile-view .filter-panel.mobile-expanded .filter-content {
  display: block;
}

body.force-mobile-view .filter-panel.mobile-expanded {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
  z-index: 60;
  margin: 0;
  padding: 14px 13px 14px;
  border-radius: 22px 22px 18px 18px;
  box-shadow: 0 20px 44px rgba(18, 51, 46, 0.22);
  max-height: min(76vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.24s ease, transform 0.24s ease;
  pointer-events: none;
}

body.force-mobile-view .filter-panel.mobile-expanded.drawer-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.force-mobile-view .filter-panel.mobile-expanded.mobile-closing {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
}

body.force-mobile-view .filter-panel.mobile-expanded .panel-heading {
  position: sticky;
  top: -14px;
  z-index: 2;
  margin: -14px -13px 10px;
  padding: 14px 13px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 248, 0.96));
  backdrop-filter: blur(8px);
}

body.force-mobile-view .filter-panel.mobile-expanded .filter-actions {
  position: sticky;
  bottom: -14px;
  margin: 10px -13px -14px;
  padding: 12px 13px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(244, 251, 248, 0.92), rgba(255, 255, 255, 0.98));
  border-top: 1px solid rgba(95, 166, 149, 0.18);
}

body.force-mobile-view .filter-actions,
body.force-mobile-view .form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.force-mobile-view .header-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

body.force-mobile-view .header-action-row > *,
body.force-mobile-view .filter-actions > *,
body.force-mobile-view .form-actions > * {
  width: 100%;
}

body.force-mobile-view .metric-grid,
body.force-mobile-view .statistics-summary-grid,
body.force-mobile-view .dashboard-tabbar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.force-mobile-view .metric-grid,
body.force-mobile-view .statistics-summary-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(124px, 1fr);
  overflow-x: auto;
  margin-bottom: 8px;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

body.force-mobile-view .metric-card,
body.force-mobile-view .statistics-summary-card {
  scroll-snap-align: start;
}

body.force-mobile-view .metric-card {
  min-height: 114px;
  padding: 10px 10px 9px;
  gap: 4px;
}

body.force-mobile-view .metric-card::before {
  height: 3px;
}

body.force-mobile-view .metric-card .eyebrow {
  margin-bottom: 4px;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  line-height: 1.25;
}

body.force-mobile-view .metric-card strong {
  margin-top: 2px;
  font-size: 1.1rem;
  line-height: 1.05;
}

body.force-mobile-view .metric-card .muted {
  font-size: 0.68rem;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.force-mobile-view .status-donut-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.force-mobile-view .status-donut-card {
  gap: 10px;
  padding: 10px;
}

body.force-mobile-view .status-donut-ring {
  width: 84px;
  height: 84px;
}

body.force-mobile-view .status-donut-center {
  width: 56px;
  height: 56px;
}

body.force-mobile-view .status-donut-center strong {
  font-size: 0.94rem;
}

body.force-mobile-view .toast-stack {
  top: auto;
  right: 12px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  width: auto;
}

body.force-mobile-view .status-donut-meta strong {
  font-size: 0.84rem;
}

body.force-mobile-view .status-donut-meta span,
body.force-mobile-view .status-donut-meta small,
body.force-mobile-view .status-compare-meta span,
body.force-mobile-view .status-compare-note {
  font-size: 0.76rem;
}

body.force-mobile-view .panel-heading.statistics-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

body.force-mobile-view .statistics-header {
  align-items: center;
  gap: 8px;
}

body.force-mobile-view .statistics-header > div:first-child {
  display: grid;
  gap: 3px;
}

body.force-mobile-view .statistics-header .eyebrow {
  margin-bottom: 2px;
}

body.force-mobile-view .statistics-header h2 {
  font-size: 0.96rem;
  line-height: 1.16;
}

body.force-mobile-view #statistics-range-label {
  margin-top: 0;
  font-size: 0.76rem;
  line-height: 1.32;
  max-width: 15rem;
}

body.force-mobile-view .statistics-timeframe-control {
  width: min(170px, 100%);
  gap: 4px;
}

body.force-mobile-view .statistics-timeframe-control span {
  font-size: 0.72rem;
}

body.force-mobile-view .statistics-timeframe-control select {
  padding: 8px 10px;
  font-size: 0.86rem;
  border-radius: 12px;
}

body.force-mobile-view #orders-tab-panel .metric-grid {
  margin-bottom: 6px;
}

body.force-mobile-view #orders-tab-panel .content-grid {
  margin-top: 2px;
}

body.force-mobile-view .dashboard-tab-panel {
  gap: 10px;
}

body.force-mobile-view .dashboard-tabbar-shell {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
  transform: translateX(-50%);
  width: min(100vw - 14px, 410px);
  z-index: 42;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  margin-bottom: 0;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(18, 51, 46, 0.14);
}

body.force-mobile-view .dashboard-tabbar-copy {
  display: none;
}

body.force-mobile-view .dashboard-tabbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
}

body.force-mobile-view .dashboard-tabbar::-webkit-scrollbar {
  display: none;
}

body.force-mobile-view.supplier-dashboard-user .dashboard-tabbar {
  overflow-x: visible;
  scroll-snap-type: none;
}

body.force-mobile-view .dashboard-tab-button {
  flex: 0 0 clamp(82px, 22vw, 92px);
  min-width: clamp(82px, 22vw, 92px);
  min-height: 42px;
  padding: 6px 4px 6px;
  font-size: 0.62rem;
  line-height: 1.08;
  text-align: center;
  scroll-snap-align: start;
}

body.force-mobile-view .account-summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.force-mobile-view .account-admin-layout,
body.force-mobile-view .import-layout,
body.force-mobile-view .external-workspace {
  gap: 10px;
}

body.force-mobile-view .account-summary-badge,
body.force-mobile-view .export-summary-card,
body.force-mobile-view .import-summary-card,
body.force-mobile-view .export-filter-grid,
body.force-mobile-view .csv-import-panel {
  padding: 12px;
  border-radius: 14px;
}

body.force-mobile-view .account-summary-badge strong,
body.force-mobile-view .export-summary-card strong,
body.force-mobile-view .import-summary-card strong {
  font-size: 0.92rem;
}

body.force-mobile-view .export-summary-card .muted,
body.force-mobile-view .import-summary-card .muted {
  font-size: 0.76rem;
  line-height: 1.4;
}

body.force-mobile-view .external-order-form {
  gap: 10px;
}

body.force-mobile-view .export-actions,
body.force-mobile-view .csv-import-panel .form-actions {
  display: grid;
  grid-template-columns: 1fr;
}

body.force-mobile-view .dashboard-tab-button-content {
  flex-direction: column;
  gap: 3px;
}

body.force-mobile-view .dashboard-tab-button-icon,
body.force-mobile-view .dashboard-tab-button-icon svg {
  width: 17px;
  height: 17px;
}

body.force-mobile-view .dashboard-tab-button.active::after {
  display: none;
}

body.force-mobile-view .filter-grid,
body.force-mobile-view .double-grid,
body.force-mobile-view .triple-grid,
body.force-mobile-view .quad-grid,
body.force-mobile-view .order-grid,
body.force-mobile-view .content-grid,
body.force-mobile-view .detail-modal-grid,
body.force-mobile-view .detail-modal-grid-compact {
  grid-template-columns: 1fr;
}

body.force-mobile-view .filter-grid > label:first-child,
body.force-mobile-view .filter-grid .filter-actions {
  grid-column: auto;
}

body.force-mobile-view .dashboard-order-table {
  min-width: 0;
}

body.force-mobile-view .dashboard-order-table thead {
  display: none;
}

body.force-mobile-view .dashboard-order-table,
body.force-mobile-view .dashboard-order-table tbody,
body.force-mobile-view .dashboard-order-table tr,
body.force-mobile-view .dashboard-order-table td {
  display: block;
  width: 100%;
}

body.force-mobile-view .dashboard-order-table tr {
  padding: 11px 12px;
  margin-bottom: 10px;
  border: 1.5px solid rgba(15, 125, 99, 0.34);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(18, 51, 46, 0.12), 0 0 0 1px rgba(15, 125, 99, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 252, 248, 0.97) 100%);
  position: relative;
  overflow: hidden;
}

body.force-mobile-view .dashboard-order-table tr::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, var(--brand) 0%, #73cdb2 100%);
}

body.force-mobile-view .dashboard-order-table td {
  padding: 7px 0;
  border-bottom: 0;
}

body.force-mobile-view .dashboard-order-row td:first-child {
  box-shadow: none;
}

body.force-mobile-view .dashboard-order-table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.force-mobile-view .view-mode-footer {
  padding: 9px 10px;
  margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  border-radius: 14px;
  gap: 8px;
}

body.force-mobile-view .view-mode-footer-copy strong {
  font-size: 0.82rem;
}

body.force-mobile-view .view-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

body.force-mobile-view .view-mode-switch .view-mode-button {
  padding: 7px 10px;
  font-size: 0.78rem;
}

body.force-mobile-view .detail-modal-dialog,
body.force-mobile-view .proof-modal-dialog {
  --modal-static-transform: translateX(-50%);
  width: min(calc(100vw - 8px), 392px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 18px 18px 0 0;
  position: absolute;
  left: 50%;
  bottom: 0;
}

body.force-mobile-view .copy-order-textarea {
  min-height: 220px;
  font-size: 0.8rem;
}

body.force-mobile-view .detail-modal-dialog {
  max-height: calc(100vh - 6px);
}

body.force-mobile-view .detail-modal-dialog::before {
  top: -10px;
  margin: -10px -10px 10px;
  height: 4px;
}

body.force-mobile-view .detail-modal-close,
body.force-mobile-view .proof-modal-close {
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  font-size: 0.92rem;
}

body.force-mobile-view .proof-modal-body img {
  max-height: min(62vh, 460px);
  border-radius: 12px;
}

body.force-mobile-view .detail-modal-shell {
  gap: 10px;
}

body.force-mobile-view .detail-modal-header {
  gap: 3px;
  padding-right: 38px;
  padding-bottom: 8px;
}

body.force-mobile-view .detail-modal-header h2 {
  font-size: 0.9rem;
  line-height: 1.18;
}

body.force-mobile-view .detail-modal-feedback {
  font-size: 0.74rem;
}

body.force-mobile-view .detail-accordion-summary {
  padding: 10px;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, padding-bottom 0.2s ease;
}

body.force-mobile-view .detail-accordion-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.force-mobile-view .detail-accordion-body {
  max-height: 0;
  opacity: 0;
  padding: 0 10px;
  gap: 8px;
  border-top-color: transparent;
  transition:
    max-height 0.24s ease,
    opacity 0.2s ease,
    padding 0.2s ease,
    border-color 0.2s ease;
}

body.force-mobile-view .detail-accordion[open] .detail-accordion-summary {
  background: linear-gradient(180deg, rgba(248, 252, 250, 0.98) 0%, rgba(243, 249, 246, 0.96) 100%);
}

body.force-mobile-view .detail-accordion[open] .detail-accordion-icon {
  border-color: rgba(15, 125, 99, 0.24);
  background: linear-gradient(180deg, rgba(233, 247, 241, 0.98) 0%, rgba(244, 251, 247, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 6px 14px rgba(15, 125, 99, 0.08);
}

body.force-mobile-view .detail-accordion[open] .detail-accordion-body {
  max-height: 1200px;
  opacity: 1;
  padding: 0 10px 10px;
  border-top-color: rgba(183, 208, 191, 0.56);
}

body.force-mobile-view .modern-file-input {
  padding: 9px 10px;
  border-radius: 13px;
  font-size: 0.8rem;
}

body.force-mobile-view .modern-file-input::file-selector-button,
body.force-mobile-view .modern-file-input::-webkit-file-upload-button {
  margin-right: 8px;
  padding: 8px 11px;
  font-size: 0.74rem;
}

body.force-mobile-view .detail-overview-bar {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.force-mobile-view .detail-overview-item {
  padding: 10px 11px;
  border-radius: 14px;
  gap: 4px;
}

body.force-mobile-view .detail-overview-item span {
  font-size: 0.66rem;
}

body.force-mobile-view .detail-overview-item strong {
  font-size: 0.79rem;
}

body.force-mobile-view .detail-modal-grid,
body.force-mobile-view .detail-modal-grid-compact {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.force-mobile-view .detail-card {
  padding: 10px;
  border-radius: 14px;
  gap: 8px;
}

body.force-mobile-view .detail-card-heading {
  gap: 2px;
}

body.force-mobile-view .detail-card-heading h3 {
  font-size: 0.78rem;
}

body.force-mobile-view .detail-product-list {
  gap: 8px;
}

body.force-mobile-view .detail-product-item {
  padding: 10px 11px;
  border-radius: 13px;
  gap: 4px;
}

body.force-mobile-view .detail-product-editor span {
  font-size: 0.67rem;
}

body.force-mobile-view .detail-product-item strong {
  font-size: 0.84rem;
}

body.force-mobile-view .detail-product-subtitle,
body.force-mobile-view .detail-product-qty {
  font-size: 0.72rem;
}

body.force-mobile-view .detail-product-meta {
  font-size: 0.7rem;
}

body.force-mobile-view .detail-form-stack {
  gap: 8px;
}

body.force-mobile-view .detail-contact-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.force-mobile-view .detail-contact-item {
  padding: 9px 10px;
  border-radius: 12px;
  gap: 3px;
}

body.force-mobile-view .detail-contact-item span {
  font-size: 0.67rem;
}

body.force-mobile-view .detail-contact-item strong {
  font-size: 0.8rem;
}

body.force-mobile-view .detail-address-box {
  padding: 10px;
  border-radius: 14px;
  gap: 8px;
}

body.force-mobile-view .detail-address-title {
  font-size: 0.68rem;
}

body.force-mobile-view .detail-address-text {
  font-size: 0.8rem;
}

body.force-mobile-view .detail-address-note {
  font-size: 0.72rem;
}

body.force-mobile-view .detail-readonly-value {
  padding: 10px 11px;
  border-radius: 12px;
  gap: 4px;
}

body.force-mobile-view .detail-readonly-value strong {
  font-size: 0.86rem;
}

body.force-mobile-view .detail-readonly-value span {
  font-size: 0.72rem;
}

body.force-mobile-view .detail-proof-area {
  padding: 10px;
  border-radius: 14px;
}

body.force-mobile-view .detail-modal-actions {
  gap: 8px;
  padding-top: 2px;
}

body.force-mobile-view .detail-modal-actions .primary-button,
body.force-mobile-view .detail-modal-actions .secondary-button,
body.force-mobile-view .detail-modal-actions .ghost-button,
body.force-mobile-view .detail-modal-actions .small-button {
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: 0.8rem;
}

body.force-desktop-view .page-shell {
  width: min(1440px, calc(100vw - 16px));
  padding-top: 18px;
  padding-bottom: 42px;
}

body.force-desktop-view .topbar {
  flex-direction: row;
}

body.force-desktop-view .topbar-actions,
body.force-desktop-view .topbar-side,
body.force-desktop-view .header-action-row {
  width: auto;
  justify-content: flex-end;
}

body.force-desktop-view .header-action-row {
  display: flex;
  flex-direction: row;
}

body.force-desktop-view .filter-actions,
body.force-desktop-view .form-actions {
  display: flex;
  flex-direction: row;
}

body.force-desktop-view .dashboard-tabbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.force-desktop-view .filter-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

body.force-desktop-view .detail-modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.force-desktop-view .detail-modal-grid-compact {
  grid-template-columns: 1.2fr 0.8fr;
}

@media (min-width: 1180px) {
  body:not(.force-mobile-view) .detail-modal-layout {
    grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
    gap: 18px;
    align-items: start;
  }

  body:not(.force-mobile-view) .detail-modal-left-column {
    gap: 16px;
  }

  body:not(.force-mobile-view) .detail-modal-right-column {
    gap: 16px;
    position: relative;
    padding-left: 18px;
  }

  body:not(.force-mobile-view) .detail-modal-right-column::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(118, 178, 162, 0) 0%, rgba(118, 178, 162, 0.4) 18%, rgba(118, 178, 162, 0.4) 82%, rgba(118, 178, 162, 0) 100%);
  }
}

body.force-desktop-view .detail-modal-layout {
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  gap: 18px;
  align-items: start;
}

body.force-desktop-view .detail-modal-left-column {
  gap: 16px;
}

body.force-desktop-view .detail-modal-right-column {
  gap: 16px;
  position: relative;
  padding-left: 18px;
}

body.force-desktop-view .detail-modal-right-column::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(118, 178, 162, 0) 0%, rgba(118, 178, 162, 0.4) 18%, rgba(118, 178, 162, 0.4) 82%, rgba(118, 178, 162, 0) 100%);
}

body.force-desktop-view .dashboard-order-table {
  display: table;
  width: 100%;
}

body.force-desktop-view .account-summary-card {
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: start;
  gap: 18px;
}

body.force-desktop-view .csv-preview-table-wrap {
  max-height: min(56vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.force-desktop-view .external-order-table td[data-label="Order"] > .table-cell-stack,
body.force-desktop-view .external-order-table td[data-label="Ringkasan"] > .table-cell-stack {
  min-height: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(120, 169, 154, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 248, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 20px rgba(18, 51, 46, 0.035);
}

body.force-desktop-view .account-table th {
  z-index: 2;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 -1px 0 rgba(183, 208, 191, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.78);
}

body.force-desktop-view .import-layout {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 18px;
}

body.force-desktop-view .import-summary-card {
  position: sticky;
  top: 24px;
}

body.force-desktop-view .external-workspace {
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 18px;
}

body.force-desktop-view .external-editor-shell {
  position: sticky;
  top: 24px;
}

body.force-desktop-view .external-list-shell #external-orders-list .dashboard-order-table-wrap {
  max-height: min(68vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.force-desktop-view .account-admin-layout {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 18px;
}

body.force-desktop-view #account-user-editor-panel {
  position: sticky;
  top: 24px;
}

body.force-desktop-view #account-users-panel .account-table-wrap {
  max-height: min(68vh, 840px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.force-desktop-view .export-layout {
  grid-template-columns: minmax(250px, 0.74fr) minmax(0, 1.26fr);
  align-items: start;
  gap: 18px;
}

body.force-desktop-view .export-summary-card {
  position: sticky;
  top: 24px;
  padding: 18px 20px;
}

body.force-desktop-view .export-filter-grid {
  padding: 18px 20px;
}

body.force-desktop-view .dashboard-order-table-wrap {
  max-height: min(68vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.force-desktop-view .dashboard-order-table thead {
  display: table-header-group;
}

body.force-desktop-view .dashboard-order-table tbody {
  display: table-row-group;
}

body.force-desktop-view .dashboard-order-table tr {
  display: table-row;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.force-desktop-view .dashboard-order-table td,
body.force-desktop-view .dashboard-order-table th {
  display: table-cell;
  width: auto;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

body.force-desktop-view .dashboard-order-table td::before {
  display: none;
}

body.force-desktop-view .dashboard-order-row td:first-child {
  box-shadow: inset 5px 0 0 rgba(15, 125, 99, 0.18);
}

body.force-desktop-view .imported-preview-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(260px, 0.9fr) minmax(280px, 1fr);
  align-items: start;
}

body.force-desktop-view .external-preview-grid {
  grid-template-columns: minmax(210px, 0.92fr) minmax(0, 1.08fr) minmax(0, 1fr) minmax(240px, 0.86fr);
  align-items: start;
}

body.force-desktop-view .row-preview-shell {
  padding-bottom: 12px;
}

body.force-desktop-view .row-preview-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(246, 251, 248, 0) 0%, rgba(246, 251, 248, 0.9) 28%, rgba(246, 251, 248, 0.98) 100%);
  border-top: 1px solid rgba(120, 169, 154, 0.18);
}

body.force-desktop-view .table-cell-stack,
body.force-desktop-view .table-actions,
body.force-desktop-view .table-item-list,
body.force-desktop-view .status-summary-stack {
  gap: 6px;
}

body.force-desktop-view .status-summary-stack .badge {
  padding: 7px 9px;
  font-size: 0.76rem;
}

body.force-desktop-view .imported-order-table td[data-label="Status"] > .status-summary-stack,
body.force-desktop-view .external-order-table td[data-label="Status"] > .table-cell-stack {
  min-height: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(120, 169, 154, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 248, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 20px rgba(18, 51, 46, 0.04);
}

body.force-desktop-view .external-order-table td[data-label="Status"] > .table-cell-stack .badge-row {
  margin-top: 0;
}

body.force-desktop-view .table-proof-area .proof-file-stack,
body.force-desktop-view .table-proof-area .proof-empty-text {
  gap: 5px;
}

body.force-desktop-view .imported-order-table td[data-label="Bukti Transfer"] > .table-proof-area,
body.force-desktop-view .imported-order-table td[data-label="Bukti Kirim"] > .table-proof-area,
body.force-desktop-view .external-order-table td[data-label="Bukti Transfer"] > .table-proof-area {
  min-height: 100%;
  padding: 10px 11px;
  border: 1px dashed rgba(120, 169, 154, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 20px rgba(18, 51, 46, 0.035);
}

body.force-desktop-view .proof-file-button {
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 0.78rem;
}

body.force-desktop-view .proof-empty-text,
body.force-desktop-view .proof-booking-code {
  font-size: 0.75rem;
}

body.force-desktop-view .table-actions {
  min-width: 126px;
}

body.force-desktop-view .table-actions .small-button {
  padding: 8px 10px;
  font-size: 0.76rem;
}

body.force-desktop-view .imported-order-table td[data-label="Status"],
body.force-desktop-view .external-order-table td[data-label="Status"] {
  padding-right: 10px;
}

body.force-desktop-view .imported-order-table td[data-label="Bukti Transfer"],
body.force-desktop-view .imported-order-table td[data-label="Bukti Kirim"],
body.force-desktop-view .external-order-table td[data-label="Bukti Transfer"],
body.force-desktop-view .imported-order-table td[data-label="Aksi"],
body.force-desktop-view .external-order-table td[data-label="Aksi"] {
  padding-left: 10px;
  padding-right: 10px;
}

@media (min-width: 1180px) {
  body:not(.force-mobile-view) .dashboard-screen {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 20px 24px;
    align-items: start;
  }

  body:not(.force-mobile-view) .topbar,
  body:not(.force-mobile-view) .metric-grid,
  body:not(.force-mobile-view) .dashboard-tab-panel,
  body:not(.force-mobile-view) .view-mode-footer {
    grid-column: 2;
    margin-bottom: 0;
  }

  body:not(.force-mobile-view) .dashboard-tabbar-shell {
    grid-column: 1;
    grid-row: 1 / span 6;
    position: sticky;
    top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(250, 253, 251, 0.98) 0%, rgba(241, 248, 244, 0.98) 100%);
    box-shadow:
      0 18px 38px rgba(18, 51, 46, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  body:not(.force-mobile-view) .dashboard-tabbar-shell::before {
    inset: 0 auto 0 0;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, var(--brand) 0%, #86d7bd 100%);
  }

  body:not(.force-mobile-view) .dashboard-tabbar-copy {
    gap: 6px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(183, 208, 191, 0.72);
  }

  body:not(.force-mobile-view) .dashboard-tabbar-copy strong {
    font-size: 1.06rem;
  }

  body:not(.force-mobile-view) .dashboard-tabbar-copy .muted {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  body:not(.force-mobile-view) .dashboard-tabbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body:not(.force-mobile-view) .dashboard-tab-button {
    min-height: 54px;
    padding: 13px 15px;
    border-radius: 18px;
    text-align: left;
  }

  body:not(.force-mobile-view) .dashboard-tab-button-content {
    width: 100%;
    justify-content: flex-start;
  }

  body:not(.force-mobile-view) .dashboard-tab-button-icon,
  body:not(.force-mobile-view) .dashboard-tab-button-icon svg {
    width: 19px;
    height: 19px;
  }

  body:not(.force-mobile-view) .dashboard-tab-button-label {
    font-size: 0.92rem;
  }

  body:not(.force-mobile-view) .topbar {
    padding: 22px 24px;
  }

  body:not(.force-mobile-view) .topbar-copy {
    max-width: none;
  }

  body:not(.force-mobile-view) .topbar .muted {
    max-width: 56ch;
  }

  body:not(.force-mobile-view) .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  body:not(.force-mobile-view) .metric-card {
    min-height: 132px;
  }
}

body.force-desktop-view .dashboard-screen {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px 24px;
  align-items: start;
}

body.force-desktop-view .topbar,
body.force-desktop-view .metric-grid,
body.force-desktop-view .dashboard-tab-panel,
body.force-desktop-view .view-mode-footer {
  grid-column: 2;
  margin-bottom: 0;
}

body.force-desktop-view .dashboard-tabbar-shell {
  grid-column: 1;
  grid-row: 1 / span 6;
  position: sticky;
  top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(250, 253, 251, 0.98) 0%, rgba(241, 248, 244, 0.98) 100%);
  box-shadow:
    0 18px 38px rgba(18, 51, 46, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.force-desktop-view .dashboard-tabbar-shell::before {
  inset: 0 auto 0 0;
  width: 4px;
  height: auto;
  background: linear-gradient(180deg, var(--brand) 0%, #86d7bd 100%);
}

body.force-desktop-view .dashboard-tabbar-copy {
  gap: 6px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(183, 208, 191, 0.72);
}

body.force-desktop-view .dashboard-tabbar-copy strong {
  font-size: 1.06rem;
}

body.force-desktop-view .dashboard-tabbar-copy .muted {
  font-size: 0.82rem;
  line-height: 1.6;
}

body.force-desktop-view .dashboard-tabbar {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.force-desktop-view .dashboard-tab-button {
  min-height: 54px;
  padding: 13px 15px;
  border-radius: 18px;
  text-align: left;
}

body.force-desktop-view .dashboard-tab-button-content {
  width: 100%;
  justify-content: flex-start;
}

body.force-desktop-view .dashboard-tab-button-icon,
body.force-desktop-view .dashboard-tab-button-icon svg {
  width: 19px;
  height: 19px;
}

body.force-desktop-view .dashboard-tab-button-label {
  font-size: 0.92rem;
}

body.force-desktop-view .topbar {
  padding: 22px 24px;
}

body.force-desktop-view .topbar-copy {
  max-width: none;
}

body.force-desktop-view .topbar .muted {
  max-width: 56ch;
}

body.force-desktop-view .metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.force-desktop-view .metric-card {
  min-height: 132px;
}

body:not(.force-mobile-view) .topbar,
body.force-desktop-view .topbar {
  padding: 16px 18px;
  gap: 8px;
}

body:not(.force-mobile-view) .topbar-copy,
body.force-desktop-view .topbar-copy {
  display: flex;
  align-items: center;
  min-height: 0;
  max-width: none;
}

body:not(.force-mobile-view) .topbar h1,
body.force-desktop-view .topbar h1 {
  font-size: 1.26rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body:not(.force-mobile-view) .topbar .muted,
body:not(.force-mobile-view) .topbar-side,
body.force-desktop-view .topbar .muted,
body.force-desktop-view .topbar-side {
  display: none;
}

body:not(.force-mobile-view) .dashboard-tabbar-shell,
body.force-desktop-view .dashboard-tabbar-shell {
  gap: 12px;
  padding: 16px 14px;
}

body:not(.force-mobile-view) .dashboard-tabbar-copy,
body.force-desktop-view .dashboard-tabbar-copy {
  display: none;
}

body:not(.force-mobile-view) .dashboard-tabbar,
body.force-desktop-view .dashboard-tabbar {
  gap: 7px;
}

body:not(.force-mobile-view) .dashboard-tab-button,
body.force-desktop-view .dashboard-tab-button {
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 16px;
}

body:not(.force-mobile-view) .dashboard-tab-button-label,
body.force-desktop-view .dashboard-tab-button-label {
  font-size: 0.88rem;
}

body.orders-focus-active:not(.force-mobile-view) .topbar,
body.force-desktop-view.orders-focus-active .topbar {
  padding: 14px 18px 12px;
  gap: 8px;
  border-radius: 20px;
}

body.orders-focus-active:not(.force-mobile-view) .topbar-copy,
body.force-desktop-view.orders-focus-active .topbar-copy {
  display: flex;
  align-items: center;
  min-height: 0;
  max-width: none;
}

body.orders-focus-active:not(.force-mobile-view) .topbar h1,
body.force-desktop-view.orders-focus-active .topbar h1 {
  font-size: 1.18rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.orders-focus-active:not(.force-mobile-view) .topbar .muted,
body.orders-focus-active:not(.force-mobile-view) .topbar-side,
body.force-desktop-view.orders-focus-active .topbar .muted,
body.force-desktop-view.orders-focus-active .topbar-side {
  display: none;
}

body.orders-focus-active:not(.force-mobile-view) .metric-grid,
body.force-desktop-view.orders-focus-active .metric-grid {
  gap: 10px;
  margin-bottom: 10px;
}

body.orders-focus-active:not(.force-mobile-view) .metric-card,
body.force-desktop-view.orders-focus-active .metric-card {
  min-height: 94px;
  padding: 13px 14px 12px;
  gap: 4px;
}

body.orders-focus-active:not(.force-mobile-view) .metric-card::before,
body.force-desktop-view.orders-focus-active .metric-card::before {
  height: 3px;
}

body.orders-focus-active:not(.force-mobile-view) .metric-card strong,
body.force-desktop-view.orders-focus-active .metric-card strong {
  margin-top: 4px;
  font-size: 1.45rem;
}

body.orders-focus-active:not(.force-mobile-view) .metric-card .muted,
body.force-desktop-view.orders-focus-active .metric-card .muted {
  display: none;
}

body.orders-focus-active:not(.force-mobile-view) .dashboard-tab-panel,
body.force-desktop-view.orders-focus-active .dashboard-tab-panel {
  gap: 12px;
}

body.orders-focus-active:not(.force-mobile-view) .filter-panel,
body.force-desktop-view.orders-focus-active .filter-panel {
  padding: 14px 16px;
}

body.orders-focus-active:not(.force-mobile-view) .mobile-filter-tools,
body.force-desktop-view.orders-focus-active .mobile-filter-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

body.orders-focus-active:not(.force-mobile-view) .mobile-filter-summary,
body.force-desktop-view.orders-focus-active .mobile-filter-summary {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-size: 0.8rem;
}

body.orders-focus-active:not(.force-mobile-view) .mobile-filter-toggle-button,
body.force-desktop-view.orders-focus-active .mobile-filter-toggle-button {
  min-height: 40px;
  padding-inline: 14px;
}

body.orders-focus-active:not(.force-mobile-view) .filter-panel.desktop-collapsed,
body.force-desktop-view.orders-focus-active .filter-panel.desktop-collapsed {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.orders-focus-active:not(.force-mobile-view) .filter-panel.desktop-collapsed .panel-heading,
body.force-desktop-view.orders-focus-active .filter-panel.desktop-collapsed .panel-heading {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  align-items: center;
}

body.orders-focus-active:not(.force-mobile-view) .filter-panel.desktop-collapsed .filter-content,
body.orders-focus-active:not(.force-mobile-view) .filter-panel.desktop-collapsed .filter-chip-rail,
body.force-desktop-view.orders-focus-active .filter-panel.desktop-collapsed .filter-content,
body.force-desktop-view.orders-focus-active .filter-panel.desktop-collapsed .filter-chip-rail {
  display: none;
}

body.orders-focus-active:not(.force-mobile-view) .filter-panel.desktop-expanded .filter-chip-rail,
body.force-desktop-view.orders-focus-active .filter-panel.desktop-expanded .filter-chip-rail {
  display: flex;
}

body.mobile-dashboard-mode .dashboard-screen {
  display: grid;
  gap: 8px;
}

body.mobile-dashboard-mode .page-shell {
  width: min(100vw - 8px, 100%);
  padding-top: 6px;
  padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
}

body.mobile-dashboard-mode .topbar {
  gap: 3px;
  margin-bottom: 6px;
  padding: 8px 11px 7px;
  border-radius: 16px;
  border-color: rgba(183, 208, 191, 0.46);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 252, 249, 0.98) 100%);
  box-shadow:
    0 14px 28px rgba(18, 51, 46, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.mobile-dashboard-mode .topbar::before {
  width: 3px;
  opacity: 0.82;
}

body.mobile-dashboard-mode .topbar .eyebrow,
body.mobile-dashboard-mode .topbar .muted {
  display: none;
}

body.mobile-dashboard-mode .topbar-copy {
  display: grid;
  align-items: center;
  gap: 0;
  min-height: 26px;
  max-width: none;
}

body.mobile-dashboard-mode .topbar h1 {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

body.mobile-dashboard-mode .dashboard-tabbar-shell {
  width: min(100vw - 10px, 408px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px;
  border-color: rgba(183, 208, 191, 0.4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 34px rgba(18, 51, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.mobile-dashboard-mode .dashboard-tabbar-shell::before {
  display: none;
}

body.mobile-dashboard-mode .dashboard-tabbar {
  gap: 4px;
}

body.mobile-dashboard-mode .dashboard-tab-button {
  flex: 0 0 clamp(80px, 22vw, 90px);
  min-width: clamp(80px, 22vw, 90px);
  min-height: 39px;
  padding: 6px 4px 5px;
  border-radius: 13px;
  border-color: rgba(183, 208, 191, 0.22);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

body.mobile-dashboard-mode .dashboard-tab-button-content {
  gap: 1px;
}

body.mobile-dashboard-mode .dashboard-tab-button-icon,
body.mobile-dashboard-mode .dashboard-tab-button-icon svg {
  width: 15px;
  height: 15px;
}

body.mobile-dashboard-mode .dashboard-tab-button-label {
  font-size: 0.58rem;
  letter-spacing: 0.01em;
}

body.mobile-dashboard-mode .dashboard-tab-button.active {
  background: linear-gradient(180deg, #159777 0%, #0f7d63 100%);
  box-shadow:
    0 10px 18px rgba(15, 125, 99, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.mobile-dashboard-mode .panel {
  padding: 11px;
  border-radius: 16px;
  border-color: rgba(183, 208, 191, 0.54);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow:
    0 12px 24px rgba(18, 51, 46, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.mobile-dashboard-mode .panel::before {
  height: 3px;
  opacity: 0.82;
}

body.mobile-dashboard-mode .panel-heading {
  margin-bottom: 10px;
  padding-bottom: 9px;
}

body.mobile-dashboard-mode .panel-heading h2 {
  font-size: 0.98rem;
  line-height: 1.12;
}

body.mobile-dashboard-mode .panel-heading .muted {
  font-size: 0.72rem;
  line-height: 1.32;
}

body.mobile-dashboard-mode .dashboard-order-table-wrap {
  border-radius: 18px;
  border-color: rgba(183, 208, 191, 0.36);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.mobile-dashboard-mode .dashboard-order-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}

body.mobile-dashboard-mode .dashboard-order-table thead {
  display: none;
}

body.mobile-dashboard-mode .dashboard-order-table,
body.mobile-dashboard-mode .dashboard-order-table tbody,
body.mobile-dashboard-mode .dashboard-order-table tr,
body.mobile-dashboard-mode .dashboard-order-table td {
  display: block;
  width: 100%;
}

body.mobile-dashboard-mode .dashboard-order-table tr {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  margin-bottom: 11px;
  border-radius: 22px;
}

body.mobile-dashboard-mode .dashboard-order-table tr::before {
  width: 4px;
  border-radius: 22px 0 0 22px;
}

body.mobile-dashboard-mode .dashboard-order-table td {
  min-width: 0;
  padding: 10px 11px 9px;
  border-radius: 15px;
  border: 1px solid rgba(159, 199, 186, 0.36);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 14px rgba(18, 51, 46, 0.04);
  overflow: hidden;
}

body.mobile-dashboard-mode .dashboard-order-table td::before {
  content: attr(data-label);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.7);
  background: rgba(243, 250, 247, 0.95);
  color: rgba(10, 94, 77, 0.94);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.mobile-dashboard-mode .dashboard-order-table td[data-label="Order"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Nama Produk"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Buyer / Alamat"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Status"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Aksi"] {
  grid-column: 1 / -1;
}

body.mobile-dashboard-mode .dashboard-order-table td[data-label="Harga Supplier"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Bukti Transfer"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Bukti Kirim"] {
  grid-column: span 2;
  min-height: 96px;
}

body.mobile-dashboard-mode .dashboard-order-table td[data-label="Nama Produk"] {
  background: linear-gradient(180deg, rgba(250, 255, 252, 0.99) 0%, rgba(243, 250, 247, 0.97) 100%);
  border-color: rgba(129, 189, 171, 0.34);
}

body.mobile-dashboard-mode .dashboard-order-table td[data-label="Buyer / Alamat"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 249, 0.96) 100%);
}

body.mobile-dashboard-mode .dashboard-order-table td[data-label="Harga Supplier"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Bukti Transfer"],
body.mobile-dashboard-mode .dashboard-order-table td[data-label="Bukti Kirim"] {
  background: linear-gradient(180deg, rgba(252, 254, 253, 0.99) 0%, rgba(247, 251, 249, 0.96) 100%);
}

body.mobile-dashboard-mode .table-cell-stack,
body.mobile-dashboard-mode .table-item-list,
body.mobile-dashboard-mode .table-actions,
body.mobile-dashboard-mode .status-summary-stack {
  gap: 5px;
}

body.mobile-dashboard-mode .table-cell-stack strong,
body.mobile-dashboard-mode .table-item-list strong {
  font-size: 0.86rem;
  line-height: 1.38;
}

body.mobile-dashboard-mode .table-cell-stack span,
body.mobile-dashboard-mode .buyer-address-meta {
  font-size: 0.72rem;
  line-height: 1.34;
}

body.mobile-dashboard-mode .buyer-address-cell {
  gap: 6px;
}

body.mobile-dashboard-mode .buyer-address-header {
  align-items: flex-start;
}

body.mobile-dashboard-mode .copy-address-button {
  justify-self: end;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.69rem;
  border-radius: 999px;
}

body.mobile-dashboard-mode .status-summary-stack {
  gap: 7px;
}

body.mobile-dashboard-mode .status-summary-stack .badge {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
}

body.mobile-dashboard-mode .status-summary-layout,
body.force-mobile-view .status-summary-layout {
  gap: 7px;
}

body.mobile-dashboard-mode .status-meta-rail,
body.force-mobile-view .status-meta-rail {
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 1px;
  scroll-snap-type: x proximity;
}

body.mobile-dashboard-mode .status-meta-pill,
body.force-mobile-view .status-meta-pill {
  flex: 0 0 auto;
  min-width: 102px;
  padding: 7px 8px;
  border-radius: 13px;
  scroll-snap-align: start;
}

body.mobile-dashboard-mode .status-meta-pill-label,
body.force-mobile-view .status-meta-pill-label {
  font-size: 0.54rem;
}

body.mobile-dashboard-mode .status-meta-pill strong,
body.force-mobile-view .status-meta-pill strong {
  font-size: 0.69rem;
  line-height: 1.24;
}

body.mobile-dashboard-mode .status-summary-grid,
body.force-mobile-view .status-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.mobile-dashboard-mode .status-summary-card,
body.force-mobile-view .status-summary-card {
  display: grid;
  gap: 4px;
  min-height: 100%;
  padding: 8px 9px;
  border-radius: 13px;
  border: 1px solid rgba(174, 206, 196, 0.42);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 6px 14px rgba(18, 51, 46, 0.04);
}

body.mobile-dashboard-mode .status-summary-card.variant-brand,
body.force-mobile-view .status-summary-card.variant-brand {
  border-color: rgba(115, 205, 178, 0.5);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(247, 253, 250, 0.99) 0%, rgba(239, 249, 244, 0.97) 100%);
}

body.mobile-dashboard-mode .status-summary-card.variant-warning,
body.force-mobile-view .status-summary-card.variant-warning {
  border-color: rgba(217, 143, 51, 0.36);
  background:
    radial-gradient(circle at right top, rgba(217, 143, 51, 0.08) 0%, rgba(217, 143, 51, 0) 38%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.99) 0%, rgba(250, 244, 234, 0.97) 100%);
}

body.mobile-dashboard-mode .status-summary-card.variant-danger,
body.force-mobile-view .status-summary-card.variant-danger {
  border-color: rgba(210, 108, 108, 0.38);
  background:
    radial-gradient(circle at right top, rgba(210, 108, 108, 0.08) 0%, rgba(210, 108, 108, 0) 38%),
    linear-gradient(180deg, rgba(255, 248, 248, 0.99) 0%, rgba(252, 240, 240, 0.97) 100%);
}

body.mobile-dashboard-mode .status-summary-card.variant-accent,
body.force-mobile-view .status-summary-card.variant-accent,
body.mobile-dashboard-mode .status-summary-card.variant-neutral,
body.force-mobile-view .status-summary-card.variant-neutral {
  border-color: rgba(174, 206, 196, 0.44);
}

body.mobile-dashboard-mode .status-summary-label,
body.force-mobile-view .status-summary-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.58);
  background: rgba(243, 250, 247, 0.95);
  color: rgba(10, 94, 77, 0.92);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.mobile-dashboard-mode .status-summary-value,
body.force-mobile-view .status-summary-value {
  font-size: 0.79rem;
  line-height: 1.26;
  color: var(--brand-dark);
}

body.mobile-dashboard-mode .status-summary-meta,
body.force-mobile-view .status-summary-meta {
  font-size: 0.68rem;
  line-height: 1.28;
  color: var(--muted);
}

body.mobile-dashboard-mode .table-proof-area {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 100%;
}

body.mobile-dashboard-mode .table-proof-area .proof-file-stack {
  gap: 6px;
}

body.mobile-dashboard-mode .table-proof-area .proof-area {
  min-height: 100%;
  padding: 8px;
  border-radius: 13px;
}

body.mobile-dashboard-mode .proof-file-button {
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 12px;
  font-size: 0.74rem;
}

body.mobile-dashboard-mode .proof-empty-text,
body.mobile-dashboard-mode .proof-booking-code {
  font-size: 0.7rem;
  line-height: 1.3;
}

body.mobile-dashboard-mode .table-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.mobile-dashboard-mode .table-actions .action-primary {
  grid-column: 1 / -1;
  min-height: 40px;
  padding: 8px 10px;
  border-color: transparent;
  background: linear-gradient(180deg, #159777 0%, #0f7d63 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 125, 99, 0.16);
}

body.mobile-dashboard-mode .table-actions .action-secondary {
  min-height: 36px;
  padding: 7px 10px;
  background: rgba(243, 250, 247, 0.92);
  border-color: rgba(174, 206, 196, 0.34);
  color: var(--brand-dark);
}

body.mobile-dashboard-mode .table-actions .action-danger {
  min-height: 36px;
  padding: 7px 10px;
}

body.mobile-dashboard-mode .account-summary-card,
body.mobile-dashboard-mode .export-summary-card,
body.mobile-dashboard-mode .import-summary-card,
body.mobile-dashboard-mode .export-filter-grid,
body.mobile-dashboard-mode .csv-import-panel,
body.mobile-dashboard-mode .account-summary-badge {
  padding: 11px 12px;
  border-radius: 15px;
}

body.mobile-dashboard-mode .account-summary-shell .panel-heading,
body.mobile-dashboard-mode .export-page-shell .panel-heading,
body.mobile-dashboard-mode .import-page-shell .panel-heading,
body.mobile-dashboard-mode .external-editor-shell .panel-heading,
body.mobile-dashboard-mode .external-list-shell .panel-heading {
  margin-bottom: 9px;
  padding-bottom: 8px;
}

body.mobile-dashboard-mode .account-summary-card {
  gap: 10px;
}

body.mobile-dashboard-mode .account-summary-badge,
body.mobile-dashboard-mode .export-summary-card,
body.mobile-dashboard-mode .import-summary-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(183, 208, 191, 0.52);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.06) 0%, rgba(15, 125, 99, 0) 40%),
    linear-gradient(180deg, rgba(252, 255, 253, 0.99) 0%, rgba(244, 251, 247, 0.97) 100%);
}

body.mobile-dashboard-mode .account-summary-badge::after,
body.mobile-dashboard-mode .export-summary-card::after,
body.mobile-dashboard-mode .import-summary-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.18) 0%, rgba(217, 143, 51, 0.18) 100%);
}

body.mobile-dashboard-mode .account-summary-badge strong,
body.mobile-dashboard-mode .export-summary-card strong,
body.mobile-dashboard-mode .import-summary-card strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

body.mobile-dashboard-mode .account-summary-badge .muted,
body.mobile-dashboard-mode .export-summary-card .muted,
body.mobile-dashboard-mode .import-summary-card .muted {
  font-size: 0.72rem;
  line-height: 1.38;
}

body.mobile-dashboard-mode .account-admin-layout,
body.mobile-dashboard-mode .export-layout,
body.mobile-dashboard-mode .import-layout,
body.mobile-dashboard-mode .external-workspace {
  gap: 10px;
}

body.mobile-dashboard-mode #account-user-editor-panel .external-order-form,
body.mobile-dashboard-mode .external-editor-shell .external-order-form {
  gap: 10px;
}

body.mobile-dashboard-mode #account-user-editor-panel .double-grid,
body.mobile-dashboard-mode .external-editor-shell .double-grid,
body.mobile-dashboard-mode .external-editor-shell .triple-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.mobile-dashboard-mode #account-user-editor-panel .form-actions,
body.mobile-dashboard-mode .external-editor-shell .form-actions,
body.mobile-dashboard-mode .export-actions,
body.mobile-dashboard-mode .csv-import-panel .form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

body.mobile-dashboard-mode .account-summary-actions,
body.mobile-dashboard-mode .export-actions,
body.mobile-dashboard-mode .csv-import-panel .form-actions {
  gap: 7px;
}

body.mobile-dashboard-mode .account-summary-actions > *,
body.mobile-dashboard-mode .export-actions > *,
body.mobile-dashboard-mode .csv-import-panel .form-actions > * {
  min-height: 38px;
}

body.mobile-dashboard-mode .export-filter-grid {
  gap: 10px;
  align-items: stretch;
  border-color: rgba(183, 208, 191, 0.48);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 248, 0.97) 100%);
}

body.mobile-dashboard-mode .export-filter-grid > label {
  padding: 9px 10px;
  border: 1px solid rgba(183, 208, 191, 0.38);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.mobile-dashboard-mode .csv-import-panel {
  gap: 10px;
  border-color: rgba(183, 208, 191, 0.5);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 248, 0.97) 100%);
}

body.mobile-dashboard-mode .csv-import-panel code {
  margin: 1px 4px 1px 0;
  padding: 2px 7px;
  font-size: 0.72rem;
}

body.mobile-dashboard-mode .csv-preview {
  padding: 10px;
  border-radius: 14px;
}

body.mobile-dashboard-mode .csv-preview-header {
  gap: 6px;
}

body.mobile-dashboard-mode .csv-preview-table-wrap {
  border-radius: 14px;
  border-color: rgba(183, 208, 191, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(18, 51, 46, 0.035);
}

body.mobile-dashboard-mode .csv-preview-table th,
body.mobile-dashboard-mode .csv-preview-table td {
  padding: 8px 9px;
  font-size: 0.74rem;
}

body.mobile-dashboard-mode .account-table-wrap {
  border-radius: 16px;
  border-color: rgba(183, 208, 191, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 22px rgba(18, 51, 46, 0.04);
}

body.mobile-dashboard-mode .account-table tr {
  position: relative;
  padding: 10px 11px 10px 14px;
  border: 1px solid rgba(183, 208, 191, 0.46);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 248, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(18, 51, 46, 0.045);
}

body.mobile-dashboard-mode .account-table tr::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: linear-gradient(180deg, #0f7d63 0%, #73cdb2 100%);
}

body.mobile-dashboard-mode .account-table td {
  padding: 7px 0 6px;
}

body.mobile-dashboard-mode .account-table td::before {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.68);
  background: rgba(243, 250, 247, 0.95);
  color: rgba(10, 94, 77, 0.94);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

body.mobile-dashboard-mode .account-primary strong {
  font-size: 0.86rem;
}

body.mobile-dashboard-mode .account-primary span {
  font-size: 0.72rem;
}

body.mobile-dashboard-mode .external-editor-shell,
body.mobile-dashboard-mode .external-list-shell {
  overflow: visible;
}

body.mobile-dashboard-mode #external-orders-list .dashboard-order-table-wrap {
  margin-top: 2px;
}

@media (max-width: 720px) {
  .panel-heading.statistics-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .statistics-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
  }

  .statistics-header > div:first-child {
    min-width: 0;
    gap: 5px;
  }

  .statistics-header .eyebrow {
    display: none;
  }

  .statistics-header h2 {
    font-size: 0.92rem;
    line-height: 1.14;
  }

  #statistics-range-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0;
    padding: 5px 9px;
    border: 1px solid rgba(174, 206, 196, 0.68);
    border-radius: 999px;
    background: rgba(244, 251, 247, 0.92);
    font-size: 0.68rem;
    line-height: 1.2;
    color: var(--brand-dark);
    max-width: 100%;
  }

  .statistics-timeframe-control {
    width: auto;
    min-width: 0;
    align-self: start;
    justify-self: end;
  }

  .statistics-timeframe-control span {
    display: none;
  }

  .statistics-timeframe-control select {
    min-width: 102px;
    padding: 6px 28px 6px 10px;
    font-size: 0.75rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(18, 51, 46, 0.06);
  }

  .statistics-summary-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .statistics-summary-card {
    scroll-snap-align: start;
  }

  .statistics-insight-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(188px, 90%);
    gap: 9px;
    overflow-x: auto;
    padding: 0 0 2px;
    scroll-snap-type: x proximity;
  }

  .statistics-insight-card {
    scroll-snap-align: start;
  }

  .statistics-mobile-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -2px 0 0;
    padding: 3px 0 6px;
    background: linear-gradient(180deg, rgba(247, 252, 249, 0.98) 0%, rgba(247, 252, 249, 0.86) 72%, rgba(247, 252, 249, 0) 100%);
    backdrop-filter: blur(8px);
    scroll-snap-type: x proximity;
  }

  .statistics-mobile-nav-button {
    scroll-snap-align: start;
  }

  .statistics-summary-card.compact {
    min-height: 84px;
    padding: 8px 9px 7px;
  }

  .statistics-summary-card.compact .eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.13em;
  }

  .statistics-summary-card.compact strong {
    font-size: 1rem;
    line-height: 1.04;
  }

  .statistics-summary-card.compact .muted {
    font-size: 0.64rem;
    line-height: 1.24;
  }

  .statistics-layout,
  .statistics-side-column {
    gap: 10px;
  }

  .chart-card {
    padding: 12px;
    border-radius: 14px;
  }

  .chart-card h3 {
    font-size: 0.88rem;
    line-height: 1.16;
  }

  .chart-card-header {
    margin-bottom: 10px;
    gap: 8px;
  }

  .chart-card-header .eyebrow {
    margin-bottom: 4px;
    font-size: 0.6rem;
  }

  .chart-legend {
    gap: 8px;
  }

  .chart-legend-item {
    font-size: 0.7rem;
  }

  .activity-chart-scroll.mobile-compact {
    margin: 0 -4px;
    padding: 0 4px 2px;
  }

  .activity-chart-grid.mobile-compact {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(34px, 1fr);
    gap: 6px;
    min-width: max-content;
  }

  .activity-chart-grid.mobile-compact .activity-column {
    gap: 6px;
  }

  .activity-chart-grid.mobile-compact .activity-total {
    font-size: 0.68rem;
  }

  .activity-chart-grid.mobile-compact .activity-bars {
    height: 112px;
    gap: 4px;
  }

  .activity-chart-grid.mobile-compact .activity-bar {
    width: 12px;
  }

  .activity-chart-grid.mobile-compact .activity-label {
    font-size: 0.62rem;
    min-height: 0.78rem;
  }

  .status-donut-grid.mobile-carousel {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 92%);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .status-donut-grid.mobile-carousel .status-donut-card {
    scroll-snap-align: start;
  }

  .status-donut-card {
    grid-template-columns: 74px 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .status-donut-ring {
    width: 78px;
    height: 78px;
  }

  .status-donut-center {
    width: 52px;
    height: 52px;
  }

  .status-donut-center strong {
    font-size: 0.9rem;
  }

  .status-donut-center span {
    font-size: 0.64rem;
  }

  .status-donut-meta strong {
    font-size: 0.8rem;
  }

  .status-donut-meta span,
  .status-donut-meta small,
  .status-compare-meta span,
  .status-compare-note {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .status-compare-list {
    gap: 10px;
  }

  .status-compare-row {
    gap: 6px;
  }

  .status-compare-meta strong {
    font-size: 0.82rem;
  }

  .status-compare-track {
    height: 10px;
  }
}

body.force-mobile-view .panel-heading.statistics-header {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

body.force-mobile-view .statistics-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 10px;
}

body.force-mobile-view .statistics-header > div:first-child {
  min-width: 0;
  gap: 5px;
}

body.force-mobile-view .statistics-header .eyebrow {
  display: none;
}

body.force-mobile-view .statistics-header h2 {
  font-size: 0.92rem;
  line-height: 1.14;
}

body.force-mobile-view #statistics-range-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0;
  padding: 5px 9px;
  border: 1px solid rgba(174, 206, 196, 0.68);
  border-radius: 999px;
  background: rgba(244, 251, 247, 0.92);
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--brand-dark);
  max-width: 100%;
}

body.force-mobile-view .statistics-timeframe-control {
  width: auto;
  min-width: 0;
  align-self: start;
  justify-self: end;
}

body.force-mobile-view .statistics-timeframe-control span {
  display: none;
}

body.force-mobile-view .statistics-timeframe-control select {
  min-width: 102px;
  padding: 6px 28px 6px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(18, 51, 46, 0.06);
}

body.force-mobile-view .statistics-summary-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

body.force-mobile-view .statistics-summary-card {
  scroll-snap-align: start;
}

body.force-mobile-view .statistics-insight-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(188px, 90%);
  gap: 9px;
  overflow-x: auto;
  padding: 0 0 2px;
  scroll-snap-type: x proximity;
}

body.force-mobile-view .statistics-insight-card {
  scroll-snap-align: start;
}

body.force-mobile-view .statistics-mobile-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -2px 0 0;
  padding: 3px 0 6px;
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.98) 0%, rgba(247, 252, 249, 0.86) 72%, rgba(247, 252, 249, 0) 100%);
  backdrop-filter: blur(8px);
  scroll-snap-type: x proximity;
}

body.force-mobile-view .statistics-mobile-nav-button {
  scroll-snap-align: start;
}

body.force-mobile-view .statistics-summary-card.compact {
  min-height: 84px;
  padding: 8px 9px 7px;
}

body.force-mobile-view .statistics-summary-card.compact .eyebrow {
  font-size: 0.54rem;
  letter-spacing: 0.13em;
}

body.force-mobile-view .statistics-summary-card.compact strong {
  font-size: 1rem;
  line-height: 1.04;
}

body.force-mobile-view .statistics-summary-card.compact .muted {
  font-size: 0.64rem;
  line-height: 1.24;
}

body.force-mobile-view .statistics-layout,
body.force-mobile-view .statistics-side-column {
  gap: 10px;
}

body.force-mobile-view .chart-card {
  padding: 12px;
  border-radius: 14px;
}

body.force-mobile-view .chart-card h3 {
  font-size: 0.88rem;
  line-height: 1.16;
}

body.force-mobile-view .chart-card-header {
  margin-bottom: 10px;
  gap: 8px;
}

body.force-mobile-view .chart-card-header .eyebrow {
  margin-bottom: 4px;
  font-size: 0.6rem;
}

body.force-mobile-view .chart-legend {
  gap: 8px;
}

body.force-mobile-view .chart-legend-item {
  font-size: 0.7rem;
}

body.force-mobile-view .activity-chart-scroll.mobile-compact {
  margin: 0 -4px;
  padding: 0 4px 2px;
}

body.force-mobile-view .activity-chart-grid.mobile-compact {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(34px, 1fr);
  gap: 6px;
  min-width: max-content;
}

body.force-mobile-view .activity-chart-grid.mobile-compact .activity-column {
  gap: 6px;
}

body.force-mobile-view .activity-chart-grid.mobile-compact .activity-total {
  font-size: 0.68rem;
}

body.force-mobile-view .activity-chart-grid.mobile-compact .activity-bars {
  height: 112px;
  gap: 4px;
}

body.force-mobile-view .activity-chart-grid.mobile-compact .activity-bar {
  width: 12px;
}

body.force-mobile-view .activity-chart-grid.mobile-compact .activity-label {
  font-size: 0.62rem;
  min-height: 0.78rem;
}

body.force-mobile-view .status-donut-grid.mobile-carousel {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 92%);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

body.force-mobile-view .status-donut-grid.mobile-carousel .status-donut-card {
  scroll-snap-align: start;
}

body.force-mobile-view .status-donut-card {
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

body.force-mobile-view .status-donut-ring {
  width: 78px;
  height: 78px;
}

body.force-mobile-view .status-donut-center {
  width: 52px;
  height: 52px;
}

body.force-mobile-view .status-donut-center strong {
  font-size: 0.9rem;
}

body.force-mobile-view .status-donut-center span {
  font-size: 0.64rem;
}

body.force-mobile-view .status-donut-meta strong {
  font-size: 0.8rem;
}

body.force-mobile-view .status-donut-meta span,
body.force-mobile-view .status-donut-meta small,
body.force-mobile-view .status-compare-meta span,
body.force-mobile-view .status-compare-note {
  font-size: 0.72rem;
  line-height: 1.28;
}

body.force-mobile-view .status-compare-list {
  gap: 10px;
}

body.force-mobile-view .status-compare-row {
  gap: 6px;
}

body.force-mobile-view .status-compare-meta strong {
  font-size: 0.82rem;
}

body.force-mobile-view .status-compare-track {
  height: 10px;
}

@media (max-width: 720px) {
  .dashboard-screen {
    display: grid;
    gap: 8px;
  }

  .page-shell {
    width: min(100vw - 8px, 100%);
    padding-top: 6px;
    padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    position: relative;
    overflow: hidden;
    border-color: rgba(183, 208, 191, 0.46);
    background:
      radial-gradient(circle at right top, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 42%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 252, 249, 0.98) 100%);
    box-shadow:
      0 14px 28px rgba(18, 51, 46, 0.09),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  .topbar::before {
    width: 3px;
    opacity: 0.82;
  }

  .topbar-copy {
    display: grid;
    align-items: center;
    gap: 0;
    min-height: 26px;
  }

  .topbar h1 {
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.04;
  }

  .panel {
    padding: 11px;
    border-radius: 16px;
    border-color: rgba(183, 208, 191, 0.54);
    background:
      radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 249, 0.97) 100%);
    box-shadow:
      0 12px 24px rgba(18, 51, 46, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  .panel::before {
    height: 3px;
    opacity: 0.82;
  }

  .panel-heading {
    margin-bottom: 10px;
    padding-bottom: 9px;
  }

  .panel-heading h2 {
    font-size: 0.98rem;
    line-height: 1.12;
  }

  .panel-heading .muted {
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .dashboard-tabbar-shell {
    width: min(100vw - 10px, 408px);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px;
    border-color: rgba(183, 208, 191, 0.4);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow:
      0 16px 34px rgba(18, 51, 46, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  .dashboard-tabbar-shell::before {
    display: none;
  }

  .dashboard-tabbar {
    gap: 5px;
  }

  .dashboard-tab-button {
    min-height: 44px;
    padding: 7px 4px 6px;
    border-radius: 14px;
    border-color: rgba(183, 208, 191, 0.22);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: none;
  }

  .dashboard-tab-button-content {
    gap: 2px;
  }

  .dashboard-tab-button-icon,
  .dashboard-tab-button-icon svg {
    width: 16px;
    height: 16px;
  }

  .dashboard-tab-button-label {
    font-size: 0.62rem;
    letter-spacing: 0.01em;
  }

  .dashboard-tab-button.active {
    background: linear-gradient(180deg, #159777 0%, #0f7d63 100%);
    box-shadow:
      0 10px 18px rgba(15, 125, 99, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .dashboard-order-table-wrap {
    border-radius: 18px;
    border-color: rgba(183, 208, 191, 0.4);
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .dashboard-order-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .dashboard-order-table tr {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .dashboard-order-table tr::before {
    width: 4px;
    border-radius: 20px 0 0 20px;
  }

  .dashboard-order-table td {
    padding: 9px 10px 8px;
    border-radius: 14px;
  }

  .dashboard-order-table td[data-label="Order"],
  .dashboard-order-table td[data-label="Nama Produk"],
  .dashboard-order-table td[data-label="Buyer / Alamat"],
  .dashboard-order-table td[data-label="Status"],
  .dashboard-order-table td[data-label="Aksi"] {
    grid-column: 1 / -1;
  }

  .dashboard-order-table td[data-label="Harga Supplier"],
  .dashboard-order-table td[data-label="Bukti Transfer"],
  .dashboard-order-table td[data-label="Bukti Kirim"] {
    grid-column: span 2;
  }

  .table-cell-stack,
  .table-item-list,
  .table-actions,
  .status-summary-stack {
    gap: 5px;
  }

  .table-item-list span {
    display: block;
  }

  .table-item-list strong {
    font-size: 0.86rem;
    line-height: 1.38;
  }

  .table-cell-stack strong {
    font-size: 0.84rem;
  }

  .table-cell-stack span,
  .buyer-address-meta {
    font-size: 0.72rem;
  }

  .buyer-address-cell {
    gap: 6px;
  }

  .buyer-address-header {
    align-items: flex-start;
  }

  .copy-address-button {
    justify-self: end;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.69rem;
  }

  .status-summary-stack {
    padding: 2px 0 0;
  }

  .status-summary-stack .badge {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
  }

  .table-proof-area .proof-area {
    padding: 8px;
    min-height: 100%;
    border-radius: 13px;
  }

  .proof-file-button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.74rem;
  }

  .proof-empty-text,
  .proof-booking-code {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .table-actions {
    gap: 6px;
  }

  .table-actions .small-button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.74rem;
    border-radius: 12px;
  }

  .account-summary-card,
  .export-summary-card,
  .import-summary-card,
  .export-filter-grid,
  .csv-import-panel,
  .account-summary-badge {
    border-radius: 15px;
    padding: 11px 12px;
  }

  .account-summary-actions,
  .export-actions,
  .csv-import-panel .form-actions {
    gap: 7px;
  }

  .account-summary-actions > *,
  .export-actions > *,
  .csv-import-panel .form-actions > * {
    min-height: 38px;
  }
}

body.force-mobile-view .dashboard-screen {
  display: grid;
  gap: 8px;
}

body.force-mobile-view .page-shell {
  width: min(100vw - 8px, 100%);
  padding-top: 6px;
  padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
}

body.force-mobile-view .topbar {
  position: relative;
  overflow: hidden;
  border-color: rgba(183, 208, 191, 0.46);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 252, 249, 0.98) 100%);
  box-shadow:
    0 14px 28px rgba(18, 51, 46, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.force-mobile-view .topbar::before {
  width: 3px;
  opacity: 0.82;
}

body.force-mobile-view .topbar-copy {
  display: grid;
  align-items: center;
  gap: 0;
  min-height: 26px;
}

body.force-mobile-view .topbar h1 {
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.04;
}

body.force-mobile-view .panel {
  padding: 11px;
  border-radius: 16px;
  border-color: rgba(183, 208, 191, 0.54);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow:
    0 12px 24px rgba(18, 51, 46, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.force-mobile-view .panel::before {
  height: 3px;
  opacity: 0.82;
}

body.force-mobile-view .panel-heading {
  margin-bottom: 10px;
  padding-bottom: 9px;
}

body.force-mobile-view .panel-heading h2 {
  font-size: 0.98rem;
  line-height: 1.12;
}

body.force-mobile-view .panel-heading .muted {
  font-size: 0.72rem;
  line-height: 1.32;
}

body.force-mobile-view .dashboard-tabbar-shell {
  width: min(100vw - 10px, 408px);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px;
  border-color: rgba(183, 208, 191, 0.4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 34px rgba(18, 51, 46, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.force-mobile-view .dashboard-tabbar-shell::before {
  display: none;
}

body.force-mobile-view .dashboard-tabbar {
  gap: 4px;
}

body.force-mobile-view .dashboard-tab-button {
  flex: 0 0 clamp(82px, 22vw, 92px);
  min-width: clamp(82px, 22vw, 92px);
  min-height: 42px;
  padding: 6px 4px 6px;
  border-radius: 13px;
  border-color: rgba(183, 208, 191, 0.22);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

body.force-mobile-view .dashboard-tab-button-content {
  gap: 1px;
}

body.force-mobile-view .dashboard-tab-button-icon,
body.force-mobile-view .dashboard-tab-button-icon svg {
  width: 15px;
  height: 15px;
}

body.force-mobile-view .dashboard-tab-button-label {
  font-size: 0.58rem;
  letter-spacing: 0.01em;
}

body.force-mobile-view.supplier-dashboard-user .dashboard-tab-button {
  flex: 1 1 0;
  min-width: 0;
}

body.force-mobile-view .dashboard-tab-button.active {
  background: linear-gradient(180deg, #159777 0%, #0f7d63 100%);
  box-shadow:
    0 10px 18px rgba(15, 125, 99, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.force-mobile-view .dashboard-order-table-wrap {
  border-radius: 18px;
  border-color: rgba(183, 208, 191, 0.4);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.force-mobile-view .dashboard-order-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.force-mobile-view .dashboard-order-table tr {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
}

body.force-mobile-view .dashboard-order-table tr::before {
  width: 4px;
  border-radius: 20px 0 0 20px;
}

body.force-mobile-view .dashboard-order-table td {
  padding: 9px 10px 8px;
  border-radius: 14px;
}

body.force-mobile-view .dashboard-order-table td[data-label="Order"],
body.force-mobile-view .dashboard-order-table td[data-label="Nama Produk"],
body.force-mobile-view .dashboard-order-table td[data-label="Buyer / Alamat"],
body.force-mobile-view .dashboard-order-table td[data-label="Status"],
body.force-mobile-view .dashboard-order-table td[data-label="Aksi"] {
  grid-column: 1 / -1;
}

body.force-mobile-view .dashboard-order-table td[data-label="Harga Supplier"],
body.force-mobile-view .dashboard-order-table td[data-label="Bukti Transfer"],
body.force-mobile-view .dashboard-order-table td[data-label="Bukti Kirim"] {
  grid-column: span 2;
}

body.force-mobile-view .table-cell-stack,
body.force-mobile-view .table-item-list,
body.force-mobile-view .table-actions,
body.force-mobile-view .status-summary-stack {
  gap: 5px;
}

body.force-mobile-view .table-item-list span {
  display: block;
}

body.force-mobile-view .table-item-list strong {
  font-size: 0.86rem;
  line-height: 1.38;
}

body.force-mobile-view .table-cell-stack strong {
  font-size: 0.84rem;
}

body.force-mobile-view .table-cell-stack span,
body.force-mobile-view .buyer-address-meta {
  font-size: 0.72rem;
}

body.force-mobile-view .buyer-address-cell {
  gap: 6px;
}

body.force-mobile-view .buyer-address-header {
  align-items: flex-start;
}

body.force-mobile-view .copy-address-button {
  justify-self: end;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.69rem;
}

body.force-mobile-view .status-summary-stack {
  padding: 2px 0 0;
}

body.force-mobile-view .status-summary-stack .badge {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
}

body.force-mobile-view .table-proof-area .proof-area {
  padding: 8px;
  min-height: 100%;
  border-radius: 13px;
}

body.force-mobile-view .proof-file-button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.74rem;
}

body.force-mobile-view .proof-empty-text,
body.force-mobile-view .proof-booking-code {
  font-size: 0.7rem;
  line-height: 1.3;
}

body.force-mobile-view .table-actions {
  gap: 6px;
}

body.force-mobile-view .table-actions .small-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.74rem;
  border-radius: 12px;
}

body.force-mobile-view .account-summary-card,
body.force-mobile-view .export-summary-card,
body.force-mobile-view .import-summary-card,
body.force-mobile-view .export-filter-grid,
body.force-mobile-view .csv-import-panel,
body.force-mobile-view .account-summary-badge {
  border-radius: 15px;
  padding: 11px 12px;
}

body.force-mobile-view .account-summary-actions,
body.force-mobile-view .export-actions,
body.force-mobile-view .csv-import-panel .form-actions {
  gap: 7px;
}

body.force-mobile-view .account-summary-actions > *,
body.force-mobile-view .export-actions > *,
body.force-mobile-view .csv-import-panel .form-actions > * {
  min-height: 38px;
}

@media (max-width: 720px) {
  .dashboard-order-row[data-mobile-tone="awaiting-transfer"] {
    border-color: rgba(104, 167, 149, 0.38);
    background: linear-gradient(180deg, rgba(253, 255, 254, 0.99) 0%, rgba(242, 250, 247, 0.97) 100%);
    box-shadow:
      0 10px 24px rgba(18, 51, 46, 0.1),
      0 0 0 1px rgba(104, 167, 149, 0.1);
  }

  .dashboard-order-row[data-mobile-tone="awaiting-transfer"]::before {
    background: linear-gradient(180deg, #4ea98c 0%, #9cd8c4 100%);
  }

  .dashboard-order-row[data-mobile-tone="awaiting-shipment"] {
    border-color: rgba(217, 143, 51, 0.34);
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.99) 0%, rgba(252, 246, 237, 0.97) 100%);
    box-shadow:
      0 10px 24px rgba(76, 57, 16, 0.08),
      0 0 0 1px rgba(217, 143, 51, 0.09);
  }

  .dashboard-order-row[data-mobile-tone="awaiting-shipment"]::before {
    background: linear-gradient(180deg, #d98f33 0%, #f3c37c 100%);
  }

  .dashboard-order-row[data-mobile-tone="ready"] {
    border-color: rgba(15, 125, 99, 0.4);
    background: linear-gradient(180deg, rgba(251, 255, 253, 0.99) 0%, rgba(235, 247, 242, 0.98) 100%);
    box-shadow:
      0 12px 26px rgba(15, 125, 99, 0.11),
      0 0 0 1px rgba(15, 125, 99, 0.1);
  }

  .dashboard-order-row[data-mobile-tone="ready"]::before {
    background: linear-gradient(180deg, #0f7d63 0%, #61c2a4 100%);
  }

  .dashboard-order-row[data-mobile-tone="cancelled"] {
    border-color: rgba(198, 105, 105, 0.3);
    background: linear-gradient(180deg, rgba(255, 253, 253, 0.99) 0%, rgba(252, 242, 242, 0.98) 100%);
    box-shadow:
      0 10px 24px rgba(88, 34, 34, 0.08),
      0 0 0 1px rgba(198, 105, 105, 0.08);
  }

  .dashboard-order-row[data-mobile-tone="cancelled"]::before {
    background: linear-gradient(180deg, #c66969 0%, #ecafaf 100%);
  }

  .dashboard-order-row[data-mobile-tone="awaiting-transfer"] td[data-label="Status"] {
    background: linear-gradient(180deg, rgba(242, 251, 247, 0.98) 0%, rgba(236, 247, 243, 0.95) 100%);
    border-color: rgba(104, 167, 149, 0.24);
  }

  .dashboard-order-row[data-mobile-tone="awaiting-shipment"] td[data-label="Status"] {
    background: linear-gradient(180deg, rgba(253, 248, 240, 0.99) 0%, rgba(251, 244, 234, 0.97) 100%);
    border-color: rgba(217, 143, 51, 0.2);
  }

  .dashboard-order-row[data-mobile-tone="ready"] td[data-label="Status"] {
    background: linear-gradient(180deg, rgba(238, 249, 244, 0.98) 0%, rgba(232, 246, 240, 0.96) 100%);
    border-color: rgba(15, 125, 99, 0.2);
  }

  .dashboard-order-row[data-mobile-tone="cancelled"] td[data-label="Status"] {
    background: linear-gradient(180deg, rgba(252, 244, 244, 0.98) 0%, rgba(250, 238, 238, 0.96) 100%);
    border-color: rgba(198, 105, 105, 0.18);
  }

  .dashboard-order-row[data-mobile-tone="ready"] .table-actions .small-button:not(.danger-button) {
    border-color: rgba(15, 125, 99, 0.2);
    background: rgba(234, 248, 242, 0.9);
  }

  .dashboard-order-row[data-mobile-tone="awaiting-shipment"] .table-actions .small-button:not(.danger-button) {
    border-color: rgba(217, 143, 51, 0.16);
    background: rgba(253, 246, 237, 0.9);
  }

  .dashboard-order-row[data-mobile-tone="cancelled"] .table-actions .small-button:not(.danger-button) {
    border-color: rgba(198, 105, 105, 0.18);
    background: rgba(252, 243, 243, 0.92);
  }
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="awaiting-transfer"] {
  border-color: rgba(104, 167, 149, 0.38);
  background: linear-gradient(180deg, rgba(253, 255, 254, 0.99) 0%, rgba(242, 250, 247, 0.97) 100%);
  box-shadow:
    0 10px 24px rgba(18, 51, 46, 0.1),
    0 0 0 1px rgba(104, 167, 149, 0.1);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="awaiting-transfer"]::before {
  background: linear-gradient(180deg, #4ea98c 0%, #9cd8c4 100%);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="awaiting-shipment"] {
  border-color: rgba(217, 143, 51, 0.34);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.99) 0%, rgba(252, 246, 237, 0.97) 100%);
  box-shadow:
    0 10px 24px rgba(76, 57, 16, 0.08),
    0 0 0 1px rgba(217, 143, 51, 0.09);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="awaiting-shipment"]::before {
  background: linear-gradient(180deg, #d98f33 0%, #f3c37c 100%);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="ready"] {
  border-color: rgba(15, 125, 99, 0.4);
  background: linear-gradient(180deg, rgba(251, 255, 253, 0.99) 0%, rgba(235, 247, 242, 0.98) 100%);
  box-shadow:
    0 12px 26px rgba(15, 125, 99, 0.11),
    0 0 0 1px rgba(15, 125, 99, 0.1);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="ready"]::before {
  background: linear-gradient(180deg, #0f7d63 0%, #61c2a4 100%);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="cancelled"] {
  border-color: rgba(198, 105, 105, 0.3);
  background: linear-gradient(180deg, rgba(255, 253, 253, 0.99) 0%, rgba(252, 242, 242, 0.98) 100%);
  box-shadow:
    0 10px 24px rgba(88, 34, 34, 0.08),
    0 0 0 1px rgba(198, 105, 105, 0.08);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="cancelled"]::before {
  background: linear-gradient(180deg, #c66969 0%, #ecafaf 100%);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="awaiting-transfer"] td[data-label="Status"] {
  background: linear-gradient(180deg, rgba(242, 251, 247, 0.98) 0%, rgba(236, 247, 243, 0.95) 100%);
  border-color: rgba(104, 167, 149, 0.24);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="awaiting-shipment"] td[data-label="Status"] {
  background: linear-gradient(180deg, rgba(253, 248, 240, 0.99) 0%, rgba(251, 244, 234, 0.97) 100%);
  border-color: rgba(217, 143, 51, 0.2);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="ready"] td[data-label="Status"] {
  background: linear-gradient(180deg, rgba(238, 249, 244, 0.98) 0%, rgba(232, 246, 240, 0.96) 100%);
  border-color: rgba(15, 125, 99, 0.2);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="cancelled"] td[data-label="Status"] {
  background: linear-gradient(180deg, rgba(252, 244, 244, 0.98) 0%, rgba(250, 238, 238, 0.96) 100%);
  border-color: rgba(198, 105, 105, 0.18);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="ready"] .table-actions .small-button:not(.danger-button) {
  border-color: rgba(15, 125, 99, 0.2);
  background: rgba(234, 248, 242, 0.9);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="awaiting-shipment"] .table-actions .small-button:not(.danger-button) {
  border-color: rgba(217, 143, 51, 0.16);
  background: rgba(253, 246, 237, 0.9);
}

body.force-mobile-view .dashboard-order-row[data-mobile-tone="cancelled"] .table-actions .small-button:not(.danger-button) {
  border-color: rgba(198, 105, 105, 0.18);
  background: rgba(252, 243, 243, 0.92);
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 8px;
  }

  .dashboard-tab-panel {
    gap: 8px;
  }

  .metric-grid {
    grid-auto-columns: minmax(112px, 1fr);
    gap: 7px;
    margin-bottom: 6px;
  }

  .metric-card {
    min-height: 96px;
    padding: 8px 9px;
    gap: 3px;
  }

  .metric-card .eyebrow {
    margin-bottom: 3px;
    font-size: 0.54rem;
  }

  .metric-card strong {
    margin-top: 1px;
    font-size: 1rem;
  }

  .metric-card .muted {
    font-size: 0.64rem;
    line-height: 1.28;
  }

  .topbar {
    gap: 4px;
    margin-bottom: 6px;
    padding: 8px 11px 7px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(18, 51, 46, 0.1);
  }

  .topbar .eyebrow,
  .topbar .muted {
    display: none;
  }

  .topbar-copy {
    display: flex;
    align-items: center;
    min-height: 28px;
    max-width: none;
  }

  .topbar h1 {
    font-size: 0.98rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .dashboard-order-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 18px;
  }

  .dashboard-order-table tr::before {
    width: 4px;
    border-radius: 18px 0 0 18px;
  }

  .dashboard-order-table td {
    min-width: 0;
    padding: 9px 10px 8px;
    border: 1px solid rgba(159, 199, 186, 0.42);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      0 6px 14px rgba(18, 51, 46, 0.04);
    overflow: hidden;
  }

  .dashboard-order-table td::before {
    margin-bottom: 6px;
    color: rgba(10, 94, 77, 0.94);
    font-size: 0.61rem;
    letter-spacing: 0.12em;
  }

  .dashboard-order-table td[data-label="Order"],
  .dashboard-order-table td[data-label="Nama Produk"],
  .dashboard-order-table td[data-label="Buyer / Alamat"],
  .dashboard-order-table td[data-label="Status"],
  .dashboard-order-table td[data-label="Aksi"] {
    grid-column: 1 / -1;
  }

  .table-cell-stack,
  .table-actions,
  .table-item-list,
  .status-summary-stack {
    gap: 6px;
  }

  .table-cell-stack strong {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .table-cell-stack span,
  .buyer-address-meta {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .table-item-list strong {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .buyer-address-cell {
    gap: 7px;
  }

  .buyer-address-header {
    align-items: center;
    gap: 8px;
  }

  .copy-address-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
  }

  .status-summary-stack .badge {
    padding: 7px 10px;
    font-size: 0.73rem;
  }

  .table-proof-area .proof-area {
    min-height: 100%;
    padding: 8px 9px;
    border-radius: 14px;
    gap: 6px;
  }

  .proof-empty-text,
  .proof-booking-code {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .proof-file-button {
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  .table-actions {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .table-actions .small-button {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.76rem;
    white-space: normal;
  }

  .detail-modal-dialog,
  .proof-modal-dialog {
    width: min(calc(100vw - 2px), 410px);
    max-height: calc(100vh - 2px);
    padding: 8px 9px 0;
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(173, 206, 194, 0.4);
    box-shadow: 0 -18px 42px rgba(18, 51, 46, 0.18);
  }

  .detail-modal-dialog::before {
    position: static;
    top: auto;
    width: 48px;
    height: 5px;
    margin: 6px auto 4px;
    border-radius: 999px;
    background: rgba(95, 166, 149, 0.38);
  }

  .detail-modal-close,
  .proof-modal-close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .detail-modal-shell {
    gap: 8px;
    padding-bottom: 8px;
  }

  .detail-modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 -9px 0;
    padding: 4px 42px 8px 9px;
    gap: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
    border-bottom: 1px solid rgba(183, 208, 191, 0.42);
  }

  .detail-modal-header .eyebrow {
    margin-bottom: 2px;
    font-size: 0.55rem;
  }

  .detail-modal-header h2 {
    font-size: 0.88rem;
    line-height: 1.16;
  }

  .detail-overview-bar {
    gap: 6px;
  }

  .detail-overview-item {
    padding: 8px 9px;
    border-radius: 12px;
    gap: 3px;
  }

  .detail-overview-item span {
    font-size: 0.62rem;
  }

  .detail-overview-item strong {
    font-size: 0.76rem;
  }

  .detail-card {
    padding: 8px;
    border-radius: 13px;
    gap: 6px;
  }

  .detail-accordion-summary {
    padding: 8px 9px;
    gap: 8px;
  }

  .detail-accordion-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .detail-accordion-body {
    padding: 0 9px;
    gap: 7px;
  }

  .detail-accordion[open] .detail-accordion-body {
    padding: 0 9px 9px;
  }

  .detail-card-heading h3 {
    font-size: 0.74rem;
  }

  .detail-proof-area {
    padding: 8px;
    border-radius: 12px;
    gap: 8px;
  }

  .detail-proof-state {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .detail-proof-meta {
    font-size: 0.72rem;
  }

  .detail-proof-preview-card {
    min-height: 68px;
    padding: 10px;
    border-radius: 12px;
  }

  .detail-proof-upload-panel {
    padding: 9px 10px;
    border-radius: 12px;
    gap: 8px;
  }

  .detail-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 4px -9px 0;
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(244, 250, 247, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-top: 1px solid rgba(183, 208, 191, 0.34);
    gap: 6px;
  }

  .detail-modal-actions .primary-button,
  .detail-modal-actions .secondary-button,
  .detail-modal-actions .ghost-button,
  .detail-modal-actions .small-button {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.78rem;
  }
}

body.force-mobile-view .page-shell {
  padding-top: 8px;
}

body.force-mobile-view .dashboard-tab-panel {
  gap: 8px;
}

body.force-mobile-view .metric-grid {
  grid-auto-columns: minmax(112px, 1fr);
  gap: 7px;
  margin-bottom: 6px;
}

body.force-mobile-view .metric-card {
  min-height: 96px;
  padding: 8px 9px;
  gap: 3px;
}

body.force-mobile-view .metric-card .eyebrow {
  margin-bottom: 3px;
  font-size: 0.54rem;
}

body.force-mobile-view .metric-card strong {
  margin-top: 1px;
  font-size: 1rem;
}

body.force-mobile-view .metric-card .muted {
  font-size: 0.64rem;
  line-height: 1.28;
}

body.force-mobile-view .topbar {
  gap: 4px;
  margin-bottom: 6px;
  padding: 8px 11px 7px;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(18, 51, 46, 0.1);
}

body.force-mobile-view .topbar .eyebrow,
body.force-mobile-view .topbar .muted {
  display: none;
}

body.force-mobile-view .topbar-copy {
  display: flex;
  align-items: center;
  min-height: 28px;
  max-width: none;
}

body.force-mobile-view .topbar h1 {
  font-size: 0.98rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

body.force-mobile-view .dashboard-order-table tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 18px;
}

body.force-mobile-view .dashboard-order-table tr::before {
  width: 4px;
  border-radius: 18px 0 0 18px;
}

body.force-mobile-view .dashboard-order-table td {
  min-width: 0;
  padding: 9px 10px 8px;
  border: 1px solid rgba(159, 199, 186, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 14px rgba(18, 51, 46, 0.04);
  overflow: hidden;
}

body.force-mobile-view .dashboard-order-table td::before {
  margin-bottom: 6px;
  color: rgba(10, 94, 77, 0.94);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

body.force-mobile-view .dashboard-order-table td[data-label="Order"],
body.force-mobile-view .dashboard-order-table td[data-label="Nama Produk"],
body.force-mobile-view .dashboard-order-table td[data-label="Buyer / Alamat"],
body.force-mobile-view .dashboard-order-table td[data-label="Status"],
body.force-mobile-view .dashboard-order-table td[data-label="Aksi"] {
  grid-column: 1 / -1;
}

body.force-mobile-view .table-cell-stack,
body.force-mobile-view .table-actions,
body.force-mobile-view .table-item-list,
body.force-mobile-view .status-summary-stack {
  gap: 6px;
}

body.force-mobile-view .table-cell-stack strong {
  font-size: 0.88rem;
  line-height: 1.35;
}

body.force-mobile-view .table-cell-stack span,
body.force-mobile-view .buyer-address-meta {
  font-size: 0.74rem;
  line-height: 1.35;
}

body.force-mobile-view .table-item-list strong {
  font-size: 0.88rem;
  line-height: 1.42;
}

body.force-mobile-view .buyer-address-cell {
  gap: 7px;
}

body.force-mobile-view .buyer-address-header {
  align-items: center;
  gap: 8px;
}

body.force-mobile-view .copy-address-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
}

body.force-mobile-view .status-summary-stack .badge {
  padding: 7px 10px;
  font-size: 0.73rem;
}

body.force-mobile-view .table-proof-area .proof-area {
  min-height: 100%;
  padding: 8px 9px;
  border-radius: 14px;
  gap: 6px;
}

body.force-mobile-view .proof-empty-text,
body.force-mobile-view .proof-booking-code {
  font-size: 0.72rem;
  line-height: 1.35;
}

body.force-mobile-view .proof-file-button {
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 0.78rem;
}

body.force-mobile-view .table-actions {
  min-width: 0;
  grid-template-columns: 1fr;
}

body.force-mobile-view .table-actions .small-button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.76rem;
  white-space: normal;
}

body.force-mobile-view .detail-modal-dialog,
body.force-mobile-view .proof-modal-dialog {
  width: min(calc(100vw - 2px), 410px);
  max-height: calc(100vh - 2px);
  padding: 8px 9px 0;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(173, 206, 194, 0.4);
  box-shadow: 0 -18px 42px rgba(18, 51, 46, 0.18);
}

body.force-mobile-view .detail-modal-dialog::before {
  position: static;
  top: auto;
  width: 48px;
  height: 5px;
  margin: 6px auto 4px;
  border-radius: 999px;
  background: rgba(95, 166, 149, 0.38);
}

body.force-mobile-view .detail-modal-close,
body.force-mobile-view .proof-modal-close {
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

body.force-mobile-view .detail-modal-shell {
  gap: 8px;
  padding-bottom: 8px;
}

body.force-mobile-view .detail-modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -9px 0;
  padding: 4px 42px 8px 9px;
  gap: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  border-bottom: 1px solid rgba(183, 208, 191, 0.42);
}

body.force-mobile-view .detail-modal-header .eyebrow {
  margin-bottom: 2px;
  font-size: 0.55rem;
}

body.force-mobile-view .detail-modal-header h2 {
  font-size: 0.88rem;
  line-height: 1.16;
}

body.force-mobile-view .detail-overview-bar {
  gap: 6px;
}

body.force-mobile-view .detail-overview-item {
  padding: 8px 9px;
  border-radius: 12px;
  gap: 3px;
}

body.force-mobile-view .detail-overview-item span {
  font-size: 0.62rem;
}

body.force-mobile-view .detail-overview-item strong {
  font-size: 0.76rem;
}

body.force-mobile-view .detail-card {
  padding: 8px;
  border-radius: 13px;
  gap: 6px;
}

body.force-mobile-view .detail-accordion-summary {
  padding: 8px 9px;
  gap: 8px;
}

body.force-mobile-view .detail-accordion-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

body.force-mobile-view .detail-accordion-body {
  padding: 0 9px;
  gap: 7px;
}

body.force-mobile-view .detail-accordion[open] .detail-accordion-body {
  padding: 0 9px 9px;
}

body.force-mobile-view .detail-card-heading h3 {
  font-size: 0.74rem;
}

body.force-mobile-view .detail-proof-area {
  padding: 8px;
  border-radius: 12px;
  gap: 8px;
}

body.force-mobile-view .detail-proof-state {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.74rem;
}

body.force-mobile-view .detail-proof-meta {
  font-size: 0.72rem;
}

body.force-mobile-view .detail-proof-preview-card {
  min-height: 68px;
  padding: 10px;
  border-radius: 12px;
}

body.force-mobile-view .detail-proof-upload-panel {
  padding: 9px 10px;
  border-radius: 12px;
  gap: 8px;
}

body.force-mobile-view .detail-modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 4px -9px 0;
  padding: 8px 9px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(244, 250, 247, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-top: 1px solid rgba(183, 208, 191, 0.34);
  gap: 6px;
}

body.force-mobile-view .detail-modal-actions .primary-button,
body.force-mobile-view .detail-modal-actions .secondary-button,
body.force-mobile-view .detail-modal-actions .ghost-button,
body.force-mobile-view .detail-modal-actions .small-button {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 0.78rem;
}

body.mobile-dashboard-mode #account-tab-panel,
body.mobile-dashboard-mode #export-tab-panel,
body.mobile-dashboard-mode #import-tab-panel,
body.mobile-dashboard-mode #external-tab-panel {
  gap: 10px;
}

body.mobile-dashboard-mode .account-summary-shell .panel-heading h2,
body.mobile-dashboard-mode #account-user-editor-panel .panel-heading h2,
body.mobile-dashboard-mode #account-users-panel .panel-heading h2,
body.mobile-dashboard-mode .export-page-shell .panel-heading h2,
body.mobile-dashboard-mode .import-page-shell .panel-heading h2,
body.mobile-dashboard-mode .external-editor-shell .panel-heading h2,
body.mobile-dashboard-mode .external-list-shell .panel-heading h2 {
  font-size: 0.96rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

body.mobile-dashboard-mode #account-user-editor-panel .panel-heading .muted,
body.mobile-dashboard-mode #account-users-panel .panel-heading .muted,
body.mobile-dashboard-mode .export-page-shell .panel-heading .muted,
body.mobile-dashboard-mode .import-page-shell .panel-heading .muted {
  display: none;
}

body.mobile-dashboard-mode #account-summary-panel {
  display: grid;
  gap: 8px;
}

body.mobile-dashboard-mode .account-summary-card {
  gap: 8px;
}

body.mobile-dashboard-mode .account-summary-badge {
  padding: 10px 11px;
  border-radius: 14px;
  gap: 5px;
}

body.mobile-dashboard-mode .account-summary-badge strong {
  font-size: 0.84rem;
}

body.mobile-dashboard-mode .account-summary-badge > span {
  font-size: 0.69rem;
  line-height: 1.35;
  word-break: break-word;
}

body.mobile-dashboard-mode .account-summary-badge .user-badge-meta {
  gap: 5px;
}

body.mobile-dashboard-mode .account-summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.mobile-dashboard-mode .account-summary-actions > * {
  min-height: 37px;
}

body.mobile-dashboard-mode #account-user-editor-panel .external-order-form label,
body.mobile-dashboard-mode .external-editor-shell .external-order-form label,
body.mobile-dashboard-mode .export-filter-grid > label {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(183, 208, 191, 0.42);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.mobile-dashboard-mode #account-user-editor-panel .external-order-form label > span,
body.mobile-dashboard-mode .external-editor-shell .external-order-form label > span,
body.mobile-dashboard-mode .export-filter-grid > label > span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(10, 94, 77, 0.9);
}

body.mobile-dashboard-mode #account-user-editor-panel .external-order-form input,
body.mobile-dashboard-mode #account-user-editor-panel .external-order-form select,
body.mobile-dashboard-mode .external-editor-shell .external-order-form input,
body.mobile-dashboard-mode .external-editor-shell .external-order-form select,
body.mobile-dashboard-mode .external-editor-shell .external-order-form textarea,
body.mobile-dashboard-mode .export-filter-grid input,
body.mobile-dashboard-mode .export-filter-grid select {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 0.8rem;
}

body.mobile-dashboard-mode .external-editor-shell .external-order-form textarea {
  min-height: 84px;
}

body.mobile-dashboard-mode #account-user-editor-panel .form-actions,
body.mobile-dashboard-mode .external-editor-shell .form-actions,
body.mobile-dashboard-mode .export-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mobile-dashboard-mode .csv-import-panel .form-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.mobile-dashboard-mode .csv-import-panel .form-actions > :last-child {
  grid-column: 1 / -1;
}

body.mobile-dashboard-mode .export-summary-card,
body.mobile-dashboard-mode .import-summary-card {
  gap: 5px;
  padding: 10px 11px;
}

body.mobile-dashboard-mode .export-summary-card strong,
body.mobile-dashboard-mode .import-summary-card strong {
  font-size: 0.84rem;
}

body.mobile-dashboard-mode .export-summary-card .muted,
body.mobile-dashboard-mode .import-summary-card .muted {
  font-size: 0.69rem;
  line-height: 1.42;
}

body.mobile-dashboard-mode .import-summary-card .proof-link {
  width: fit-content;
  min-height: 34px;
  padding-inline: 12px;
}

body.mobile-dashboard-mode .csv-import-panel {
  padding: 10px 11px;
}

body.mobile-dashboard-mode .csv-import-panel .hint {
  font-size: 0.71rem;
  line-height: 1.48;
}

body.mobile-dashboard-mode .csv-preview {
  padding: 9px;
}

body.mobile-dashboard-mode .csv-preview-header strong {
  font-size: 0.8rem;
}

body.mobile-dashboard-mode .csv-preview-header .hint {
  font-size: 0.69rem;
  line-height: 1.42;
}

body.mobile-dashboard-mode .csv-preview-table-wrap {
  margin-top: 1px;
}

body.mobile-dashboard-mode .csv-preview-table th,
body.mobile-dashboard-mode .csv-preview-table td {
  padding: 7px 8px;
  font-size: 0.72rem;
}

body.mobile-dashboard-mode .account-table-wrap {
  padding: 4px;
}

body.mobile-dashboard-mode .account-table tr {
  padding: 9px 10px 9px 13px;
  border-radius: 15px;
}

body.mobile-dashboard-mode .account-table td {
  padding: 6px 0 5px;
}

body.mobile-dashboard-mode .account-table td[data-label="Aksi"] {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px dashed rgba(183, 208, 191, 0.46);
}

body.mobile-dashboard-mode .account-table td[data-label="Aksi"] .small-button {
  min-height: 35px;
  padding-inline: 11px;
  font-size: 0.76rem;
}

body.mobile-dashboard-mode .external-editor-shell,
body.mobile-dashboard-mode .external-list-shell {
  gap: 9px;
}

body.mobile-dashboard-mode .external-editor-shell .feedback,
body.mobile-dashboard-mode .external-list-shell .feedback,
body.mobile-dashboard-mode .csv-import-panel .feedback,
body.mobile-dashboard-mode .export-page-shell .feedback,
body.mobile-dashboard-mode .account-admin-layout .feedback {
  margin-top: 2px;
  padding: 10px 11px;
  border-radius: 13px;
  font-size: 0.73rem;
}

body.mobile-dashboard-mode .external-editor-shell .empty-state,
body.mobile-dashboard-mode .external-list-shell .empty-state,
body.mobile-dashboard-mode .csv-import-panel .empty-state,
body.mobile-dashboard-mode .account-admin-layout .empty-state {
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 0.73rem;
}

body.mobile-dashboard-mode #external-orders-list .dashboard-order-table-wrap {
  margin-top: 0;
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 22px rgba(18, 51, 46, 0.04);
}

body.mobile-dashboard-mode .account-summary-shell .panel-heading > div,
body.mobile-dashboard-mode #account-user-editor-panel .panel-heading > div,
body.mobile-dashboard-mode #account-users-panel .panel-heading > div,
body.mobile-dashboard-mode .export-page-shell .panel-heading > div,
body.mobile-dashboard-mode .import-page-shell .panel-heading > div,
body.mobile-dashboard-mode .external-editor-shell .panel-heading > div,
body.mobile-dashboard-mode .external-list-shell .panel-heading > div {
  display: grid;
  gap: 4px;
}

body.mobile-dashboard-mode .account-summary-shell .panel-heading .eyebrow,
body.mobile-dashboard-mode #account-user-editor-panel .panel-heading .eyebrow,
body.mobile-dashboard-mode #account-users-panel .panel-heading .eyebrow,
body.mobile-dashboard-mode .export-page-shell .panel-heading .eyebrow,
body.mobile-dashboard-mode .import-page-shell .panel-heading .eyebrow,
body.mobile-dashboard-mode .external-editor-shell .panel-heading .eyebrow,
body.mobile-dashboard-mode .external-list-shell .panel-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.52);
  background: rgba(243, 250, 247, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

body.mobile-dashboard-mode .export-page-shell,
body.mobile-dashboard-mode .import-page-shell,
body.mobile-dashboard-mode .external-editor-shell,
body.mobile-dashboard-mode .external-list-shell,
body.mobile-dashboard-mode #account-user-editor-panel,
body.mobile-dashboard-mode #account-users-panel {
  overflow: hidden;
}

body.mobile-dashboard-mode .export-layout,
body.mobile-dashboard-mode .import-layout,
body.mobile-dashboard-mode .external-workspace,
body.mobile-dashboard-mode .account-admin-layout {
  gap: 9px;
}

body.mobile-dashboard-mode .csv-import-panel > label,
body.mobile-dashboard-mode .csv-import-panel .modern-file-input {
  width: 100%;
}

body.mobile-dashboard-mode .csv-import-panel > label {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(183, 208, 191, 0.42);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 252, 249, 0.97) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.mobile-dashboard-mode .csv-import-panel > label > span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(10, 94, 77, 0.9);
}

body.mobile-dashboard-mode .modern-file-input {
  min-height: 40px;
  padding: 7px 9px;
  font-size: 0.78rem;
  border-radius: 12px;
}

body.mobile-dashboard-mode .modern-file-input::file-selector-button,
body.mobile-dashboard-mode .modern-file-input::-webkit-file-upload-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 0.72rem;
}

body.mobile-dashboard-mode .proof-link {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
}

body.mobile-dashboard-mode .external-editor-shell .quad-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.mobile-dashboard-mode .external-editor-shell .external-order-form {
  gap: 9px;
}

body.mobile-dashboard-mode .external-editor-shell .form-actions,
body.mobile-dashboard-mode .export-actions,
body.mobile-dashboard-mode .csv-import-panel .form-actions {
  padding-top: 2px;
}

body.mobile-dashboard-mode .external-editor-shell .form-actions > *,
body.mobile-dashboard-mode .export-actions > *,
body.mobile-dashboard-mode .csv-import-panel .form-actions > * {
  min-height: 37px;
  font-size: 0.77rem;
}

body.mobile-dashboard-mode #external-orders-list,
body.mobile-dashboard-mode #account-summary-panel {
  display: grid;
  gap: 8px;
}

body.mobile-dashboard-mode #external-orders-list .dashboard-order-table {
  margin-top: 0;
}

body.mobile-dashboard-mode #account-user-editor-panel .form-actions,
body.mobile-dashboard-mode .external-editor-shell .form-actions,
body.mobile-dashboard-mode .export-actions {
  align-items: stretch;
}

body.mobile-dashboard-mode #account-user-editor-panel .form-actions > :first-child,
body.mobile-dashboard-mode .external-editor-shell .form-actions > :first-child,
body.mobile-dashboard-mode .export-actions > :first-child {
  grid-column: 1 / -1;
  min-height: 40px;
  font-size: 0.79rem;
}

body.mobile-dashboard-mode #account-user-editor-panel .form-actions > :not(:first-child),
body.mobile-dashboard-mode .external-editor-shell .form-actions > :not(:first-child),
body.mobile-dashboard-mode .export-actions > :not(:first-child) {
  min-height: 35px;
  padding-top: 7px;
  padding-bottom: 7px;
}

body.mobile-dashboard-mode .csv-import-panel .form-actions {
  align-items: stretch;
}

body.mobile-dashboard-mode .csv-import-panel .form-actions > :nth-child(1) {
  order: 2;
}

body.mobile-dashboard-mode .csv-import-panel .form-actions > :nth-child(2) {
  order: 1;
  grid-column: 1 / -1;
  min-height: 40px;
  font-size: 0.79rem;
}

body.mobile-dashboard-mode .csv-import-panel .form-actions > :nth-child(3) {
  order: 3;
}

body.mobile-dashboard-mode .csv-import-panel .form-actions > :nth-child(1),
body.mobile-dashboard-mode .csv-import-panel .form-actions > :nth-child(3) {
  min-height: 35px;
  padding-top: 7px;
  padding-bottom: 7px;
}

body.mobile-dashboard-mode .export-summary-card,
body.mobile-dashboard-mode .import-summary-card,
body.mobile-dashboard-mode .account-summary-badge {
  isolation: isolate;
}

body.mobile-dashboard-mode .export-summary-card::before,
body.mobile-dashboard-mode .import-summary-card::before,
body.mobile-dashboard-mode .account-summary-badge::before {
  content: "";
  position: absolute;
  inset: auto 10px 0;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 72%);
  opacity: 0.85;
  z-index: -1;
}

body.mobile-dashboard-mode .csv-preview-header,
body.mobile-dashboard-mode .panel .empty-state,
body.mobile-dashboard-mode .panel .feedback {
  position: relative;
  overflow: hidden;
}

body.mobile-dashboard-mode .csv-preview-header::after,
body.mobile-dashboard-mode .panel .empty-state::after,
body.mobile-dashboard-mode .panel .feedback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}

body.mobile-dashboard-mode .csv-preview-header {
  padding: 2px 1px 1px;
}

body.mobile-dashboard-mode .csv-import-panel .hint code {
  margin-right: 3px;
  border-color: rgba(174, 206, 196, 0.6);
  background: rgba(243, 250, 247, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.mobile-dashboard-mode .account-table td[data-label="Aksi"] .small-button + .small-button {
  margin-left: 6px;
}

body.mobile-dashboard-mode .external-list-shell #external-orders-state,
body.mobile-dashboard-mode #account-users-state,
body.mobile-dashboard-mode #external-csv-meta {
  margin-top: 1px;
}

body.mobile-dashboard-mode .page-shell {
  padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px));
}

body.mobile-dashboard-mode .dashboard-tabbar-shell {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
}

body.mobile-dashboard-mode .dashboard-tabbar-copy {
  display: none;
}

body.mobile-dashboard-mode .dashboard-tabbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
}

body.mobile-dashboard-mode .dashboard-tabbar::-webkit-scrollbar {
  display: none;
}

body.mobile-dashboard-mode.supplier-dashboard-user .dashboard-tabbar {
  overflow-x: visible;
  scroll-snap-type: none;
}

body.mobile-dashboard-mode .dashboard-tab-button {
  flex: 0 0 clamp(80px, 22vw, 90px);
  min-width: clamp(80px, 22vw, 90px);
  min-height: 39px;
  padding: 6px 4px 5px;
  scroll-snap-align: start;
}

body.mobile-dashboard-mode .dashboard-tab-button-label {
  font-size: 0.6rem;
}

body.mobile-dashboard-mode.supplier-dashboard-user .dashboard-tab-button {
  flex: 1 1 0;
  min-width: 0;
}

body.mobile-dashboard-mode .orders-mobile-quick-actions,
body.force-mobile-view .orders-mobile-quick-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -1px 0 4px;
  padding: 4px 0 8px;
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.98) 0%, rgba(247, 252, 249, 0.9) 72%, rgba(247, 252, 249, 0) 100%);
  backdrop-filter: blur(10px);
  scroll-snap-type: x proximity;
}

body.mobile-dashboard-mode .orders-mobile-action-button,
body.force-mobile-view .orders-mobile-action-button {
  scroll-snap-align: start;
  min-height: 35px;
  padding: 0 13px;
  border-radius: 999px;
  border-color: rgba(174, 206, 196, 0.5);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.05) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 250, 247, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 7px 16px rgba(18, 51, 46, 0.05);
}

body.mobile-dashboard-mode .orders-mobile-action-button:nth-child(-n + 2),
body.force-mobile-view .orders-mobile-action-button:nth-child(-n + 2) {
  border-color: rgba(115, 205, 178, 0.46);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 40%),
    linear-gradient(180deg, rgba(246, 253, 249, 0.99) 0%, rgba(237, 248, 243, 0.97) 100%);
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .proof-modal-dialog {
  --modal-static-transform: translateX(-50%);
  width: min(calc(100vw - 2px), 410px);
  max-height: calc(100vh - 2px);
  padding: 8px 9px 0;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(173, 206, 194, 0.4);
  box-shadow: 0 -18px 42px rgba(18, 51, 46, 0.18);
  position: absolute;
  left: 50%;
  bottom: 0;
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .proof-modal-close {
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .proof-modal-header {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -9px 0;
  padding: 4px 42px 8px 9px;
  gap: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  border-bottom: 1px solid rgba(183, 208, 191, 0.42);
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .proof-modal-header .eyebrow {
  margin-bottom: 2px;
  font-size: 0.55rem;
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .proof-modal-body {
  min-height: 180px;
  padding: 10px 0 8px;
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .proof-modal-body img {
  max-height: min(62vh, 460px);
  border-radius: 12px;
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .copy-order-body {
  padding: 10px 0 0;
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .copy-order-textarea {
  min-height: 220px;
  font-size: 0.8rem;
  border-radius: 14px;
}

body.mobile-dashboard-mode .proof-modal:not(.timeframe-sheet-modal) .copy-order-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 4px -9px 0;
  padding: 8px 9px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(244, 250, 247, 0.9) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-top: 1px solid rgba(183, 208, 191, 0.34);
  gap: 6px;
}

body.mobile-dashboard-mode .supplier-price-tile,
body.force-mobile-view .supplier-price-tile {
  display: grid;
  gap: 5px;
  min-height: 100%;
  padding: 9px 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(174, 206, 196, 0.42);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 6px 14px rgba(18, 51, 46, 0.04);
}

body.mobile-dashboard-mode .supplier-price-tile.is-filled,
body.force-mobile-view .supplier-price-tile.is-filled {
  border-color: rgba(115, 205, 178, 0.45);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.07) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(247, 253, 250, 0.99) 0%, rgba(239, 249, 244, 0.97) 100%);
}

body.mobile-dashboard-mode .supplier-price-caption,
body.force-mobile-view .supplier-price-caption {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.58);
  background: rgba(243, 250, 247, 0.95);
  color: rgba(10, 94, 77, 0.92);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.mobile-dashboard-mode .supplier-price-head,
body.force-mobile-view .supplier-price-head {
  align-items: flex-start;
}

body.mobile-dashboard-mode .supplier-price-tile strong,
body.force-mobile-view .supplier-price-tile strong {
  font-size: 0.86rem;
  line-height: 1.22;
  color: var(--brand-dark);
}

body.mobile-dashboard-mode .proof-summary-card,
body.force-mobile-view .proof-summary-card {
  display: grid;
  gap: 5px;
  padding: 9px 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(174, 206, 196, 0.42);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 6px 14px rgba(18, 51, 46, 0.04);
}

body.mobile-dashboard-mode .proof-summary-card.has-file,
body.force-mobile-view .proof-summary-card.has-file {
  border-color: rgba(115, 205, 178, 0.45);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.07) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(247, 253, 250, 0.99) 0%, rgba(239, 249, 244, 0.97) 100%);
}

body.mobile-dashboard-mode .proof-summary-label,
body.force-mobile-view .proof-summary-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.58);
  background: rgba(243, 250, 247, 0.95);
  color: rgba(10, 94, 77, 0.92);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.mobile-dashboard-mode .proof-summary-head,
body.force-mobile-view .proof-summary-head {
  align-items: flex-start;
}

body.mobile-dashboard-mode .proof-summary-card .proof-file-button,
body.force-mobile-view .proof-summary-card .proof-file-button {
  justify-content: flex-start;
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 247, 0.95) 100%);
  text-align: left;
  line-height: 1.3;
}

body.mobile-dashboard-mode .proof-summary-card .proof-empty-text,
body.mobile-dashboard-mode .proof-summary-card .proof-booking-code,
body.force-mobile-view .proof-summary-card .proof-empty-text,
body.force-mobile-view .proof-summary-card .proof-booking-code {
  font-size: 0.68rem;
  line-height: 1.34;
}

body.mobile-dashboard-mode .proof-summary-card .proof-empty-text,
body.force-mobile-view .proof-summary-card .proof-empty-text {
  color: rgba(78, 103, 96, 0.95);
  font-weight: 700;
}

body.mobile-dashboard-mode .statistics-timeframe-control {
  width: auto;
  min-width: 0;
  justify-items: end;
}

body.mobile-dashboard-mode .statistics-timeframe-control span {
  display: none;
}

body.mobile-dashboard-mode .statistics-timeframe-control select {
  display: none;
}

body.mobile-dashboard-mode .statistics-timeframe-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 196, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 251, 248, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 6px 14px rgba(18, 51, 46, 0.05);
  color: var(--brand-dark);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
}

.timeframe-sheet-dialog {
  width: min(92vw, 420px);
}

.timeframe-sheet-options {
  display: grid;
  gap: 9px;
}

.timeframe-sheet-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(174, 206, 196, 0.42);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(18, 51, 46, 0.045);
  text-align: left;
  color: var(--brand-dark);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.timeframe-sheet-option strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.timeframe-sheet-option span {
  font-size: 0.74rem;
  line-height: 1.42;
  color: var(--muted);
}

.timeframe-sheet-option.active {
  border-color: rgba(15, 125, 99, 0.44);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.08) 0%, rgba(15, 125, 99, 0) 40%),
    linear-gradient(180deg, rgba(245, 253, 249, 0.99) 0%, rgba(235, 248, 242, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(15, 125, 99, 0.08);
}

.timeframe-sheet-option:focus-visible {
  outline: 2px solid rgba(15, 125, 99, 0.28);
  outline-offset: 2px;
}

body.mobile-dashboard-mode .timeframe-sheet-modal .proof-modal-dialog {
  width: min(100vw - 14px, 420px);
  max-height: min(72vh, 560px);
  margin: auto auto calc(env(safe-area-inset-bottom, 0px) + 82px);
  padding: 14px 13px 14px;
  border-radius: 22px 22px 18px 18px;
  transform: translateY(18px) scale(0.985);
}

body.mobile-dashboard-mode .timeframe-sheet-modal.is-open .proof-modal-dialog {
  transform: translateY(0) scale(1);
}

body.mobile-dashboard-mode .timeframe-sheet-modal.is-closing .proof-modal-dialog {
  transform: translateY(18px) scale(0.985);
}

body.mobile-dashboard-mode .timeframe-sheet-header {
  gap: 5px;
  margin-bottom: 10px;
}

body.mobile-dashboard-mode .timeframe-sheet-header strong {
  font-size: 0.9rem;
  line-height: 1.18;
}

body.mobile-dashboard-mode .timeframe-sheet-header .muted {
  font-size: 0.72rem;
  line-height: 1.42;
}

body.mobile-dashboard-mode .timeframe-sheet-modal .proof-modal-close {
  width: 34px;
  height: 34px;
  top: 10px;
  right: 10px;
  font-size: 1rem;
}

body.mobile-dashboard-mode #account-user-editor-panel .form-actions,
body.mobile-dashboard-mode .external-editor-shell .form-actions,
body.mobile-dashboard-mode .export-actions,
body.mobile-dashboard-mode .csv-import-panel .form-actions {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  margin: 2px -2px -2px;
  padding: 8px 2px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(183, 208, 191, 0.34);
  background: linear-gradient(180deg, rgba(246, 252, 249, 0.84) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
}

body.mobile-dashboard-mode #account-user-editor-panel .form-actions > *,
body.mobile-dashboard-mode .external-editor-shell .form-actions > *,
body.mobile-dashboard-mode .export-actions > *,
body.mobile-dashboard-mode .csv-import-panel .form-actions > * {
  box-shadow: 0 6px 14px rgba(18, 51, 46, 0.05);
}

body.mobile-dashboard-mode #account-user-editor-panel,
body.mobile-dashboard-mode #account-users-panel,
body.mobile-dashboard-mode .export-page-shell,
body.mobile-dashboard-mode .import-page-shell,
body.mobile-dashboard-mode .external-editor-shell,
body.mobile-dashboard-mode .external-list-shell {
  scroll-margin-top: 10px;
}

body.mobile-dashboard-mode .buyer-address-cell,
body.force-mobile-view .buyer-address-cell {
  gap: 7px;
}

body.mobile-dashboard-mode .buyer-address-header,
body.force-mobile-view .buyer-address-header {
  align-items: flex-start;
  gap: 8px;
}

body.mobile-dashboard-mode .buyer-address-identity,
body.force-mobile-view .buyer-address-identity {
  gap: 5px;
}

body.mobile-dashboard-mode .buyer-contact-chip,
body.force-mobile-view .buyer-contact-chip {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.66rem;
  letter-spacing: 0.01em;
  border-color: rgba(165, 204, 191, 0.68);
  background: linear-gradient(180deg, rgba(244, 250, 247, 0.98) 0%, rgba(238, 248, 243, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.mobile-dashboard-mode .buyer-address-body,
body.force-mobile-view .buyer-address-body {
  gap: 6px;
  padding: 8px 9px;
  border-radius: 13px;
  border: 1px solid rgba(178, 208, 198, 0.4);
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.04) 0%, rgba(15, 125, 99, 0) 38%),
    linear-gradient(180deg, rgba(252, 255, 253, 0.99) 0%, rgba(245, 251, 248, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 6px 14px rgba(18, 51, 46, 0.04);
}

body.mobile-dashboard-mode .buyer-address-body .address-primary,
body.force-mobile-view .buyer-address-body .address-primary {
  -webkit-line-clamp: 3;
  font-size: 0.76rem;
  line-height: 1.4;
}

body.mobile-dashboard-mode .buyer-address-meta-list,
body.force-mobile-view .buyer-address-meta-list {
  gap: 4px;
}

body.mobile-dashboard-mode .buyer-address-meta-item,
body.force-mobile-view .buyer-address-meta-item {
  position: relative;
  padding-left: 11px;
  font-size: 0.69rem;
  line-height: 1.34;
}

body.mobile-dashboard-mode .buyer-address-meta-item::before,
body.force-mobile-view .buyer-address-meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46rem;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 125, 99, 0.34);
}

body.mobile-dashboard-mode .dashboard-order-table td[data-label="Aksi"],
body.force-mobile-view .dashboard-order-table td[data-label="Aksi"] {
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.05) 0%, rgba(15, 125, 99, 0) 36%),
    linear-gradient(180deg, rgba(252, 255, 253, 0.99) 0%, rgba(245, 251, 248, 0.97) 100%);
}

body.mobile-dashboard-mode .table-actions,
body.force-mobile-view .table-actions {
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(183, 208, 191, 0.34);
}

body.mobile-dashboard-mode .table-actions .small-button,
body.force-mobile-view .table-actions .small-button {
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 7px 16px rgba(18, 51, 46, 0.06);
}

body.mobile-dashboard-mode .table-actions .action-secondary,
body.force-mobile-view .table-actions .action-secondary {
  background: linear-gradient(180deg, rgba(246, 251, 248, 0.98) 0%, rgba(239, 248, 244, 0.96) 100%);
}

body.mobile-dashboard-mode .table-actions .action-danger,
body.force-mobile-view .table-actions .action-danger {
  background: linear-gradient(180deg, rgba(255, 248, 248, 0.98) 0%, rgba(251, 239, 239, 0.96) 100%);
}

@media (min-width: 860px) {
  body:not(.force-mobile-view) .order-workbench-shell {
    gap: 12px;
  }

  body:not(.force-mobile-view) .order-workbench-toolbar {
    display: grid;
    grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid rgba(183, 208, 191, 0.5);
    border-radius: 18px;
    background:
      radial-gradient(circle at right top, rgba(15, 125, 99, 0.06) 0%, rgba(15, 125, 99, 0) 40%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 10px 24px rgba(18, 51, 46, 0.05);
  }

  body:not(.force-mobile-view) .order-workbench-copy {
    gap: 4px;
    align-content: start;
  }

  body:not(.force-mobile-view) .order-workbench-eyebrow {
    color: var(--brand);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body:not(.force-mobile-view) .order-workbench-copy strong {
    font-size: 1rem;
    line-height: 1.18;
    color: var(--brand-dark);
  }

  body:not(.force-mobile-view) .order-workbench-count {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
  }

  body:not(.force-mobile-view) .order-workbench-side {
    gap: 10px;
    justify-items: end;
  }

  body:not(.force-mobile-view) .order-workbench-chip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  body:not(.force-mobile-view) .order-workbench-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  body:not(.force-mobile-view) .order-workbench-button {
    min-height: 35px;
    padding: 0 13px;
    border-radius: 999px;
  }

  body:not(.force-mobile-view) .dashboard-order-table-wrap {
    position: relative;
  }

  body:not(.force-mobile-view) .dashboard-order-table th:first-child,
  body:not(.force-mobile-view) .dashboard-order-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
  }

  body:not(.force-mobile-view) .dashboard-order-table th:first-child {
    z-index: 6;
    box-shadow:
      inset 0 -1px 0 rgba(183, 208, 191, 0.65),
      12px 0 18px rgba(233, 243, 238, 0.9);
  }

  body:not(.force-mobile-view) .dashboard-order-table th:last-child,
  body:not(.force-mobile-view) .imported-order-table td[data-label="Aksi"],
  body:not(.force-mobile-view) .external-order-table td[data-label="Aksi"] {
    position: sticky;
    right: 0;
    z-index: 4;
  }

  body:not(.force-mobile-view) .dashboard-order-table th:last-child {
    z-index: 6;
    box-shadow:
      inset 0 -1px 0 rgba(183, 208, 191, 0.65),
      -12px 0 18px rgba(233, 243, 238, 0.92);
  }

  body:not(.force-mobile-view) .dashboard-order-table tbody tr td:first-child,
  body:not(.force-mobile-view) .imported-order-table td[data-label="Aksi"],
  body:not(.force-mobile-view) .external-order-table td[data-label="Aksi"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 252, 250, 0.985) 100%);
  }

  body:not(.force-mobile-view) .dashboard-order-table tbody tr:nth-child(even) td:first-child,
  body:not(.force-mobile-view) .dashboard-order-table tbody tr:nth-child(even) .table-actions,
  body:not(.force-mobile-view) .dashboard-order-table tbody tr:nth-child(even) td[data-label="Aksi"] {
    background: linear-gradient(180deg, rgba(247, 252, 249, 0.99) 0%, rgba(242, 249, 246, 0.97) 100%);
  }

  body:not(.force-mobile-view) .dashboard-order-table tbody tr:hover td:first-child,
  body:not(.force-mobile-view) .dashboard-order-table tbody tr:hover .table-actions,
  body:not(.force-mobile-view) .dashboard-order-table tbody tr:hover td[data-label="Aksi"] {
    background: linear-gradient(180deg, rgba(242, 249, 246, 0.995) 0%, rgba(235, 246, 241, 0.985) 100%);
  }

  body:not(.force-mobile-view) .dashboard-order-table tbody tr td:first-child {
    box-shadow:
      inset 5px 0 0 rgba(15, 125, 99, 0.18),
      12px 0 18px rgba(238, 245, 241, 0.82);
  }

  body:not(.force-mobile-view) .imported-order-table td[data-label="Aksi"],
  body:not(.force-mobile-view) .external-order-table td[data-label="Aksi"] {
    box-shadow: -12px 0 18px rgba(238, 245, 241, 0.82);
  }

  body:not(.force-mobile-view) .dashboard-order-preview-row td:first-child,
  body:not(.force-mobile-view) .dashboard-order-preview-row td:last-child {
    position: static;
    left: auto;
    right: auto;
    box-shadow: none;
  }

  body:not(.force-mobile-view) .buyer-address-body {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body:not(.force-mobile-view) .copy-address-button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  body:not(.force-mobile-view) .supplier-price-head,
  body:not(.force-mobile-view) .proof-summary-head,
  body:not(.force-mobile-view) .proof-booking-code {
    display: none;
  }

  body:not(.force-mobile-view) .supplier-price-tile,
  body:not(.force-mobile-view) .proof-summary-card {
    gap: 6px;
    padding: 8px 9px;
  }

  body:not(.force-mobile-view) .supplier-price-tile strong {
    font-size: 0.82rem;
    line-height: 1.26;
  }

  body:not(.force-mobile-view) .proof-summary-card .proof-file-button {
    min-height: 32px;
    padding: 7px 8px;
    font-size: 0.74rem;
  }

  body:not(.force-mobile-view) .proof-summary-card .proof-empty-text {
    font-weight: 700;
  }

  body:not(.force-mobile-view) .imported-order-table td[data-label="Bukti Transfer"] > .table-proof-area::before,
  body:not(.force-mobile-view) .imported-order-table td[data-label="Bukti Kirim"] > .table-proof-area::before,
  body:not(.force-mobile-view) .external-order-table td[data-label="Bukti Transfer"] > .table-proof-area::before {
    content: "";
    display: block;
    height: 3px;
    margin: -10px -11px 10px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, rgba(15, 125, 99, 0.22) 0%, rgba(217, 143, 51, 0.18) 100%);
  }
}

body.force-desktop-view .order-workbench-shell {
  gap: 12px;
}

body.force-desktop-view .order-workbench-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(183, 208, 191, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(circle at right top, rgba(15, 125, 99, 0.06) 0%, rgba(15, 125, 99, 0) 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 252, 249, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(18, 51, 46, 0.05);
}

body.force-desktop-view .order-workbench-copy {
  gap: 4px;
  align-content: start;
}

body.force-desktop-view .order-workbench-eyebrow {
  color: var(--brand);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.force-desktop-view .order-workbench-copy strong {
  font-size: 1rem;
  line-height: 1.18;
  color: var(--brand-dark);
}

body.force-desktop-view .order-workbench-count {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

body.force-desktop-view .order-workbench-side {
  gap: 10px;
  justify-items: end;
}

body.force-desktop-view .order-workbench-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.force-desktop-view .order-workbench-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

body.force-desktop-view .order-workbench-button {
  min-height: 35px;
  padding: 0 13px;
  border-radius: 999px;
}

body.force-desktop-view .dashboard-order-table-wrap {
  position: relative;
}

body.force-desktop-view .dashboard-order-table th:first-child,
body.force-desktop-view .dashboard-order-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}

body.force-desktop-view .dashboard-order-table th:first-child {
  z-index: 6;
  box-shadow:
    inset 0 -1px 0 rgba(183, 208, 191, 0.65),
    12px 0 18px rgba(233, 243, 238, 0.9);
}

body.force-desktop-view .dashboard-order-table th:last-child,
body.force-desktop-view .imported-order-table td[data-label="Aksi"],
body.force-desktop-view .external-order-table td[data-label="Aksi"] {
  position: sticky;
  right: 0;
  z-index: 4;
}

body.force-desktop-view .dashboard-order-table th:last-child {
  z-index: 6;
  box-shadow:
    inset 0 -1px 0 rgba(183, 208, 191, 0.65),
    -12px 0 18px rgba(233, 243, 238, 0.92);
}

body.force-desktop-view .dashboard-order-table tbody tr td:first-child,
body.force-desktop-view .imported-order-table td[data-label="Aksi"],
body.force-desktop-view .external-order-table td[data-label="Aksi"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 252, 250, 0.985) 100%);
}

body.force-desktop-view .dashboard-order-table tbody tr:nth-child(even) td:first-child,
body.force-desktop-view .dashboard-order-table tbody tr:nth-child(even) .table-actions,
body.force-desktop-view .dashboard-order-table tbody tr:nth-child(even) td[data-label="Aksi"] {
  background: linear-gradient(180deg, rgba(247, 252, 249, 0.99) 0%, rgba(242, 249, 246, 0.97) 100%);
}

body.force-desktop-view .dashboard-order-table tbody tr:hover td:first-child,
body.force-desktop-view .dashboard-order-table tbody tr:hover .table-actions,
body.force-desktop-view .dashboard-order-table tbody tr:hover td[data-label="Aksi"] {
  background: linear-gradient(180deg, rgba(242, 249, 246, 0.995) 0%, rgba(235, 246, 241, 0.985) 100%);
}

body.force-desktop-view .dashboard-order-table tbody tr td:first-child {
  box-shadow:
    inset 5px 0 0 rgba(15, 125, 99, 0.18),
    12px 0 18px rgba(238, 245, 241, 0.82);
}

body.force-desktop-view .imported-order-table td[data-label="Aksi"],
body.force-desktop-view .external-order-table td[data-label="Aksi"] {
  box-shadow: -12px 0 18px rgba(238, 245, 241, 0.82);
}

body.force-desktop-view .dashboard-order-preview-row td:first-child,
body.force-desktop-view .dashboard-order-preview-row td:last-child {
  position: static;
  left: auto;
  right: auto;
  box-shadow: none;
}

body.force-desktop-view .imported-order-table td[data-label="Status"] > .status-badge-stack,
body.force-desktop-view .external-order-table td[data-label="Status"] > .status-badge-stack {
  gap: 7px;
}

body.force-desktop-view .buyer-address-body {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.force-desktop-view .copy-address-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.68rem;
}

body.force-desktop-view .supplier-price-head,
body.force-desktop-view .proof-summary-head,
body.force-desktop-view .proof-booking-code {
  display: none;
}

body.force-desktop-view .supplier-price-tile,
body.force-desktop-view .proof-summary-card {
  gap: 6px;
  padding: 8px 9px;
}

body.force-desktop-view .supplier-price-tile strong {
  font-size: 0.82rem;
  line-height: 1.26;
}

body.force-desktop-view .proof-summary-card .proof-file-button {
  min-height: 32px;
  padding: 7px 8px;
  font-size: 0.74rem;
}

body.force-desktop-view .proof-summary-card .proof-empty-text {
  font-weight: 700;
}

body.force-desktop-view .imported-order-table td[data-label="Bukti Transfer"] > .table-proof-area::before,
body.force-desktop-view .imported-order-table td[data-label="Bukti Kirim"] > .table-proof-area::before,
body.force-desktop-view .external-order-table td[data-label="Bukti Transfer"] > .table-proof-area::before {
  content: "";
  display: block;
  height: 3px;
  margin: -10px -11px 10px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, rgba(15, 125, 99, 0.22) 0%, rgba(217, 143, 51, 0.18) 100%);
}
