:root {
	--ft-primary: #176b87;
	--ft-primary-dark: #0f4f68;
	--ft-primary-soft: #e8f4f7;
	--ft-accent: #18a999;
	--ft-bg: #f4f7fa;
	--ft-surface: #ffffff;
	--ft-border: #dfe7ee;
	--ft-text: #1f2937;
	--ft-muted: #64748b;
	--ft-success: #158f72;
	--ft-warning: #d98212;
	--ft-danger: #d64550;
	--ft-radius: 10px;
	--ft-shadow: 0 8px 24px rgba(31, 53, 72, 0.07);
	--ft-space-1: 4px;
	--ft-space-2: 8px;
	--ft-space-3: 12px;
	--ft-space-4: 16px;
	--ft-space-5: 24px;
	--ft-control-height: 40px;

	--primary: var(--ft-primary);
	--primary-color: var(--ft-primary);
	--bg-color: var(--ft-bg);
	--fg-color: var(--ft-surface);
	--card-bg: var(--ft-surface);
	--border-color: var(--ft-border);
	--text-color: var(--ft-text);
	--text-muted: var(--ft-muted);
}

/* 客户录单双工作区：识别与物流交接合并在左侧，拆分后的客户资料集中在右侧。 */
.customer-order-workbench .customer-entry-grid {
	display: grid !important;
	grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr) !important;
	gap: 18px !important;
	align-items: start !important;
}

.customer-order-workbench .customer-input-stack {
	min-width: 0;
	padding: 14px 16px 16px;
	border: 1px solid #cfe3ea;
	border-radius: 13px;
	background: linear-gradient(150deg, #f1fafc 0%, #fbfdfe 100%);
	box-shadow: 0 5px 16px rgba(31, 70, 91, .05);
}

.customer-order-workbench .customer-details-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 11px 16px;
	min-width: 0;
	align-items: start;
}

.customer-order-workbench .customer-input-stack > .frappe-control,
.customer-order-workbench .customer-details-grid > .frappe-control {
	min-width: 0;
	margin: 0 !important;
}

.customer-order-workbench .customer-input-stack [data-customer-field="customer_raw_input"],
.customer-order-workbench .customer-input-stack [data-customer-field="logistics_handoff_info"] {
	grid-column: auto !important;
	grid-row: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.customer-order-workbench .customer-input-stack [data-customer-field="logistics_handoff_info"] {
	margin-top: 20px !important;
	padding-top: 16px !important;
	border-top: 1px solid #d8e8ed !important;
}

.customer-order-workbench .customer-details-grid [data-customer-field="customer_name"] { grid-column: 1 / 4 !important; grid-row: 1 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="mobile_no"] { grid-column: 4 / 7 !important; grid-row: 1 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="country"] { grid-column: 1 / 4 !important; grid-row: 2 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="email"] { grid-column: 4 / 7 !important; grid-row: 2 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="city"] { grid-column: 1 / 3 !important; grid-row: 3 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="state"] { grid-column: 3 / 5 !important; grid-row: 3 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="postal_code"] { grid-column: 5 / 7 !important; grid-row: 3 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="address"] { grid-column: 1 / 7 !important; grid-row: 4 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="order_date"] { grid-column: 1 / 3 !important; grid-row: 5 !important; }
.customer-order-workbench .customer-details-grid [data-customer-field="business_order_no"] { grid-column: 3 / 7 !important; grid-row: 5 !important; }

@media (min-width: 1200px) {
	.customer-order-workbench .customer-entry-grid {
		grid-template-columns: minmax(340px, 4fr) minmax(0, 8fr) !important;
		gap: 20px !important;
	}
	.customer-order-workbench .customer-details-grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
	.customer-order-workbench .customer-details-grid [data-customer-field="customer_name"] { grid-column: 1 / 5 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="mobile_no"] { grid-column: 5 / 9 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="country"] { grid-column: 1 / 5 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="email"] { grid-column: 5 / 9 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="city"] { grid-column: 1 / 4 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="state"] { grid-column: 4 / 7 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="postal_code"] { grid-column: 7 / 9 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="address"] { grid-column: 1 / 9 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="order_date"] { grid-column: 1 / 4 !important; }
	.customer-order-workbench .customer-details-grid [data-customer-field="business_order_no"] { grid-column: 4 / 9 !important; }
}

@media (max-width: 767px) {
	.customer-order-workbench .customer-entry-grid,
	.customer-order-workbench .customer-details-grid {
		display: block !important;
	}
	.customer-order-workbench .customer-input-stack {
		margin-bottom: 14px;
	}
	.customer-order-workbench .customer-details-grid > .frappe-control {
		margin-bottom: 11px !important;
	}
}

html,
body,
button,
input,
select,
textarea {
	font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif !important;
}

body {
	color: var(--ft-text);
	background: var(--ft-bg);
	-webkit-font-smoothing: antialiased;
}

/* Top navigation */
.navbar,
.desk-navbar {
	background: rgba(255, 255, 255, 0.96) !important;
	border-bottom: 1px solid rgba(223, 231, 238, 0.9) !important;
	box-shadow: 0 2px 12px rgba(31, 53, 72, 0.05);
	backdrop-filter: blur(12px);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-nav > li > a {
	color: var(--ft-text) !important;
}

.navbar .navbar-brand img,
.app-logo {
	max-height: 32px;
}

/* Page header and content rhythm */
.page-head {
	background: rgba(244, 247, 250, 0.94) !important;
	border-bottom: 1px solid rgba(223, 231, 238, 0.75);
	backdrop-filter: blur(10px);
}

.page-head .page-title .title-text,
.page-title .title-text {
	color: #15384a;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.layout-main-section,
.layout-side-section {
	padding-top: 12px;
}

.layout-main-section-wrapper {
	background: transparent;
}

/* The application shell follows one rhythm everywhere: constrained reading
   width, content-sized controls and an 8px spacing scale. */
.foreign-trade-ui .page-container,
.foreign-trade-ui .layout-main-section-wrapper {
	width: 100%;
	max-width: 1560px !important;
	margin-inline: auto;
}

.foreign-trade-ui .layout-main-section {
	padding-inline: clamp(12px, 1.6vw, 24px);
}

/* Sidebar navigation */
.layout-side-section,
.desk-sidebar {
	color: var(--ft-muted);
}

.standard-sidebar .standard-sidebar-item,
.desk-sidebar .sidebar-item,
.sidebar-menu .sidebar-item {
	min-height: 38px;
	margin: 2px 0;
	padding: 8px 10px;
	border-radius: 8px;
	transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.standard-sidebar .standard-sidebar-item:hover,
.desk-sidebar .sidebar-item:hover,
.sidebar-menu .sidebar-item:hover {
	color: var(--ft-primary-dark);
	background: var(--ft-primary-soft);
	transform: translateX(2px);
}

.standard-sidebar .standard-sidebar-item.selected,
.standard-sidebar .standard-sidebar-item.active,
.desk-sidebar .sidebar-item.selected {
	color: var(--ft-primary-dark) !important;
	font-weight: 600;
	background: linear-gradient(90deg, #dff2f5 0%, #edf8f8 100%) !important;
	box-shadow: inset 3px 0 0 var(--ft-primary);
}

/* Cards, workspace blocks and dashboards */
.frappe-card,
.widget,
.widget-group,
.dashboard-widget-box,
.form-dashboard-section,
.form-section.card-section,
.list-row-container,
.report-wrapper,
.kanban-column,
.number-card {
	border-color: var(--ft-border) !important;
	border-radius: var(--ft-radius) !important;
}

.frappe-card,
.widget,
.dashboard-widget-box,
.form-section.card-section,
.number-card {
	background: var(--ft-surface) !important;
	box-shadow: var(--ft-shadow);
}

.widget.shortcut-widget-box,
.widget.links-widget-box,
.widget.number-widget-box {
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.widget.shortcut-widget-box:hover,
.widget.links-widget-box:hover,
.widget.number-widget-box:hover {
	border-color: #b9d8e2 !important;
	box-shadow: 0 12px 28px rgba(23, 107, 135, 0.11);
	transform: translateY(-2px);
}

.widget .widget-title,
.widget-group .widget-group-head .widget-title,
.dashboard-widget-box .widget-head .widget-title {
	color: #24495c;
	font-weight: 650;
}

/* Lists and tables */
.list-row,
.list-row-head,
.data-row,
.grid-heading-row,
.grid-row {
	border-color: var(--ft-border) !important;
}

.list-row-head,
.grid-heading-row {
	color: #536879;
	font-weight: 600;
	background: #f7fafc;
}

.list-row,
.data-row,
.grid-row {
	transition: background-color 120ms ease;
}

.list-row:hover,
.data-row:hover,
.grid-row:hover {
	background: #f2f8fa !important;
}

/* Forms */
.form-control,
.input-with-feedback,
.control-input .form-control,
.awesomplete > input,
.multiselect-list .input-with-feedback {
	min-height: var(--ft-control-height);
	color: var(--ft-text);
	background: #fbfdfe !important;
	border: 1px solid #d8e2e9 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.form-control:focus,
.input-with-feedback:focus,
.control-input .form-control:focus,
.awesomplete > input:focus {
	background: #fff !important;
	border-color: var(--ft-primary) !important;
	box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.13) !important;
}

.control-label,
.form-label {
	color: #475b6a;
	font-weight: 600;
}

.foreign-trade-ui .form-section.card-section {
	overflow: visible;
}

.foreign-trade-ui .form-section .section-body {
	padding-top: 2px;
}

.foreign-trade-ui .like-disabled-input,
.foreign-trade-ui .control-value {
	min-height: var(--ft-control-height);
	display: flex;
	align-items: center;
	padding: 8px 11px;
	border: 1px solid #e3eaee;
	border-radius: 8px;
	background: #f7f9fa;
}

.section-head,
.form-section .section-head {
	color: #20475b;
	font-weight: 700;
}

/* Buttons */
.btn {
	min-height: 32px;
	border-radius: 8px !important;
	font-weight: 600;
	box-shadow: none !important;
	transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary,
.btn.btn-primary {
	color: #fff !important;
	background: linear-gradient(135deg, var(--ft-primary) 0%, #138a91 100%) !important;
	border-color: transparent !important;
	box-shadow: 0 5px 14px rgba(23, 107, 135, 0.2) !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
	background: linear-gradient(135deg, var(--ft-primary-dark) 0%, #0d747c 100%) !important;
}

.btn-default,
.btn-secondary {
	color: #375466 !important;
	background: #fff !important;
	border-color: #d5e0e7 !important;
}

/* Status is readable without relying on color alone. */
.indicator-pill,
.indicator-pill-right {
	padding: 4px 9px;
	border-radius: 999px;
	font-weight: 650;
}

.indicator-pill.green,
.indicator-pill-right.green {
	color: #08735b;
	background: #dcf5ed;
}

.indicator-pill.blue,
.indicator-pill-right.blue {
	color: #155f83;
	background: #e1f1f8;
}

.indicator-pill.orange,
.indicator-pill-right.orange,
.indicator-pill.yellow,
.indicator-pill-right.yellow {
	color: #9a5a05;
	background: #fff0d5;
}

.indicator-pill.red,
.indicator-pill-right.red {
	color: #a72e3a;
	background: #fde5e8;
}

/* Menus and dialogs */
.dropdown-menu,
.modal-content,
.popover {
	border: 1px solid var(--ft-border) !important;
	border-radius: 10px !important;
	box-shadow: 0 18px 45px rgba(31, 53, 72, 0.16) !important;
}

.dropdown-item,
.dropdown-menu > li > a {
	border-radius: 6px;
}

.dropdown-item:hover,
.dropdown-menu > li > a:hover {
	color: var(--ft-primary-dark) !important;
	background: var(--ft-primary-soft) !important;
}

/* Login and public pages */
body[data-path="login"],
body.login-page {
	background:
		radial-gradient(circle at 15% 15%, rgba(24, 169, 153, 0.14), transparent 32%),
		radial-gradient(circle at 85% 10%, rgba(23, 107, 135, 0.16), transparent 36%),
		linear-gradient(145deg, #f4f9fb 0%, #eef4f8 100%) !important;
}

.for-login .page-card,
.for-forgot .page-card,
.for-login-with-email-link .page-card {
	border: 1px solid rgba(210, 224, 233, 0.9) !important;
	border-radius: 16px !important;
	box-shadow: 0 22px 55px rgba(31, 70, 91, 0.14) !important;
}

.for-login .page-card-head h4,
.for-forgot .page-card-head h4 {
	color: #173f54;
	font-size: 23px;
	font-weight: 750;
}

.page-card-subtitle {
	color: var(--ft-muted) !important;
}

/* Compact screens */
@media (max-width: 767px) {
	.page-head .page-title .title-text,
	.page-title .title-text {
		font-size: 18px;
	}

	.form-section.card-section,
	.frappe-card,
	.widget {
		border-radius: 8px !important;
	}
}

/* 年度财务总览 */
.finance-dashboard { padding: 22px 2px 46px; color: #203747; }
.finance-dashboard .finance-hero {
	display:flex; align-items:center; justify-content:space-between; min-height:150px; padding:26px 32px;
	border-radius:18px; color:#fff; background:linear-gradient(125deg,#0b5067 0%,#147d87 55%,#20a58d 100%);
	box-shadow:0 16px 38px rgba(16,91,106,.19); margin-bottom:20px;
}
.finance-hero span,.finance-hero p { opacity:.82; margin:0; }
.finance-hero h2 { font-size:34px; letter-spacing:.2px; margin:8px 0 3px; color:#fff; }
.finance-legend { display:flex; gap:18px; align-self:flex-end; font-size:13px; }
.finance-legend i { width:9px; height:9px; display:inline-block; margin-right:6px; border-radius:50%; }
.finance-legend i.income { background:#a5f3d2; }.finance-legend i.expense { background:#ffd0ad; }
.finance-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }
.finance-kpis>div,.finance-dashboard section {
	background:#fff; border:1px solid #dbe7ec; border-radius:15px; box-shadow:0 8px 24px rgba(31,70,91,.055);
}
.finance-kpis>div { padding:19px 20px; min-height:116px; }
.finance-kpis span,.finance-kpis small { display:block; color:#718596; }
.finance-kpis strong { display:block; font-size:23px; margin:8px 0 5px; color:#234657; }
.finance-kpis strong.positive { color:#108165; }.finance-kpis strong.negative { color:#d36b4a; }
.finance-grid { display:grid; grid-template-columns:1.25fr 1fr; gap:16px; margin-bottom:16px; }
.finance-dashboard section { padding:20px 22px; overflow:hidden; }
.finance-dashboard section header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.finance-dashboard section h3 { margin:0; font-size:17px; color:#234657; }
.finance-dashboard section header span,.finance-dashboard section header a { font-size:12px; color:#78909d; }
.finance-dashboard section header a { color:#147d87; cursor:pointer; }
.finance-months { height:155px; display:flex; align-items:flex-end; justify-content:space-between; gap:7px; border-bottom:1px solid #e5edf1; }
.finance-month { flex:1; text-align:center; color:#80919c; font-size:11px; }
.finance-bars { height:120px; display:flex; align-items:flex-end; justify-content:center; gap:3px; }
.finance-bars span { width:9px; min-height:2px; border-radius:5px 5px 1px 1px; transition:.2s ease; }
.finance-bars span.income { background:#22a684; }.finance-bars span.expense { background:#ef9272; }
.finance-rank-row { display:grid; grid-template-columns:145px 1fr 110px; gap:10px; align-items:center; margin:13px 0; }
.finance-rank-row>div:first-child b,.finance-rank-row>div:first-child small { display:block; }
.finance-rank-row small { color:#8b9ba5; }.finance-rank-row strong { text-align:right; font-size:13px; }
.finance-rank-track { background:#edf3f5; height:8px; border-radius:8px; overflow:hidden; }
.finance-rank-track span { display:block; height:100%; background:linear-gradient(90deg,#efaa75,#ea775f); border-radius:8px; }
.finance-section { margin-bottom:16px; }
.finance-accounts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; }
.finance-account { padding:15px 16px; background:#f7fafb; border:1px solid #e3ecef; border-radius:12px; }
.finance-account b,.finance-account small,.finance-account strong,.finance-account span { display:block; }
.finance-account small,.finance-account span { color:#7d909b; font-size:12px; }.finance-account strong { margin:12px 0 3px; font-size:17px; }
.finance-tag { display:inline-block; padding:3px 9px; border-radius:12px; font-size:12px; }
.finance-tag.income { color:#08775e; background:#e2f6ef; }.finance-tag.expense { color:#b85439; background:#fff0ea; }
.finance-empty,.finance-loading { padding:38px; text-align:center; color:#80919c; }
@media(max-width:1100px){.finance-kpis,.finance-accounts{grid-template-columns:repeat(2,1fr)}.finance-grid{grid-template-columns:1fr}}
@media(max-width:650px){.finance-kpis,.finance-accounts{grid-template-columns:1fr}.finance-dashboard .finance-hero{padding:22px}.finance-hero h2{font-size:27px}.finance-rank-row{grid-template-columns:120px 1fr}.finance-rank-row>strong{display:none}}

/* Respect users who reduce motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* Cross-border operations layout: denser than the stock ERP shell, but never cramped. */
body.foreign-trade-ui {
	font-size: 14.5px;
	line-height: 1.62;
}

.foreign-trade-ui .page-container,
.foreign-trade-ui .layout-main-section-wrapper,
.foreign-trade-ui .workspace-container {
	max-width: 1440px !important;
}

.foreign-trade-ui .workspace-container {
	padding: 24px 28px 46px !important;
	background:
		linear-gradient(180deg, rgba(232, 244, 247, 0.72), rgba(244, 247, 250, 0) 260px),
		var(--ft-bg) !important;
}

.foreign-trade-ui .workspace-container .widget-group {
	margin-bottom: 26px;
}

.foreign-trade-ui .workspace-container .widget-group-head {
	margin: 0 0 12px;
	padding: 0 2px;
}

.foreign-trade-ui .workspace-container .widget-group-head .widget-title,
.foreign-trade-ui .workspace-container .widget-group-head .h4 {
	font-size: 18px !important;
	font-weight: 750 !important;
	color: #173f54 !important;
}

.foreign-trade-ui .widget.number-widget-box {
	min-height: 112px;
	padding: 17px 18px !important;
	border: 1px solid #d8e6ed !important;
	background: linear-gradient(145deg, #ffffff, #f8fcfd) !important;
}

.foreign-trade-ui .widget.number-widget-box .number {
	font-size: 29px !important;
	line-height: 1.15;
	color: var(--ft-primary-dark) !important;
}

.foreign-trade-ui .widget.shortcut-widget-box {
	min-height: 72px;
	padding: 14px 16px !important;
	border: 1px solid #d9e6ec !important;
	background: rgba(255, 255, 255, 0.96) !important;
}

.foreign-trade-ui .widget.shortcut-widget-box .widget-title {
	font-size: 15px !important;
}

.foreign-trade-ui .form-layout .form-section.card-section {
	margin-bottom: 18px;
	padding: 4px 18px 18px;
	border: 1px solid #dce7ed !important;
	box-shadow: 0 7px 22px rgba(31, 70, 91, 0.055) !important;
}

.foreign-trade-ui .form-section .section-head {
	min-height: 48px;
	padding: 15px 0 10px !important;
	font-size: 16px !important;
}

.foreign-trade-ui .frappe-control {
	margin-bottom: 13px;
}

.foreign-trade-ui .control-label {
	margin-bottom: 6px;
	font-size: 13.5px;
}

.foreign-trade-ui .form-control,
.foreign-trade-ui .input-with-feedback,
.foreign-trade-ui .control-input .form-control {
	min-height: 40px;
	padding: 8px 11px;
	line-height: 1.45;
}

.foreign-trade-ui .grid-heading-row .data-row,
.foreign-trade-ui .grid-row .data-row,
.foreign-trade-ui .dt-row {
	min-height: 44px !important;
	height: 44px !important;
}

.foreign-trade-ui .dt-cell {
	height: 44px !important;
}

.foreign-trade-ui .dt-cell__content {
	padding: 11px 12px !important;
	font-size: 14px !important;
}

.foreign-trade-ui .dt-cell--col-0 .dt-cell__content {
	padding-left: 7px !important;
	padding-right: 5px !important;
	text-overflow: clip;
}

.foreign-trade-ui .report-wrapper {
	overflow: hidden;
	border: 1px solid #d9e5ec !important;
	box-shadow: 0 8px 24px rgba(31, 70, 91, 0.06);
}

.foreign-trade-ui .report-footer,
.foreign-trade-ui .datatable .dt-footer,
.foreign-trade-ui .query-report .text-muted.small {
	color: #718596 !important;
}

.foreign-trade-ui .modal-dialog {
	max-width: min(760px, calc(100vw - 32px));
}

.foreign-trade-ui .modal-header,
.foreign-trade-ui .modal-body,
.foreign-trade-ui .modal-footer {
	padding-left: 22px !important;
	padding-right: 22px !important;
}

@media (max-width: 767px) {
	.foreign-trade-ui .workspace-container {
		padding: 16px 12px 30px !important;
	}

	.foreign-trade-ui .widget.number-widget-box {
		min-height: 96px;
	}
}
.sales-import-summary{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px;margin:8px 0 18px}.sales-import-summary>div{background:#f5f7fa;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column}.sales-import-summary b{font-size:24px;color:#243b53}.sales-import-summary span{color:#627d98}.sales-import-summary .ok{background:#ecfdf5;border-color:#a7f3d0}.sales-import-summary .ok b{color:#047857}.sales-import-summary .bad{background:#fff1f2;border-color:#fecdd3}.sales-import-summary .bad b{color:#be123c}.sales-import-table{max-height:480px;border:1px solid #e2e8f0;border-radius:12px}.sales-import-table table{margin:0}.sales-import-table thead{position:sticky;top:0;background:#f8fafc;z-index:1}.sales-import-message{display:block;max-width:360px;margin-top:5px;color:#b45309;white-space:normal}.sales-import-result code{display:inline-block;margin:3px;padding:3px 7px;border-radius:6px;background:#fff7ed;color:#c2410c}@media(max-width:768px){.sales-import-summary{grid-template-columns:repeat(2,1fr)}}

/* 客服订单单页工作台：紧凑但保留清晰的业务分区。 */
.customer-order-workbench .layout-main-section-wrapper,
.customer-order-workbench .page-container {
	max-width: 1720px !important;
}

.customer-order-workbench .layout-main-section {
	padding-top: 6px !important;
}

.customer-order-workbench .form-layout .form-section.card-section {
	margin-bottom: 10px !important;
	padding: 0 12px 10px !important;
	border-radius: 10px !important;
	box-shadow: 0 3px 12px rgba(31, 70, 91, 0.045) !important;
}

.customer-order-workbench .form-section .section-head {
	min-height: 34px !important;
	padding: 9px 2px 6px !important;
	font-size: 14.5px !important;
	line-height: 1.25 !important;
}

.customer-order-workbench .form-column {
	padding-left: 8px !important;
	padding-right: 8px !important;
}

.customer-order-workbench .frappe-control {
	margin-bottom: 7px !important;
}

.customer-order-workbench .control-label {
	margin-bottom: 3px !important;
	font-size: 12.5px !important;
	line-height: 1.3 !important;
}

.customer-order-workbench .form-control,
.customer-order-workbench .input-with-feedback,
.customer-order-workbench .control-input .form-control {
	min-height: 34px !important;
	height: 34px;
	padding: 5px 9px !important;
	font-size: 13.5px !important;
	line-height: 1.3 !important;
	border-radius: 7px !important;
}

.customer-order-workbench textarea.form-control,
.customer-order-workbench [data-fieldname="address"] textarea {
	height: auto !important;
	min-height: 70px !important;
	resize: vertical;
}

.customer-order-workbench [data-fieldname="customer_raw_input"] textarea {
	min-height: 92px !important;
	background: linear-gradient(145deg, #f0fafd, #fbfdfe) !important;
	border-color: #9bcbd8 !important;
}

.customer-order-workbench .order-recognize-now {
	margin-top: 6px;
	min-height: 30px;
	padding: 4px 13px;
	border-radius: 7px;
	font-weight: 600;
}

.customer-order-workbench .help-box,
.customer-order-workbench .form-text,
.customer-order-workbench .description {
	margin-top: 2px !important;
	font-size: 11px !important;
	line-height: 1.3 !important;
}

.customer-order-workbench [data-order-section="customer"] { border-top: 3px solid #176b87 !important; }
.customer-order-workbench [data-order-section="products"] { border-top: 3px solid #2563eb !important; }
.customer-order-workbench [data-order-section="amount"] { border-top: 3px solid #18a999 !important; }
.customer-order-workbench [data-order-section="amount"] [data-fieldname="actual_deal_amount"] .form-control {
	background: #fffaf0 !important;
	border-color: #efc56e !important;
	font-weight: 650;
}
.customer-order-workbench [data-order-section="amount"] [data-fieldname="deal_price_difference"] .like-disabled-input,
.customer-order-workbench [data-order-section="amount"] [data-fieldname="deal_price_difference"] .control-value {
	color: #b45309 !important;
	font-weight: 700;
}
.customer-order-workbench [data-order-section="amount"] [data-fieldname="deal_price_difference"] .description {
	display: none !important;
}

.customer-order-workbench .product-order-summary {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
	margin: 10px 4px 2px;
	padding: 11px;
	border: 1px solid #dbe8ed;
	border-radius: 11px;
	background: linear-gradient(135deg, #f7fbfc 0%, #fbfcfd 100%);
}

.customer-order-workbench .product-order-summary-title {
	grid-column: 1 / 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	padding: 0 6px;
	color: #23495b;
}

.customer-order-workbench .product-order-summary-title span {
	font-size: 13.5px;
	font-weight: 750;
}

.customer-order-workbench .product-order-summary-title small {
	font-size: 10.5px;
	line-height: 1.35;
	color: #7f929d;
}

.customer-order-workbench .product-order-summary [data-product-summary-field] {
	min-width: 0;
	min-height: 72px;
	margin: 0 !important;
	padding: 9px 10px 10px;
	border: 1px solid #e1e9ee;
	border-radius: 9px;
	background: #fff;
}

.customer-order-workbench .product-order-summary [data-product-summary-field="items_subtotal"] { grid-column: 3 / 6; }
.customer-order-workbench .product-order-summary [data-product-summary-field="grand_total"] {
	grid-column: 6 / 9;
	border-color: #b9dbe4;
	background: #f2fafc;
}
.customer-order-workbench .product-order-summary [data-product-summary-field="actual_deal_amount"] {
	grid-column: 9 / 13;
	border-color: #efd08c;
	background: #fffaf0;
}
.customer-order-workbench .product-order-summary [data-product-summary-field="deal_price_difference"] {
	grid-column: 13 / 17;
	border-color: #e8dfd2;
	background: #fffdf9;
}

.customer-order-workbench .product-order-summary [data-product-summary-field] .control-label {
	margin-bottom: 6px !important;
	font-size: 11.5px !important;
	line-height: 1.25 !important;
}

.customer-order-workbench .product-order-summary [data-product-summary-field="items_subtotal"] .like-disabled-input,
.customer-order-workbench .product-order-summary [data-product-summary-field="grand_total"] .like-disabled-input {
	font-weight: 700;
	color: #174f62;
}

.customer-order-workbench .product-order-summary [data-product-summary-field="actual_deal_amount"] .form-control {
	background: #fffaf0 !important;
	border-color: #efc56e !important;
	font-weight: 650;
}

.customer-order-workbench .product-order-summary [data-product-summary-field="deal_price_difference"] .like-disabled-input,
.customer-order-workbench .product-order-summary [data-product-summary-field="deal_price_difference"] .control-value {
	color: #b45309 !important;
	font-weight: 700;
}

.customer-order-workbench .product-order-summary [data-product-summary-field="deal_price_difference"] .description {
	display: none !important;
}

.customer-order-workbench .order-payment-grid {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
	padding: 3px 4px 8px;
}

.customer-order-workbench .order-payment-grid > .frappe-control {
	min-width: 0;
	margin: 0 !important;
}

.customer-order-workbench .order-payment-group-title {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-height: 34px;
	padding: 6px 4px 8px;
	border-bottom: 1px solid #e2eaee;
	color: #23495b;
}

.customer-order-workbench .order-payment-group-title span {
	font-size: 14px;
	font-weight: 750;
}

.customer-order-workbench .order-payment-group-title small {
	font-size: 11.5px;
	color: #80919c;
}

.customer-order-workbench .order-payment-group-title.pricing { grid-row: 1; }
.customer-order-workbench .order-payment-group-title.receipt { grid-row: 1; margin-top: 2px; }
.customer-order-workbench .order-payment-grid [data-payment-field="amount_currency"] { grid-column: 1 / 3; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="items_subtotal"] { grid-column: 3 / 6; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="shipping_fee"] { grid-column: 6 / 8; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="grand_total"] { grid-column: 8 / 11; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="actual_deal_amount"] { grid-column: 11 / 14; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="deal_price_difference"] { grid-column: 14 / 17; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="payment_method"] { grid-column: 1 / 4; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="payment_status"] { grid-column: 4 / 7; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="payment_date"] { grid-column: 7 / 10; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="payment_proof"] { grid-column: 10 / 17; grid-row: 2; }
.customer-order-workbench .order-payment-grid [data-payment-field="other_currency"] { grid-column: 1 / 4; grid-row: 5; }

.customer-order-workbench .order-payment-grid [data-payment-field="amount_currency"],
.customer-order-workbench .order-payment-grid [data-payment-field="items_subtotal"],
.customer-order-workbench .order-payment-grid [data-payment-field="shipping_fee"],
.customer-order-workbench .order-payment-grid [data-payment-field="grand_total"],
.customer-order-workbench .order-payment-grid [data-payment-field="actual_deal_amount"],
.customer-order-workbench .order-payment-grid [data-payment-field="deal_price_difference"] {
	min-height: 96px;
	padding: 10px 11px 11px;
	border: 1px solid #e1e9ee;
	border-radius: 11px;
	background: #fbfcfd;
}

.customer-order-workbench .order-payment-grid [data-payment-field] .control-label {
	margin-bottom: 7px !important;
	font-size: 12px !important;
	line-height: 1.25 !important;
}

.customer-order-workbench .order-payment-grid [data-payment-field="grand_total"] {
	border-color: #b9dbe4;
	background: #f2fafc;
}

.customer-order-workbench .order-payment-grid [data-payment-field="actual_deal_amount"] {
	border-color: #efd08c;
	background: #fffaf0;
}

.customer-order-workbench .order-payment-grid [data-payment-field="deal_price_difference"] {
	border-color: #e8dfd2;
	background: #fffdf9;
}

.customer-order-workbench .order-payment-grid [data-payment-field="items_subtotal"] .like-disabled-input,
.customer-order-workbench .order-payment-grid [data-payment-field="grand_total"] .like-disabled-input {
	font-weight: 700;
	color: #174f62;
}

.customer-order-workbench .order-payment-grid [data-payment-field="payment_proof"] .control-input-wrapper {
	min-height: 34px;
	display: flex;
	align-items: center;
}

@media (max-width: 1199px) {
	.customer-order-workbench .product-order-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.customer-order-workbench .product-order-summary-title { grid-column: 1 / 7; grid-row: 1; }
	.customer-order-workbench .product-order-summary [data-product-summary-field="items_subtotal"] { grid-column: 1 / 3; grid-row: 2; }
	.customer-order-workbench .product-order-summary [data-product-summary-field="grand_total"] { grid-column: 3 / 5; grid-row: 2; }
	.customer-order-workbench .product-order-summary [data-product-summary-field="actual_deal_amount"] { grid-column: 5 / 7; grid-row: 2; }
	.customer-order-workbench .product-order-summary [data-product-summary-field="deal_price_difference"] { grid-column: 1 / 7; grid-row: 3; }
	.customer-order-workbench .order-payment-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.customer-order-workbench .order-payment-group-title.receipt { grid-row: 1; }
	.customer-order-workbench .order-payment-grid [data-payment-field="payment_method"] { grid-column: 1 / 3; grid-row: 2; }
	.customer-order-workbench .order-payment-grid [data-payment-field="payment_status"] { grid-column: 3 / 5; grid-row: 2; }
	.customer-order-workbench .order-payment-grid [data-payment-field="payment_date"] { grid-column: 5 / 7; grid-row: 2; }
	.customer-order-workbench .order-payment-grid [data-payment-field="payment_proof"] { grid-column: 1 / 7; grid-row: 3; }
}

@media (max-width: 767px) {
	.customer-order-workbench .product-order-summary { display: block; padding: 10px; }
	.customer-order-workbench .product-order-summary-title { margin-bottom: 9px; }
	.customer-order-workbench .product-order-summary [data-product-summary-field] { min-height: 0; margin-bottom: 9px !important; }
	.customer-order-workbench .order-payment-grid { display: block; padding: 2px; }
	.customer-order-workbench .order-payment-grid > .frappe-control { margin-bottom: 11px !important; }
}
.customer-order-workbench [data-order-section="payment"] { border-top: 3px solid #8b5cf6 !important; }
.customer-order-workbench [data-order-section="logistics"] { border-top: 3px solid #f59e0b !important; }

.customer-order-workbench [data-order-section="products"] .form-grid {
	margin-top: 2px;
	border-radius: 8px;
	overflow: hidden;
}

.customer-order-workbench [data-order-section="products"] .grid-heading-row .data-row,
.customer-order-workbench [data-order-section="products"] .grid-row .data-row {
	min-height: 38px !important;
	height: 38px !important;
}

.customer-order-workbench [data-order-section="products"] .grid-body .rows {
	min-height: 40px;
}

.customer-order-workbench [data-order-section="finance"],
.customer-order-workbench [data-order-section="procurement"],
.customer-order-workbench [data-order-section="source"],
.customer-order-workbench [data-order-section="notes"] {
	background: #fbfcfd !important;
	box-shadow: none !important;
}

.customer-order-workbench .form-dashboard {
	margin-bottom: 8px !important;
}

.customer-import-rules {
	margin-bottom: 14px;
	padding: 14px 16px;
	border: 1px solid #cfe1e8;
	border-left: 4px solid #16869a;
	border-radius: 10px;
	background: linear-gradient(145deg, #f2fbfd, #ffffff);
}

.customer-import-rules .rule-title {
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 750;
	color: #174f62;
}

.customer-import-rules .rule-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px 18px;
}

.customer-import-rules .rule-grid > div {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 8px;
	font-size: 12.5px;
	line-height: 1.55;
	color: #526b78;
}

.customer-import-rules .rule-grid > .wide { grid-column: 1 / -1; }
.customer-import-rules .rule-grid b { color: #213f4d; }
.sales-import-table .image-check { white-space: nowrap; font-size: 12px; line-height: 1.5; }

@media (max-width: 767px) {
	.customer-import-rules .rule-grid { grid-template-columns: 1fr; }
	.customer-import-rules .rule-grid > .wide { grid-column: auto; }
}

@media (max-width: 991px) {
	.customer-order-workbench .form-column {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
	.customer-order-workbench .form-control,
	.customer-order-workbench .input-with-feedback,
	.customer-order-workbench .control-input .form-control {
		min-height: 38px !important;
		height: 38px;
	}
}

/* 客户与报单：按内容长度分配空间，避免机械三等分和无效留白。 */
.customer-order-workbench [data-order-section="customer"] {
	padding: 2px 18px 18px !important;
	background: linear-gradient(145deg, #ffffff 0%, #fbfdfe 100%) !important;
}

.customer-order-workbench [data-order-section="customer"] .section-head {
	min-height: 44px !important;
	padding: 13px 4px 9px !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: .01em;
}

.customer-order-workbench .customer-entry-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-auto-flow: row;
	gap: 12px 16px;
	align-items: start;
	padding: 4px;
}

.customer-order-workbench .customer-entry-grid > .frappe-control {
	min-width: 0;
	margin: 0 !important;
}

.customer-order-workbench .customer-entry-grid .control-label {
	margin-bottom: 5px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #405b6b !important;
}

.customer-order-workbench .customer-entry-grid .form-control,
.customer-order-workbench .customer-entry-grid .input-with-feedback,
.customer-order-workbench .customer-entry-grid .control-input .form-control {
	height: 42px !important;
	min-height: 42px !important;
	padding: 8px 12px !important;
	font-size: 14.5px !important;
	line-height: 1.4 !important;
	border-radius: 9px !important;
	background-color: #fff !important;
	border-color: #d7e4eb !important;
	box-shadow: 0 1px 2px rgba(31, 70, 91, .025);
}

.customer-order-workbench .customer-entry-grid .form-control:focus {
	border-color: #4f9fb4 !important;
	box-shadow: 0 0 0 3px rgba(23, 107, 135, .1) !important;
}

.customer-order-workbench .customer-entry-grid [data-customer-field="customer_raw_input"] { grid-column: 1; grid-row: 1 / span 2; }
.customer-order-workbench .customer-entry-grid [data-customer-field="customer_name"] { grid-column: 2; grid-row: 1; }
.customer-order-workbench .customer-entry-grid [data-customer-field="mobile_no"] { grid-column: 3; grid-row: 1; }
.customer-order-workbench .customer-entry-grid [data-customer-field="country"] { grid-column: 2; grid-row: 2; }
.customer-order-workbench .customer-entry-grid [data-customer-field="email"] { grid-column: 3; grid-row: 2; }
.customer-order-workbench .customer-entry-grid [data-customer-field="city"] { grid-column: 1; grid-row: 3; }
.customer-order-workbench .customer-entry-grid [data-customer-field="state"] { grid-column: 2; grid-row: 3; }
.customer-order-workbench .customer-entry-grid [data-customer-field="postal_code"] { grid-column: 3; grid-row: 3; }
.customer-order-workbench .customer-entry-grid [data-customer-field="address"] { grid-column: 1 / 4; grid-row: 4; }
.customer-order-workbench .customer-entry-grid [data-customer-field="order_date"] { grid-column: 1; grid-row: 5; }
.customer-order-workbench .customer-entry-grid [data-customer-field="business_order_no"] { grid-column: 2 / 4; grid-row: 5; }
.customer-order-workbench .customer-entry-grid [data-customer-field="logistics_handoff_info"] { grid-column: 1 / 4; grid-row: 6; }

.customer-order-workbench .customer-entry-grid [data-customer-field="order_date"],
.customer-order-workbench .customer-entry-grid [data-customer-field="business_order_no"] {
	margin-top: 6px !important;
}

.customer-order-workbench .customer-entry-grid [data-customer-field="customer_raw_input"] textarea {
	height: 108px !important;
	min-height: 108px !important;
	padding: 10px 12px !important;
	background: linear-gradient(145deg, #f2fbfd 0%, #ffffff 100%) !important;
}

.customer-order-workbench .customer-entry-grid [data-customer-field="address"] textarea {
	height: 64px !important;
	min-height: 64px !important;
}

.customer-order-workbench .customer-entry-grid [data-customer-field="logistics_handoff_info"] textarea {
	height: 320px !important;
	min-height: 320px !important;
	padding: 12px 14px !important;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
	background: #f9fcfd !important;
	resize: vertical !important;
}

.customer-order-workbench .logistics-handoff-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 8px;
}

.customer-order-workbench .customer-entry-grid .order-recognize-now {
	min-height: 34px;
	margin-top: 7px;
	padding: 6px 16px;
	font-size: 13.5px;
	border-radius: 8px;
}

.customer-order-workbench .customer-entry-grid .help-box,
.customer-order-workbench .customer-entry-grid .form-text,
.customer-order-workbench .customer-entry-grid .description {
	margin-top: 4px !important;
	font-size: 11.5px !important;
	line-height: 1.35 !important;
	color: #80909c !important;
}

.customer-order-workbench [data-order-section="products"] .grid-heading-row .data-row {
	min-height: 42px !important;
	height: 42px !important;
	background: #f5f8fa !important;
}

.customer-order-workbench [data-order-section="products"] .grid-row .data-row {
	min-height: 44px !important;
	height: 44px !important;
}

.customer-order-workbench [data-order-section="products"] .grid-static-col {
	padding-left: 10px !important;
	padding-right: 10px !important;
}

.customer-order-workbench [data-order-section="products"] .grid-heading-row .static-area {
	white-space: nowrap;
	font-size: 12.5px;
	font-weight: 700;
}

.customer-order-workbench [data-order-section="products"] .grid-row .static-area {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.customer-order-workbench [data-order-section="products"] .grid-footer {
	padding: 8px 10px 2px;
	background: #fafcfd;
}

/* Shared page quality pass: lists, reports, dialogs and workspaces all use the
   same density and hierarchy instead of isolated one-off styling. */
.foreign-trade-ui .list-row-head {
	min-height: 42px;
	border-radius: 8px 8px 0 0;
	background: #f3f7f9 !important;
}

.foreign-trade-ui .list-row-container .list-row {
	min-height: 48px;
}

.foreign-trade-ui .list-row-container:nth-child(even) .list-row {
	background: #fbfcfd;
}

.foreign-trade-ui .page-form {
	padding: 12px 14px !important;
	border: 1px solid #dce7ed;
	border-radius: 10px;
	background: #fff;
}

.foreign-trade-ui .modal-content {
	overflow: hidden;
	border-radius: 14px !important;
}

.foreign-trade-ui .modal-header {
	background: #f7fafb;
	border-bottom: 1px solid #e1e9ed;
}

.foreign-trade-ui .modal-footer {
	background: #fbfcfd;
	border-top: 1px solid #e1e9ed;
}

@media (max-width: 1199px) {
	.customer-order-workbench .customer-entry-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	.customer-order-workbench .customer-entry-grid [data-customer-field="customer_raw_input"] { grid-column: 1 / 3; grid-row: 1 / 7; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="customer_name"] { grid-column: 3 / 5; grid-row: 1; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="mobile_no"] { grid-column: 5 / 7; grid-row: 1; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="country"] { grid-column: 3 / 5; grid-row: 2; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="email"] { grid-column: 5 / 7; grid-row: 2; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="city"] { grid-column: 3 / 5; grid-row: 3; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="state"] { grid-column: 5 / 6; grid-row: 3; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="postal_code"] { grid-column: 6 / 7; grid-row: 3; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="address"] { grid-column: 3 / 7; grid-row: 4; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="order_date"] { grid-column: 3 / 5; grid-row: 5; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="business_order_no"] { grid-column: 5 / 7; grid-row: 5; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="logistics_handoff_info"] { grid-column: 3 / 7; grid-row: 6; }
}

@media (max-width: 767px) {
	.customer-order-workbench [data-order-section="customer"] { padding: 2px 12px 14px !important; }
	.customer-order-workbench .customer-entry-grid { display: block; padding: 2px; }
	.customer-order-workbench .customer-entry-grid > .frappe-control { margin-bottom: 11px !important; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="customer_raw_input"] textarea {
		height: 126px !important;
	}
}

/* 线上业务目录：一级按部门折叠，二级直接进入操作页面。 */
.foreign-trade-ui .body-sidebar .sidebar-item-container {
	margin: 2px 8px;
}

.foreign-trade-ui .body-sidebar .standard-sidebar-item {
	min-height: 38px;
	padding: 7px 10px !important;
	border-radius: 9px;
}

.foreign-trade-ui .body-sidebar .section-break > .standard-sidebar-item,
.foreign-trade-ui .body-sidebar [data-type="Section Break"] > .standard-sidebar-item {
	margin-top: 5px;
	font-weight: 700;
	color: #264b5d;
}

.foreign-trade-ui .body-sidebar .nested-container {
	margin: 2px 0 6px 17px;
	padding-left: 9px;
	border-left: 1px solid #d9e6ec;
}

.foreign-trade-ui .body-sidebar .nested-container .standard-sidebar-item {
	min-height: 34px;
	padding: 6px 9px !important;
	font-size: 13px;
	color: #607482;
}

.foreign-trade-ui .body-sidebar .nested-container .standard-sidebar-item:hover,
.foreign-trade-ui .body-sidebar .nested-container .standard-sidebar-item.selected {
	color: #15566d !important;
	background: #eaf5f7 !important;
}

.foreign-trade-ui .body-sidebar .drop-icon {
	margin-left: auto;
	border-radius: 6px;
}

/* 客户资料最终排版：左侧专注识别，右侧专注校对，避免字段跨区造成视觉断层。 */
@media (min-width: 1200px) {
	.customer-order-workbench .customer-entry-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 11px 16px;
		align-items: start;
		padding: 4px 6px 8px;
	}

	.customer-order-workbench .customer-entry-grid [data-customer-field="customer_raw_input"] {
		grid-column: 1 / 5;
		grid-row: 1 / 7;
		align-self: stretch;
		min-height: 320px;
		padding: 12px 14px 14px;
		border: 1px solid #d2e5eb;
		border-radius: 12px;
		background: linear-gradient(150deg, #f2fafc 0%, #fbfdfe 100%);
		box-shadow: 0 4px 14px rgba(31, 70, 91, .045);
	}

	.customer-order-workbench .customer-entry-grid [data-customer-field="customer_name"] { grid-column: 5 / 9; grid-row: 1; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="mobile_no"] { grid-column: 9 / 13; grid-row: 1; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="country"] { grid-column: 5 / 9; grid-row: 2; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="email"] { grid-column: 9 / 13; grid-row: 2; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="city"] { grid-column: 5 / 8; grid-row: 3; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="state"] { grid-column: 8 / 11; grid-row: 3; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="postal_code"] { grid-column: 11 / 13; grid-row: 3; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="address"] { grid-column: 5 / 13; grid-row: 4; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="order_date"] { grid-column: 5 / 8; grid-row: 5; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="business_order_no"] { grid-column: 8 / 13; grid-row: 5; }
	.customer-order-workbench .customer-entry-grid [data-customer-field="logistics_handoff_info"] { grid-column: 5 / 13; grid-row: 6; }

	.customer-order-workbench .customer-entry-grid [data-customer-field="customer_raw_input"] textarea {
		height: 360px !important;
		min-height: 360px !important;
		background: #fff !important;
	}

	.customer-order-workbench .customer-entry-grid [data-customer-field="customer_raw_input"] .order-recognize-now {
		margin-top: 12px;
		padding-left: 20px;
		padding-right: 20px;
		box-shadow: 0 5px 14px rgba(23, 107, 135, .14);
	}

	.customer-order-workbench .customer-entry-grid [data-customer-field="country"] .description,
	.customer-order-workbench .customer-entry-grid [data-customer-field="country"] .help-box,
	.customer-order-workbench .customer-entry-grid [data-customer-field="country"] .form-text {
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.customer-order-workbench .customer-entry-grid [data-customer-field="address"] textarea {
		height: 58px !important;
		min-height: 58px !important;
	}
}
.list-row-col[data-fieldname="customer_order_summary"] {
	flex: 3 0 420px !important;
	min-width: 360px !important;
	overflow: visible !important;
}

.list-row-col[data-fieldname="customer_order_summary"] .ellipsis,
.list-row-col[data-fieldname="customer_order_summary"] .customer-order-list-summary,
.customer-order-list-summary {
	white-space: normal !important;
	word-break: break-word;
	overflow: visible !important;
	text-overflow: clip !important;
	line-height: 1.55;
}

.list-row:has(.customer-order-list-summary) {
	height: auto !important;
	min-height: 64px;
	align-items: flex-start;
}

.list-row:has(.customer-order-list-summary) .list-row-col {
	padding-top: 10px;
	padding-bottom: 10px;
}

/* Desktop list density: keep operational lists readable while fitting
   substantially more orders into a single screen. */
@media (min-width: 992px) {
	.foreign-trade-ui .list-view .list-row-head {
		height: 36px !important;
		min-height: 36px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		border-radius: 7px 7px 0 0;
	}

	.foreign-trade-ui .list-view .list-row-container .list-row,
	.foreign-trade-ui .list-view .list-row:has(.customer-order-list-summary) {
		height: 40px !important;
		min-height: 40px !important;
		align-items: center !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.foreign-trade-ui .list-view .list-row-col,
	.foreign-trade-ui .list-view .list-row:has(.customer-order-list-summary) .list-row-col {
		padding-top: 3px !important;
		padding-bottom: 3px !important;
		font-size: 13px;
		line-height: 1.25;
	}

	.foreign-trade-ui .list-view .list-row-head .list-row-col {
		font-size: 12.5px;
		line-height: 1.2;
	}

	.foreign-trade-ui .list-view .list-row-col .ellipsis,
	.foreign-trade-ui .list-view .customer-order-list-summary {
		display: block;
		max-width: 100%;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		line-height: 1.25 !important;
	}

	.foreign-trade-ui .list-view .list-row-checkbox,
	.foreign-trade-ui .list-view .list-row-like {
		transform: scale(.88);
		transform-origin: center;
	}

	.foreign-trade-ui .list-view .page-form {
		padding: 8px 10px !important;
		margin-bottom: 8px !important;
		border-radius: 8px;
	}

	.foreign-trade-ui .list-view .page-form .form-control,
	.foreign-trade-ui .list-view .page-form .input-with-feedback,
	.foreign-trade-ui .list-view .page-form .awesomplete > input {
		min-height: 34px !important;
		height: 34px !important;
		font-size: 13px;
	}

	.foreign-trade-ui .list-view .list-paging-area,
	.foreign-trade-ui .list-view .list-footer {
		min-height: 38px;
		padding-top: 6px !important;
		padding-bottom: 6px !important;
	}
}
