:root {
  --brand: #1677ff;
  --brand-dark: #0f5bd8;
  --brand-soft: #eaf3ff;
  --text: #172033;
  --muted: #6b778c;
  --weak: #98a2b3;
  --line: #e5eaf2;
  --line-soft: #f0f3f8;
  --bg: #eef3f8;
  --panel: #ffffff;
  --nav: #394958;
  --nav-soft: #65717d;
  --success: #17a36b;
  --success-soft: #e9f8f0;
  --warn: #f59e0b;
  --warn-soft: #fff6df;
  --danger: #ef4444;
  --danger-soft: #fff1f1;
  --gray-soft: #f3f6fb;
  --radius: 8px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --shadow: 0 14px 38px rgba(31, 45, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 1360px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

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

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  outline: none;
}

.icon-sprite {
  display: none;
}

.prototype-toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 54px;
  padding: 0 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #415062;
  border-bottom: 0;
}

.proto-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}

.proto-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
}

.segmented {
  height: 34px;
  padding: 3px;
  display: flex;
  gap: 3px;
  border-radius: 6px;
  background: #edf2f7;
}

.segmented button {
  min-width: 72px;
  padding: 0 12px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.segmented button.active {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 45, 61, 0.08);
  font-weight: 600;
}

.toolbar-actions {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-icons {
  height: 100%;
  padding: 0 10px 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
}

.top-tool-btn {
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.92;
  transition:
    opacity 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.top-tool-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.top-tool-btn span {
  line-height: 1;
}

.top-tool-btn:hover,
.top-tool-btn.active {
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.top-tool-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.pc-shell {
  min-width: 1360px;
  min-height: calc(100vh - 54px);
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  background: var(--bg);
}

.side-nav {
  background: var(--nav);
  color: #f4f7fb;
  padding: 18px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-row {
  height: 38px;
  padding: 0 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cdefs%3E%3CradialGradient id='a' cx='30%25' cy='22%25' r='72%25'%3E%3Cstop offset='0' stop-color='%23f3d9ff'/%3E%3Cstop offset='.26' stop-color='%238f6bff'/%3E%3Cstop offset='.58' stop-color='%232f58b8'/%3E%3Cstop offset='1' stop-color='%2309142e'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2379e4ff'/%3E%3Cstop offset='1' stop-color='%232c51ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='80' height='80' rx='20' fill='url(%23a)'/%3E%3Cpath d='M10 48c11-12 22-13 34-3 10 8 19 8 27 0v23H10z' fill='url(%23b)' opacity='.92'/%3E%3Cpath d='M17 25c12 5 23 5 33 0' stroke='white' stroke-width='4' stroke-linecap='round' opacity='.55'/%3E%3Ccircle cx='25' cy='24' r='5' fill='white' opacity='.9'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  box-shadow: 0 3px 10px rgba(7, 18, 40, 0.32);
}

.brand-name {
  display: none;
}

.nav-section {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-section.no-divider {
  border-bottom: 0;
}

.nav-item {
  height: 30px;
  padding: 0 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: #fff;
  font-size: 13px;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover,
.nav-item.active,
.nav-item.active-ghost {
  color: #fff;
  background: var(--nav-soft);
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
  color: #fff;
  background: transparent;
}

.nav-icon.tile {
  padding: 2px;
  border-radius: 3px;
  background: var(--icon-bg, #4096ff);
}

.nav-icon.sky {
  --icon-bg: #32a8ff;
}

.nav-icon.blue {
  --icon-bg: #3b82f6;
}

.nav-icon.orange {
  --icon-bg: #ff8a3d;
}

.nav-icon.green {
  --icon-bg: #54c752;
}

.nav-icon.cyan {
  --icon-bg: #4ea5ff;
}

.nav-icon.yellow {
  --icon-bg: #ffc43d;
}

.nav-icon.mint {
  --icon-bg: #52c878;
}

.nav-icon.indigo {
  --icon-bg: #5b7cfa;
}

.nav-icon.amber {
  --icon-bg: #ff9f34;
}

.nav-spacer {
  flex: 1;
  min-height: 28px;
}

.nav-badge {
  min-width: 14px;
  height: 14px;
  margin-left: auto;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #ff4d4f;
  font-size: 10px;
  line-height: 14px;
}

.nav-foot {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.foot-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cdefs%3E%3CradialGradient id='a' cx='30%25' cy='22%25' r='72%25'%3E%3Cstop offset='0' stop-color='%23f3d9ff'/%3E%3Cstop offset='.26' stop-color='%238f6bff'/%3E%3Cstop offset='.58' stop-color='%232f58b8'/%3E%3Cstop offset='1' stop-color='%2309142e'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='80' height='80' rx='20' fill='url(%23a)'/%3E%3Cpath d='M10 48c11-12 22-13 34-3 10 8 19 8 27 0v23H10z' fill='%2354d7ff' opacity='.9'/%3E%3C/svg%3E");
  background-size: cover;
}

.foot-icon {
  width: 18px;
  height: 18px;
  color: #fff;
  display: block;
}

.pc-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.erp-topbar {
  height: 0;
  padding: 0;
  background: #fff;
  border-bottom: 0;
}

.pc-content {
  min-height: calc(100vh - 54px);
  padding: 8px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.pc-content.backoffice-mode .content-tabs {
  display: none;
}

.pc-content.backoffice-mode {
  padding-bottom: 8px;
}

.pc-content.backoffice-mode #module-backoffice {
  display: flex;
  flex: 1;
  min-height: 0;
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-heading h1,
.card-head h2,
.tips-card h3,
.reason-panel h3 {
  margin: 0;
}

.page-heading h1 {
  font-size: 24px;
  line-height: 1.25;
}

.page-heading p,
.card-head p,
.form-row span,
.tips-card li,
.page-jump,
.mobile-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.summary-pill {
  min-width: 168px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 2px;
  justify-items: end;
}

.summary-pill span {
  color: var(--muted);
  font-size: 12px;
}

.summary-pill strong {
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
}

.summary-pill em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

.kpi-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  display: grid;
  gap: 6px;
}

.kpi-card span {
  color: var(--muted);
  font-size: 13px;
}

.kpi-card strong {
  font-size: 26px;
  line-height: 1;
}

.kpi-card small {
  color: var(--weak);
  font-size: 12px;
}

.content-tabs {
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.pc-content > .module-view:first-child {
  margin-top: 0;
}

.content-tab-group {
  display: flex;
  gap: 6px;
}

.content-tab {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.content-tab.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.tab-badge,
.dot-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.tab-badge {
  color: #fff;
  background: var(--brand);
}

.dot-badge {
  color: #fff;
  background: #ff5a5f;
}

.settings-entry {
  position: relative;
  display: flex;
  align-items: center;
}

.top-settings-entry {
  height: 100%;
}

.settings-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  min-width: 144px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 38, 74, 0.12);
  z-index: 20;
}

.settings-menu[hidden] {
  display: none;
}

.settings-menu-item {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--text);
  background: transparent;
}

.settings-menu-item:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.backoffice-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  flex: 1;
  min-height: 100%;
  height: 100%;
  min-height: 720px;
  overflow: hidden;
}

.backoffice-side {
  border-right: 1px solid var(--line);
  background: #fff;
}

.backoffice-breadcrumb {
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2d3d;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.backoffice-breadcrumb svg {
  width: 16px;
  height: 16px;
  color: #f4a52d;
}

.backoffice-breadcrumb em {
  color: var(--weak);
  font-style: normal;
}

.backoffice-breadcrumb strong {
  font-weight: 600;
}

.manual-page-shell {
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.manual-page-card {
  flex: 1;
  min-height: 0;
  padding: 10px 16px 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.manual-page-topbar {
  margin-bottom: 12px;
  display: flex;
  justify-content: flex-end;
}

.manual-page-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.manual-line-panel {
  margin-bottom: 20px;
}

.manual-line-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
}

.manual-inbound-table,
.manual-outbound-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: fixed;
}

.manual-inbound-table thead th,
.manual-outbound-table thead th {
  height: 40px;
  padding: 10px 12px;
  background: #f3f6fa;
  color: #1f2d3d;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.manual-inbound-table thead th:last-child,
.manual-inbound-table tbody td:last-child,
.manual-outbound-table thead th:last-child,
.manual-outbound-table tbody td:last-child {
  border-right: 0;
}

.manual-inbound-table tbody td,
.manual-outbound-table tbody td {
  min-height: 44px;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  vertical-align: top;
  background: #fff;
}

.manual-inbound-table .warehouse-col,
.manual-inbound-table .unit-col,
.manual-inbound-table .price-col,
.manual-outbound-table .num-col,
.manual-outbound-table .unit-col,
.manual-outbound-table .target-col {
  text-align: center;
}

.manual-inbound-table .warehouse-col {
  width: 220px;
}

.manual-inbound-table .unit-col {
  width: 96px;
}

.manual-inbound-table .price-col {
  width: 156px;
}

.manual-outbound-table .target-col {
  width: 132px;
}

.manual-outbound-table .num-col {
  width: 88px;
}

.manual-outbound-table .unit-col {
  width: 84px;
}

.manual-inbound-table .op-col,
.manual-outbound-table .op-col {
  width: 86px;
  text-align: center;
}

.field-required {
  color: var(--danger);
}

.manual-cell {
  min-height: 44px;
  padding: 6px 10px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  flex-wrap: wrap;
}

.manual-cell.center {
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.manual-inline-input,
.manual-inline-select {
  width: 100%;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.manual-inline-input::placeholder,
.manual-inline-select.placeholder {
  color: #b2bccb;
}

.manual-inline-input[type="number"]::-webkit-outer-spin-button,
.manual-inline-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.manual-inline-input[type="number"] {
  -moz-appearance: textfield;
}

.manual-inline-input[readonly] {
  cursor: pointer;
}

.manual-inline-select-wrap {
  width: 100%;
  position: relative;
  padding-right: 16px;
}

.manual-inline-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid #b4bdc9;
  border-bottom: 1.5px solid #b4bdc9;
  transform: rotate(45deg);
  pointer-events: none;
}

.manual-inline-select {
  appearance: none;
  padding-right: 18px;
}

.manual-inline-sep {
  width: 1px;
  height: 18px;
  background: #e5eaf2;
  flex: 0 0 auto;
}

.manual-cell-action {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8c98a8;
}

.manual-cell-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fc;
  color: #8d9aad;
}

.manual-cell-icon svg {
  width: 15px;
  height: 15px;
}

.manual-cell-icon.disabled {
  color: #c7cfdb;
  background: transparent;
  cursor: default;
}

.manual-code-trigger {
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #596579;
  font-size: 13px;
  max-width: 100%;
}

.manual-code-trigger svg {
  width: 14px;
  height: 14px;
  color: #7a8797;
}

.manual-add-row {
  width: 100%;
  height: 32px;
  border: 1px dashed #70a8ff;
  border-radius: 8px;
  background: #f7fbff;
  color: #4b8ef7;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manual-add-row:hover {
  background: #eef6ff;
}

.manual-add-row-line {
  margin: 8px 0 20px;
}

.manual-section {
  margin-bottom: 22px;
}

.manual-section-title {
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.manual-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 999px;
  background: var(--brand);
}

.manual-extra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.manual-form-field {
  position: relative;
}

.manual-form-field label {
  display: block;
  margin-bottom: 8px;
  color: #1f2d3d;
  font-size: 13px;
}

.manual-remark-textarea {
  width: 100%;
  min-height: 156px;
  resize: none;
  padding: 12px 14px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.manual-remark-textarea::placeholder {
  color: #b2bccb;
}

.manual-char-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
}

.manual-char-count em {
  font-style: normal;
}

.manual-upload-box {
  min-height: 156px;
  border: 1px dashed #d4dbe6;
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-items: center;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.manual-upload-box p {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.manual-upload-box span {
  color: #98a2b3;
  font-size: 12px;
}

.manual-upload-illustration {
  width: 48px;
  height: 36px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 72% 26%, #f7bc47 0 8%, transparent 8.5%),
    radial-gradient(circle at 82% 18%, #57a0ff 0 6%, transparent 6.5%),
    linear-gradient(180deg, #fff 0%, #eef4ff 100%);
  border: 1px solid #d7e3f7;
  position: relative;
  box-shadow: 0 4px 12px rgba(28, 59, 112, 0.08);
}

.manual-upload-illustration::before,
.manual-upload-illustration::after {
  content: "";
  position: absolute;
}

.manual-upload-illustration::before {
  left: 14px;
  top: 9px;
  width: 20px;
  height: 14px;
  border: 1.5px solid #7b8796;
  border-top-left-radius: 2px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  background: #fff;
}

.manual-upload-illustration::after {
  left: 22px;
  top: 3px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #f0a933;
}

.manual-approval-section {
  padding-bottom: 16px;
}

.manual-approval-flow {
  display: grid;
  gap: 14px;
}

.manual-approval-step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.manual-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 2px;
  border: 4px solid #2f80ed;
  background: #fff;
}

.manual-approval-step.active .manual-step-dot {
  border-color: #f59e0b;
}

.manual-approval-step.end .manual-step-dot {
  border-color: #52c41a;
}

.manual-step-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.manual-step-content p,
.manual-step-content span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.manual-approval-user {
  width: fit-content;
  margin-top: 8px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.manual-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.manual-page-footer {
  margin-top: auto;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
}

.manual-page-footer .ghost-btn,
.manual-page-footer .primary-action {
  min-width: 62px;
}

.manual-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 40;
  overflow: hidden;
}

.manual-warehouse-dropdown {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-width: 520px;
}

.manual-warehouse-column {
  min-width: 0;
  max-height: 236px;
  display: flex;
  flex-direction: column;
}

.manual-warehouse-column:first-child {
  border-right: 1px solid var(--line-soft);
  background: #fafcff;
}

.manual-warehouse-column-title {
  padding: 10px 12px;
  color: #7b8796;
  font-size: 12px;
  font-weight: 600;
}

.manual-warehouse-column .manual-dropdown-list {
  flex: 1;
}

.manual-warehouse-column .manual-dropdown-item {
  justify-content: space-between;
}

.manual-dropdown[hidden] {
  display: none;
}

.manual-dropdown-list {
  max-height: 236px;
  overflow: auto;
}

.manual-dropdown-item {
  width: 100%;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  text-align: left;
}

.manual-dropdown-item:hover,
.manual-dropdown-item.active {
  background: #f4f8ff;
  color: var(--brand);
}

.manual-dropdown-item small {
  color: #98a2b3;
  font-size: 12px;
}

.manual-dropdown-empty {
  padding: 12px;
  color: #98a2b3;
  font-size: 12px;
  text-align: center;
}

.manual-product-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.manual-product-meta strong {
  font-size: 13px;
  font-weight: 500;
}

.manual-product-meta span {
  color: #98a2b3;
  font-size: 12px;
}

.manual-code-summary {
  color: #596579;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-input-suffix {
  color: #98a2b3;
  font-size: 12px;
  white-space: nowrap;
}

.manual-code-dropdown {
  min-width: 260px;
}

.manual-code-option {
  justify-content: flex-start;
}

.manual-code-option:disabled {
  color: #98a2b3;
  cursor: not-allowed;
  background: #f8fafc;
}

.manual-code-check {
  width: 18px;
  height: 18px;
  border: 1px solid #cfd7e3;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 12px;
  flex: 0 0 auto;
}

.manual-code-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.manual-code-text strong {
  font-size: 13px;
  font-weight: 500;
}

.manual-code-text small {
  color: #98a2b3;
  font-size: 12px;
}

.manual-qty-code-cell {
  position: relative;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.manual-qty-input {
  width: 72px;
  flex: 0 0 72px;
  text-align: left;
}

.manual-code-entry {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.manual-code-unit {
  color: #98a2b3;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}

.manual-inbound-center-input {
  text-align: center;
}

.manual-inbound-qty-code-cell {
  gap: 8px;
}

.manual-inbound-code-entry {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.manual-inbound-code-entry .manual-inline-input {
  min-width: 0;
}

.manual-inbound-code-count {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.manual-inbound-code-hint {
  flex: 0 0 auto;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #98a2b3;
  font-size: 12px;
  white-space: nowrap;
}

.manual-inbound-code-hint:hover {
  color: #667085;
}

.backoffice-menu {
  padding: 12px 8px;
  display: grid;
  gap: 8px;
}

.backoffice-menu-item {
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  background: transparent;
  font-size: 14px;
}

.backoffice-menu-item svg {
  width: 16px;
  height: 16px;
  color: #607086;
}

.backoffice-menu-item.active {
  color: var(--brand);
  background: #dcecff;
  font-weight: 600;
}

.backoffice-content {
  padding: 16px;
  background: #fff;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.backoffice-panel {
  display: none;
}

.backoffice-panel.active {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.backoffice-table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.backoffice-table-head,
.bo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 140px 78px;
}

.backoffice-table-head {
  min-height: 38px;
  background: #f3f6fa;
  border-bottom: 1px solid var(--line);
}

.head-col,
.bo-cell {
  padding: 10px 12px;
  border-right: 1px solid var(--line-soft);
  font-size: 13px;
}

.head-col:last-child,
.bo-cell:last-child {
  border-right: 0;
}

.head-col.required::before {
  content: "*";
  margin-right: 4px;
  color: #ff4d4f;
}

.bo-row {
  min-height: 46px;
  border-bottom: 1px solid var(--line-soft);
}

.bo-row:last-child {
  border-bottom: 0;
}

.bo-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bo-cell.wide,
.head-col.wide {
  justify-content: space-between;
}

.bo-cell.link {
  color: var(--brand);
  justify-content: flex-end;
}

.bo-cell.actions,
.head-col.actions {
  justify-content: center;
}

.bo-cell.actions svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.sub-count {
  color: var(--weak);
  font-size: 12px;
}

.mini-switch {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  position: relative;
  display: inline-block;
  background: #d8dee8;
}

.mini-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}

.mini-switch.on {
  background: #7fc8ff;
}

.mini-switch.on::after {
  left: 22px;
}

.backoffice-add-row {
  width: calc(100% - 32px);
  height: 34px;
  margin: 16px;
  border: 1px dashed #7ab1ff;
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
}

.backoffice-placeholder {
  min-height: 320px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.backoffice-subtabs {
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  gap: 6px;
  background: #fff;
}

.backoffice-subtab {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.backoffice-subtab.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.backoffice-subpanel {
  display: none;
}

.backoffice-subpanel.active {
  display: block;
}

.module-view {
  display: none;
}

.module-view.active {
  display: block;
}

#module-production.active {
  display: flex;
  flex: 1;
  min-height: 0;
}

.list-card,
.log-card,
.rules-card,
.tips-card,
.production-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.list-card {
  position: relative;
  overflow: visible;
}

.log-card {
  position: relative;
  overflow: visible;
}

.status-nav {
  height: 46px;
  padding: 0 18px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.status-nav button {
  height: 46px;
  padding: 0 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #2a3344;
  font-size: 15px;
}

.status-nav button.active {
  color: var(--brand);
  font-weight: 600;
}

.status-nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.delivery-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
}

.delivery-subnav {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 14px 8px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.delivery-subnav-item {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  text-align: left;
  background: transparent;
  font-size: 14px;
}

.delivery-subnav-item.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.delivery-subnav-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #8fc0ff 0%, #3a7cff 100%);
  flex: 0 0 auto;
}

.delivery-main {
  min-width: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.delivery-toolbar {
  padding-top: 16px;
}

.delivery-table-panel {
  margin-top: 14px;
  flex: 1;
}

.delivery-table {
  min-width: 1180px;
}

.delivery-col-order {
  width: 190px;
}

.delivery-col-sales,
.delivery-col-shipper {
  width: 110px;
}

.delivery-col-opportunity {
  width: 220px;
}

.delivery-col-contact {
  width: 124px;
}

.delivery-col-expected,
.delivery-col-actual {
  width: 132px;
}

.delivery-col-type {
  width: 180px;
}

.delivery-action-col {
  width: 86px !important;
}

.delivery-th-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.delivery-th-icon {
  width: 14px;
  height: 14px;
  color: #8b98ab;
}

.delivery-type-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-type-tag {
  height: 22px;
  padding: 0 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.delivery-type-logistics {
  color: #f59e0b;
  background: #fff3dc;
}

.delivery-type-pickup {
  color: #1677ff;
  background: #eaf3ff;
}

.delivery-type-other {
  color: #7c3aed;
  background: #f3e8ff;
}

.delivery-action-stack {
  width: 100%;
}

.delivery-action-menu {
  min-width: 118px;
}

.production-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  flex: 1;
  min-height: 720px;
  overflow: hidden;
}

.warehouse-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 720px;
  overflow: hidden;
}

.warehouse-side {
  border-right: 1px solid var(--line);
  background: #fff;
  min-width: 0;
}

.warehouse-side-scroll {
  height: 100%;
  max-height: 720px;
  overflow: auto;
}

.warehouse-tree-group {
  padding: 14px 8px 18px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.warehouse-tree-node,
.warehouse-tree-child {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: transparent;
  color: #334155;
  font-size: 14px;
}

.warehouse-tree-node {
  min-height: 40px;
  background: #dcecff;
  color: var(--brand);
  font-weight: 600;
}

.warehouse-tree-node em {
  margin-left: auto;
  color: var(--brand);
  font-style: normal;
  font-size: 12px;
}

.warehouse-tree-arrow,
.warehouse-tree-add {
  color: #607086;
  font-size: 12px;
  line-height: 1;
}

.warehouse-tree-add {
  margin-left: 6px;
}

.warehouse-tree-child {
  padding-left: 40px;
  color: #475569;
}

.warehouse-tree-child.active,
.warehouse-tree-child:hover {
  background: #f4f8ff;
  color: var(--brand);
}

.warehouse-main {
  min-width: 0;
  padding: 16px 16px 18px;
  background: #fff;
}

.warehouse-card {
  border: 0;
  background: transparent;
}

.warehouse-toolbar {
  padding: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.warehouse-toolbar .toolbar-left {
  gap: 10px;
}

.warehouse-toolbar .search-box {
  width: 250px;
}

.warehouse-checkbox {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.warehouse-checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.warehouse-table .link-text {
  font-weight: 500;
}

.warehouse-table tbody td:nth-child(5),
.warehouse-table thead th:nth-child(5) {
  text-align: right;
}

.warehouse-table tbody td:nth-child(5) {
  font-variant-numeric: tabular-nums;
}

.warehouse-table tbody td:last-child {
  width: 86px;
}

.warehouse-op-col {
  width: 86px;
  text-align: center;
}

.warehouse-row-selected {
  background: #f2f5fa;
}

.warehouse-tag-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.warehouse-tag {
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
  color: #64748b;
  font-size: 12px;
}

.warehouse-tag.more {
  color: var(--brand);
}

.inventory-chip {
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  white-space: nowrap;
}

.inventory-chip.normal {
  color: #52a239;
  background: #edf7e9;
}

.inventory-chip.low {
  color: #ff4d4f;
  background: #fff1f1;
}

.inventory-chip.high {
  color: #f59e0b;
  background: #fff5e6;
}

.inventory-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.inventory-link {
  color: var(--brand);
  font-size: 12px;
  text-decoration: none;
}

.warehouse-empty {
  height: 360px;
  color: var(--weak);
  text-align: center;
}

.production-side {
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.production-side-title {
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
}

.production-status-list {
  padding: 12px 10px 8px;
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.production-status-item,
.production-workshop-item {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: #334155;
  font-size: 14px;
}

.production-status-item em,
.production-workshop-item em {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3fb;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.production-status-item.active,
.production-workshop-item.active {
  background: #dcecff;
  color: var(--brand);
  font-weight: 600;
}

.production-status-item.active em,
.production-workshop-item.active em {
  background: rgba(22, 119, 255, 0.12);
  color: var(--brand);
}

.production-workshop-list {
  flex: 1;
  min-height: 0;
  padding: 12px 10px 16px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.production-main {
  min-width: 0;
  padding: 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.production-head {
  padding: 4px 2px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.production-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.production-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.production-summary {
  min-width: 148px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  justify-items: end;
  background: #fff;
}

.production-summary span {
  color: var(--muted);
  font-size: 12px;
}

.production-summary strong {
  font-size: 16px;
}

.production-top-tabs {
  padding-right: 18px;
}

.production-toolbar {
  padding-top: 14px;
}

.production-checkbox {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.production-checkbox input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.production-table {
  display: none;
}

.production-table.active {
  display: table;
}

.action-col-wide {
  width: 112px;
}

.production-table .qty-cell,
.production-table .lock-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#productionPendingTable {
  table-layout: auto;
}

#productionPendingTable th:nth-child(1),
#productionPendingTable td:nth-child(1) {
  width: 170px;
}

#productionPendingTable th:nth-child(2),
#productionPendingTable td:nth-child(2) {
  width: 140px;
}

#productionPendingTable th:nth-child(3),
#productionPendingTable td:nth-child(3) {
  min-width: 240px;
}

#productionPendingTable th:nth-child(4),
#productionPendingTable td:nth-child(4) {
  width: 140px;
}

#productionPendingTable th:nth-child(5),
#productionPendingTable td:nth-child(5) {
  width: 140px;
}

#productionPendingTable th:nth-child(6),
#productionPendingTable td:nth-child(6) {
  width: 112px;
  min-width: 112px;
  padding-left: 12px;
  padding-right: 12px;
  text-align: center;
}

#productionDoneTable {
  table-layout: auto;
}

#productionDoneTable th:last-child,
#productionDoneTable td:last-child {
  width: 112px;
  min-width: 112px;
}

.production-table .lock-cell.warn {
  color: var(--danger);
}

.detail-link-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  white-space: nowrap;
}

.detail-link-btn:hover {
  background: var(--brand-soft);
}

.detail-link-btn.danger {
  color: var(--danger);
}

.detail-link-btn.danger:hover {
  background: var(--danger-soft);
}

.detail-link-btn.disabled {
  color: #b3bfcd;
  cursor: not-allowed;
}

.detail-link-btn.disabled:hover {
  background: transparent;
}

.production-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.production-action-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.production-action-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  min-width: 220px;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 196, 119, 0.68);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff7e9 100%);
  box-shadow: 0 14px 28px rgba(146, 101, 18, 0.14);
  color: #8a5a12;
  font-size: 12px;
  line-height: 1.7;
  white-space: normal;
  display: none;
  z-index: 24;
}

.production-action-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff9ee;
  border-right: 1px solid rgba(245, 196, 119, 0.68);
  border-top: 1px solid rgba(245, 196, 119, 0.68);
  transform: translateY(-50%) rotate(45deg);
}

.production-action-tooltip-wrap:hover .production-action-tooltip,
.production-action-tooltip-wrap:focus-within .production-action-tooltip {
  display: block;
}

.production-delivery-cell {
  display: grid;
  gap: 4px;
}

.production-tag {
  width: fit-content;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  background: #f3e8ff;
  font-size: 12px;
}

.production-empty {
  padding: 72px 16px;
  color: var(--weak);
  text-align: center;
  font-size: 13px;
}

.list-toolbar,
.log-filters {
  padding: 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.log-toolbar {
  padding: 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  width: 252px;
  height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7dfea;
  border-radius: 4px;
  background: #fff;
}

.search-box svg,
.icon-square svg,
.pager-btn svg,
.icon-btn svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.search-box input,
.page-jump input,
.log-filters input,
.log-filters select,
.days-field input,
.reason-select,
.reason-textarea,
.confirm-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.search-box input {
  border: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  box-shadow: none;
}

.icon-square,
.ghost-btn,
.primary-action,
.primary-btn,
.pager-btn,
.page-number {
  border: 1px solid var(--line);
  background: #fff;
}

.icon-square {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.primary-action,
.primary-btn {
  height: 32px;
  padding: 0 16px;
  border-radius: 4px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-action:hover,
.primary-btn:hover {
  background: var(--brand-dark);
}

.ghost-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--text);
}

.table-panel {
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ledger-table thead th {
  height: 38px;
  padding: 10px 12px;
  background: #f3f6fa;
  color: #1f2d3d;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.ledger-table thead th.action-col {
  width: 72px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.ledger-table thead th.inbound-action-col {
  width: 156px;
}

.ledger-table thead th:last-child,
.ledger-table tbody td:last-child {
  border-right: 0;
}

.ledger-table tbody td {
  height: 48px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 13px;
}

.ledger-table tbody td:last-child {
  width: 72px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.ledger-table tbody td:last-child.inbound-action-col {
  width: 156px;
}

.ledger-table tbody tr:hover {
  background: #fafcff;
}

.ledger-table tbody tr.voided-row {
  background: #fafafa;
}

.ledger-table tbody tr.blocked-row {
  background: #fffdf6;
}

.link-text,
.action-link,
.business-link {
  color: var(--brand);
  text-decoration: none;
}

.doc-cell,
.product-cell,
.warehouse-cell,
.user-cell,
.reason-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-note {
  color: var(--weak);
  font-size: 12px;
  line-height: 1.4;
}

.warehouse-cell .sub-note {
  display: none;
}

.product-cell .sub-note {
  display: none;
}

.doc-cell .sub-note {
  display: none;
}

.doc-link-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.doc-inline-tag {
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.doc-inline-tag.voided {
  color: var(--danger);
  background: var(--danger-soft);
}

.doc-inline-tag.production {
  color: #9a6c00;
  background: var(--warn-soft);
}

.doc-inline-tag.standard {
  color: var(--brand);
  background: var(--brand-soft);
}

.type-cell {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.help-icon {
  width: 14px;
  height: 14px;
  color: var(--weak);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  background: linear-gradient(135deg, #5b7cfa, #29a4ff);
}

.avatar.alt {
  background: linear-gradient(135deg, #ff9f34, #ffc43d);
}

.avatar.dark {
  background: linear-gradient(135deg, #394958, #111827);
}

.action-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inline-action-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}

.inline-action-links .action-link {
  min-width: auto;
  min-height: 28px;
  padding: 4px 5px;
  border-radius: 6px;
}

.action-stack.open {
  z-index: 40;
}

.action-link {
  min-width: 100%;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--brand);
  background: transparent;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.more-trigger {
  min-width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 0.7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 6px;
}

.more-trigger:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.action-stack.open .more-trigger {
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(22, 119, 255, 0.12);
}

.more-trigger:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.25);
  outline-offset: 2px;
  border-radius: 4px;
}

.action-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 96px;
  padding: 10px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.action-stack.open .action-menu {
  display: flex;
}

.action-menu .action-link {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.action-tooltip-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.action-menu .action-link:hover:not(.disabled) {
  background: var(--brand-soft);
  color: var(--brand);
}

.action-menu .action-link:active:not(.disabled) {
  transform: scale(0.98);
}

.action-link.danger {
  color: var(--danger);
}

.action-menu .action-link.danger:hover:not(.disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

.action-link.disabled {
  color: #b3bfcd;
  cursor: not-allowed;
  opacity: 0.9;
}

.action-tooltip-wrap .action-link.disabled {
  width: 100%;
}

.action-tooltip-card {
  position: absolute;
  right: calc(100% + 12px);
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  max-width: calc(100vw - 32px);
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(245, 196, 119, 0.68);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf7 0%, #fff7e9 100%);
  box-shadow: 0 18px 34px rgba(146, 101, 18, 0.16);
  display: none;
  z-index: 32;
}

.action-tooltip-card::before {
  content: "";
  position: absolute;
  right: -7px;
  left: auto;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #fff9ee;
  border-right: 1px solid rgba(245, 196, 119, 0.68);
  border-top: 1px solid rgba(245, 196, 119, 0.68);
  transform: translateY(-50%) rotate(45deg);
}

.action-tooltip-wrap:hover .action-tooltip-card,
.action-tooltip-wrap:focus-within .action-tooltip-card {
  display: block;
}

.action-tooltip-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(246, 173, 85, 0.16);
  color: #9a5b00;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.action-tooltip-body {
  color: #8a5a12;
  font-size: 12px;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-chip {
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.status-chip.ready {
  color: var(--success);
  background: var(--success-soft);
}

.status-chip.blocked {
  color: #9a6c00;
  background: var(--warn-soft);
}

.status-chip.voided {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-chip.expired {
  color: #677489;
  background: #eef1f5;
}

.pagination-bar {
  padding: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.total-count {
  margin-right: auto;
}

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

.pager-btn,
.page-number {
  min-width: 32px;
  height: 32px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #556274;
}

.page-number.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.page-number.ellipsis {
  pointer-events: none;
}

.page-size {
  min-width: 86px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-jump input {
  width: 44px;
  height: 32px;
  text-align: center;
}

.rules-layout {
  display: flex;
  flex: 1;
}

.card-head {
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rule-form {
  padding: 16px 20px 20px;
  flex: 1;
}

.rules-card {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.rule-footer-actions {
  padding: 0 20px 20px;
  display: flex;
  justify-content: flex-end;
}

.form-row {
  min-height: 76px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-row.nested {
  padding-left: 28px;
}

.form-row.align-start {
  align-items: flex-start;
}

.form-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
}

.switch input {
  display: none;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #b6c1d0;
  transition: 0.15s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: 0.15s ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.days-field {
  width: 140px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.days-field input {
  width: 88px;
  height: 100%;
  border: 0;
  text-align: center;
  font-size: 16px;
}

.days-field em {
  flex: 1;
  border-left: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-style: normal;
}

.days-field.invalid {
  border-color: var(--danger);
}

.reason-panel {
  padding: 18px 0 0;
}

.reason-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reason-tags span {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.rules-side {
  display: grid;
  gap: 16px;
}

.tips-card {
  padding: 18px;
}

.tips-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.tips-card li {
  margin-bottom: 8px;
}

.log-filters {
  padding-bottom: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.log-toolbar .toolbar-left {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.log-toolbar .toolbar-right {
  margin-left: auto;
}

.log-search-box {
  width: 252px;
}

.inline-filter-panel {
  position: absolute;
  left: 176px;
  top: 60px;
  z-index: 30;
  padding: 0;
}

.inline-filter-panel-backoffice {
  left: 184px;
  top: 60px;
}

.inline-filter-card {
  width: 520px;
  padding: 16px 18px 18px;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.inline-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.inline-filter-head h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
}

.inline-filter-grid {
  display: grid;
  gap: 12px;
}

.log-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.log-filters input,
.log-filters select {
  height: 32px;
  padding: 0 10px;
}

.log-table th:nth-child(7),
.log-table td:nth-child(7) {
  width: 220px;
}

.log-note {
  color: var(--weak);
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%) translateY(-16px);
  min-width: 180px;
  max-width: 420px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  text-align: center;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(18, 27, 41, 0.45);
  z-index: 120;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  width: 780px;
  max-height: calc(100vh - 80px);
  overflow: auto;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--gray-soft);
}

.modal-shell {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.impact-card,
.block-card,
.detail-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.product-info-card {
  padding: 0;
  overflow: hidden;
}

.product-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.product-info-table th,
.product-info-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.product-info-table th:last-child,
.product-info-table td:last-child {
  border-right: 0;
}

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

.product-info-table th {
  background: #f3f6fa;
  color: #1f2d3d;
  font-size: 13px;
  font-weight: 500;
}

.product-info-table td {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.product-info-qty {
  color: var(--text);
}

.product-info-table-void th:nth-child(1),
.product-info-table-void td:nth-child(1) {
  width: 34%;
}

.product-info-table-void th:nth-child(2),
.product-info-table-void td:nth-child(2) {
  width: 24%;
}

.product-info-table-void th:nth-child(3),
.product-info-table-void td:nth-child(3),
.product-info-table-void th:nth-child(4),
.product-info-table-void td:nth-child(4) {
  width: 21%;
}

.void-qty-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.void-qty-cell em {
  min-width: 54px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
  color: #6b7280;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.impact-card {
  border-color: #f3d5a3;
  background: #fffaf0;
}

.block-card {
  border-color: #f5c4c7;
  background: var(--danger-soft);
}

.impact-card h4,
.block-card h4,
.detail-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.impact-card ul,
.block-card ul,
.detail-grid,
.rule-summary-list {
  margin: 0;
  padding: 0;
}

.impact-card ul,
.block-card ul,
.rule-summary-list {
  padding-left: 18px;
}

.impact-card li,
.block-card li,
.rule-summary-list li {
  margin-bottom: 8px;
  color: #374151;
  line-height: 1.6;
}

.void-outbound-tip {
  margin-bottom: 14px;
}

.void-outbound-tip-text {
  color: #8a5a12;
  font-size: 13px;
  line-height: 1.7;
}

.void-tip-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.void-tip-dismiss {
  flex: 0 0 auto;
  padding: 2px 0;
  color: #9a6c00;
  background: transparent;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  text-decoration: underline;
}

.void-tip-dismiss:hover {
  color: #704f00;
}

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

.detail-grid li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.detail-grid strong {
  color: var(--text);
}

.detail-section-block {
  display: grid;
  gap: 12px;
}

.detail-head-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-section-title {
  position: relative;
  padding-left: 12px;
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.detail-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
}

.detail-business-no {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.detail-info-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.detail-info-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.detail-info-item strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  word-break: break-all;
}

.detail-extra-block {
  display: grid;
  gap: 16px;
}

.detail-extra-item {
  display: grid;
  gap: 8px;
}

.detail-field-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-note-text {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.detail-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-attachment-pill {
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.detail-empty-text {
  color: var(--weak);
  font-size: 13px;
  line-height: 1.6;
}

.attachment-dropzone {
  min-height: 146px;
  padding: 22px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--weak);
  background: #fff;
  cursor: pointer;
}

.attachment-dropzone:hover {
  border-color: var(--brand);
  background: #fbfdff;
}

.attachment-dropzone svg {
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 50%;
  color: #5b8def;
  background: #eaf3ff;
}

.attachment-dropzone strong {
  color: #596579;
  font-size: 13px;
  font-weight: 500;
}

.attachment-dropzone span {
  color: var(--weak);
  font-size: 12px;
}

.detail-remark-wrap {
  position: relative;
}

.detail-remark-textarea {
  width: 100%;
  min-height: 116px;
  padding: 12px 42px 28px 12px;
  resize: vertical;
  border: 1px solid #d7e1ee;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.detail-remark-textarea:focus,
.reason-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.detail-remark-count {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: var(--weak);
  font-size: 12px;
}

.void-info-section {
  padding-top: 2px;
}

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

.form-field label {
  font-weight: 600;
}

.required-mark {
  color: #ff4d4f;
}

.reason-select,
.confirm-input,
.reason-textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
}

.reason-textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.field-hint {
  color: var(--weak);
  font-size: 12px;
  line-height: 1.5;
}

.field-error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  display: none;
}

.form-field.error .field-error {
  display: block;
}

.form-field.error .reason-select,
.form-field.error .confirm-input,
.form-field.error .reason-textarea {
  border-color: var(--danger);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.production-modal {
  width: min(1200px, calc(100vw - 96px));
  max-width: 1200px;
}

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

.detail-tabs {
  padding: 0 24px;
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-tab {
  height: 48px;
  padding: 0 10px;
  position: relative;
  background: transparent;
  color: #334155;
  font-size: 14px;
}

.detail-tab.active {
  color: var(--brand);
  font-weight: 600;
}

.detail-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}

.detail-panel {
  display: none;
  padding: 0 24px 24px;
}

.detail-panel.active {
  display: block;
}

.warehouse-detail-shell .detail-tabs {
  padding: 0 24px;
}

.warehouse-detail-shell .detail-panel {
  padding: 0 24px 24px;
}

.warehouse-detail-overview .detail-side-card,
.warehouse-detail-overview .detail-main-card {
  min-height: 240px;
}

.warehouse-detail-toolbar {
  padding: 18px 0 16px;
  justify-content: flex-start;
}

.warehouse-detail-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.warehouse-detail-check input {
  margin: 0;
}

.detail-overview {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 18px;
}

.detail-side-card,
.detail-main-card {
  min-height: 508px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.detail-side-card {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-cover {
  width: 52px;
  height: 52px;
  border: 2px dashed #d5deea;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--weak);
}

.detail-cover svg {
  width: 28px;
  height: 28px;
}

.detail-side-card h4,
.detail-main-card h4 {
  margin: 0;
  font-size: 15px;
}

.detail-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.detail-side-card .detail-stat {
  display: grid;
  gap: 2px;
}

.detail-side-card .detail-stat strong {
  font-size: 26px;
  line-height: 1;
}

.detail-side-card .detail-list {
  display: grid;
  gap: 8px;
}

.detail-list-row {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 13px;
}

.detail-main-card {
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.detail-block {
  min-height: 126px;
  padding: 18px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fbfcfe;
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-block h5 {
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
  font-size: 14px;
}

.detail-block.empty {
  place-items: center;
  color: var(--weak);
}

.detail-block.empty h5 {
  justify-self: stretch;
}

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

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

.detail-meta-item span {
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-item strong {
  font-size: 14px;
  font-weight: 600;
}

.detail-table-toolbar {
  padding: 18px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.detail-table-wrap.empty {
  min-height: 430px;
  display: grid;
  place-items: center;
  color: var(--weak);
  background: #fff;
}

.detail-table-wrap.compact {
  border-radius: 8px;
}

.produced-void-shell {
  display: grid;
  gap: 12px;
}

.produced-head-card,
.produced-content-card {
  padding: 20px 22px;
}

.produced-section-title {
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--brand);
  color: #1f2d3d;
  font-size: 14px;
  font-weight: 700;
}

.produced-base-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.produced-base-item {
  display: grid;
  gap: 8px;
}

.produced-base-item span {
  color: var(--muted);
  font-size: 13px;
}

.produced-base-item strong {
  color: #1f2d3d;
  font-size: 15px;
  font-weight: 600;
}

.produced-summary-list {
  display: grid;
  gap: 14px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.produced-summary-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.produced-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #1f2d3d;
}

.produced-summary-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.produced-summary-desc {
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.detail-record-table tbody td:last-child {
  width: auto;
  text-align: left;
}

.detail-record-table tbody td {
  height: 46px;
}

.filter-modal-shell {
  padding: 16px 16px 20px;
  display: grid;
  gap: 12px;
}

.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.filter-clear-btn {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  background: #fff;
  color: #98a2b3;
  font-size: 13px;
}

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

.filter-row {
  display: grid;
  grid-template-columns: 160px 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.filter-control,
.filter-value-input,
.filter-date-input {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d9dee8;
  border-radius: 4px;
  background: #fff;
  color: #344054;
  font-size: 14px;
}

.filter-control {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #98a2b3 50%),
    linear-gradient(135deg, #98a2b3 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 13px,
    calc(100% - 11px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.filter-control:disabled {
  color: #b7bfcc;
  background-color: #f7f9fc;
  border-color: #e3e8f1;
  cursor: not-allowed;
  pointer-events: none;
}

.filter-control:disabled,
.filter-control:disabled option {
  -webkit-text-fill-color: #b7bfcc;
}

.filter-value-input::placeholder,
.filter-date-input::placeholder {
  color: #b7bfcc;
}

.filter-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.inline-date-range {
  grid-template-columns: 18px minmax(0, 1fr) 10px minmax(0, 1fr);
  gap: 8px;
}

.date-range-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c0c9d6;
}

.date-range-icon svg {
  width: 14px;
  height: 14px;
}

.filter-date-input {
  cursor: pointer;
}

.filter-date-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.filter-date-separator {
  color: #b7bfcc;
  text-align: center;
  font-size: 13px;
}

.filter-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.primary-btn[disabled],
.ghost-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.mobile-wrap {
  min-height: calc(100vh - 54px);
  padding: 20px 0 34px;
  background: #dfe5ee;
}

.phone {
  width: 390px;
  min-height: 844px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #f5f7fb;
  box-shadow: 0 14px 38px rgba(31, 45, 61, 0.22);
  overflow: hidden;
}

.mobile-status {
  height: 30px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
}

.mobile-top {
  padding: 10px 14px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-title-row h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.mobile-pill {
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
}

.mobile-search {
  height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--weak);
  background: #f8fafc;
  font-size: 13px;
}

.mobile-tabs {
  height: 42px;
  padding: 0 12px;
  display: flex;
  gap: 10px;
  align-items: end;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-tabs button {
  height: 40px;
  padding: 0 4px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
}

.mobile-tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.mobile-canvas {
  padding: 12px;
  min-height: 610px;
}

.mobile-preview {
  min-height: 586px;
  padding: 16px;
  border: 1px dashed #cfd8e6;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(230, 236, 246, 0.5) 1px, transparent 1px),
    linear-gradient(180deg, rgba(230, 236, 246, 0.5) 1px, transparent 1px),
    #fbfcff;
  background-size: 24px 24px;
}

.mobile-preview-card,
.mobile-preview-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.mobile-preview-card {
  padding: 14px;
}

.mobile-preview-list {
  margin-top: 12px;
}

.mobile-row {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-row:last-child {
  border-bottom: 0;
}

.mobile-row em {
  color: var(--brand);
  font-style: normal;
  font-weight: 600;
}

.bottom-nav {
  height: 58px;
  padding: 6px 10px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.nav-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: inherit;
  background: #f1f4f8;
  font-size: 11px;
}

.bottom-nav button.active {
  color: var(--brand);
  font-weight: 600;
}

.bottom-nav button.active .nav-dot {
  color: #fff;
  background: var(--brand);
}

/* Visual polish layer: improve hierarchy and component finish without changing DOM or JS behavior. */
:root {
  --brand: #1f6fff;
  --brand-dark: #1558ce;
  --brand-soft: #edf4ff;
  --text: #162033;
  --muted: #66758d;
  --weak: #8f9bb0;
  --line: #d9e3ef;
  --line-soft: #edf2f8;
  --bg: #edf3f9;
  --panel: #ffffff;
  --nav: #3b4b5f;
  --nav-soft: rgba(255, 255, 255, 0.12);
  --gray-soft: #f6f9fc;
  --radius: 12px;
  --shadow: 0 18px 44px rgba(18, 35, 61, 0.1);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(77, 135, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #f4f8fc 0%, #eef3f9 34%, #edf3f9 100%);
}

button,
input,
select,
textarea {
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.prototype-toolbar {
  height: 54px;
  padding: 0 18px 0 20px;
  background: linear-gradient(180deg, #415266 0%, #39495d 100%);
  box-shadow: 0 8px 24px rgba(15, 28, 48, 0.16);
}

.proto-title {
  gap: 12px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.proto-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4090ff 0%, #1f6fff 100%);
  box-shadow: 0 8px 16px rgba(31, 111, 255, 0.28);
}

.segmented {
  height: 36px;
  padding: 4px;
  gap: 4px;
  border-radius: 10px;
  background: rgba(236, 241, 247, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.segmented button {
  min-width: 76px;
  border-radius: 8px;
  font-weight: 500;
}

.segmented button.active {
  box-shadow:
    0 6px 14px rgba(31, 45, 61, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.toolbar-actions {
  gap: 16px;
}

.top-icons {
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.top-tool-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
}

.top-tool-btn:hover,
.top-tool-btn.active {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.top-tool-divider {
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.pc-shell {
  grid-template-columns: 152px minmax(0, 1fr);
}

.side-nav {
  padding: 16px 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, #405165 0%, #37475a 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.brand-row {
  height: 42px;
  padding: 0 6px 0 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  box-shadow:
    0 6px 16px rgba(7, 18, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-section {
  padding: 6px 0;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-item {
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  gap: 8px;
  font-size: 13px;
}

.nav-item:hover,
.nav-item.active,
.nav-item.active-ghost {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-badge {
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  box-shadow: 0 4px 10px rgba(255, 77, 79, 0.3);
}

.nav-foot {
  height: 34px;
  padding: 0 4px;
}

.foot-icon {
  opacity: 0.9;
}

.pc-content {
  padding: 16px 18px 28px;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 112px),
    var(--bg);
}

.page-toolbar {
  align-items: stretch;
}

.page-heading h1 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-heading p,
.card-head p,
.form-row span,
.tips-card li,
.page-jump,
.mobile-preview-card p {
  color: var(--muted);
}

.summary-pill,
.kpi-card,
.content-tabs,
.list-card,
.log-card,
.rules-card,
.tips-card,
.production-card,
.delivery-shell,
.manual-page-shell,
.backoffice-shell,
.production-shell,
.warehouse-shell,
.detail-side-card,
.detail-main-card,
.detail-block,
.impact-card,
.block-card,
.detail-card,
.modal,
.inline-filter-card,
.backoffice-table-card {
  box-shadow: var(--shadow);
}

.summary-pill {
  min-width: 184px;
  padding: 16px 18px;
  border-color: rgba(217, 227, 239, 0.92);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}

.summary-pill strong {
  font-size: 30px;
}

.kpi-strip {
  gap: 14px;
}

.kpi-card {
  padding: 18px 20px;
  border-color: rgba(217, 227, 239, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 254, 0.96));
}

.kpi-card strong {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.content-tabs {
  padding: 8px;
  gap: 10px;
  border-radius: 16px;
  border-color: rgba(217, 227, 239, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.content-tab-group {
  gap: 8px;
}

.content-tab {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 500;
}

.content-tab.active {
  background: linear-gradient(180deg, #f4f8ff 0%, #e9f2ff 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 255, 0.12);
}

.tab-badge,
.dot-badge {
  min-width: 20px;
  height: 20px;
}

.list-card,
.log-card,
.rules-card,
.tips-card,
.production-card {
  border-color: rgba(217, 227, 239, 0.92);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.97));
}

.delivery-shell,
.production-shell,
.warehouse-shell,
.manual-page-shell,
.backoffice-shell {
  border-radius: 16px;
}

.delivery-subnav {
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

.delivery-subnav-item {
  height: 40px;
  border-radius: 10px;
}

.delivery-subnav-item:hover {
  background: #f3f8ff;
  color: var(--brand);
}

.delivery-subnav-item.active {
  background: linear-gradient(180deg, #eef5ff 0%, #e4efff 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 255, 0.1);
}

.delivery-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.delivery-table-panel {
  border-radius: 14px;
}

.delivery-type-tag {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.delivery-action-menu {
  top: calc(100% + 10px);
  min-width: 118px;
}

.status-nav {
  height: 54px;
  padding: 0 20px;
  gap: 22px;
  border-bottom-color: rgba(217, 227, 239, 0.88);
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.9), rgba(255, 255, 255, 0.98));
}

.status-nav button {
  height: 54px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 500;
}

.status-nav button.active::after {
  height: 3px;
  background: linear-gradient(90deg, #1f6fff, #4c92ff);
}

.list-toolbar,
.log-filters,
.log-toolbar {
  padding: 18px 20px 0;
  gap: 14px;
}

.toolbar-left,
.toolbar-right {
  gap: 10px;
}

.search-box {
  width: 276px;
  height: 38px;
  padding: 0 12px;
  gap: 10px;
  border-color: #d5e0ec;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-box:hover {
  border-color: #bfd0e4;
}

.search-box:focus-within {
  border-color: rgba(31, 111, 255, 0.55);
  box-shadow:
    0 0 0 4px rgba(31, 111, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box svg,
.icon-square svg,
.pager-btn svg,
.icon-btn svg {
  color: #7e8ca3;
}

.search-box input::placeholder {
  color: #9aa8bc;
}

.icon-square,
.ghost-btn,
.primary-action,
.primary-btn,
.pager-btn,
.page-number,
.page-size,
.days-field,
.filter-control,
.filter-value-input,
.filter-date-input,
.manual-remark-textarea,
.manual-upload-box,
.settings-menu,
.manual-dropdown,
.table-panel {
  border-color: rgba(217, 227, 239, 0.92);
}

.icon-square {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.icon-square:hover,
.ghost-btn:hover,
.pager-btn:hover,
.page-number:hover:not(.active):not(.ellipsis) {
  border-color: #bfd0e4;
  background: #f7faff;
}

.primary-action,
.primary-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f82ff 0%, #1f6fff 100%);
  box-shadow: 0 10px 20px rgba(31, 111, 255, 0.2);
  font-weight: 600;
}

.primary-action:hover,
.primary-btn:hover {
  background: linear-gradient(180deg, #2a7bf5 0%, #1558ce 100%);
  transform: translateY(-1px);
}

.ghost-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
}

.table-panel {
  margin: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ledger-table thead th {
  height: 42px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f7faff 0%, #f1f5fa 100%);
  color: #243247;
  border-right-color: #e4ebf4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ledger-table tbody td {
  height: 52px;
  padding: 12px 14px;
  border-right-color: #edf2f8;
  background: rgba(255, 255, 255, 0.82);
}

.ledger-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(244, 248, 255, 0.95), rgba(250, 252, 255, 0.95));
}

.ledger-table tbody tr:hover td {
  background: transparent;
}

.ledger-table tbody tr.voided-row {
  background: linear-gradient(90deg, rgba(250, 250, 250, 0.96), rgba(245, 247, 250, 0.96));
}

.ledger-table tbody tr.blocked-row {
  background: linear-gradient(90deg, rgba(255, 251, 240, 0.98), rgba(255, 254, 247, 0.98));
}

.doc-cell,
.product-cell,
.warehouse-cell,
.user-cell,
.reason-cell {
  gap: 5px;
}

.sub-note {
  color: #8b98ab;
  line-height: 1.5;
}

.doc-inline-tag,
.status-chip {
  height: 22px;
  padding: 0 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.status-chip.ready {
  color: #127953;
  background: linear-gradient(180deg, #eefaf3 0%, #e6f7ee 100%);
}

.status-chip.blocked {
  color: #9b6b00;
  background: linear-gradient(180deg, #fff8e8 0%, #fff3d3 100%);
}

.status-chip.voided {
  color: #c4373f;
  background: linear-gradient(180deg, #fff1f3 0%, #ffe7ea 100%);
}

.status-chip.expired {
  color: #607086;
  background: linear-gradient(180deg, #f2f5f8 0%, #e9eef4 100%);
}

.avatar {
  width: 28px;
  height: 28px;
  box-shadow: 0 6px 14px rgba(31, 111, 255, 0.16);
}

.avatar.alt {
  box-shadow: 0 6px 14px rgba(255, 159, 52, 0.16);
}

.avatar.dark {
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
}

.action-link {
  border-radius: 10px;
}

.more-trigger {
  min-width: 30px;
  height: 30px;
  border-radius: 10px;
}

.action-menu {
  top: calc(100% + 10px);
  min-width: 108px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.pagination-bar {
  padding: 4px 20px 18px;
  gap: 10px;
}

.pager {
  gap: 6px;
}

.pager-btn,
.page-number,
.page-size {
  height: 34px;
  border-radius: 10px;
}

.pager-btn,
.page-number {
  min-width: 34px;
}

.page-size {
  min-width: 92px;
}

.page-jump input {
  width: 46px;
  height: 34px;
  border-radius: 10px;
}

.backoffice-shell,
.production-shell,
.warehouse-shell,
.manual-page-shell {
  border-radius: 16px;
}

.backoffice-side,
.warehouse-side {
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

.backoffice-breadcrumb {
  height: 56px;
  padding: 0 16px;
}

.backoffice-menu {
  padding: 14px 10px;
  gap: 10px;
}

.backoffice-menu-item {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
}

.backoffice-menu-item:hover {
  background: #f3f8ff;
  color: var(--brand);
}

.backoffice-menu-item.active {
  background: linear-gradient(180deg, #eef5ff 0%, #e4efff 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 255, 0.1);
}

.backoffice-content,
.warehouse-main {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.backoffice-table-card {
  border-radius: 14px;
}

.backoffice-table-head {
  min-height: 42px;
  background: linear-gradient(180deg, #f7faff 0%, #f1f5fa 100%);
}

.head-col,
.bo-cell {
  padding: 12px 14px;
}

.bo-row {
  min-height: 48px;
}

.bo-row:hover {
  background: #f8fbff;
}

.rules-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.rule-form {
  padding: 18px 22px 22px;
}

.form-row {
  min-height: 88px;
  padding: 18px 0;
}

.form-row strong {
  margin-bottom: 6px;
}

.days-field {
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.days-field input {
  font-size: 18px;
  font-weight: 600;
}

.manual-page-card,
.manual-page-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 255, 0.98));
}

.manual-line-table,
.manual-dropdown,
.settings-menu,
.inline-filter-card,
.modal,
.detail-side-card,
.detail-main-card,
.detail-block {
  border-radius: 14px;
}

.manual-inbound-table thead th,
.manual-outbound-table thead th {
  height: 42px;
  background: linear-gradient(180deg, #f7faff 0%, #f1f5fa 100%);
  color: #243247;
  font-size: 12px;
  font-weight: 600;
}

.manual-inbound-table tbody td,
.manual-outbound-table tbody td {
  background: rgba(255, 255, 255, 0.86);
}

.manual-cell-icon,
.manual-add-row,
.backoffice-add-row {
  border-radius: 10px;
}

.manual-add-row,
.backoffice-add-row {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  font-weight: 500;
}

.manual-upload-box {
  border-style: dashed;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.inline-filter-card {
  width: 544px;
  padding: 18px 20px 20px;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.inline-filter-head h3 {
  font-size: 17px;
}

.filter-control,
.filter-value-input,
.filter-date-input {
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.modal-backdrop {
  background: rgba(17, 26, 41, 0.52);
  backdrop-filter: blur(4px);
}

.modal {
  border: 1px solid rgba(217, 227, 239, 0.88);
}

.modal-head {
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.toast {
  min-width: 208px;
  border-radius: 12px;
  background: rgba(18, 27, 41, 0.92);
  box-shadow: 0 16px 34px rgba(18, 27, 41, 0.2);
}

.mobile-wrap {
  padding: 28px 0 42px;
  background:
    radial-gradient(circle at top center, rgba(84, 128, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #dfe6f0 0%, #d8e0ea 100%);
}

.phone {
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
  box-shadow:
    0 28px 60px rgba(31, 45, 61, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.mobile-status,
.mobile-top,
.mobile-tabs,
.bottom-nav {
  background: rgba(255, 255, 255, 0.96);
}

.mobile-top {
  padding: 14px 16px 14px;
}

.mobile-title-row h1 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.mobile-pill {
  background: linear-gradient(180deg, #eef5ff 0%, #e4efff 100%);
}

.mobile-search {
  height: 38px;
  margin-top: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f9fbff 0%, #f3f7fb 100%);
}

.mobile-tabs {
  height: 46px;
  padding: 0 14px;
}

.mobile-tabs button {
  height: 44px;
}

.mobile-canvas {
  padding: 14px;
}

.mobile-preview {
  min-height: 590px;
  padding: 18px;
  border: 1px solid rgba(209, 220, 235, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.92)),
    linear-gradient(90deg, rgba(230, 236, 246, 0.38) 1px, transparent 1px),
    linear-gradient(180deg, rgba(230, 236, 246, 0.38) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
}

.mobile-preview-card,
.mobile-preview-list {
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(18, 35, 61, 0.08);
}

.mobile-row {
  padding: 15px 16px;
}

.bottom-nav {
  height: 62px;
  padding: 8px 12px 10px;
}

.nav-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

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

  .pc-shell {
    min-width: 1200px;
  }
}

@media (max-width: 1440px) {
  .produced-base-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
