Files
weiguang-jewelry-ledger/新账系统/public/app.css
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8156 lines
157 KiB
CSS
Raw Normal View History

@charset "UTF-8";
:root {
--ink: #233d35;
--muted: #68736d;
--paper: #f6f5f0;
--border: #dedfd6;
--gold: #a97b35;
--green: #254e40;
--white: #fffefa;
--danger: #a03d31;
--soft: #edf2ec;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
font-size: 14px;
line-height: 1.6;
}
button,
input,
select,
textarea {
font: inherit;
}
button,
a {
touch-action: manipulation;
}
button {
border: 1px solid var(--border);
border-radius: 7px;
padding: 10px 16px;
cursor: pointer;
background: var(--white);
color: var(--ink);
font-weight: 600;
}
button:hover {
border-color: var(--green);
background: var(--soft);
}
button:disabled {
opacity: 0.45;
cursor: wait;
}
button.primary {
background: var(--green);
color: #fff;
border-color: var(--green);
}
button.danger {
color: var(--danger);
border-color: #e1b7ac;
}
button.quiet {
border: 0;
background: transparent;
color: var(--muted);
}
a {
color: var(--green);
}
input,
select,
textarea {
width: 100%;
border: 1px solid #cfd5cc;
border-radius: 6px;
padding: 10px 11px;
background: white;
color: #26382f;
min-height: 43px;
}
input:focus,
select:focus,
textarea:focus {
outline: 2px solid #b3c8ba;
outline-offset: 1px;
}
input[type='checkbox'] {
width: 18px;
min-height: 18px;
vertical-align: middle;
accent-color: var(--green);
}
label {
display: block;
color: #566259;
font-size: 12px;
}
label > input,
label > select,
label > textarea {
margin-top: 6px;
font-size: 14px;
}
label.check {
display: flex;
align-items: center;
gap: 10px;
font-size: 13px;
margin: 14px 0;
}
h1,
h2,
h3,
p {
margin-top: 0;
}
h1 {
font-size: 28px;
letter-spacing: 1px;
font-weight: 650;
margin-bottom: 6px;
}
h2 {
font-size: 19px;
margin-bottom: 15px;
}
h3 {
font-size: 15px;
}
.muted {
color: var(--muted);
}
.small {
font-size: 12px;
}
.eyebrow {
text-transform: uppercase;
font-size: 11px;
letter-spacing: 2px;
color: var(--gold);
font-weight: 700;
margin-bottom: 8px;
}
.app-header {
height: 88px;
background: var(--white);
border-bottom: 1px solid var(--border);
padding: 0 36px;
display: flex;
justify-content: space-between;
align-items: center;
}
.brand {
display: flex;
align-items: center;
gap: 14px;
}
.brand-mark {
display: grid;
place-items: center;
background: var(--green);
color: #e7dcc2;
width: 44px;
height: 44px;
font-size: 23px;
border-radius: 12px;
font-family: serif;
}
.brand strong {
font-size: 19px;
letter-spacing: 2px;
}
.brand small {
display: block;
font-size: 11px;
color: var(--muted);
letter-spacing: 1px;
}
.header-right {
display: flex;
align-items: center;
gap: 12px;
}
.badge {
background: #e9efe7;
padding: 4px 9px;
border-radius: 5px;
font-size: 11px;
white-space: nowrap;
}
.badge.warn {
background: #f6ead5;
color: #805617;
}
.badge.danger {
background: #f5e1dc;
color: var(--danger);
}
.notice {
padding: 8px 36px;
background: #ede9df;
font-size: 12px;
color: #6d6149;
}
.app-body {
display: grid;
grid-template-columns: 195px minmax(0, 1fr);
min-height: calc(100vh - 165px);
}
nav {
padding: 30px 20px;
border-right: 1px solid var(--border);
position: relative;
}
nav button {
display: block;
width: 100%;
text-align: left;
padding: 13px 14px;
border: 0;
background: transparent;
margin-bottom: 8px;
font-weight: 500;
}
nav button span {
display: inline-block;
font-size: 11px;
color: #9aa398;
margin-right: 10px;
}
nav button.active {
background: var(--green);
color: white;
}
nav button.active span {
color: #c9d6cd;
}
.nav-foot {
font-size: 11px;
line-height: 1.8;
color: #92998d;
margin: 50px 12px;
}
main {
padding: 30px 38px 60px;
max-width: 1580px;
width: 100%;
margin: auto;
}
.page-heading {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
gap: 20px;
}
.page-heading p {
margin: 0;
}
.panel {
border: 1px solid var(--border);
background: var(--white);
border-radius: 12px;
padding: 24px;
margin-bottom: 20px;
}
.panel-title {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
margin-bottom: 18px;
}
.panel-title h2 {
margin: 0;
}
.grid {
display: grid;
gap: 16px;
}
.grid.two {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cards {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
margin-bottom: 22px;
}
.stat {
padding: 19px;
background: var(--white);
border: 1px solid var(--border);
border-radius: 10px;
}
.stat small {
display: block;
color: var(--muted);
font-size: 12px;
}
.stat strong {
font-size: 24px;
font-weight: 600;
display: block;
margin: 4px 0;
font-variant-numeric: tabular-nums;
}
.stat.emphasis {
background: var(--green);
color: #fff;
}
.stat.emphasis small {
color: #cad7ce;
}
.stat .hint {
font-size: 11px;
color: #8b9186;
}
.line-item {
padding: 18px 0;
border-bottom: 1px solid var(--border);
}
.line-item:first-child {
padding-top: 0;
}
.line-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.line-top strong {
font-size: 12px;
color: var(--gold);
}
.line-sale {
display: grid;
grid-template-columns: 2fr 0.7fr 1fr 1.5fr 1fr;
gap: 12px;
}
.internal {
background: #f1f0e9;
border: 1px dashed #d7d3c6;
padding: 14px;
border-radius: 7px;
margin-top: 14px;
}
.internal-title {
font-size: 11px;
color: #80775d;
letter-spacing: 1px;
margin-bottom: 10px;
}
.internal .grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
margin-top: 20px;
flex-wrap: wrap;
}
.summary-amount {
font-size: 25px;
color: var(--green);
font-weight: 650;
}
.table-wrap {
overflow: auto;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
th {
text-align: left;
font-size: 11px;
color: var(--muted);
font-weight: 500;
padding: 12px;
border-bottom: 1px solid var(--border);
white-space: nowrap;
background: #f6f6ef;
}
td {
padding: 14px 12px;
border-bottom: 1px solid #e8e9e1;
vertical-align: top;
}
tr:last-child td {
border-bottom: 0;
}
td.number {
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.link-button {
border: 0;
padding: 0;
background: transparent;
text-align: left;
color: var(--green);
}
.link-button:hover {
background: transparent;
text-decoration: underline;
}
.filters {
display: flex;
gap: 14px;
margin-bottom: 18px;
align-items: center;
}
.filters input {
max-width: 300px;
}
.filters select {
max-width: 170px;
}
.empty {
padding: 55px 25px;
text-align: center;
color: var(--muted);
background: #f5f5ee;
border-radius: 8px;
}
.empty strong {
display: block;
color: var(--ink);
font-size: 20px;
margin-bottom: 9px;
}
.split {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 20px;
}
.stock-card {
border-left: 3px solid #bca169;
}
.stock-card strong {
font-size: 26px;
display: block;
margin: 7px 0;
}
.stock-card span {
font-size: 11px;
color: var(--muted);
}
.note {
padding: 12px 15px;
background: #f6eedc;
border-radius: 6px;
color: #7f6232;
font-size: 12px;
margin: 14px 0;
}
.error {
padding: 12px 15px;
background: #fae6e1;
color: #9b3b2f;
border-radius: 6px;
margin: 12px 0;
}
.ok {
color: #286346;
}
.actions {
display: flex;
gap: 9px;
flex-wrap: wrap;
}
.app-footer {
border-top: 1px solid var(--border);
text-align: center;
padding: 13px;
color: #92998d;
font-size: 11px;
}
dialog {
border: 1px solid var(--border);
border-radius: 15px;
width: min(1100px, 96vw);
max-height: 92vh;
padding: 30px 34px;
background: var(--paper);
color: var(--ink);
}
dialog::backdrop {
background: #162a2380;
backdrop-filter: blur(3px);
}
.dialog-close {
position: sticky;
top: 0;
float: right;
padding: 0;
width: 32px;
height: 32px;
z-index: 3;
font-size: 24px;
background: white;
}
.order-header {
margin-bottom: 22px;
}
.order-header h2 {
font-size: 24px;
margin: 5px 0;
}
.order-status {
font-size: 12px;
white-space: nowrap;
}
.order-header .order-status {
display: inline-block;
margin-right: 10px;
}
.detail-form {
margin-top: 16px;
}
.detail-form:empty {
display: none;
}
.detail-form .panel {
border-color: #bccdbc;
}
details {
margin: 18px 0;
}
summary {
cursor: pointer;
font-weight: 600;
}
.timeline {
list-style: none;
padding: 0;
}
.timeline li {
border-left: 2px solid #d7ddcf;
padding: 4px 14px 14px;
margin-left: 5px;
font-size: 12px;
}
.timeline small {
display: block;
color: #889080;
}
.login-wrap {
max-width: 480px;
margin: 8vh auto;
padding: 38px;
border: 1px solid var(--border);
border-radius: 16px;
background: var(--white);
}
.login-wrap h1 {
font-size: 25px;
margin-top: 18px;
}
.login-wrap label {
margin: 16px 0;
}
.login-wrap button {
width: 100%;
margin-top: 10px;
}
.login-wrap .brand-mark {
width: 56px;
height: 56px;
}
.pending {
padding: 14px 36px;
background: #fae6e1;
color: var(--danger);
}
#toast {
position: fixed;
bottom: 22px;
left: 50%;
transform: translateX(-50%);
background: #253e34;
color: white;
padding: 12px 24px;
border-radius: 9px;
box-shadow: 0 5px 25px #0002;
z-index: 2000;
max-width: 90vw;
}
#toast.error-toast {
background: #8b392f;
}
.print-preview-mini {
height: 270px;
display: flex;
align-items: center;
justify-content: center;
background: #e6e6df;
border-radius: 8px;
}
.paper-mini {
width: 210px;
background: white;
box-shadow: 0 3px 15px #aaa7;
padding: 25px 17px;
color: #555;
font-size: 9px;
text-align: center;
height: 244px;
}
.paper-mini strong {
font-size: 16px;
letter-spacing: 3px;
}
.paper-mini table {
font-size: 8px;
margin-top: 15px;
}
.paper-mini td {
padding: 8px 2px;
border: 1px solid #bbb;
}
.paper-mini p {
margin-top: 14px;
font-size: 8px;
}
.danger-text {
color: var(--danger);
}
@media (max-width: 1000px) {
main {
padding: 25px 20px;
}
.app-body {
grid-template-columns: 150px minmax(0, 1fr);
}
nav {
padding: 25px 10px;
}
.line-sale {
grid-template-columns: 2fr 1fr 1fr;
}
.split {
grid-template-columns: 1fr;
}
.cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.four {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.header-right {
gap: 5px;
}
.app-header {
padding: 0 20px;
}
}
@media (max-width: 650px) {
.app-header {
height: auto;
padding: 15px;
gap: 12px;
}
.brand small {
display: none;
}
.brand strong {
font-size: 16px;
}
.header-right {
font-size: 11px;
flex-wrap: wrap;
justify-content: flex-end;
}
.notice {
padding: 8px 15px;
}
.app-body {
display: block;
}
nav {
display: flex;
overflow: auto;
padding: 10px;
border-right: 0;
border-bottom: 1px solid var(--border);
}
nav button {
width: auto;
white-space: nowrap;
padding: 8px 12px;
margin: 0;
}
nav button span,
.nav-foot {
display: none;
}
main {
padding: 22px 14px;
}
.panel {
padding: 17px;
}
.grid.three,
.grid.two {
grid-template-columns: 1fr;
}
.line-sale {
grid-template-columns: 1fr 1fr;
}
.line-sale label:first-child {
grid-column: 1/-1;
}
.internal .grid {
grid-template-columns: 1fr;
}
.page-heading {
align-items: flex-start;
}
.cards {
gap: 8px;
}
.stat {
padding: 14px;
}
.stat strong {
font-size: 22px;
}
.filters {
flex-wrap: wrap;
}
dialog {
padding: 20px 15px;
}
.login-wrap {
margin: 30px 16px;
padding: 25px;
}
.header-right #mode {
display: none;
}
.print-preview-mini {
display: none;
}
}
.order-detail-navigation {
position: sticky;
top: 0;
z-index: 2;
background: var(--paper);
border: 1px solid #c6d3c6;
border-radius: 9px;
padding: 12px 15px;
margin: 0 44px 22px 0;
box-shadow: 0 3px 10px #233d3508;
}
.order-detail-navigation-row {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.order-detail-step {
min-width: 116px;
min-height: 43px;
border-color: #aebfad;
background: var(--white);
font-size: 14px;
color: var(--green);
}
.order-detail-step:not(:disabled):hover {
background: var(--green);
color: white;
}
.order-detail-step:disabled {
cursor: default;
}
.order-detail-position {
min-width: 57px;
text-align: center;
white-space: nowrap;
font-size: 14px;
font-weight: 650;
font-variant-numeric: tabular-nums;
}
.order-detail-navigation-hint {
flex: 1;
min-width: 190px;
}
.order-detail-navigation-error {
margin: 12px 0 0;
font-size: 12px;
}
.order-detail-navigation-error button {
font-size: 12px;
padding: 7px 11px;
margin-left: 4px;
}
@media (max-width: 650px) {
.order-detail-navigation {
padding: 11px 10px;
margin: 0 39px 18px 0;
}
.order-detail-navigation-row {
gap: 8px;
flex-wrap: wrap;
}
.order-detail-step {
flex: 1;
min-width: 0;
padding: 9px 6px;
font-size: 13px;
}
.order-detail-position {
min-width: 46px;
font-size: 13px;
}
.order-detail-navigation-hint {
flex-basis: 100%;
min-width: 0;
font-size: 11px;
}
.order-detail-navigation-error button {
margin: 8px 0 0;
display: block;
}
}
/* 开单分项输入 */
[hidden] {
display: none !important;
}
.sale-inputs,
.cost-fields {
margin-top: 16px;
}
.calculation {
margin: 12px 0;
color: var(--green);
}
input[readonly] {
background: #e9eee6;
font-weight: 600;
}
.cost-summary {
margin-top: 12px;
}
.fee-grid {
margin: 18px 0;
overflow-x: auto;
}
.fee-row {
display: grid;
grid-template-columns: minmax(160px, 1.8fr) minmax(130px, 1fr) minmax(110px, 0.9fr) minmax(140px, 1.2fr);
align-items: center;
gap: 18px;
min-width: 620px;
border-bottom: 1px solid var(--border);
padding: 12px 0;
}
.fee-row:last-child {
border-bottom: 0;
}
.fee-row > label {
min-width: 0;
}
.internal .cost-fields {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
.internal .cost-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 650px) {
.grid.four {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.internal .cost-fields {
grid-template-columns: 1fr;
}
}
.sale-charges {
margin-top: 18px;
padding: 16px;
border: 1px solid var(--border);
border-radius: 8px;
background: #f8faf5;
}
.sale-charges .panel-title {
margin-bottom: 8px;
}
.sale-charges p {
margin-bottom: 10px;
}
.charge-row {
display: flex;
gap: 12px;
align-items: end;
margin-top: 12px;
}
.charge-row label {
flex: 1;
min-width: 0;
}
.charge-row button {
flex: 0 0 auto;
}
.sale-result {
margin-top: 16px;
align-items: center;
}
@media (max-width: 650px) {
.charge-row {
display: grid;
grid-template-columns: 1fr 1fr;
}
.charge-row button {
justify-self: start;
}
.sale-charges .panel-title {
flex-wrap: wrap;
gap: 8px;
}
}
.fee-title {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
min-width: 0;
overflow-wrap: anywhere;
}
.fee-title > label {
width: 100%;
}
.fee-title .fee-name {
font-size: 14px;
}
.fee-help {
line-height: 1.5;
}
.fee-row > button {
justify-self: start;
}
.fee-verify-row {
display: grid;
grid-template-columns: minmax(160px, 1.8fr) minmax(130px, 1fr) minmax(110px, 0.9fr);
align-items: center;
gap: 18px;
min-width: 460px;
padding: 12px 0;
border-bottom: 1px solid var(--border);
}
.fee-verify-row:last-child {
border-bottom: 0;
}
.fee-verify-row h3 {
margin: 0;
overflow-wrap: anywhere;
}
/* 数字只手填,隐藏所有页面的加减按钮。 */
input[type='number'] {
appearance: textfield;
-moz-appearance: textfield;
}
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.cards.order-totals {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
details.panel > summary {
margin-bottom: 0;
}
details.panel[open] > summary {
margin-bottom: 18px;
}
.order-totals .stat span {
overflow-wrap: anywhere;
}
.purchase-material,
.purchase-labor {
grid-column: 1/-1;
border: 1px solid var(--border);
padding: 12px;
border-radius: 6px;
}
.purchase-material .purchase-formula,
.purchase-material .purchase-original,
.purchase-labor .purchase-formula {
margin: 8px 0 0;
}
.internal .purchase-material .grid,
.internal .purchase-labor .grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 650px) {
.internal .purchase-material .grid,
.internal .purchase-labor .grid {
grid-template-columns: 1fr;
}
}
/* 订单内部成本按付款人和项目核对。 */
.order-costs {
margin-top: 20px;
}
.order-costs th.number {
text-align: right;
}
.order-costs tfoot td {
font-weight: 650;
border-top: 1px solid var(--border);
background: var(--soft);
}
.order-costs .cost-item-list {
margin-top: 18px;
}
.order-costs .cost-footer {
margin: 14px 0 0;
}
/* 单据先看销售计算、有效成本和利润,来源及往来流水按需展开。 */
.detail-cost-payer-totals {
display: flex;
flex-wrap: wrap;
gap: 5px 16px;
font-size: 11px;
line-height: 1.7;
margin: 9px 0 0;
font-variant-numeric: tabular-nums;
}
.detail-cost-payer-totals b {
font-weight: 550;
white-space: nowrap;
}
.detail-actions {
margin-bottom: 20px;
}
.order-detail-breakdown {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 18px;
align-items: start;
margin-top: 20px;
}
.order-detail-breakdown > .panel {
margin: 0;
min-width: 0;
padding: 20px;
}
.order-detail-breakdown .panel-title {
margin-bottom: 16px;
gap: 10px;
flex-wrap: wrap;
}
.order-detail-breakdown h2 {
font-size: 17px;
}
.detail-sale-line {
padding: 15px 0;
border-bottom: 1px solid var(--border);
min-width: 0;
}
.detail-sale-line:first-of-type {
padding-top: 0;
}
.detail-line-heading {
display: flex;
justify-content: space-between;
gap: 10px;
align-items: baseline;
margin-bottom: 10px;
}
.detail-line-heading > strong {
font-size: 14px;
font-weight: 600;
overflow-wrap: anywhere;
}
.detail-line-heading > span {
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.detail-formula {
font-size: 13px;
line-height: 1.9;
margin: 0;
overflow-wrap: anywhere;
font-variant-numeric: tabular-nums;
}
.detail-formula > strong {
font-size: 16px;
white-space: nowrap;
}
.detail-price-note {
margin: 6px 0 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.detail-sale-addons {
display: grid;
gap: 4px;
font-size: 12px;
line-height: 1.7;
margin: 10px 0 0;
overflow-wrap: anywhere;
}
.detail-sale-addons b {
font-weight: 500;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.detail-line-total {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 12px;
margin-top: 10px;
font-variant-numeric: tabular-nums;
}
.detail-line-total > span {
color: var(--muted);
}
.detail-sale-total {
padding-top: 14px;
}
.detail-total-row {
display: flex;
justify-content: space-between;
gap: 14px;
font-size: 12px;
margin: 5px 0;
font-variant-numeric: tabular-nums;
}
.detail-total-row > span:last-child,
.detail-total-final > strong {
white-space: nowrap;
}
.detail-total-final {
align-items: baseline;
font-size: 14px;
margin-top: 10px;
}
.detail-total-final > strong {
font-size: 25px;
font-weight: 650;
color: var(--green);
}
.detail-rounding {
margin: 10px 0 0;
line-height: 1.75;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.detail-customer-note {
margin: 14px 0 0;
padding-top: 12px;
border-top: 1px solid var(--border);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.detail-cost-table {
font-size: 12px;
table-layout: fixed;
}
.detail-cost-table th,
.detail-cost-table td {
padding: 10px 7px;
line-height: 1.65;
overflow-wrap: anywhere;
}
.detail-cost-table th:first-child {
width: 50%;
}
.detail-cost-table th:nth-child(2) {
width: 24%;
}
.detail-cost-table td.number {
font-size: 12px;
}
.detail-cost-table .small {
font-size: 10px;
margin-top: 3px;
}
.detail-cost-payer {
font-size: 11px;
white-space: normal;
font-variant-numeric: tabular-nums;
}
.detail-cost-missing {
background: #faf5e9;
}
.detail-cost-sum {
padding-top: 14px;
margin-top: 12px;
border-top: 1px solid var(--border);
font-size: 12px;
}
.detail-cost-sum > span {
color: var(--muted);
}
.detail-cost-equation {
line-height: 1.85;
font-variant-numeric: tabular-nums;
margin-top: 4px;
overflow-wrap: anywhere;
}
.detail-cost-equation > strong {
font-size: 20px;
font-weight: 650;
white-space: nowrap;
}
.detail-cost-warning,
.detail-cost-status {
margin: 10px 0 0;
line-height: 1.75;
}
.detail-zero-cost {
margin: 0;
}
.detail-pending-costs {
margin-top: 16px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.detail-pending-costs > p {
margin-bottom: 10px;
}
.detail-cost-history {
margin: 16px 0 0;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.detail-cost-history > summary {
font-size: 12px;
font-weight: 500;
}
.detail-cost-history > .table-wrap {
margin-top: 12px;
}
.detail-profit {
margin: 18px 0 20px;
padding: 20px 24px;
background: #edf2e9;
border-color: #cdd8ca;
}
.detail-profit-heading {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 14px;
}
.detail-profit h2 {
font-size: 17px;
margin: 0;
}
.detail-profit-heading > strong {
font-size: 24px;
font-weight: 650;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.detail-profit-formula {
margin: 8px 0 0;
font-size: 13px;
line-height: 1.85;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.detail-profit > p.small {
margin: 8px 0 0;
}
.detail-product-sources {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: 14px;
font-size: 12px;
}
.detail-product-sources li {
display: grid;
gap: 3px;
overflow-wrap: anywhere;
}
.detail-product-sources li > span {
color: var(--muted);
}
.detail-product-trace > summary,
.detail-settlement > summary {
font-size: 13px;
}
.detail-product-trace {
margin-top: 0;
}
@media (max-width: 850px) {
.order-detail-breakdown {
grid-template-columns: 1fr;
gap: 14px;
}
.order-detail-breakdown > .panel {
padding: 18px 20px;
}
.detail-cost-table th:first-child {
width: 55%;
}
.detail-cost-table th:nth-child(2) {
width: 24%;
}
}
@media (max-width: 650px) {
.detail-actions {
gap: 7px;
margin-bottom: 16px;
}
.detail-actions > button {
font-size: 12px;
padding: 8px 11px;
}
.order-detail-breakdown {
margin-top: 16px;
}
.order-detail-breakdown > .panel {
padding: 17px 14px;
}
.detail-formula {
font-size: 12px;
}
.detail-formula > strong {
font-size: 15px;
}
.detail-line-heading {
gap: 7px;
}
.detail-line-heading > strong {
font-size: 13px;
}
.detail-line-heading > span {
font-size: 11px;
}
.detail-cost-table th,
.detail-cost-table td {
padding: 9px 4px;
}
.detail-cost-table th:first-child {
width: 47%;
}
.detail-cost-table th:nth-child(2) {
width: 27%;
}
.detail-cost-table td.number {
font-size: 11px;
}
.detail-cost-payer {
font-size: 10px;
}
.detail-profit {
padding: 17px 14px;
}
.detail-profit-heading {
align-items: flex-start;
}
.detail-profit-heading > strong {
font-size: 21px;
max-width: 58%;
text-align: right;
}
.detail-profit h2 {
font-size: 15px;
}
.detail-profit-formula {
font-size: 12px;
}
}
/* 订单账本:按日期查看,同一行核对销售与成本。 */
/* 开单模板:与订单表单分开,模板操作不提交销售。 */
.order-template-panel {
padding: 19px 22px;
}
.order-template-panel .panel-title {
margin-bottom: 13px;
}
.order-template-controls {
display: flex;
align-items: end;
gap: 14px;
flex-wrap: wrap;
}
.order-template-controls > label {
flex: 1;
min-width: 200px;
max-width: 420px;
}
.order-template-controls > .actions {
gap: 7px;
flex-wrap: wrap;
}
.order-template-controls button {
min-height: 43px;
white-space: nowrap;
}
.order-template-hint {
margin: 12px 0 0;
line-height: 1.7;
}
#order-template-status:not(:empty) {
margin-top: 9px;
overflow-wrap: anywhere;
}
#order-template-dialog {
width: min(540px, 96vw);
padding: 26px 28px;
}
#order-template-title {
padding-right: 24px;
margin: 0 0 14px;
}
#order-template-dialog > p {
line-height: 1.8;
margin-bottom: 20px;
}
#order-template-form .form-actions {
justify-content: flex-start;
gap: 10px;
margin-top: 20px;
}
@media (max-width: 650px) {
.order-template-panel {
padding: 17px 15px;
}
.order-template-controls {
gap: 10px;
}
.order-template-controls > label {
flex-basis: 100%;
max-width: none;
min-width: 0;
}
.order-template-controls > .actions {
width: 100%;
}
.order-template-controls button {
font-size: 12px;
padding: 8px 10px;
min-height: 38px;
}
.order-template-panel .panel-title {
gap: 10px;
flex-wrap: wrap;
}
#order-template-dialog {
padding: 23px 18px;
}
}
.order-book-dates {
display: flex;
align-items: center;
gap: 18px;
flex-wrap: wrap;
margin: -4px 0 18px;
}
.order-period-buttons {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.order-range-fields:not([hidden]) {
display: flex;
gap: 18px;
flex-wrap: wrap;
}
.order-book-dates [hidden] {
display: none;
}
.order-period-buttons button {
padding: 8px 19px;
font-weight: 500;
}
.order-period-buttons button.active {
background: var(--green);
border-color: var(--green);
color: white;
}
.order-date-field {
display: flex;
align-items: center;
gap: 10px;
white-space: nowrap;
}
.order-date-field input {
width: 165px;
min-height: 39px;
margin: 0;
padding: 7px 10px;
}
.order-book-cards {
margin-bottom: 10px;
gap: 12px;
}
.order-book-cards .stat {
padding: 16px 18px;
min-width: 0;
}
.order-book-cards .stat > strong {
font-size: 26px;
white-space: nowrap;
line-height: 1.35;
margin: 8px 0;
}
.order-book-cards .stat-unit {
font-size: 14px;
font-weight: 400;
margin-left: 6px;
}
.order-book-cards .hint {
line-height: 1.65;
color: var(--muted);
}
.order-book-cards .emphasis .hint {
color: #d3e1d5;
}
.order-stat-lines {
display: grid;
gap: 3px;
font-size: 12px;
margin-top: 7px;
}
.order-stat-lines > span {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
}
.order-stat-lines b {
font-weight: 400;
color: var(--muted);
}
.order-stat-lines > span > span {
font-variant-numeric: tabular-nums;
white-space: nowrap;
color: var(--ink);
}
.order-stat-refund {
font-size: 11px;
border-top: 1px solid var(--border);
margin-top: 7px;
padding-top: 5px;
}
.order-book-scope {
margin: 0 0 20px;
}
.order-book-panel {
padding: 18px 0 0;
overflow: hidden;
}
.order-book-filters {
padding: 0 18px;
margin-bottom: 16px;
gap: 10px;
}
.order-book-filters input,
.order-book-filters select {
min-height: 38px;
padding: 7px 10px;
}
.order-book-filters #order-book-count {
margin-left: auto;
}
.order-book-table-wrap {
max-width: 100%;
border-top: 1px solid var(--border);
}
.order-book-table {
font-size: 12px;
min-width: 1120px;
}
.order-book-table th {
font-size: 11px;
padding: 10px 12px;
background: #f4f5ee;
}
.order-book-table td {
padding: 12px 10px;
border-right: 1px solid #eef0e7;
line-height: 1.6;
}
.order-book-table th.number {
text-align: right;
}
.order-book-table .order-index {
width: 46px;
min-width: 46px;
text-align: center;
color: var(--muted);
}
.order-book-table .order-customer {
min-width: 155px;
max-width: 200px;
}
.order-book-link {
font-size: 12px;
max-width: 100%;
overflow-wrap: anywhere;
font-weight: 400;
display: block;
}
.order-book-link strong,
.order-book-link > span {
display: block;
}
.order-book-link strong {
font-weight: 600;
}
.order-book-link > span {
margin-top: 2px;
}
.order-book-table .order-type {
min-width: 68px;
font-size: 11px;
max-width: 100px;
overflow-wrap: anywhere;
}
.order-book-table .order-status {
font-size: 11px;
}
.order-book-table .order-notes {
min-width: 125px;
max-width: 205px;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.order-book-table .order-notes .small {
margin-top: 5px;
}
.order-book-table .order-fees {
min-width: 135px;
max-width: 190px;
}
.order-fee-parts {
display: grid;
gap: 1px;
font-size: 10px;
color: var(--muted);
white-space: normal;
margin-top: 4px;
line-height: 1.5;
min-width: 110px;
}
.order-fee-parts > span {
display: block;
}
.order-book-table .order-profit {
font-weight: 600;
}
.order-book-table tbody tr:hover {
background: #f8f9f3;
}
.order-book-table .order-draft {
background: #faf7ef;
}
.order-book-table .order-reversed {
background: #f7f6f2;
}
.order-book-table tfoot td {
background: #edf2e9;
border-top: 1px solid #cdd8ca;
font-weight: 600;
padding-top: 13px;
padding-bottom: 13px;
}
.order-book-table tfoot .small {
font-weight: 400;
}
.order-book-footnote {
padding: 12px 18px;
margin: 0;
border-top: 1px solid var(--border);
font-size: 11px;
}
.order-book-message {
padding: 40px 20px;
text-align: center;
color: var(--muted);
}
.order-book-message.error {
margin: 15px 18px;
}
.order-book-message.error button {
margin-top: 14px;
}
.order-book-message.error strong {
font-weight: 500;
}
.order-book-cards .stat .danger-text {
color: var(--danger);
}
@media (max-width: 1200px) {
.order-book-cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.order-book-cards .stat {
padding: 14px 17px;
}
.order-stat-lines {
max-width: 280px;
}
}
@media (max-width: 650px) {
.order-book-dates {
gap: 12px;
}
.order-period-buttons button {
padding: 7px 17px;
}
.order-date-field {
font-size: 11px;
gap: 7px;
}
.order-date-field input {
width: 153px;
}
.order-book-dates #order-period-caption {
width: 100%;
margin-top: -5px;
}
.order-book-cards {
gap: 8px;
}
.order-book-cards .stat {
padding: 12px;
}
.order-book-cards .stat > strong {
font-size: 22px;
}
.order-book-cards .stat > small {
font-size: 11px;
}
.order-stat-lines {
font-size: 11px;
}
.order-stat-lines > span {
gap: 5px;
flex-wrap: wrap;
}
.order-book-scope {
font-size: 11px;
}
.order-book-filters #order-book-count {
margin-left: 0;
width: 100%;
}
.order-book-filters input {
flex: 1;
min-width: 160px;
}
.order-book-filters select {
width: 125px;
}
.order-book-table td {
padding: 10px 8px;
}
.order-book-footnote {
padding: 10px 14px;
}
}
/* 常见桌面宽度完整展示十列;金额不拆行,表尾“已知”可与金额分行。 */
.order-book-filters {
flex-wrap: wrap;
align-items: end;
}
.order-book-filters .order-pocket-field {
flex: 0 1 160px;
min-width: 125px;
margin: 0;
}
.order-book-filters .order-pocket-field select {
max-width: 100%;
}
.order-pocket-hint {
padding: 0 18px 14px;
margin: 0;
}
.order-book-table {
min-width: 960px;
}
.order-book-table th {
padding: 10px 8px;
}
.order-book-table td {
padding: 11px 7px;
}
.order-book-table .order-index {
width: 34px;
min-width: 34px;
}
.order-book-table .order-customer {
min-width: 125px;
max-width: 165px;
}
.order-book-table .order-type {
min-width: 56px;
max-width: 85px;
}
.order-book-table .order-notes {
min-width: 100px;
max-width: 180px;
}
.order-book-table .order-fees {
min-width: 124px;
max-width: 165px;
}
.order-fee-parts {
min-width: 95px;
}
.order-book-table tfoot td.number {
white-space: normal;
word-break: keep-all;
}
@media (max-width: 1100px) {
.order-book-table-wrap::before {
content: '左右滑动查看完整表格 →';
display: block;
position: sticky;
left: 0;
width: 100%;
padding: 6px 12px;
background: #f4f5ee;
color: var(--muted);
font-size: 11px;
white-space: nowrap;
border-bottom: 1px solid var(--border);
}
}
.order-book-table .order-book-customer-name {
font-size: 16px;
font-weight: 650;
line-height: 1.6;
white-space: normal;
overflow-wrap: anywhere;
}
.order-book-table .order-book-secondary {
font-size: 11px;
font-weight: 400;
color: var(--muted);
white-space: normal;
overflow-wrap: anywhere;
}
.order-book-table .order-reversed .order-book-customer-name {
color: var(--danger);
}
.order-book-table .order-book-identity-line {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 5px 7px;
margin-top: 0;
}
.order-book-identity-line > .order-book-customer-name {
min-width: 0;
}
.order-book-table .order-book-recovery-badge {
display: inline-block;
flex-shrink: 0;
border: 1px solid #b8872b;
border-radius: 4px;
background: #fff0c5;
color: #79500d;
padding: 1px 6px;
font-size: 12px;
line-height: 1.65;
font-weight: 700;
white-space: nowrap;
}
.order-book-table .order-book-recovery-badge.is-exchange {
border-color: #4f8494;
background: #e6f2f6;
color: #275b6a;
}
.order-book-table .order-book-recovery-payment {
font-size: 12px;
font-weight: 600;
color: #79500d;
white-space: nowrap;
}
.order-book-table .order-book-recovery-print {
padding: 1px 0;
font-size: 11px;
margin-top: 3px;
}
/* 库存:当前数量与昨日实际保存值并排核对。 */
.stock-heading {
align-items: flex-start;
flex-wrap: wrap;
}
.stock-heading > .actions {
align-items: center;
}
.stock-export {
font-size: 12px;
padding: 8px 0;
margin-left: 3px;
white-space: nowrap;
}
.stock-cards {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 14px;
margin-bottom: 18px;
}
.stock-cards .stock-card {
padding: 18px 16px;
min-width: 0;
}
.stock-card .stock-pocket-name {
font-size: 14px;
font-weight: 600;
color: var(--ink);
}
.stock-current-label {
font-size: 11px;
color: var(--muted);
margin-top: 10px;
}
.stock-cards .stock-card > strong {
font-size: 27px;
line-height: 1.4;
margin: 3px 0 12px;
white-space: nowrap;
}
.stock-card > strong > span {
font-size: 13px;
font-weight: 400;
}
.stock-reserved {
font-size: 10px;
margin: -5px 0 10px;
line-height: 1.6;
}
.stock-yesterday {
padding-top: 10px;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 3px;
}
.stock-yesterday > span {
font-size: 11px;
}
.stock-yesterday > span > small {
display: inline;
font-size: 10px;
margin-left: 4px;
}
.stock-yesterday > b {
font-size: 15px;
font-weight: 500;
font-variant-numeric: tabular-nums;
}
.stock-yesterday > b.muted {
font-size: 12px;
font-weight: 400;
}
.stock-review-status {
margin: 0 0 24px;
line-height: 1.7;
}
.stock-review-status p {
margin: 6px 0 0;
}
.stock-review-stale {
color: #805617;
}
.stock-review-stale p {
color: #805617;
}
.stock-review-status .badge {
margin-right: 4px;
}
.stock-entry h2 {
margin-bottom: 7px;
}
.stock-entry > p {
margin-bottom: 18px;
}
.stock-entry-fields {
display: grid;
grid-template-columns: minmax(90px, 0.7fr) minmax(125px, 1fr) minmax(130px, 1fr) minmax(155px, 1fr);
gap: 16px;
}
.stock-entry-fields > label {
min-width: 0;
}
.is-transfer .stock-entry-fields {
grid-template-columns: minmax(80px, 0.65fr) minmax(105px, 1fr) minmax(105px, 1fr) minmax(120px, 1fr) minmax(
150px,
1.1fr
);
}
.stock-entry-bottom {
display: flex;
align-items: flex-end;
gap: 16px;
margin-top: 16px;
}
.stock-entry-bottom > label {
flex: 1;
min-width: 0;
}
.stock-entry-bottom > button {
min-height: 43px;
white-space: nowrap;
}
.stock-history .panel-title {
margin-bottom: 15px;
}
.stock-history-filters {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 17px;
}
.stock-history-periods {
display: flex;
gap: 6px;
}
.stock-history-periods button {
padding: 7px 15px;
font-weight: 500;
}
.stock-history-periods button.active {
background: var(--green);
border-color: var(--green);
color: white;
}
.stock-snapshot-table {
min-width: 815px;
}
.stock-snapshot-table th.number {
text-align: right;
}
.stock-snapshot-table td {
font-variant-numeric: tabular-nums;
}
.stock-snapshot-table td:first-child {
white-space: nowrap;
}
.stock-snapshot-table .stock-snapshot-note {
min-width: 155px;
max-width: 235px;
font-size: 12px;
}
.stock-snapshot-note .small {
margin-top: 5px;
}
.stock-stale-text {
color: #805617;
}
.stock-history-note {
margin: 13px 0 0;
}
.stock-message {
padding: 28px 15px;
text-align: center;
color: var(--muted);
}
.stock-message.error {
color: var(--danger);
}
.stock-message > div {
margin-top: 12px;
}
.stock-legacy {
font-size: 12px;
color: var(--muted);
margin: 0 0 20px;
}
.stock-legacy summary {
font-weight: 500;
}
.stock-legacy p {
margin: 10px 0 0;
}
.stock-yesterday .stock-yesterday-source {
font-size: 10px;
line-height: 1.5;
}
.stock-automatic-status {
overflow-wrap: anywhere;
}
.stock-cards {
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stock-pocket-name {
overflow-wrap: anywhere;
}
.pocket-manage-entry {
background: #e7eee4;
border-color: #819876;
color: #244b32;
font-weight: 650;
}
.pocket-manager {
border: 1px solid #819876;
scroll-margin-top: 20px;
}
.pocket-manager > p {
line-height: 1.75;
}
.pocket-create-form {
display: flex;
align-items: end;
gap: 12px;
padding: 12px 0 20px;
border-bottom: 1px solid var(--border);
}
.pocket-create-form > label {
flex: 1;
max-width: 420px;
}
.pocket-create-form > button {
min-height: 43px;
}
.pocket-manager-list {
margin-top: 6px;
}
.pocket-rename-form {
display: flex;
align-items: center;
gap: 14px;
padding: 15px 0;
border-bottom: 1px solid var(--border);
}
.pocket-rename-form > label {
flex: 1;
max-width: 420px;
margin: 0;
}
.pocket-rename-form > .badge {
white-space: nowrap;
margin-top: 17px;
}
.pocket-rename-form > .actions {
margin-top: 17px;
flex-wrap: nowrap;
}
.pocket-rename-form:last-child {
border-bottom: 0;
}
.pocket-selection-note {
margin: 6px 0 0;
line-height: 1.6;
}
.stock-legacy-balances {
display: flex;
flex-wrap: wrap;
gap: 12px 24px;
}
.stock-legacy-balances > div {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.stock-legacy-balances strong {
color: var(--ink);
overflow-wrap: anywhere;
}
.stock-legacy-balances b {
font-size: 16px;
font-variant-numeric: tabular-nums;
color: var(--ink);
}
.pocket-create-form,
.pocket-rename-form {
flex-wrap: wrap;
}
.pocket-count-settings {
order: 3;
flex-basis: 100%;
min-width: 0;
}
.pocket-count-settings .check {
margin: 0;
}
.pocket-count-settings [data-pocket-count-baseline] {
max-width: 650px;
padding: 10px 12px;
background: #f4f6f1;
border-radius: 6px;
margin-top: 8px;
}
.pocket-count-settings p {
margin: 5px 0;
line-height: 1.6;
}
.stock-count-field small {
font-size: 11px;
line-height: 1.6;
font-weight: 400;
}
.stock-count-number {
font-variant-numeric: tabular-nums;
color: var(--green);
font-weight: 600;
}
.stock-card > .stock-count-number {
font-size: 21px;
margin: -8px 0 13px;
}
.inventory-movement-table .stock-count-number {
white-space: nowrap;
}
.return-stock-item {
display: flex;
flex-direction: column;
gap: 10px;
}
@media (max-width: 650px) {
.pocket-create-form {
flex-wrap: wrap;
}
.pocket-create-form > label {
width: 100%;
flex-basis: 100%;
}
.pocket-rename-form {
flex-wrap: wrap;
gap: 9px;
}
.pocket-rename-form > label {
flex-basis: calc(100% - 85px);
min-width: 0;
}
.pocket-rename-form > .actions {
width: 100%;
margin-top: 0;
justify-content: flex-end;
}
.stock-legacy-balances {
flex-direction: column;
}
}
.inventory-movement-pagination {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
margin: 0 0 16px;
}
.inventory-movement-pagination:empty {
display: none;
}
.inventory-movement-pagination .actions {
gap: 8px;
}
.inventory-movement-pagination button {
padding: 7px 14px;
}
@media (max-width: 1150px) {
.stock-cards {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stock-cards .stock-card > strong {
font-size: 25px;
}
}
@media (max-width: 850px) {
.stock-entry-fields,
.is-transfer .stock-entry-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stock-heading > .actions {
width: 100%;
}
}
@media (max-width: 650px) {
.stock-cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.stock-cards .stock-card {
padding: 14px 12px;
}
.stock-cards .stock-card > strong {
font-size: 24px;
}
.stock-yesterday > b {
font-size: 14px;
}
.stock-heading {
gap: 15px;
}
.stock-heading .actions {
gap: 8px;
}
.stock-heading .actions > button {
font-size: 12px;
padding: 9px 12px;
}
.stock-export {
margin-left: 2px;
}
.stock-entry-fields,
.is-transfer .stock-entry-fields {
gap: 12px;
}
.stock-entry-bottom {
align-items: stretch;
flex-direction: column;
gap: 13px;
}
.stock-entry-bottom > button {
align-self: flex-start;
}
.stock-history-filters {
gap: 12px;
}
.stock-history-filters #inventory-history-caption {
width: 100%;
margin-top: -4px;
}
.stock-history .panel-title {
gap: 10px;
}
.stock-history-note {
font-size: 11px;
}
}
/* 每日对账:同一开单日期范围,收款与双方实际成本并排核对。 */
.report-controls {
display: flex;
gap: 18px;
align-items: center;
flex-wrap: wrap;
}
.report-controls > label:first-child {
min-width: 165px;
}
.report-controls .check {
margin: 20px 0 0;
white-space: nowrap;
}
.report-scope {
margin: -8px 0 20px;
line-height: 1.7;
}
.report-cards {
gap: 12px;
}
.report-cards .stat {
padding: 16px 18px;
min-width: 0;
}
.report-cards .stat > strong {
font-size: 26px;
white-space: nowrap;
margin: 7px 0;
}
.report-cards .hint {
line-height: 1.65;
color: var(--muted);
}
.report-cards .emphasis .hint {
color: #d3e1d5;
}
.report-primary {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
gap: 20px;
align-items: start;
}
.report-primary > .panel {
padding: 20px;
min-width: 0;
}
.report-primary h2 {
margin-bottom: 8px;
}
.report-primary .table-wrap {
margin-top: 16px;
}
.report-primary table {
font-size: 12px;
}
.report-primary th,
.report-primary td {
padding: 11px 8px;
}
.report-primary th.number,
.report-order-net th.number,
.report-unsettled th.number {
text-align: right;
}
.report-primary tfoot td,
.report-order-net tfoot td {
font-weight: 600;
background: var(--soft);
border-top: 1px solid var(--border);
}
.report-accounts table {
min-width: 330px;
}
.report-payer-table {
min-width: 405px;
}
.report-payer-table td:first-child {
min-width: 112px;
}
.report-payer-table td:first-child > strong {
font-size: 13px;
font-weight: 600;
}
.report-payer-table td:first-child > .small {
font-size: 10px;
max-width: 160px;
line-height: 1.5;
margin-top: 4px;
}
.report-payer-table .report-cost-total {
font-size: 17px;
font-weight: 650;
color: var(--green);
line-height: 1.45;
}
.report-cost-note {
margin: 14px 0 0;
font-size: 11px;
line-height: 1.7;
}
.report-cost-detail {
padding-top: 14px;
margin: 15px 0 0;
border-top: 1px solid var(--border);
}
.report-cost-detail > summary {
font-weight: 500;
font-size: 12px;
}
.report-cost-detail > summary > .small {
font-size: 11px;
margin-left: 6px;
}
.report-cost-detail > .table-wrap {
margin-top: 12px;
}
.report-cost-detail-table {
min-width: 420px;
}
.report-cost-detail-table td:first-child {
white-space: nowrap;
width: 125px;
}
.report-cost-detail-table td:nth-child(2) {
min-width: 155px;
overflow-wrap: anywhere;
}
.report-cost-detail-table td > .small {
font-size: 10px;
margin-top: 3px;
}
.report-pending-cost {
background: #faf7ef;
}
.report-order-table {
min-width: 820px;
font-size: 12px;
}
.report-order-table th {
font-size: 11px;
padding: 11px 10px;
}
.report-order-table td {
padding: 12px 10px;
line-height: 1.6;
}
.report-order-table td:first-child {
min-width: 145px;
max-width: 260px;
}
.report-order-table td:first-child > .small {
font-size: 10px;
white-space: normal;
margin-top: 5px;
}
.report-order-table td:nth-child(2) {
white-space: nowrap;
}
.report-order-table tfoot td.number {
white-space: normal;
word-break: keep-all;
}
.report-secondary .note {
margin-bottom: 0;
}
.report-query-message {
text-align: center;
padding: 35px 20px;
color: var(--muted);
}
.report-query-message p {
margin-bottom: 0;
}
.report-query-message.error {
color: var(--danger);
}
.report-query-message > button {
margin-top: 15px;
}
@media (max-width: 1180px) {
.report-primary {
grid-template-columns: 1fr;
}
.report-cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.report-primary > .panel {
padding: 20px 22px;
}
.report-payer-table td:first-child {
width: 32%;
}
.report-payer-table .report-cost-total {
font-size: 19px;
}
.report-cost-detail-table td:first-child {
width: 155px;
}
}
@media (max-width: 650px) {
.report-controls {
gap: 10px;
}
.report-controls > label:first-child {
min-width: 150px;
}
.report-controls .check {
font-size: 12px;
margin-top: 15px;
}
.report-cards {
gap: 8px;
}
.report-cards .stat {
padding: 13px 12px;
}
.report-cards .stat > strong {
font-size: 22px;
}
.report-cards .stat > small {
font-size: 11px;
}
.report-primary {
gap: 0;
}
.report-primary > .panel {
padding: 17px 14px;
}
.report-scope {
font-size: 11px;
}
.report-payer-table .report-cost-total {
font-size: 16px;
}
.report-primary .table-wrap {
margin-top: 12px;
}
.report-order-net {
padding: 17px 14px;
}
.report-order-table td {
padding: 10px 8px;
}
.report-secondary .panel {
padding: 17px 14px;
}
.report-unsettled table {
min-width: 620px;
}
}
/* 先按收款人汇总,逐笔收款与退款分别核对。 */
.report-receipts {
margin-bottom: 20px;
min-width: 0;
}
.report-receipt-scope {
margin: 0 0 12px;
line-height: 1.7;
}
.report-recipient-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 14px;
align-items: start;
}
.report-recipient {
min-width: 0;
max-width: 100%;
margin: 0;
padding: 20px;
}
.report-recipient-summary {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 8px 24px;
min-width: 0;
}
.report-recipient h2 {
font-size: 16px;
margin: 0;
overflow-wrap: anywhere;
}
.report-recipient-total {
font-size: 30px;
line-height: 1.4;
font-weight: 650;
color: var(--green);
font-variant-numeric: tabular-nums;
max-width: 100%;
overflow-wrap: anywhere;
}
.report-recipient-net {
display: flex;
gap: 8px 22px;
flex-wrap: wrap;
font-size: 12px;
color: var(--muted);
margin: 0;
max-width: 100%;
font-variant-numeric: tabular-nums;
}
.report-recipient-net > span {
max-width: 100%;
overflow-wrap: anywhere;
}
.report-receipt-detail {
margin: 16px 0 0;
padding-top: 13px;
border-top: 1px solid var(--border);
min-width: 0;
}
.report-receipt-detail > summary {
font-size: 13px;
color: var(--green);
}
.report-receipt-detail > summary > .small {
font-weight: 400;
font-size: 11px;
margin-left: 6px;
color: var(--muted);
}
.report-receipt-detail > summary:focus-visible,
.report-receipt-detail > .table-wrap:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 3px;
border-radius: 3px;
}
.report-receipt-detail > .table-wrap {
margin-top: 12px;
max-width: 100%;
overflow-x: auto;
overscroll-behavior-x: contain;
}
.report-receipt-table {
width: 100%;
min-width: 0;
table-layout: fixed;
font-size: 12px;
}
.report-receipt-table th,
.report-receipt-table td {
padding: 10px 8px;
line-height: 1.65;
white-space: normal;
overflow-wrap: anywhere;
}
.report-receipt-table th:first-child {
width: 25%;
}
.report-receipt-table th:nth-child(2) {
width: 25%;
}
.report-receipt-table th:nth-child(3) {
width: 28%;
}
.report-receipt-table th:last-child {
width: 22%;
}
.report-receipt-table th.number {
text-align: right;
}
.report-receipt-table td > .small {
font-size: 10px;
margin-top: 3px;
}
.report-receipt-table .link-button {
font-size: 12px;
max-width: 100%;
overflow-wrap: anywhere;
}
.report-receipt-table tfoot td {
font-weight: 600;
background: var(--soft);
border-top: 1px solid var(--border);
}
.report-receipt-reversal {
background: #faf7ef;
}
.report-receipt-note {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
@media (max-width: 650px) {
.report-receipt-scope {
font-size: 11px;
}
.report-recipient {
padding: 17px 14px;
}
.report-recipient-summary {
gap: 6px 16px;
}
.report-recipient-total {
font-size: 27px;
}
.report-recipient-net {
gap: 6px 17px;
}
.report-receipt-table {
font-size: 11px;
}
.report-receipt-table th,
.report-receipt-table td {
padding: 9px 5px;
}
}
.report-ownership-equation {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 6px 12px;
margin: 12px 0;
font-size: 12px;
color: var(--muted);
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.report-ownership-equation b {
font-weight: 550;
color: var(--ink);
}
.report-ownership-equation > strong {
color: var(--green);
font-weight: 650;
}
.report-ownership-accounts {
display: flex;
flex-wrap: wrap;
gap: 14px 28px;
margin-top: 16px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.report-ownership-account-group {
flex: 1 1 230px;
min-width: 0;
}
.report-ownership-account-group h3 {
font-size: 12px;
color: var(--muted);
font-weight: 500;
margin: 0 0 8px;
}
.report-ownership-account-group ul {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: 9px;
}
.report-ownership-account-group li {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
font-size: 13px;
}
.report-ownership-account-group li > div {
min-width: 0;
overflow-wrap: anywhere;
}
.report-ownership-account-group li small {
display: block;
font-size: 10px;
color: var(--muted);
line-height: 1.7;
margin-top: 2px;
}
.report-ownership-account-group li > strong {
font-size: 14px;
font-weight: 550;
max-width: 50%;
overflow-wrap: anywhere;
font-variant-numeric: tabular-nums;
}
.report-ownership-account-group > p {
margin: 0;
}
.report-ownership-empty {
margin-bottom: 0;
}
.report-ownership-empty > p {
margin: 0;
}
@media (max-width: 650px) {
.report-ownership-equation {
gap: 6px 9px;
}
.report-ownership-accounts {
gap: 17px;
}
.report-ownership-account-group {
flex-basis: 100%;
}
}
.report-business-cost,
.report-business-profit,
.report-business-settlement {
border-top: 1px solid var(--border);
margin-top: 17px;
padding-top: 15px;
min-width: 0;
}
.report-business-cost h3,
.report-business-profit h3,
.report-business-settlement h3 {
font-size: 13px;
font-weight: 550;
margin: 0;
}
.report-business-heading {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 7px 18px;
}
.report-business-heading h3 .small {
margin-left: 9px;
font-size: 11px;
font-weight: 400;
}
.report-business-heading > strong {
font-size: 22px;
font-weight: 600;
overflow-wrap: anywhere;
font-variant-numeric: tabular-nums;
}
.report-business-paid {
display: flex;
flex-wrap: wrap;
gap: 10px 32px;
margin-top: 9px;
font-size: 13px;
}
.report-business-paid > span {
min-width: 0;
overflow-wrap: anywhere;
}
.report-business-paid b {
font-size: 15px;
font-weight: 550;
margin-left: 5px;
font-variant-numeric: tabular-nums;
}
.report-business-paid small {
display: block;
font-size: 11px;
color: var(--muted);
margin-top: 4px;
}
.report-business-profit {
padding: 13px 15px;
background: #f1f5ed;
border: 1px solid #dce5d5;
border-radius: 7px;
}
.report-business-profit-equation,
.report-business-balance-equation {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 5px 10px;
font-size: 13px;
line-height: 1.8;
font-variant-numeric: tabular-nums;
margin: 7px 0 0;
overflow-wrap: anywhere;
}
.report-business-profit-equation b,
.report-business-balance-equation b {
font-weight: 500;
}
.report-business-profit-equation > strong {
font-size: 25px;
font-weight: 650;
color: var(--green);
}
.report-business-profit-equation > strong.danger-text {
color: var(--danger);
}
.report-business-profit-pending {
display: block;
font-size: 22px;
font-weight: 600;
margin-top: 8px;
}
.report-business-profit > p.small {
margin: 7px 0 0;
}
.report-business-difference {
font-size: 11px;
color: var(--muted);
line-height: 1.8;
margin-top: 9px;
}
.report-business-difference p {
margin: 0;
}
.report-business-difference ul {
padding-left: 17px;
margin: 5px 0 0;
}
.report-business-dues {
display: flex;
flex-wrap: wrap;
gap: 12px 32px;
margin-top: 9px;
}
.report-business-dues > div {
display: flex;
align-items: baseline;
gap: 10px;
min-width: 0;
flex-wrap: wrap;
}
.report-business-dues span {
font-size: 12px;
color: var(--muted);
}
.report-business-dues strong {
font-size: 19px;
font-weight: 600;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.report-business-settlement-notice {
margin: 9px 0 0;
line-height: 1.7;
font-size: 11px;
}
.report-business-period {
margin: 9px 0 0;
font-size: 11px;
color: var(--muted);
line-height: 1.8;
overflow-wrap: anywhere;
font-variant-numeric: tabular-nums;
}
.report-business-period p {
margin: 3px 0 0;
}
.report-business-counterparts {
margin: 13px 0 0;
}
.report-business-counterparts > summary {
font-size: 12px;
font-weight: 500;
}
.report-business-counterparts > section {
border-top: 1px solid var(--border);
margin-top: 12px;
padding-top: 12px;
}
.report-business-counterparts h4 {
font-size: 13px;
font-weight: 550;
margin: 0 0 6px;
}
.report-business-counterparts p.small {
margin: 6px 0 0;
}
.report-business-balance-equation {
font-size: 11px;
gap: 4px 8px;
}
.report-business-balance-equation strong {
font-weight: 600;
}
@media (max-width: 650px) {
.report-business-heading {
gap: 6px 12px;
}
.report-business-paid {
gap: 9px 18px;
}
.report-business-profit {
padding: 12px;
}
.report-business-profit-equation {
font-size: 12px;
}
.report-business-profit-equation > strong {
font-size: 23px;
}
.report-business-dues {
gap: 11px 20px;
}
.report-business-dues > div {
flex: 1 1 175px;
}
.report-business-balance-equation > span {
max-width: 100%;
}
}
.report-pool-material {
margin-top: 13px;
padding: 12px 14px;
background: var(--soft);
border: 1px solid var(--border);
border-radius: 7px;
font-size: 12px;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.report-pool-material-heading {
display: flex;
align-items: baseline;
gap: 7px 16px;
flex-wrap: wrap;
}
.report-pool-material-heading > strong {
font-size: 18px;
font-weight: 600;
color: var(--green);
}
.report-pool-material ul {
list-style: none;
padding: 0;
margin: 9px 0;
display: grid;
gap: 6px;
}
.report-pool-material li {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 3px 14px;
line-height: 1.8;
}
.report-pool-material li > span {
color: var(--muted);
}
.report-pool-material li > strong {
font-weight: 500;
}
.report-pool-material p {
margin: 7px 0 0;
line-height: 1.7;
}
.report-pool-material p b {
font-size: 14px;
font-weight: 550;
margin-left: 7px;
}
.report-pool-material .small {
font-size: 11px;
}
.report-pool-material .report-owner-advance {
2026-11-04 00:12:34 +08:00
font-weight: 550;
line-height: 1.9;
}
@media (max-width: 650px) {
.report-pool-material {
padding: 10px 11px;
}
2026-11-04 00:12:34 +08:00
.report-pool-material li {
display: block;
}
2026-11-04 00:12:34 +08:00
.report-pool-material li > strong {
display: block;
}
}
2026-11-04 00:12:34 +08:00
.report-owner-advances {
margin: 17px 0 0;
padding-top: 15px;
border-top: 1px solid var(--border);
min-width: 0;
}
2026-11-04 00:12:34 +08:00
.report-owner-advances > summary {
font-size: 13px;
font-weight: 550;
margin: 0;
}
2026-11-04 00:12:34 +08:00
.report-owner-advances > p.small {
font-size: 11px;
line-height: 1.7;
margin: 7px 0 0;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-day {
margin-top: 12px;
padding-top: 11px;
border-top: 1px solid var(--border);
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-day > header {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 7px 22px;
font-size: 12px;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-day h4 {
font-size: 13px;
font-weight: 550;
margin: 0;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-day header strong {
font-size: 18px;
color: var(--green);
margin-left: 9px;
font-variant-numeric: tabular-nums;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-day > .report-owner-advance {
font-size: 12px;
line-height: 1.8;
margin: 8px 0;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-day > .table-wrap {
margin-top: 10px;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table {
font-size: 12px;
min-width: 510px;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table th,
.report-owner-advance-table td {
padding: 10px 9px;
white-space: normal;
overflow-wrap: anywhere;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table th:first-child {
width: 100px;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table th:nth-child(2) {
width: 25%;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table th:last-child {
width: 155px;
text-align: right;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table small {
display: block;
font-size: 10px;
line-height: 1.7;
margin-top: 4px;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table .link-button {
font-size: 12px;
}
2026-11-04 00:12:34 +08:00
.report-business-history > summary {
font-size: 12px;
color: var(--muted);
font-weight: 500;
}
2026-11-04 00:12:34 +08:00
.report-business-history > p.small {
font-size: 11px;
line-height: 1.7;
}
2026-11-04 00:12:34 +08:00
@media (max-width: 650px) {
.report-owner-advance-table {
min-width: 430px;
font-size: 11px;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table th,
.report-owner-advance-table td {
padding: 8px 6px;
}
2026-11-04 00:12:34 +08:00
.report-owner-advance-table th:first-child {
width: 86px;
}
.report-owner-advance-table th:last-child {
width: 120px;
}
}
.report-daily-profits {
min-width: 0;
margin-bottom: 20px;
}
.report-daily-profits h2 {
font-size: 16px;
margin: 0 0 8px;
}
.report-daily-profits > p {
font-size: 11px;
line-height: 1.7;
}
.report-daily-profits .table-wrap {
margin-top: 14px;
}
.report-daily-profits table {
font-size: 13px;
min-width: 550px;
font-variant-numeric: tabular-nums;
}
.report-daily-profits th,
.report-daily-profits td {
padding: 12px 10px;
white-space: normal;
overflow-wrap: anywhere;
}
.report-daily-profits th.number {
text-align: right;
}
.report-daily-profits td:first-child {
width: 120px;
white-space: nowrap;
}
.report-daily-profits small {
display: block;
font-size: 10px;
line-height: 1.6;
margin-top: 4px;
}
.report-daily-profits tfoot td {
font-weight: 600;
background: var(--soft);
border-top: 1px solid var(--border);
}
.report-daily-profits .report-daily-profit-note {
margin: 12px 0 0;
}
@media (max-width: 650px) {
.report-daily-profits {
padding: 17px 14px;
}
.report-daily-profits table {
min-width: 500px;
font-size: 12px;
}
.report-daily-profits th,
.report-daily-profits td {
padding: 10px 7px;
}
}
/* 售后只登记实际费用,与销售订单同表查看。 */
#after-sale-dialog {
width: min(560px, 96vw);
padding: 26px 28px;
}
#after-sale-title {
margin: 0 0 9px;
}
#after-sale-dialog > p {
margin-bottom: 20px;
padding-right: 24px;
}
#after-sale-form .grid > label:last-child {
grid-column: 1/-1;
}
#after-sale-form .form-actions {
margin-top: 22px;
}
.after-sale-identity strong,
.after-sale-identity span {
display: block;
overflow-wrap: anywhere;
}
.after-sale-identity strong {
font-size: 12px;
font-weight: 600;
}
.after-sale-identity span {
font-size: 12px;
margin-top: 2px;
}
.report-payer-table td > .small {
font-size: 10px;
margin-top: 4px;
}
.order-book-table .order-after-sale {
background: #faf8f0;
}
.order-after-sale .order-profit {
color: var(--danger);
}
@media (max-width: 650px) {
#after-sale-dialog {
padding: 22px 18px;
}
#after-sale-form .form-actions {
align-items: flex-start;
gap: 12px;
}
.report-payer-table td > .small {
font-size: 10px;
}
}
.after-sale-identity .after-sale-edit-button {
display: inline-flex;
min-height: 34px;
margin-top: 9px;
padding: 6px 15px;
font-size: 13px;
border-color: #a7b8a1;
color: var(--green);
background: #fff;
}
.after-sale-edit-button:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 3px;
}
#after-sale-edit-form > label {
margin-top: 15px;
}
#after-sale-edit-form .form-actions {
margin-top: 20px;
}
.after-sale-facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 15px 20px;
margin: 20px 0;
}
.after-sale-facts dt {
font-size: 12px;
color: var(--muted);
}
.after-sale-facts dd {
margin: 4px 0 0;
overflow-wrap: anywhere;
}
.after-sale-pending {
border-top: 1px solid var(--border);
padding-top: 16px;
margin-top: 20px;
}
.after-sale-comparison {
margin: 16px 0;
}
.after-sale-comparison .order-change-table {
min-width: 500px;
}
#after-sale-changes-entry {
white-space: nowrap;
}
#after-sale-changes-dialog {
width: min(900px, 96vw);
}
#after-sale-changes-title {
padding-right: 35px;
}
#after-sale-review-form {
margin-top: 20px;
}
#after-sale-review-form > label {
margin-top: 16px;
}
#after-sale-review-form .check {
align-items: flex-start;
}
#after-sale-review-form .check input {
flex: 0 0 18px;
margin-top: 2px;
}
@media (max-width: 650px) {
#after-sale-edit-form .form-actions {
align-items: flex-start;
gap: 12px;
}
.after-sale-facts {
gap: 12px;
}
.after-sale-comparison .order-change-table {
min-width: 460px;
}
}
/* 人数单独按日期登记,不从订单数推算。 */
.order-people-strip {
display: flex;
align-items: baseline;
gap: 14px;
padding: 11px 15px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--white);
margin: 0 0 16px;
font-size: 12px;
}
.order-people-strip strong {
font-weight: 500;
color: var(--muted);
}
.order-people-strip > span {
font-size: 16px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.order-people-strip > small {
margin-left: auto;
font-size: 11px;
color: var(--muted);
}
#people-count-dialog {
width: min(520px, 96vw);
padding: 26px 28px;
}
#people-count-title {
margin: 0 0 20px;
}
#people-count-status {
margin: 13px 0 0;
}
#people-count-form .form-actions {
gap: 12px;
}
.report-people-strip {
margin-bottom: 16px;
}
.order-people-strip {
flex-wrap: wrap;
}
.people-count-item {
display: flex;
align-items: baseline;
gap: 8px;
flex-wrap: wrap;
}
.people-count-item > span {
font-size: 16px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
/* 复制入口在订单信息旁突出显示,与详情页保持一致。 */
button.order-copy-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
min-height: 40px;
padding: 8px 12px;
font-size: 14px;
line-height: 1.4;
white-space: nowrap;
background: var(--green);
border-color: var(--green);
color: #fff;
box-shadow: 0 1px 3px #254e4026;
}
button.order-copy-button > span {
font-size: 18px;
line-height: 1;
font-weight: 500;
}
button.order-copy-button:hover:not(:disabled) {
background: #183f31;
border-color: #183f31;
box-shadow: 0 2px 5px #254e4033;
}
button.order-copy-button:focus-visible {
outline: 3px solid var(--gold);
outline-offset: 3px;
}
.order-customer .order-copy-button {
margin-top: 8px;
}
@media (max-width: 650px) {
.order-people-strip {
gap: 10px;
flex-wrap: wrap;
padding: 10px 12px;
}
.order-people-strip > small {
margin-left: 0;
width: 100%;
}
#people-count-dialog {
padding: 22px 18px;
}
}
/* 料费与进货工费分别选择付款人,按克和总额共用同一组输入。 */
.internal .cost-source-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.internal .purchase-material .purchase-cost-grid,
.internal .purchase-labor .purchase-cost-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
align-items: end;
gap: 14px;
}
.purchase-cost-grid > label {
min-width: 0;
}
.internal .purchase-cost-grid .purchase-payer {
grid-column: 4;
}
.internal .purchase-material[data-mode='total'] .purchase-total,
.internal .purchase-labor[data-mode='total'] .purchase-total {
grid-column: 2 / span 2;
}
.cost-fallback-payer {
max-width: 270px;
margin: 14px 0;
}
.line-cost-payers {
display: grid;
gap: 3px;
min-width: 132px;
2026-10-21 01:32:49 +08:00
font-size: 12px;
}
.line-cost-payers > span {
display: flex;
justify-content: space-between;
gap: 14px;
}
.line-cost-payers b {
font-weight: 500;
white-space: nowrap;
}
@media (max-width: 1000px) {
.internal .purchase-material .purchase-cost-grid,
.internal .purchase-labor .purchase-cost-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.internal .purchase-cost-grid .purchase-payer,
.internal .purchase-material[data-mode='total'] .purchase-total,
.internal .purchase-labor[data-mode='total'] .purchase-total {
grid-column: auto;
}
}
@media (max-width: 650px) {
.internal .cost-source-fields,
.internal .purchase-material .purchase-cost-grid,
.internal .purchase-labor .purchase-cost-grid {
grid-template-columns: 1fr;
gap: 12px;
}
.cost-fallback-payer {
max-width: none;
}
}
.order-rounding-note {
margin-top: 5px;
line-height: 1.7;
max-width: 640px;
}
.order-totals .stat .hint {
line-height: 1.7;
}
.print-settings-title {
align-items: flex-start;
gap: 14px;
}
.print-settings-title > button {
flex-shrink: 0;
}
.print-settings-title p {
margin: 6px 0 0;
line-height: 1.6;
}
.print-settings-fields {
border: 0;
padding: 0;
margin: 0;
min-width: 0;
}
.print-settings-fields:disabled input {
color: var(--ink);
background: var(--soft);
opacity: 1;
}
.print-settings-preview .print-preview-mini {
display: flex;
height: auto;
min-height: 270px;
padding: 18px;
}
.print-settings-preview .paper-mini {
height: auto;
min-height: 244px;
overflow-wrap: anywhere;
}
@media (max-width: 650px) {
.print-settings-title {
flex-wrap: wrap;
}
.print-settings-title > button {
padding: 10px 14px;
}
}
.legacy-extra-costs {
grid-column: 1/-1;
margin: 4px 0 0;
padding-top: 12px;
border-top: 1px solid var(--border);
}
.legacy-extra-costs > summary {
font-size: 12px;
font-weight: 500;
}
.legacy-extra-costs > p {
margin: 10px 0 12px;
}
2026-10-21 01:32:49 +08:00
/* 锁价与直接开单分别暂存,交付沿用原商品和实际费用表单。 */
.create-mode-controls {
display: flex;
gap: 6px;
}
.create-mode-controls button {
min-width: 84px;
}
2026-10-21 01:32:49 +08:00
.price-lock-facts {
gap: 18px 24px;
}
2026-10-21 01:32:49 +08:00
.price-lock-facts > div {
font-size: 12px;
color: var(--muted);
}
2026-10-21 01:32:49 +08:00
.price-lock-facts strong {
display: block;
color: var(--ink);
font-size: 18px;
font-weight: 550;
margin-top: 5px;
font-variant-numeric: tabular-nums;
}
2026-10-21 01:32:49 +08:00
.price-lock-facts small {
display: block;
font-size: 11px;
margin-top: 4px;
line-height: 1.6;
}
2026-10-21 01:32:49 +08:00
.price-lock-list {
min-width: 790px;
font-size: 12px;
}
2026-10-21 01:32:49 +08:00
.price-lock-list th.number,
.lock-activity-table th.number {
text-align: right;
}
2026-10-21 01:32:49 +08:00
.price-lock-list td {
line-height: 1.7;
}
2026-10-21 01:32:49 +08:00
.price-lock-list .actions {
flex-wrap: nowrap;
}
2026-10-21 01:32:49 +08:00
.price-lock-list button {
padding: 7px 12px;
}
2026-10-21 01:32:49 +08:00
.price-lock-list td:first-child {
min-width: 140px;
}
2026-10-21 01:32:49 +08:00
#price-lock-dialog {
width: min(820px, 96vw);
padding: 28px;
}
2026-10-21 01:32:49 +08:00
.price-lock-delivery-line .line-top > button {
display: none;
}
2026-10-21 01:32:49 +08:00
.price-lock-delivery-line input:disabled,
.price-lock-delivery-line select:disabled {
color: var(--ink);
opacity: 1;
background: var(--soft);
}
2026-10-21 01:32:49 +08:00
.price-lock-delivery-line .line-item {
margin-bottom: 0;
}
2026-10-21 01:32:49 +08:00
.lock-material-breakdown {
font-size: 13px;
line-height: 1.8;
padding: 17px 0 0;
}
2026-10-21 01:32:49 +08:00
.lock-settlement {
margin: 22px 0;
padding: 20px 0;
border-block: 1px solid var(--border);
}
2026-10-21 01:32:49 +08:00
#lock-extra-material {
border-top: 1px solid var(--border);
margin-top: 20px;
padding-top: 18px;
}
2026-10-21 01:32:49 +08:00
#lock-stock-note {
margin-bottom: 0;
}
2026-10-21 01:32:49 +08:00
.lock-activity h2 {
margin-bottom: 8px;
}
2026-10-21 01:32:49 +08:00
.lock-activity-summary {
display: flex;
gap: 10px 25px;
flex-wrap: wrap;
font-size: 13px;
margin: 15px 0;
}
2026-10-21 01:32:49 +08:00
.lock-activity-summary strong {
font-size: 16px;
font-weight: 550;
margin-left: 6px;
font-variant-numeric: tabular-nums;
}
2026-10-21 01:32:49 +08:00
.lock-activity-table {
min-width: 730px;
font-size: 12px;
}
2026-10-21 01:32:49 +08:00
.lock-activity-table td {
line-height: 1.7;
}
2026-10-21 01:32:49 +08:00
.lock-activity-table td > .small {
font-size: 11px;
}
2026-10-21 01:32:49 +08:00
.lock-activity > details {
padding-top: 12px;
border-top: 1px solid var(--border);
}
2026-10-21 01:32:49 +08:00
.lock-activity summary {
font-size: 12px;
font-weight: 500;
}
2026-10-21 01:32:49 +08:00
.lock-activity details > .table-wrap {
margin-top: 12px;
}
2026-10-21 01:32:49 +08:00
#order-lock-activity:empty {
display: none;
}
#price-lock-create-form > section.line-item {
padding: 24px;
}
@media (max-width: 850px) {
.price-lock-facts.grid.three {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
2026-10-21 01:32:49 +08:00
@media (max-width: 650px) {
.price-lock-facts {
gap: 15px;
}
2026-10-21 01:32:49 +08:00
.price-lock-facts strong {
font-size: 16px;
}
2026-10-21 01:32:49 +08:00
#price-lock-dialog {
padding: 23px 18px;
}
2026-10-21 01:32:49 +08:00
.create-mode-controls button {
min-width: 75px;
padding: 9px 13px;
}
2026-10-21 01:32:49 +08:00
.lock-activity-summary {
gap: 10px 18px;
}
2026-10-21 01:32:49 +08:00
.lock-material-breakdown {
padding-top: 0;
}
}
2026-10-21 01:32:49 +08:00
/* 每日购料以横向行录入;材料池与订单耗用在同页核对。 */
.material-purchase-panel .panel-title {
margin-bottom: 14px;
}
.material-purchase-scroll {
overflow-x: auto;
padding: 2px 2px 7px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-fields {
display: grid;
grid-template-columns:
minmax(140px, 0.95fr) minmax(140px, 1fr) minmax(150px, 1fr) minmax(105px, 0.7fr) minmax(190px, 1.5fr)
auto;
gap: 14px;
align-items: end;
min-width: 850px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-fields > button {
min-height: 43px;
white-space: nowrap;
}
2026-10-21 01:32:49 +08:00
.material-purchase-hint {
margin: 10px 0 0;
}
2026-10-21 01:32:49 +08:00
.material-pool-summary {
display: flex;
align-items: center;
gap: 12px 28px;
flex-wrap: wrap;
margin: 4px 0 20px;
font-size: 12px;
}
2026-10-21 01:32:49 +08:00
.material-pool-summary strong {
font-size: 16px;
font-weight: 550;
margin-left: 7px;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
2026-10-21 01:32:49 +08:00
.material-pool-list-panel {
padding: 20px 0 0;
overflow: hidden;
}
2026-10-21 01:32:49 +08:00
.material-pool-list-panel > .panel-title {
padding: 0 20px;
margin-bottom: 15px;
}
2026-10-21 01:32:49 +08:00
.material-pool-table {
min-width: 975px;
font-size: 12px;
border-top: 1px solid var(--border);
}
2026-10-21 01:32:49 +08:00
.material-pool-table th {
padding: 11px 10px;
}
2026-10-21 01:32:49 +08:00
.material-pool-table th.number,
.material-detail-table th.number {
text-align: right;
}
2026-10-21 01:32:49 +08:00
.material-pool-table td {
padding: 13px 10px;
vertical-align: middle;
}
2026-10-21 01:32:49 +08:00
.material-pool-table .badge {
font-size: 11px;
}
2026-10-21 01:32:49 +08:00
.material-pool-table button {
padding: 5px 8px;
white-space: nowrap;
}
2026-10-21 01:32:49 +08:00
.material-pool-empty {
height: 110px;
text-align: center;
color: var(--muted);
}
2026-10-21 01:32:49 +08:00
.material-pool-footnote {
margin: 0;
padding: 14px 20px;
border-top: 1px solid var(--border);
}
2026-10-21 01:32:49 +08:00
.material-pool-detail-row > td {
padding: 0 20px 20px;
background: #f3f5ee;
border-block: 1px solid var(--border);
}
2026-10-21 01:32:49 +08:00
.material-pool-details > h3 {
margin: 20px 0 10px;
font-weight: 550;
}
2026-10-21 01:32:49 +08:00
.material-detail-table {
min-width: 650px;
font-size: 12px;
background: var(--white);
}
2026-10-21 01:32:49 +08:00
.material-detail-table th {
background: #eaf0e5;
padding: 9px 12px;
}
2026-10-21 01:32:49 +08:00
.material-detail-table td {
padding: 11px 12px;
vertical-align: top;
}
2026-10-21 01:32:49 +08:00
.material-detail-table .small {
font-size: 11px;
}
2026-10-21 01:32:49 +08:00
.material-pool-settlement {
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid var(--border);
}
2026-10-21 01:32:49 +08:00
.material-settlement-line {
display: flex;
gap: 12px 24px;
align-items: center;
flex-wrap: wrap;
font-size: 12px;
margin-bottom: 12px;
}
2026-10-21 01:32:49 +08:00
.material-settlement-line > strong {
font-size: 14px;
}
2026-10-21 01:32:49 +08:00
.material-settlement-line > button {
margin-left: auto;
}
2026-10-21 01:32:49 +08:00
#material-settlement-dialog {
width: min(800px, 96vw);
}
2026-10-21 01:32:49 +08:00
#material-settlement-dialog form > label {
margin-top: 15px;
}
2026-10-21 01:32:49 +08:00
.material-source-controls {
grid-column: 1/-1;
padding-bottom: 2px;
}
2026-10-21 01:32:49 +08:00
.material-source-row {
display: flex;
align-items: end;
gap: 12px;
flex-wrap: wrap;
}
2026-10-21 01:32:49 +08:00
.material-source-row > label {
flex: 0 1 220px;
min-width: 180px;
}
2026-10-21 01:32:49 +08:00
.material-source-row > button {
min-height: 43px;
font-size: 12px;
padding: 8px 10px;
}
2026-10-21 01:32:49 +08:00
.material-source-help {
align-self: center;
flex: 1;
min-width: 180px;
}
2026-10-21 01:32:49 +08:00
.material-pool-note {
margin: 9px 0 0;
line-height: 1.7;
}
2026-10-21 01:32:49 +08:00
.material-order-pending > button {
font-size: 12px;
padding: 3px 7px;
color: var(--green);
}
2026-10-21 01:32:49 +08:00
.material-pool-payer input {
font-size: 13px;
}
.material-source-controls + .purchase-material .purchase-cost-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
2026-10-21 01:32:49 +08:00
@media (max-width: 850px) {
.material-pool-summary {
gap: 8px 22px;
}
2026-10-21 01:32:49 +08:00
.material-pool-summary strong {
font-size: 15px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-panel .panel-title {
align-items: flex-start;
flex-wrap: wrap;
gap: 5px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-panel .panel-title > span {
font-size: 11px;
}
2026-10-21 01:32:49 +08:00
.material-source-row > label {
flex: 1;
min-width: 160px;
}
2026-10-21 01:32:49 +08:00
.material-source-help {
flex-basis: 100%;
font-size: 11px;
}
2026-10-21 01:32:49 +08:00
.material-pool-list-panel > .panel-title {
flex-wrap: wrap;
gap: 5px;
}
}
2026-10-21 01:32:49 +08:00
@media (max-width: 650px) {
.material-source-controls + .purchase-material .purchase-cost-grid {
grid-template-columns: 1fr;
}
2026-10-21 01:32:49 +08:00
.material-purchase-fields {
gap: 12px;
}
2026-10-21 01:32:49 +08:00
.material-pool-list-panel > .panel-title {
padding: 0 14px;
}
2026-10-21 01:32:49 +08:00
.material-pool-detail-row > td {
padding: 0 14px 16px;
}
2026-10-21 01:32:49 +08:00
.material-pool-footnote {
padding: 12px 14px;
}
2026-10-21 01:32:49 +08:00
.material-pool-summary {
gap: 7px 20px;
font-size: 11px;
}
2026-10-21 01:32:49 +08:00
.material-pool-summary strong {
font-size: 14px;
}
2026-10-21 01:32:49 +08:00
.material-settlement-line > button {
margin-left: 0;
}
}
2026-10-21 01:32:49 +08:00
.material-heading > .actions {
flex-shrink: 0;
}
.material-heading button {
white-space: nowrap;
}
2026-10-21 01:32:49 +08:00
.material-scroll-hint {
display: none;
}
2026-10-21 01:32:49 +08:00
@media (max-width: 650px) {
.material-scroll-hint {
display: block;
font-size: 11px;
margin: 4px 0 0;
color: var(--gold);
}
}
2026-10-21 01:32:49 +08:00
/* 逐笔购料修改沿用横向输入;删除前保留完整原记录供核对。 */
.material-purchase-table {
min-width: 740px;
}
.material-purchase-table .actions {
flex-wrap: nowrap;
gap: 5px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-note {
max-width: 280px;
overflow-wrap: anywhere;
}
2026-10-21 01:32:49 +08:00
#material-purchase-dialog {
width: min(1000px, 96vw);
}
2026-10-21 01:32:49 +08:00
#material-purchase-title {
margin-bottom: 20px;
padding-right: 32px;
}
2026-10-21 01:32:49 +08:00
#material-purchase-edit-form .material-purchase-fields {
grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) minmax(100px, 0.7fr) minmax(
190px,
1.4fr
);
2026-10-21 01:32:49 +08:00
min-width: 780px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-impact {
margin: 16px 0 0;
line-height: 1.8;
}
2026-10-21 01:32:49 +08:00
.material-purchase-facts {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 18px;
margin: 0 0 18px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-facts dt {
font-size: 12px;
color: var(--muted);
}
2026-10-21 01:32:49 +08:00
.material-purchase-facts dd {
margin: 5px 0 0;
font-size: 17px;
font-weight: 550;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
2026-10-21 01:32:49 +08:00
.material-purchase-original-note {
overflow-wrap: anywhere;
}
2026-10-21 01:32:49 +08:00
#material-purchase-delete-form {
margin-top: 22px;
}
@media (max-width: 650px) {
.material-purchase-facts {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-facts dd {
font-size: 15px;
}
2026-10-21 01:32:49 +08:00
#material-purchase-dialog {
padding: 22px 16px;
}
2026-10-21 01:32:49 +08:00
#material-purchase-edit-form .material-purchase-fields {
gap: 12px;
}
2026-10-21 01:32:49 +08:00
.material-purchase-impact {
font-size: 12px;
}
}
/* 修改原单时,费用金额、付款人、支付日期与移除入口保持同一横行。 */
#order-form[data-order-edit='true'] .fee-row {
grid-template-columns: minmax(160px, 1.5fr) minmax(120px, 1fr) minmax(100px, 0.8fr) minmax(145px, 1fr) minmax(
100px,
0.8fr
);
min-width: 760px;
gap: 14px;
}
#order-form[data-order-edit='true'] .fee-row > button {
white-space: nowrap;
}
#order-edit-conflict details {
margin-bottom: 18px;
}
#order-edit-meta-form textarea {
min-height: 90px;
}
/* 普通订单取消:申请期间仍计账,麦麦核对撤销摘要后才作废。 */
#order-cancellations-entry {
white-space: nowrap;
}
.order-cancellation-panel {
margin-top: 20px;
border-color: #d2c5a8;
}
.order-cancellation-panel > .panel-title {
margin-bottom: 14px;
}
.order-cancellation-panel > p {
margin-bottom: 12px;
}
.order-cancellation-panel > details:last-child {
margin-bottom: 0;
}
.cancellation-record-title {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
margin-bottom: 5px;
}
.cancellation-reason {
white-space: pre-wrap;
overflow-wrap: anywhere;
margin: 7px 0;
}
.cancellation-history {
margin-bottom: 0;
}
.cancellation-history li {
padding-bottom: 18px;
}
.cancellation-history li:last-child {
padding-bottom: 0;
}
.order-cancellation-form > label {
margin-top: 18px;
}
.order-cancellation-form .check {
align-items: flex-start;
}
.order-cancellation-form .check input {
flex: 0 0 18px;
margin-top: 2px;
}
.cancellation-summary {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
margin: 20px 0 24px;
}
.cancellation-summary dt {
font-size: 12px;
color: var(--muted);
}
.cancellation-summary dd {
font-size: 19px;
font-weight: 600;
font-variant-numeric: tabular-nums;
margin: 4px 0 0;
overflow-wrap: anywhere;
}
.cancellation-summary-note {
margin-top: 15px;
}
.order-cancellation-form th.number {
text-align: right;
}
#order-cancellations-dialog {
width: min(1100px, 96vw);
}
#order-cancellations-title {
padding-right: 35px;
}
.cancellation-list-tabs {
display: flex;
gap: 7px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.cancellation-list-table {
min-width: 780px;
}
.cancellation-list-table td:nth-child(3),
.cancellation-list-table td:nth-child(4) {
max-width: 240px;
overflow-wrap: anywhere;
}
.cancellation-list-table button {
white-space: nowrap;
}
.cancellation-list-table .small {
margin-top: 5px;
}
@media (max-width: 650px) {
.cancellation-summary {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}
.cancellation-summary dd {
font-size: 17px;
}
.cancellation-list-tabs {
gap: 6px;
}
.cancellation-list-tabs button {
padding: 8px 12px;
font-size: 12px;
}
.order-cancellation-panel > .panel-title {
flex-wrap: wrap;
gap: 8px;
}
}
/* 助理改单先申请,复核用完整的原值与申请值对照。 */
#order-changes-entry {
white-space: nowrap;
}
.order-change-panel {
margin-top: 20px;
border-color: #c2d1bd;
}
.order-change-panel > .panel-title {
margin-bottom: 14px;
}
.order-change-panel > p {
margin-bottom: 12px;
}
.order-change-panel > details:last-child {
margin-bottom: 0;
}
.change-record-title {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
margin-bottom: 5px;
}
.change-reason {
white-space: pre-wrap;
overflow-wrap: anywhere;
margin: 7px 0;
}
.change-history {
margin-bottom: 0;
}
.change-history li {
padding-bottom: 18px;
}
.change-history li:last-child {
padding-bottom: 0;
}
.change-history details {
margin-top: 12px;
}
.order-change-form > label {
margin-top: 18px;
}
.order-change-form .check {
align-items: flex-start;
}
.order-change-form .check input {
flex: 0 0 18px;
margin-top: 2px;
}
.order-change-comparison {
margin: 16px 0 22px;
}
.order-change-table {
min-width: 680px;
table-layout: fixed;
}
.order-change-table th:first-child {
width: 24%;
}
.order-change-table thead th {
font-size: 13px;
}
.order-change-table tbody th {
font-size: 12px;
font-weight: 500;
background: #f7f7f0;
text-align: left;
vertical-align: top;
}
.order-change-table td {
vertical-align: top;
overflow-wrap: anywhere;
line-height: 1.8;
}
.order-change-table th,
.order-change-table td {
padding: 11px 13px;
}
.order-change-table td:last-child {
background: #f0f5eb;
}
.order-change-table .change-section-row th {
background: #e8eee1;
font-weight: 650;
padding-top: 14px;
padding-bottom: 14px;
}
.order-change-comparison > p:last-child {
margin: 13px 0 0;
}
#order-changes-dialog {
width: min(1100px, 96vw);
}
#order-changes-title {
padding-right: 35px;
}
.change-list-tabs {
display: flex;
gap: 7px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.change-list-table {
min-width: 780px;
}
.change-list-table td:nth-child(3),
.change-list-table td:nth-child(4) {
max-width: 240px;
overflow-wrap: anywhere;
}
.change-list-table button {
white-space: nowrap;
}
.change-list-table .small {
margin-top: 5px;
}
@media (max-width: 650px) {
.change-list-tabs {
gap: 6px;
}
.change-list-tabs button {
padding: 8px 12px;
font-size: 12px;
}
.order-change-panel > .panel-title {
flex-wrap: wrap;
gap: 8px;
}
.order-change-table {
min-width: 620px;
}
.order-change-table th,
.order-change-table td {
padding: 9px 11px;
}
.order-change-form {
padding: 18px;
}
.order-change-comparison > p {
font-size: 11px;
}
}
.order-change-table .order-change-modified th,
.order-change-table .order-change-modified td {
background: #faf0d8;
}
.change-mark {
display: block;
font-size: 10px;
font-weight: 600;
color: #815c20;
margin-top: 4px;
}
.order-change-related {
border-top: 2px solid #d3c6a4;
margin-top: 24px;
padding-top: 20px;
}
.order-change-related > h3 {
font-size: 15px;
margin-bottom: 10px;
}
.order-change-action-summary {
background: #f0f4e9;
border: 1px solid #d5dfca;
border-radius: 8px;
padding: 18px;
margin: 20px 0;
}
.order-change-action-facts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 15px 20px;
margin: 0 0 14px;
}
.order-change-action-facts dt {
font-size: 12px;
color: var(--muted);
}
.order-change-action-facts dd {
margin: 4px 0 0;
overflow-wrap: anywhere;
font-weight: 550;
}
.order-change-action-summary > p:last-child {
margin-bottom: 0;
}
.order-change-inventory-summary {
margin: 22px 0;
border-top: 1px solid var(--border);
padding-top: 20px;
}
.order-change-inventory-summary > h3 {
margin-top: 16px;
}
.order-change-inventory {
min-width: 470px;
}
.order-change-inventory th.number {
text-align: right;
}
#action-form[data-order-change='true'] > label {
margin-top: 16px;
}
@media (max-width: 650px) {
.order-change-action-facts {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.order-change-action-summary {
padding: 15px;
}
}
/* 每天的转账核对与报销单独展示,不与订单利润及旧待结混加。 */
#daily-funds-content {
margin-bottom: 24px;
}
.daily-transfer,
.daily-reimbursements {
padding: 22px 24px;
}
.daily-transfer > .panel-title,
.daily-reimbursements > .panel-title {
margin-bottom: 12px;
flex-wrap: wrap;
gap: 12px;
}
.daily-transfer h2,
.daily-reimbursements h2 {
font-size: 19px;
}
.daily-transfer > p.small,
.daily-reimbursements > p.small {
line-height: 1.8;
margin-bottom: 18px;
}
.daily-transfer-parts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
.daily-transfer-parts > div {
min-width: 0;
padding: 13px 15px;
background: #f4f5ee;
border-radius: 7px;
}
.daily-transfer-parts span,
.daily-transfer-parts strong,
.daily-transfer-parts small {
display: block;
overflow-wrap: anywhere;
}
.daily-transfer-parts span,
.daily-transfer-parts small {
font-size: 11px;
color: var(--muted);
}
.daily-transfer-parts strong {
font-size: 24px;
font-weight: 650;
margin: 5px 0;
font-variant-numeric: tabular-nums;
}
.daily-transfer-parts small {
line-height: 1.7;
}
.daily-transfer-result {
margin: 17px 0 0;
border-top: 1px solid var(--border);
padding-top: 16px;
min-width: 0;
}
.daily-transfer-result > span {
font-size: 13px;
color: var(--muted);
}
.daily-transfer-result > strong {
display: block;
font-size: 30px;
font-weight: 650;
color: var(--green);
line-height: 1.5;
font-variant-numeric: tabular-nums;
}
.daily-transfer-result > p {
font-size: 13px;
line-height: 1.9;
margin: 9px 0;
overflow-wrap: anywhere;
font-variant-numeric: tabular-nums;
}
.daily-transfer-result > small {
display: block;
font-size: 11px;
color: var(--muted);
line-height: 1.8;
}
.daily-transfer-unready {
margin-bottom: 0;
}
.daily-funds-sources {
margin: 18px 0 0;
padding-top: 15px;
border-top: 1px solid var(--border);
}
.daily-funds-sources > summary {
font-size: 12px;
font-weight: 500;
}
.daily-funds-sources > p {
margin: 12px 0;
}
.daily-funds-sources table {
font-size: 12px;
}
.daily-funds-sources td:first-child {
white-space: nowrap;
}
.daily-funds-sources th.number {
text-align: right;
}
.daily-funds-sources td:nth-child(2) {
overflow-wrap: anywhere;
}
.daily-outlay-form {
margin-top: 17px;
padding-top: 17px;
border-top: 1px solid var(--border);
}
.daily-outlay-inputs {
display: grid;
grid-template-columns: minmax(180px, 0.8fr) minmax(200px, 1.2fr);
gap: 16px;
}
.daily-outlay-form > p {
margin: 12px 0;
}
.daily-confirmed-note {
display: flex;
align-items: center;
gap: 12px;
margin-top: 15px;
flex-wrap: wrap;
}
.daily-confirmed-note button {
font-size: 12px;
padding: 5px;
}
.daily-funds-month-table {
min-width: 620px;
font-size: 12px;
}
.daily-funds-month-table th.number {
text-align: right;
}
.daily-funds-month-table td {
padding: 11px 10px;
}
.reimbursement-form,
.reimbursement-review-form {
background: #f4f6ee;
border: 1px solid #d2deca;
border-radius: 8px;
padding: 18px;
margin: 16px 0 20px;
}
.reimbursement-form .panel-title,
.reimbursement-review-form .panel-title {
margin-bottom: 12px;
}
.reimbursement-form h3,
.reimbursement-review-form h3 {
margin: 0;
}
.reimbursement-form > label:first-of-type {
max-width: 210px;
}
.reimbursement-item-labels,
.reimbursement-item-row {
display: grid;
grid-template-columns: minmax(160px, 1fr) minmax(110px, 170px) 55px;
gap: 12px;
align-items: center;
}
.reimbursement-item-labels {
font-size: 11px;
color: var(--muted);
margin-top: 18px;
}
.reimbursement-item-row {
margin: 8px 0;
}
.reimbursement-item-row > label {
min-width: 0;
}
.reimbursement-item-row input {
margin: 0;
}
.reimbursement-item-row > button {
font-size: 12px;
padding: 8px 4px;
font-weight: 400;
}
.reimbursement-item-row > button:disabled {
cursor: default;
}
.reimbursement-form > button {
margin-top: 7px;
font-size: 12px;
padding: 7px 11px;
}
.reimbursement-edit-total {
font-size: 12px;
line-height: 1.9;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
margin: 13px 0;
}
.reimbursement-edit-total strong {
font-size: 20px;
font-weight: 650;
white-space: nowrap;
}
.reimbursement-form > p.small {
margin: 12px 0;
}
.reimbursement-records {
display: grid;
gap: 14px;
}
.reimbursement-record {
padding: 15px 0;
border-top: 1px solid var(--border);
min-width: 0;
}
.reimbursement-record-heading {
display: flex;
gap: 10px;
justify-content: space-between;
align-items: baseline;
flex-wrap: wrap;
}
.reimbursement-record-heading strong {
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.reimbursement-record > p.small {
margin: 7px 0 10px;
}
.reimbursement-note {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.reimbursement-items-read {
list-style: none;
padding: 0;
margin: 9px 0 14px;
display: grid;
gap: 6px;
max-width: 700px;
}
.reimbursement-items-read li {
display: flex;
justify-content: space-between;
gap: 18px;
font-size: 13px;
}
.reimbursement-items-read li > span {
overflow-wrap: anywhere;
min-width: 0;
}
.reimbursement-items-read b {
font-weight: 500;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.reimbursement-record .actions > button {
padding: 7px 11px;
font-size: 12px;
}
.reimbursement-review-form > p {
font-size: 13px;
line-height: 1.8;
}
.reimbursement-review-form .check {
align-items: flex-start;
}
.reimbursement-review-form .check > input {
flex-shrink: 0;
margin-top: 3px;
}
.daily-outlay-form .check {
align-items: flex-start;
}
.daily-outlay-form .check > input {
flex-shrink: 0;
margin-top: 3px;
}
#daily-reimbursements-dialog {
width: min(900px, 96vw);
}
#daily-reimbursements-list h2 {
padding-right: 25px;
}
.daily-reimbursements-global-table {
min-width: 530px;
font-size: 12px;
}
.daily-reimbursements-global-table td:nth-child(2) {
max-width: 350px;
overflow-wrap: anywhere;
}
.daily-reimbursements-global-table button {
font-size: 12px;
white-space: nowrap;
}
.daily-reimbursements-global-table th.number {
text-align: right;
}
.daily-funds-status {
margin: 0 0 16px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 800px) {
.daily-transfer,
.daily-reimbursements {
padding: 19px;
}
.daily-transfer-parts {
gap: 10px;
}
.daily-transfer-parts > div {
padding: 12px;
}
.daily-transfer-parts strong {
font-size: 21px;
}
}
@media (max-width: 550px) {
.daily-transfer,
.daily-reimbursements {
padding: 17px 14px;
}
.daily-transfer-parts {
grid-template-columns: 1fr;
gap: 8px;
}
.daily-transfer-parts > div {
display: grid;
grid-template-columns: 1fr auto;
align-items: baseline;
gap: 2px 10px;
padding: 10px 12px;
}
.daily-transfer-parts strong {
font-size: 21px;
margin: 0;
}
.daily-transfer-parts small {
grid-column: 1/-1;
}
.daily-transfer-result > strong {
font-size: 28px;
}
.daily-transfer-result > p {
font-size: 12px;
}
.daily-outlay-inputs {
grid-template-columns: 1fr;
gap: 12px;
}
.daily-reimbursements > .panel-title > .actions {
width: 100%;
gap: 7px;
}
.daily-reimbursements > .panel-title button {
font-size: 12px;
padding: 7px 10px;
}
.reimbursement-form,
.reimbursement-review-form {
padding: 14px 11px;
}
.reimbursement-item-labels,
.reimbursement-item-row {
grid-template-columns: minmax(0, 1fr) 90px 37px;
gap: 7px;
}
.reimbursement-item-row input {
font-size: 12px;
padding: 9px 7px;
min-height: 39px;
}
.reimbursement-item-row > button {
font-size: 11px;
padding: 7px 0;
}
.reimbursement-items-read li {
font-size: 12px;
gap: 10px;
}
.reimbursement-form .panel-title button,
.reimbursement-review-form .panel-title button {
font-size: 12px;
padding: 5px;
}
.reimbursement-record-heading strong {
font-size: 13px;
}
.reimbursement-form .actions > button,
.reimbursement-review-form .actions > button,
.daily-outlay-form .actions > button {
font-size: 12px;
padding: 8px 11px;
}
.daily-funds-sources th,
.daily-funds-sources td {
padding: 9px 6px;
font-size: 11px;
}
}
/* 录入页的内部成本与实际费用使用更清楚的标题和底色。 */
@media screen {
.line-item > .internal,
form > .panel.internal {
border: 1px solid #d2bf98;
border-left: 4px solid #9c732d;
background: #f5efe2;
}
.line-item > .internal {
padding: 18px 16px;
}
.internal-title {
color: #6e4b17;
font-size: 17px;
font-weight: 700;
letter-spacing: 0;
line-height: 1.5;
margin-bottom: 15px;
}
.panel.internal > .panel-title h2,
.panel.internal > h2 {
color: #6e4b17;
font-size: 20px;
font-weight: 700;
}
.internal label {
font-size: 13px;
color: #5e503b;
font-weight: 500;
}
.internal .fee-name {
font-size: 15px;
font-weight: 650;
}
.internal .purchase-material,
.internal .purchase-labor {
background: #fffdf7;
border-color: #d9cbae;
}
.internal .purchase-formula,
.internal .cost-summary {
font-size: 13px;
font-weight: 500;
color: #4c5d42;
}
.internal #fees-total {
font-size: 14px;
font-weight: 650;
color: #4c5d42;
}
}
@media screen and (max-width: 650px) {
.line-item > .internal {
padding: 15px 12px;
}
.internal-title {
font-size: 16px;
}
.panel.internal > .panel-title h2,
.panel.internal > h2 {
font-size: 19px;
}
.internal > .panel-title {
flex-wrap: wrap;
gap: 10px;
}
}
/* 信用卡费用与客户付款分开,自动金额在小屏上也完整可见。 */
@media screen {
.credit-card-preview {
margin: 16px 0;
padding: 15px;
border: 1px solid #d2bf98;
border-left: 4px solid #9c732d;
border-radius: 7px;
background: #fffaf0;
}
.credit-card-heading {
display: flex;
align-items: baseline;
gap: 8px 16px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.credit-card-heading > strong {
color: #6e4b17;
font-size: 15px;
}
.credit-card-fields {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 15px;
max-width: 560px;
}
.credit-card-fields > label {
min-width: 0;
}
.credit-card-preview > p {
line-height: 1.8;
overflow-wrap: anywhere;
margin: 10px 0 0;
}
.credit-card-preview input {
font-variant-numeric: tabular-nums;
}
#fee-rows .fee-row.fee-automatic {
min-width: 0;
grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
gap: 14px;
background: #fffaf0;
padding: 14px 10px;
margin: 8px 0;
border: 1px solid #d2bf98;
border-radius: 6px;
}
#order-form[data-order-edit='true'] .fee-row.fee-automatic {
min-width: 0;
grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.fee-automatic > .fee-help {
grid-column: 1/-1;
line-height: 1.8;
}
.fee-automatic.is-replaced {
background: #f1eee7;
color: #6e6455;
}
.fee-automatic.is-replaced > .fee-help {
color: #865d20;
}
.price-lock-card-fees {
margin: 18px 0 0;
padding: 15px;
background: #fffaf0;
border: 1px solid #d2bf98;
}
.price-lock-card-fees > strong {
color: #6e4b17;
}
.price-lock-card-fees ul {
padding: 0;
margin: 10px 0;
list-style: none;
}
.price-lock-card-fees li {
display: flex;
justify-content: space-between;
gap: 14px;
font-size: 13px;
margin: 6px 0;
}
.price-lock-card-fees li > span {
min-width: 0;
overflow-wrap: anywhere;
}
.price-lock-card-fees li > b {
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.price-lock-card-fees > p {
margin-bottom: 0;
line-height: 1.8;
}
}
@media screen and (max-width: 650px) {
.credit-card-preview {
padding: 12px 10px;
}
.credit-card-fields {
gap: 10px;
}
.credit-card-fields label {
font-size: 12px;
}
.credit-card-fields input,
.credit-card-fields select {
padding: 10px 8px;
}
.credit-card-heading > strong {
font-size: 14px;
}
#fee-rows .fee-row.fee-automatic,
#order-form[data-order-edit='true'] .fee-row.fee-automatic {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.fee-automatic > .fee-title {
grid-column: 1/-1;
}
.fee-automatic input,
.fee-automatic select {
padding: 10px 8px;
}
.price-lock-card-fees {
padding: 12px 10px;
}
}
.order-header.order-detail-header {
min-width: 0;
overflow-wrap: anywhere;
}
.order-header.order-detail-header h2 {
font-size: 30px;
font-weight: 700;
line-height: 1.4;
white-space: normal;
overflow-wrap: anywhere;
}
.order-header.order-detail-header .order-detail-identifiers {
2026-10-26 20:25:31 +08:00
font-size: 11px;
line-height: 1.8;
margin: 6px 0 10px;
}
.order-ownership-trigger {
font-size: 12px;
padding: 6px 10px;
margin: 0 12px 8px 0;
vertical-align: middle;
}
2026-10-26 20:25:31 +08:00
.order-ownership-panel {
border-color: #d8cfae;
}
2026-10-26 20:25:31 +08:00
.order-ownership-panel .panel-title {
gap: 12px;
flex-wrap: wrap;
}
2026-10-26 20:25:31 +08:00
.order-ownership-panel > p {
font-size: 13px;
line-height: 1.85;
}
2026-10-26 20:25:31 +08:00
.order-ownership-pair {
display: flex;
align-items: center;
gap: 18px;
flex-wrap: wrap;
margin: 12px 0;
}
2026-10-26 20:25:31 +08:00
.order-ownership-pair > div {
display: grid;
gap: 4px;
min-width: 68px;
}
2026-10-26 20:25:31 +08:00
.order-ownership-pair small {
color: var(--muted);
font-size: 11px;
}
2026-10-26 20:25:31 +08:00
.order-ownership-pair strong {
font-size: 16px;
overflow-wrap: anywhere;
}
2026-10-26 20:25:31 +08:00
.order-ownership-pair > span {
color: var(--muted);
}
2026-10-26 20:25:31 +08:00
.order-ownership-access-note {
padding: 9px 12px;
border-left: 3px solid #bead78;
background: #f8f4e9;
line-height: 1.8;
}
2026-10-26 20:25:31 +08:00
.order-ownership-selection {
font-weight: 600;
color: var(--green);
margin: 12px 0;
}
2026-10-26 20:25:31 +08:00
.order-ownership-unavailable {
line-height: 1.8;
}
2026-10-26 20:25:31 +08:00
.order-ownership-form .check {
line-height: 1.8;
}
2026-10-26 20:25:31 +08:00
.change-list-table .order-ownership-pair {
gap: 10px;
margin: 0;
}
2026-10-26 20:25:31 +08:00
.change-list-table .order-ownership-pair strong {
font-size: 13px;
}
2026-10-26 20:25:31 +08:00
.change-list-table .order-ownership-pair > div {
min-width: 42px;
}
.order-ownership-list-customer {
display: block;
font-size: 16px;
font-weight: 700;
line-height: 1.5;
overflow-wrap: anywhere;
}
@media (max-width: 650px) {
.order-ownership-trigger {
margin-right: 8px;
}
2026-10-26 20:25:31 +08:00
.order-ownership-pair {
gap: 12px;
}
2026-10-26 20:25:31 +08:00
.order-ownership-access-note {
padding: 8px 10px;
}
2026-10-26 20:25:31 +08:00
.order-ownership-panel {
padding: 18px 16px;
}
}
@media (max-width: 650px) {
.order-header.order-detail-header h2 {
font-size: 26px;
}
}
.order-book-table .order-review-status {
display: inline-block;
margin-left: 7px;
padding: 1px 6px;
border-radius: 4px;
background: #e8efe4;
color: #315a3d;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
/* 整单当前版本复核通过的醒目标记,仅用于内部订单明细。 */
.order-detail-heading {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: start;
gap: 22px;
}
.order-detail-heading > h2 {
min-width: 0;
margin: 0;
}
.order-review-seal {
width: 116px;
min-height: 100px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 8px 6px;
border: 4px double #39734b;
border-radius: 12px;
background: #f2f7ee;
color: #2c653e;
white-space: nowrap;
line-height: 1.35;
}
.order-review-seal svg {
width: 23px;
height: 23px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.order-review-seal strong {
font-size: 24px;
font-weight: 750;
letter-spacing: 2px;
}
.order-review-seal small {
font-size: 11px;
font-weight: 600;
letter-spacing: 1px;
}
@media (max-width: 650px) {
.order-detail-heading {
grid-template-columns: minmax(0, 1fr);
gap: 12px;
}
.order-review-seal {
justify-self: end;
width: 110px;
min-height: 94px;
}
}
/* 每日人数仅查看两位助理的逐日记录。 */
#people-count-history-dialog {
width: min(720px, 96vw);
}
#people-count-history-title {
padding-right: 38px;
}
.people-history-filters {
display: flex;
align-items: end;
gap: 12px;
flex-wrap: wrap;
margin: 20px 0;
}
.people-history-filters > label {
flex: 1;
min-width: 155px;
}
.people-history-filters > .actions {
width: 100%;
gap: 7px;
}
.people-history-filters > .actions button {
font-size: 12px;
padding: 7px 13px;
}
.people-history-table th.number {
text-align: right;
}
.people-history-table td {
font-variant-numeric: tabular-nums;
}
.people-history-table th,
.people-history-table td {
padding: 11px 12px;
}
.people-history-table tfoot th,
.people-history-table tfoot td {
background: var(--soft);
border-top: 1px solid var(--border);
}
.people-history-table tfoot strong {
font-size: 17px;
}
.people-history-table tfoot .small {
margin-top: 4px;
font-size: 11px;
}
@media (max-width: 650px) {
#people-count-history-dialog {
padding: 22px 16px;
}
.people-history-filters {
gap: 10px;
}
.people-history-filters > label {
flex-basis: calc(50% - 5px);
min-width: 0;
}
.people-history-filters > .primary {
padding: 8px 18px;
}
.people-history-table {
font-size: 12px;
}
.people-history-table th,
.people-history-table td {
padding: 10px 5px;
}
.people-history-table tfoot strong {
font-size: 15px;
}
}
/* 三人经营:沿用原有卡片与表格,区分往来和订单利润。 */
.member-badge {
margin-left: 10px;
}
.member-filter {
min-width: 125px;
}
.order-book-filters .member-filter {
flex: 0 0 170px;
margin: 0;
}
.report-controls .member-filter {
min-width: 125px;
}
.team-funds-filters {
display: flex;
align-items: end;
gap: 16px;
flex-wrap: wrap;
}
.team-funds-filters label {
flex: 1 1 160px;
margin: 0;
}
.team-funds-filters button {
margin-bottom: 0;
}
.team-balance-cards {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-balance-cards .stat .hint {
line-height: 1.7;
}
.team-pair .panel-title h2 {
margin: 0;
}
.team-pair-table {
min-width: 640px;
}
.team-pair-table td {
line-height: 1.7;
vertical-align: top;
}
.team-pair-table th {
white-space: nowrap;
}
.team-due strong {
color: var(--accent, #7d5d3b);
}
.team-pair-details {
margin-top: 16px;
border-top: 1px solid var(--line, #e5dfd4);
padding-top: 14px;
}
.team-pairs .team-pair {
margin-bottom: 20px;
}
.team-settings {
margin-bottom: 24px;
}
.team-member-list {
display: grid;
gap: 8px;
}
.team-member-row {
display: flex;
align-items: center;
gap: 15px;
padding: 12px 0;
border-bottom: 1px solid var(--line, #e5dfd4);
}
.team-member-row strong {
min-width: 64px;
}
.team-member-row button,
.team-member-row .badge {
margin-left: auto;
}
.reimbursement-form .reimbursement-item-row:has([name='itemMember']) {
grid-template-columns: minmax(160px, 2fr) minmax(100px, 1fr) minmax(100px, 1fr) auto;
}
.reimbursement-form .reimbursement-item-row label {
margin: 0;
}
.team-password-form input {
max-width: 100%;
}
.daily-reimbursements .reimbursement-item-labels:has(+ #reimbursement-items [name='itemMember']) {
display: none;
}
@media (max-width: 1000px) {
.team-balance-cards {
grid-template-columns: 1fr;
}
.order-book-filters .member-filter {
flex: 1 1 125px;
}
.app-body nav button {
white-space: nowrap;
}
}
@media (max-width: 600px) {
.team-pair .panel-title {
display: block;
}
.team-pair .panel-title .badge {
display: inline-block;
margin-top: 10px;
}
.team-member-row {
flex-wrap: wrap;
gap: 8px;
}
.team-member-row .small {
flex: 1;
}
.team-funds-filters {
gap: 12px;
}
.team-funds-filters label {
flex-basis: 120px;
}
.reimbursement-form .reimbursement-item-row:has([name='itemMember']) {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.reimbursement-form .reimbursement-item-row [data-action='reimbursement-remove-item'] {
justify-self: end;
}
}
.cost-funding {
grid-column: 1/-1;
margin-top: 12px;
padding: 12px;
border: 1px solid var(--line, #e5dfd4);
border-radius: 8px;
}
.cost-funding summary {
cursor: pointer;
font-size: 13px;
color: var(--muted, #786e63);
}
.fee-row > .cost-funding {
width: 100%;
}
.cost-funding .grid {
margin-top: 12px;
}
.cost-funding .funding-status {
margin: 10px 0;
}
.reimbursement-items-read small {
display: block;
}
/* 每行销售名称旁显示该商品的原始货盘,克重仍在行右侧。 */
.detail-line-identity {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 7px 9px;
min-width: 0;
flex: 1;
}
.detail-line-identity > strong {
min-width: 0;
max-width: 100%;
font-size: 14px;
font-weight: 600;
overflow-wrap: anywhere;
}
.detail-line-pocket {
max-width: 100%;
padding: 2px 7px;
border: 1px solid #c8d6bf;
border-left: 3px solid #b18a39;
border-radius: 5px;
background: #edf4e9;
color: #28513e;
font-size: 11px;
font-weight: 600;
line-height: 1.6;
overflow-wrap: anywhere;
}
.detail-line-heading > span {
flex-shrink: 0;
}
@media (max-width: 650px) {
.detail-line-identity {
gap: 6px;
}
.detail-line-identity > strong {
font-size: 13px;
}
.detail-line-pocket {
font-size: 10px;
padding: 2px 6px;
}
}
/* 手动库存改删与审批:整组平移核对,原记录持续可查。 */
.inventory-movement-actions {
flex-wrap: nowrap;
gap: 6px;
margin-top: 5px;
}
.inventory-movement-actions button {
padding: 6px 10px;
font-size: 12px;
white-space: nowrap;
}
.inventory-changes-panel {
scroll-margin-top: 20px;
}
.inventory-change-tabs {
display: flex;
gap: 7px;
flex-wrap: wrap;
margin: 16px 0;
}
.inventory-change-tabs button {
padding: 7px 12px;
}
.inventory-change-list {
min-width: 760px;
font-size: 12px;
}
.inventory-change-list td {
line-height: 1.7;
}
.inventory-change-list td:first-child {
min-width: 260px;
}
.inventory-change-text {
overflow-wrap: anywhere;
}
.inventory-change-list .badge {
white-space: nowrap;
}
#inventory-change-dialog {
width: min(960px, 96vw);
}
#inventory-change-title {
padding-right: 34px;
}
.inventory-change-fields {
margin: 20px 0;
grid-template-columns: repeat(4, minmax(0, 1fr));
}
#inventory-change-form.is-transfer .inventory-change-fields {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
#inventory-change-form > label,
#inventory-change-review-form > label {
margin-top: 16px;
}
.inventory-change-comparison {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
margin: 20px 0;
}
.inventory-change-facts {
border: 1px solid var(--border);
border-radius: 8px;
padding: 16px;
}
.inventory-change-facts h3 {
margin: 0 0 12px;
font-size: 15px;
}
.inventory-change-facts dl {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin: 0;
}
.inventory-change-facts dt {
2026-12-04 02:12:58 +08:00
font-size: 11px;
color: var(--muted);
}
.inventory-change-facts dd {
margin: 4px 0 0;
font-size: 14px;
overflow-wrap: anywhere;
}
.inventory-change-facts > p {
margin: 12px 0 0;
overflow-wrap: anywhere;
}
.inventory-change-facts + .note {
margin-top: 16px;
}
@media (max-width: 700px) {
#inventory-change-dialog {
padding: 22px 18px;
}
.inventory-change-fields,
#inventory-change-form.is-transfer .inventory-change-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.inventory-change-comparison {
grid-template-columns: 1fr;
gap: 12px;
}
.inventory-change-facts {
padding: 14px;
}
.inventory-changes-panel .panel-title {
flex-wrap: wrap;
gap: 10px;
}
.inventory-change-tabs {
gap: 6px;
}
.inventory-change-tabs button {
padding: 7px 10px;
font-size: 12px;
}
}
.inventory-movement-table {
min-width: 930px;
}
.inventory-movement-table td:last-child {
min-width: 155px;
max-width: 220px;
}
.stock-movement-scroll-hint {
display: none;
}
@media (max-width: 700px) {
.stock-movement-scroll-hint {
display: block;
}
}
/* 每日人数填写当天总数,变化从自然昨日计算。 */
.people-count-preview {
display: grid;
gap: 10px;
margin: 16px 0;
}
.people-count-preview-item {
display: flex;
flex-direction: column;
gap: 5px;
padding: 12px 14px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--soft);
font-size: 13px;
}
.people-count-preview-item > strong {
font-size: 12px;
}
.people-history-table {
min-width: 560px;
}
.people-history-table thead th[rowspan] {
vertical-align: middle;
}
.people-history-table tfoot td {
white-space: normal;
}
.people-history-table tfoot strong {
white-space: nowrap;
}
.people-count-item > span {
font-size: 14px;
}
.order-people-strip .people-count-item {
line-height: 1.8;
}
/* 回收与置换:客户公式、现金方向与内部成本沿一张单核对。 */
.recovery-mode-switch {
display: flex;
gap: 8px;
margin-bottom: 20px;
}
.recovery-mode-switch > button {
min-width: 130px;
font-size: 15px;
font-weight: 500;
}
.recovery-mode-switch > button.active {
background: var(--green);
border-color: var(--green);
color: white;
}
.recovery-row {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
align-items: end;
}
.recovery-row > label,
.recovery-row > div {
min-width: 0;
}
.recovery-row label {
font-size: 12px;
}
.recovery-row input,
.recovery-row select {
font-variant-numeric: tabular-nums;
}
.recovery-old-fields {
grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
}
.recovery-price-fields {
margin-top: 17px;
}
.recovery-buy-fields {
grid-template-columns: repeat(2, minmax(160px, 1fr)) minmax(130px, 0.7fr);
max-width: 800px;
}
.recovery-formula {
line-height: 1.85;
margin: 12px 0 0;
overflow-wrap: anywhere;
font-variant-numeric: tabular-nums;
}
.recovery-formula > .quiet {
font-size: 12px;
padding: 2px 8px;
}
.recovery-field-action {
padding-bottom: 3px;
}
.recovery-field-action > .quiet {
font-size: 12px;
padding: 8px;
}
.recovery-optional {
margin: 20px 0 0;
padding-top: 15px;
border-top: 1px solid var(--border);
}
.recovery-optional > summary {
font-size: 13px;
}
.recovery-optional > .recovery-row {
margin-top: 14px;
}
.recovery-equations {
display: grid;
gap: 5px;
}
.recovery-equations > p {
margin: 0;
line-height: 1.9;
font-size: 13px;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.recovery-equations strong {
white-space: nowrap;
font-weight: 600;
}
.recovery-net {
display: flex;
justify-content: space-between;
gap: 14px;
align-items: baseline;
background: #e8f0e3;
padding: 16px 18px;
border: 1px solid #cad9c2;
border-radius: 8px;
margin-top: 16px;
}
.recovery-net > span {
font-size: 15px;
font-weight: 600;
}
.recovery-net > strong {
font-size: 28px;
font-weight: 650;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.recovery-net.is-payment {
background: #f5efdf;
border-color: #ded1ae;
}
.recovery-net-formula {
margin: 10px 0 0;
line-height: 1.8;
font-variant-numeric: tabular-nums;
}
.recovery-calculation > #recovery-cash-fields {
margin-top: 20px;
grid-template-columns: repeat(2, minmax(0, 1fr));
max-width: 520px;
}
.recovery-cash-in > small {
display: block;
margin-top: 6px;
}
.recovery-card-fee {
background: #fff8e8;
border: 1px solid #d9c69f;
border-radius: 6px;
margin-top: 15px;
padding: 12px 14px;
font-size: 12px;
line-height: 1.8;
}
.recovery-internal {
margin-top: 0 !important;
}
.recovery-internal .recovery-row {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.recovery-internal h3 {
font-size: 14px;
margin-bottom: 12px;
color: #6e4b17;
}
.recovery-internal-block {
margin-top: 20px;
padding-top: 18px;
border-top: 1px solid #ddcfb5;
}
.recovery-internal-block > .recovery-row {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.recovery-save-panel > .check {
align-items: flex-start;
margin: 18px 0;
}
.recovery-save-panel > .check > input {
flex-shrink: 0;
margin-top: 2px;
}
.recovery-save-panel .form-actions {
justify-content: flex-start;
align-items: center;
}
.recovery-list-filters {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: end;
margin-bottom: 20px;
}
.recovery-list-filters > label {
flex: 1 1 130px;
max-width: 230px;
}
.recovery-list-table {
min-width: 810px;
}
.recovery-list-table th.number {
text-align: right;
}
.recovery-list-table td {
font-size: 12px;
}
.recovery-list-table .actions {
gap: 5px;
flex-wrap: nowrap;
}
.recovery-list-table .actions > button {
font-size: 12px;
padding: 6px 9px;
white-space: nowrap;
}
#recovery-history {
scroll-margin-top: 20px;
}
#recovery-dialog {
width: min(920px, 96vw);
}
#recovery-detail-title {
font-size: 27px;
margin: 6px 0 8px;
padding-right: 40px;
overflow-wrap: anywhere;
}
.recovery-detail-actions {
margin: 18px 0 22px;
}
.recovery-detail-note {
white-space: pre-wrap;
overflow-wrap: anywhere;
border-top: 1px solid var(--border);
padding-top: 12px;
}
.recovery-detail-internal {
margin-top: 18px;
}
.recovery-detail-internal > p {
margin-bottom: 8px;
line-height: 1.8;
}
.recovery-saved-actions {
margin-top: 20px;
}
@media (max-width: 1050px) {
.recovery-row,
.recovery-old-fields,
.recovery-internal .recovery-row {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.recovery-old-fields > label:last-child {
grid-column: auto;
}
.recovery-internal-block > .recovery-row {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.recovery-buy-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.recovery-field-action {
grid-column: 1/-1;
}
}
@media (max-width: 650px) {
.recovery-mode-switch {
margin-bottom: 17px;
}
.recovery-mode-switch > button {
flex: 1;
min-width: 0;
font-size: 14px;
}
.recovery-row,
.recovery-old-fields,
.recovery-internal .recovery-row,
.recovery-internal-block > .recovery-row {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px 10px;
}
.recovery-identity > label:nth-child(2) {
grid-column: auto;
}
.recovery-old-fields > label:first-child {
grid-column: 1/-1;
}
.recovery-row input,
.recovery-row select {
font-size: 13px;
padding: 10px 8px;
}
.recovery-row label {
font-size: 11px;
}
.recovery-panel .panel-title,
.recovery-internal .panel-title,
.recovery-exchange .panel-title,
.recovery-buy-panel .panel-title,
#recovery-form .panel-title {
gap: 8px;
align-items: flex-start;
flex-wrap: wrap;
}
#recovery-form .panel-title h2 {
font-size: 18px;
}
#recovery-form .panel-title > .small {
font-size: 11px;
}
.recovery-equations > p {
font-size: 12px;
}
.recovery-net {
padding: 13px 12px;
}
.recovery-net > span {
font-size: 14px;
}
.recovery-net > strong {
font-size: 25px;
}
.recovery-list-filters {
gap: 10px;
}
.recovery-list-filters > label {
flex-basis: calc(50% - 5px);
min-width: 0;
max-width: none;
}
.recovery-list-filters > button {
width: 100%;
padding: 8px;
}
.recovery-list-filters input,
.recovery-list-filters select {
font-size: 12px;
padding: 9px 7px;
}
.recovery-detail-actions {
gap: 7px;
}
.recovery-detail-actions > button,
.recovery-saved-actions > button {
2026-12-04 02:12:58 +08:00
font-size: 12px;
padding: 8px 11px;
}
#recovery-dialog .panel {
padding: 17px 13px;
}
#recovery-dialog table {
min-width: 460px;
}
#recovery-quote-status {
display: block;
width: 100%;
font-size: 11px;
}
.recovery-save-panel > label:first-child {
2026-12-04 02:12:58 +08:00
font-size: 12px;
}
}
/* 跨日余料统一看当前值,历史记录只作追溯。 */
.material-rolling-current {
background: #edf2e9;
border-color: #c9d6c3;
}
.material-rolling-current .panel-title {
gap: 12px;
flex-wrap: wrap;
}
.material-rolling-totals {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px 32px;
margin: 20px 0;
}
.material-rolling-totals > div {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.material-rolling-totals > div > span {
font-size: 13px;
color: var(--muted);
}
.material-rolling-totals strong {
font-size: 34px;
font-weight: 650;
color: var(--green);
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.material-rolling-totals strong > small {
font-size: 15px;
font-weight: 400;
margin-left: 7px;
}
.material-rolling-composition {
border-top: 1px solid #cad6c5;
padding-top: 13px;
}
.material-rolling-composition > summary {
font-size: 13px;
}
.material-rolling-composition > p {
line-height: 1.8;
margin: 12px 0 0;
font-variant-numeric: tabular-nums;
}
.material-rolling-parts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin-top: 16px;
}
.material-rolling-parts > div {
display: grid;
gap: 5px;
padding: 12px;
background: #f8faf6;
border: 1px solid #d8e0d3;
border-radius: 6px;
font-size: 12px;
font-variant-numeric: tabular-nums;
}
.material-rolling-parts strong {
font-size: 17px;
font-weight: 600;
}
.material-rolling-rule {
margin: 15px 0 0;
line-height: 1.8;
}
.material-rolling-start .panel-title {
flex-wrap: wrap;
gap: 10px;
}
.material-rolling-start > p {
margin: 10px 0 0;
line-height: 1.8;
}
.material-rolling-history-table {
min-width: 700px;
}
.material-rolling-history-table button {
white-space: nowrap;
}
.material-rolling-facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px 22px;
margin: 18px 0;
}
.material-rolling-facts > div {
min-width: 0;
}
.material-rolling-facts dt {
font-size: 12px;
color: var(--muted);
margin-bottom: 5px;
}
.material-rolling-facts dd {
margin: 0;
font-size: 15px;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
#material-rolling-dialog {
width: min(900px, 96vw);
}
#material-rolling-title {
padding-right: 30px;
}
#material-rolling-dialog > p {
line-height: 1.8;
}
#material-rolling-dialog .check {
align-items: flex-start;
line-height: 1.8;
margin-top: 18px;
}
#material-rolling-dialog .check > input {
flex-shrink: 0;
margin-top: 4px;
}
.material-change-panel .panel-title {
gap: 12px;
flex-wrap: wrap;
}
.material-change-tabs {
display: flex;
gap: 7px;
flex-wrap: wrap;
margin: 14px 0;
}
.material-change-tabs button {
font-size: 12px;
padding: 6px 11px;
}
.material-change-table {
font-size: 12px;
min-width: 700px;
}
.material-change-table th.number {
text-align: right;
}
.material-change-table td {
vertical-align: top;
font-variant-numeric: tabular-nums;
}
.material-change-table button {
font-size: 12px;
padding: 5px 9px;
}
.material-change-text {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.material-change-comparison {
min-width: 600px;
}
.material-change-comparison th:first-child {
min-width: 110px;
}
.material-change-comparison td {
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.material-change-different {
background: #f9f1df;
}
.material-change-impact {
margin-top: 20px;
}
.material-change-impact h3 {
font-size: 14px;
margin: 17px 0 10px;
}
.material-change-impact > p {
line-height: 1.8;
}
.material-change-review-form > label {
margin-top: 18px;
}
.material-rolling-empty {
margin: 12px 0 0;
}
@media (max-width: 650px) {
.material-rolling-current {
padding: 18px 14px;
}
.material-rolling-totals {
gap: 12px;
margin: 17px 0;
}
.material-rolling-totals > div > span {
font-size: 11px;
}
.material-rolling-totals strong {
font-size: 26px;
}
.material-rolling-totals strong > small {
font-size: 12px;
margin-left: 4px;
}
.material-rolling-parts {
grid-template-columns: 1fr;
}
.material-rolling-parts > div {
grid-template-columns: 1.4fr 1fr 1fr;
align-items: center;
gap: 8px;
}
.material-rolling-parts strong {
font-size: 14px;
}
.material-rolling-parts > div > span:last-child {
text-align: right;
}
.material-rolling-facts {
gap: 14px;
}
.material-rolling-facts dd {
font-size: 14px;
}
#material-rolling-dialog {
padding: 23px 16px;
}
.material-change-panel .panel-title > button {
font-size: 12px;
padding: 7px 9px;
}
.material-change-tabs {
gap: 6px;
}
.material-change-tabs button {
font-size: 11px;
padding: 6px 8px;
}
}
@media screen {
.price-lock-material > .material-source-row {
margin-bottom: 16px;
}
.price-lock-material-payers {
display: flex;
gap: 6px 16px;
flex-wrap: wrap;
line-height: 1.8;
margin: 10px 0 16px;
}
.price-lock-material-payers > span {
white-space: nowrap;
}
.price-lock-material-payers b {
font-variant-numeric: tabular-nums;
}
.price-lock-material .actions {
margin-top: 12px;
}
.lock-pool-delivery-payers {
margin-bottom: 0;
}
.price-lock-list td:nth-child(6) {
min-width: 175px;
line-height: 1.7;
}
.price-lock-facts small {
overflow-wrap: anywhere;
}
}
@media screen and (max-width: 650px) {
.price-lock-material > .material-source-row > label {
flex-basis: 100%;
}
.price-lock-material-payers {
gap: 5px 12px;
}
.price-lock-material > .material-source-row {
gap: 8px;
}
}
.price-lock-edit-costs > h2 {
margin-bottom: 15px;
}
.price-lock-edit-costs > label {
max-width: 380px;
}
.price-lock-edit-costs .check {
margin-top: 14px;
}
.lock-edit-extra {
border-top: 1px solid var(--border);
margin-top: 20px;
padding-top: 17px;
}
.lock-edit-extra h3 {
font-size: 14px;
margin-bottom: 12px;
}
.lock-edit-cost-preview {
display: flex;
flex-wrap: wrap;
gap: 12px 26px;
margin: 14px 0;
font-size: 13px;
}
.lock-edit-cost-preview > span {
overflow-wrap: anywhere;
}
.lock-edit-cost-preview strong {
font-variant-numeric: tabular-nums;
font-weight: 600;
}
.price-lock-edit-costs .grid > label {
min-width: 0;
}
.recovery-edit-extra-row {
border-top: 1px solid var(--border);
padding-top: 14px;
margin-top: 14px;
}
.recovery-edit-extra-row > button {
align-self: end;
margin-bottom: 2px;
}
.recovery-edit-extra-row[data-recovery-edit-row='old'] {
grid-template-columns: 1.2fr repeat(3, minmax(100px, 1fr)) auto;
}
.recovery-edit-extra-row[data-recovery-edit-row='charge'] {
grid-template-columns: minmax(160px, 1fr) minmax(110px, 1fr) auto;
}
.recovery-edit-extra-row[data-recovery-edit-row='fee'] {
grid-template-columns: minmax(160px, 1.5fr) minmax(100px, 1fr) minmax(100px, 1fr) auto;
}
.recovery-change-comparison {
margin: 18px 0;
}
.recovery-change-comparison .order-change-table {
min-width: 620px;
}
#recovery-change-dialog {
width: min(1000px, 96vw);
}
#recovery-change-title {
padding-right: 38px;
}
#recovery-change-review-form > label,
#recovery-cancel-form > label {
margin-top: 16px;
}
#recovery-change-review-form .check,
#recovery-cancel-form .check {
align-items: flex-start;
}
#recovery-change-review-form .check > input,
#recovery-cancel-form .check > input {
flex-shrink: 0;
margin-top: 3px;
}
@media (max-width: 650px) {
.recovery-edit-extra-row[data-recovery-edit-row] {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.recovery-edit-extra-row > button {
justify-self: start;
}
.recovery-change-comparison .order-change-table {
min-width: 540px;
}
}
.material-source-segments {
display: grid;
gap: 6px;
width: 100%;
margin: 8px 0;
}
.material-source-segments > div {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 6px 12px;
padding: 7px 10px;
border: 1px solid var(--border);
border-radius: 8px;
}
.material-source-segments small {
color: var(--muted);
}
.material-personal-pool + .material-personal-pool {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.material-personal-totals {
display: flex;
flex-wrap: wrap;
gap: 8px 20px;
margin: 8px 0 12px;
}
.material-personal-pools li {
margin: 5px 0;
overflow-wrap: anywhere;
}
.report-pool-material li.report-pool-material-day {
display: block;
padding-top: 7px;
border-top: 1px solid var(--border);
}
.report-pool-material-day-total {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 4px 16px;
flex-wrap: wrap;
}
.report-pool-material-day-total > span {
color: var(--muted);
}
.report-pool-material-day-total > b {
font-weight: 550;
}
.report-pool-material-sources > p {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 3px 14px;
flex-wrap: wrap;
margin: 5px 0 0;
}
.report-pool-material-sources > p > strong {
font-weight: 500;
}
@media (max-width: 650px) {
.report-pool-material-sources > p {
display: block;
}
.report-pool-material-sources > p > strong {
display: block;
}
}
.report-business-current > h3 {
font-size: 14px;
}
.report-business-current > p.small {
font-size: 11px;
line-height: 1.8;
margin: 8px 0;
color: var(--muted);
}
.report-current-day {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--border);
min-width: 0;
}
.report-current-day > header {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 7px 16px;
overflow-wrap: anywhere;
}
.report-current-day h4 {
font-size: 14px;
font-weight: 550;
margin: 0;
}
.report-current-day header > span {
font-size: 13px;
}
.report-current-day header > strong {
font-size: 23px;
font-weight: 650;
font-variant-numeric: tabular-nums;
color: var(--green);
}
.report-current-day header > strong.danger-text {
color: var(--danger);
}
.report-current-day > .report-business-balance-equation {
font-size: 12px;
line-height: 1.9;
}
.report-current-day > p.small {
font-size: 11px;
line-height: 1.8;
margin-bottom: 0;
}
@media (max-width: 650px) {
.report-current-day > header {
gap: 6px 12px;
}
.report-current-day header > strong {
font-size: 21px;
}
.report-current-day > .report-business-balance-equation {
font-size: 11px;
}
}
/* 一张锁价单中的每件商品独立核对成本与库存。 */
.price-lock-create-line > .line-top {
margin-bottom: 18px;
}
.price-lock-create-line .price-lock-material {
margin-top: 20px;
padding-top: 18px;
border-top: 1px solid var(--border);
}
.price-lock-material h3,
.lock-line-inventory h3 {
font-size: 14px;
margin-bottom: 14px;
}
.lock-add-product {
display: flex;
align-items: center;
gap: 16px;
margin: 0 0 24px;
}
.lock-line-inventory {
margin-top: 22px;
border-top: 1px solid var(--border);
padding-top: 18px;
}
.lock-extra-material {
border-top: 1px solid var(--border);
margin-top: 20px;
padding-top: 18px;
}
.price-lock-items {
margin-top: 22px;
}
.price-lock-items table {
min-width: 760px;
font-size: 12px;
}
.price-lock-items td {
vertical-align: top;
line-height: 1.8;
}
.price-lock-items th.number {
text-align: right;
}
.lock-row-divider {
border: 0;
border-top: 1px solid var(--border);
margin: 10px 0;
}
.price-lock-delivery-line > .line-item {
padding-inline: 0;
border: 0;
}
.price-lock-delivery-line .line-top {
margin-bottom: 16px;
}
.price-lock-delivery-line .line-top > button {
display: none;
}
.price-lock-delivery-line > [data-lock-part='stock-note'] {
margin-bottom: 0;
}
@media (max-width: 650px) {
.lock-add-product {
align-items: flex-start;
flex-direction: column;
gap: 10px;
}
.price-lock-create-line {
padding: 20px 16px;
}
.price-lock-delivery-line > .line-item {
padding: 0;
}
}
#price-lock-changes-dialog {
width: min(1100px, 96vw);
padding: 28px;
}
.price-lock-change-list {
min-width: 680px;
font-size: 12px;
}
.lock-list-filter {
margin-bottom: 18px;
}
.lock-change-snapshot {
margin: 24px 0;
padding-top: 18px;
border-top: 1px solid var(--border);
}
.lock-related-orders {
padding-top: 16px;
}
.lock-edit-product {
border-left: 3px solid var(--border);
padding-left: 14px;
margin-bottom: 24px;
}
.lock-edit-product-heading {
margin-bottom: 0;
}
.price-lock-list .actions {
flex-wrap: wrap;
min-width: 140px;
}
@media (max-width: 650px) {
#price-lock-changes-dialog {
padding: 23px 18px;
}
.lock-edit-product {
padding-left: 8px;
}
}
/* 原订单售后:实物、客户款与新增成本分区核对;仅内部页面使用。 */
.order-after-sale-trigger {
font-weight: 650;
}
.order-after-sale-form {
border-color: #b9c6b0;
}
.order-after-sale-form > h2 {
margin-bottom: 16px;
}
.order-after-sale-form h3 {
font-size: 15px;
margin-bottom: 12px;
}
.order-after-sale-products,
.order-after-sale-refund,
.order-after-sale-expenses {
margin-top: 22px;
}
.order-after-sale-line {
padding: 16px 0;
border-top: 1px solid var(--border);
}
.order-after-sale-line > .panel-title {
flex-wrap: wrap;
gap: 8px;
}
.order-after-sale-line > .panel-title > h3 {
margin: 0;
}
.order-after-sale-line .grid > label {
min-width: 0;
}
.order-after-sale-line > p,
.order-after-sale-form p {
line-height: 1.8;
}
.order-after-sale-refund,
.order-after-sale-expenses {
padding: 18px 16px;
border: 1px solid #d2bf98;
background: #fffaf1;
border-radius: 6px;
}
.order-after-sale-refund > label {
margin-top: 14px;
}
.order-after-sale-retained {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 8px 20px;
margin: 18px 0;
}
.order-after-sale-retained > span {
font-size: 13px;
}
.order-after-sale-retained > strong {
font-size: 22px;
font-variant-numeric: tabular-nums;
}
.order-after-sale-retained > small {
flex-basis: 100%;
}
.order-after-sale-expenses > .panel-title {
flex-wrap: wrap;
gap: 12px;
}
.order-after-sale-expense {
grid-template-columns: 1.5fr 1fr 1fr auto;
gap: 12px;
align-items: end;
border-top: 1px solid #e2d4b9;
padding-top: 14px;
margin-top: 14px;
}
.order-after-sale-expense > button {
margin-bottom: 2px;
}
.order-after-sale-summary {
padding: 18px 0;
}
.order-after-sale-summary.is-preview {
padding: 18px 16px;
margin-top: 18px;
background: #edf2e9;
border: 1px solid #c9d6c3;
border-radius: 6px;
}
.order-after-sale-summary .panel-title {
flex-wrap: wrap;
gap: 10px;
}
.order-after-sale-totals {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px 20px;
margin: 18px 0;
}
.order-after-sale-totals > div {
min-width: 0;
}
.order-after-sale-totals dt,
.order-after-sale-facts dt {
font-size: 12px;
color: var(--muted);
}
.order-after-sale-totals dd {
margin: 5px 0 0;
font-size: 21px;
font-weight: 600;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.order-after-sale-summary table {
min-width: 600px;
font-size: 12px;
}
.order-after-sale-summary td {
vertical-align: top;
line-height: 1.8;
font-variant-numeric: tabular-nums;
}
.order-after-sale-facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 15px 20px;
}
.order-after-sale-facts dd {
margin: 5px 0 0;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.order-after-sale-form .check {
align-items: flex-start;
line-height: 1.8;
}
.order-after-sale-form .check > input {
flex-shrink: 0;
margin-top: 4px;
}
.returned-stock-choice {
margin: 16px 0;
padding: 14px;
background: #edf2e9;
border: 1px solid #c9d6c3;
border-radius: 6px;
}
.returned-stock-choice[hidden] {
display: none;
}
.returned-stock-choice > p {
margin: 9px 0;
line-height: 1.8;
}
.returned-stock-choice > button {
font-size: 12px;
padding: 5px 8px;
}
@media (max-width: 650px) {
.order-after-sale-form {
padding: 20px 14px;
}
.order-after-sale-form .grid.three {
grid-template-columns: 1fr;
}
.order-after-sale-refund,
.order-after-sale-expenses,
.order-after-sale-summary.is-preview {
padding: 15px 11px;
}
.order-after-sale-expense {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.order-after-sale-expense > label:first-child {
grid-column: 1/-1;
}
.order-after-sale-expense > button {
justify-self: start;
}
.order-after-sale-totals {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.order-after-sale-totals dd {
font-size: 19px;
}
.order-after-sale-facts {
grid-template-columns: 1fr;
}
.order-after-sale-line > .panel-title {
align-items: flex-start;
flex-direction: column;
}
.order-after-sale-form .form-actions {
gap: 12px;
}
.order-after-sale-form .form-actions > button {
padding: 9px 12px;
}
.returned-stock-choice {
padding: 12px 10px;
}
.returned-stock-choice select {
2026-12-04 02:12:58 +08:00
font-size: 12px;
}
}
.order-legacy-actions {
font-size: 12px;
max-width: 300px;
}
.order-legacy-actions > summary {
cursor: pointer;
padding: 9px;
color: var(--muted);
}
.order-legacy-actions > p {
line-height: 1.8;
margin: 8px 0;
}
.order-legacy-actions[open] {
flex-basis: 100%;
max-width: none;
padding: 8px 12px;
background: #f5f3ec;
border-radius: 6px;
}
.shop-settings-fields {
border: 0;
padding: 0;
margin: 0;
min-width: 0;
}
.shop-settings h3 {
margin: 24px 0 12px;
}
@media (max-width: 650px) {
.shop-settings .grid.three {
grid-template-columns: 1fr;
}
.shop-settings .grid.four {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
/* 普通新单的勾选成本,金额与付款人固定,其他成本沿用原费用行。 */
.order-cost-presets {
margin: 14px 0 10px;
padding: 12px;
border: 1px solid #d4c39f;
border-radius: 8px;
min-width: 0;
background: #fffcf5;
}
.order-cost-presets legend {
padding: 0 7px;
color: #6e4b17;
font-size: 14px;
font-weight: 650;
}
.order-cost-presets > p {
margin: 0 0 10px;
}
.order-cost-options {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 8px;
align-items: start;
}
.order-cost-option,
.order-cost-box {
border: 1px solid #d9cbae;
background: #fffdf8;
border-radius: 6px;
min-width: 0;
}
.order-cost-option {
display: flex;
gap: 9px;
align-items: flex-start;
margin: 0;
padding: 10px;
cursor: pointer;
min-height: 0;
}
.order-cost-box > .order-cost-option {
border: 0;
background: transparent;
}
.order-cost-option:has(input:checked),
.order-cost-box:has(.order-cost-option input:checked) {
border-color: #647b57;
background: #eef3e8;
}
.order-cost-option:has(input:disabled) {
opacity: 0.7;
cursor: default;
}
.order-cost-option:focus-within {
outline: 2px solid var(--green);
outline-offset: 2px;
}
.order-cost-option > input[type='checkbox'] {
width: 18px;
height: 18px;
min-height: 18px;
margin: 2px 0 0;
flex: 0 0 auto;
accent-color: var(--green);
}
.order-cost-option > span {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: baseline;
flex: 1;
min-width: 0;
gap: 2px 8px;
}
.order-cost-option strong {
font-size: 13px;
line-height: 1.5;
overflow-wrap: anywhere;
}
.order-cost-price {
color: #35523a;
font-size: 14px;
font-weight: 650;
white-space: nowrap;
}
.order-cost-option small {
grid-column: 1/-1;
font-size: 11px;
line-height: 1.5;
font-weight: 400;
overflow-wrap: anywhere;
}
.order-cost-option small:empty {
display: none;
}
.order-cost-quantity {
display: grid;
grid-template-columns: auto minmax(60px, 88px);
justify-content: start;
align-items: center;
gap: 4px 8px;
margin: 0 10px 9px 37px;
font-size: 11px;
}
.order-cost-box:not(:has(.order-cost-option input:checked)) > .order-cost-quantity {
display: none;
}
.order-cost-quantity input {
width: 100%;
min-height: 32px;
height: 32px;
margin: 0;
padding: 5px 8px;
font-size: 13px;
}
.order-cost-quantity small {
grid-column: 1/-1;
line-height: 1.5;
font-weight: 400;
}
@media (max-width: 650px) {
.order-cost-presets {
padding: 10px;
}
.order-cost-options {
grid-template-columns: 1fr;
gap: 6px;
}
.order-cost-option {
padding: 9px 10px;
}
.order-cost-quantity input {
font-size: 16px;
min-height: 36px;
height: 36px;
}
.order-cost-presets legend {
font-size: 13px;
}
}
/* 置换共用来料:每件新货同级排列,收费和内部成本分别对齐。 */
#recovery-form .recovery-new-product {
min-width: 0;
border: 1px solid var(--border);
border-radius: 9px;
padding: 18px;
margin: 16px 0;
background: var(--white);
}
#recovery-form .recovery-new-product > .panel-title {
margin-bottom: 16px;
min-height: 32px;
}
#recovery-form .recovery-new-product > .panel-title h3 {
margin: 0;
}
#recovery-form .recovery-new-product .recovery-new-fields {
grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
}
#recovery-form .recovery-product-cost {
margin-top: 18px;
padding: 16px;
}
#recovery-form .recovery-product-cost h4 {
margin: 0 0 12px;
}
#recovery-form .recovery-product-cost > .recovery-row {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
#recovery-form .recovery-common-pricing {
margin-top: 24px;
padding-top: 20px;
border-top: 1px solid var(--border);
}
#recovery-form .recovery-common-pricing > h3 {
margin: 0 0 14px;
}
#recovery-form .recovery-common-pricing > .recovery-row {
margin-top: 0;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
#recovery-form .recovery-new-product .recovery-new-fields {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
#recovery-form .recovery-new-product .recovery-new-fields > label:first-child {
grid-column: 1/-1;
}
}
@media (max-width: 650px) {
#recovery-form .recovery-new-product {
padding: 14px;
margin: 14px 0;
}
#recovery-form .recovery-product-cost {
padding: 12px;
}
#recovery-form .recovery-product-cost > .recovery-row,
#recovery-form .recovery-common-pricing > .recovery-row {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
#recovery-form .recovery-product-cost > .recovery-row > label:last-child {
grid-column: 1/-1;
}
}
/* 内部备注可复用标签紧凑排列,不占用整行操作按钮布局。 */
.order-note-tag-options {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
gap: 8px;
margin: 10px 0 16px;
}
.order-note-tag-options button {
padding: 6px 12px;
border: 1px solid var(--border);
border-radius: 18px;
background: #f1f5ed;
color: var(--green);
font-size: 13px;
max-width: 100%;
overflow-wrap: anywhere;
}
/* 客户结算价带入按钮放在单价下方,同行金额保持顶部对齐。 */
#recovery-form .recovery-row:has(> .recovery-customer-rate) {
align-items: start;
}
#recovery-form .recovery-customer-rate {
min-width: 0;
}
#recovery-form .recovery-customer-rate > button {
margin-top: 6px;
}
#recovery-form [data-rate-status] {
margin: 4px 0 0;
line-height: 1.6;
}
/* 内部备注紧邻客户名;仅用于内部订单详情,不进入销售单打印模板。 */
.order-detail-title {
display: flex;
align-items: flex-start;
gap: 24px;
min-width: 0;
flex-wrap: wrap;
}
.order-detail-title > h2 {
flex: 0 1 auto;
max-width: 100%;
min-width: 0;
margin: 0;
}
.order-detail-title .detail-internal-note {
flex: 1 1 200px;
min-width: 0;
max-width: 680px;
padding: 8px 14px;
border-left: 3px solid #d8bc85;
border-radius: 0 6px 6px 0;
background: #f2eddf;
}
.detail-internal-note-label {
display: block;
color: #807050;
font-size: 11px;
line-height: 1.5;
margin-bottom: 3px;
}
.detail-internal-note p {
margin: 0;
color: #624a26;
font-size: 16px;
font-weight: 600;
line-height: 1.6;
overflow-wrap: anywhere;
}
@media (max-width: 650px) {
.order-detail-title {
flex-direction: column;
gap: 10px;
}
.order-detail-title .detail-internal-note {
flex: none;
width: 100%;
max-width: none;
}
.detail-internal-note p {
font-size: 15px;
}
}
/* 打印登记只在内部界面显示。 */
.document-print-badge {
display: inline-flex;
align-items: center;
white-space: nowrap;
border-radius: 6px;
padding: 4px 9px;
font-size: 14px;
font-weight: 700;
margin: 4px 0;
}
.document-print-badge.is-printed {
color: #245747;
background: #e2efe5;
}
.document-print-badge.is-unprinted {
color: #825a22;
background: #fbefd8;
}
.document-print-controls {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin: 12px 0;
}
.shop-settings-fields {
border: 0;
padding: 0;
margin: 0;
min-width: 0;
}
.shop-member-fields {
min-width: 0;
padding: 14px;
border: 1px solid var(--border);
border-radius: 8px;
}
.shop-member-fields > strong {
display: block;
margin-bottom: 10px;
}
.shop-member-fields > label + label {
margin-top: 12px;
}
.shop-settings h3 {
margin: 24px 0 12px;
}
@media (max-width: 650px) {
.shop-settings .grid.three {
grid-template-columns: 1fr;
}
.shop-settings .grid.four {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
/* 员工管理沿用设置页表单,移动端列表可横向查看。 */
.employee-management > .panel-title {
align-items: flex-start;
gap: 18px;
}
.employee-management .panel-title p {
margin: 8px 0 0;
line-height: 1.8;
}
.employee-filters {
display: flex;
align-items: end;
flex-wrap: wrap;
gap: 12px;
margin: 20px 0;
}
.employee-filters > label:first-child {
flex: 1;
min-width: 200px;
}
.employee-filters > label:nth-child(2) {
min-width: 130px;
}
.employee-table {
min-width: 700px;
}
.employee-table td {
vertical-align: top;
line-height: 1.7;
overflow-wrap: anywhere;
}
.employee-table td:first-child {
min-width: 110px;
}
.employee-table td:nth-child(2) {
max-width: 180px;
}
.employee-table td:nth-child(4) {
max-width: 310px;
min-width: 200px;
}
.employee-table .actions {
gap: 7px;
flex-wrap: wrap;
min-width: 150px;
}
.employee-delete-reason {
margin: 0 0 7px;
}
#employee-dialog {
width: min(640px, 94vw);
}
#employee-dialog h2 {
padding-right: 30px;
}
.employee-form-fields {
border: 0;
padding: 0;
margin: 0;
min-width: 0;
}
.employee-form-fields > .grid {
margin: 20px 0;
}
.employee-form-fields > label {
margin: 16px 0;
}
.employee-form-fields p,
#employee-dialog > .note {
line-height: 1.8;
}
#employee-status-form > .check {
margin-top: 20px;
}
#employee-form-error .error {
margin-top: 16px;
}
#employee-form-error .error > button {
margin: 10px 0 0;
}
@media (max-width: 650px) {
.employee-management > .panel-title {
flex-wrap: wrap;
}
.employee-filters {
gap: 10px;
}
.employee-filters > label:first-child {
flex-basis: 100%;
}
.employee-filters > label:nth-child(2) {
flex: 1;
}
.employee-filters > button {
padding: 10px 12px;
}
.employee-table {
font-size: 12px;
}
#employee-dialog {
padding: 23px 18px;
}
.employee-form-fields .grid.two {
grid-template-columns: 1fr;
}
}
/* 成本目录使用紧凑列表;只编辑当前选中的一条。 */
.shop-cost-manager {
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid var(--line, #dce0d5);
}
.shop-cost-manager h3 {
margin: 0;
}
.shop-cost-search {
display: block;
max-width: 360px;
margin: 12px 0 20px;
}
.shop-cost-table th,
.shop-cost-table td {
padding: 12px 14px;
}
.shop-cost-table .actions {
gap: 8px;
flex-wrap: nowrap;
}
.shop-cost-table button {
padding: 7px 12px;
white-space: nowrap;
}
#shop-cost-dialog {
width: min(680px, calc(100vw - 32px));
max-height: 90vh;
padding: 28px;
}
#shop-cost-dialog h2 {
margin-top: 0;
}
#shop-cost-form .form-actions {
justify-content: flex-end;
margin-top: 24px;
}
@media (max-width: 640px) {
#shop-cost-dialog {
padding: 20px;
}
#shop-cost-form .grid {
grid-template-columns: 1fr;
}
.shop-cost-table th,
.shop-cost-table td {
padding: 9px 8px;
}
.shop-cost-manager .panel-title {
flex-wrap: wrap;
}
}
/* 货盘管理与成本目录统一为紧凑列表,表单按需打开。 */
.pocket-manager-search {
display: block;
max-width: 360px;
margin: 12px 0 20px;
}
.pocket-manager-table th,
.pocket-manager-table td {
padding: 12px 14px;
}
.pocket-manager-table .actions {
gap: 8px;
flex-wrap: nowrap;
}
.pocket-manager-table button {
padding: 7px 12px;
white-space: nowrap;
}
#pocket-editor-dialog {
width: min(600px, calc(100vw - 32px));
max-height: 90vh;
padding: 28px;
}
#pocket-editor-dialog h2 {
margin-top: 0;
}
#pocket-editor-dialog form {
display: block;
padding: 0;
border: 0;
}
#pocket-editor-dialog form > label {
display: block;
max-width: none;
margin-bottom: 18px;
}
#pocket-editor-dialog .form-actions {
display: flex;
justify-content: flex-end;
margin-top: 24px;
}
#pocket-editor-dialog .pocket-count-settings {
margin-top: 12px;
}
@media (max-width: 640px) {
#pocket-editor-dialog {
padding: 20px;
}
.pocket-manager-table th,
.pocket-manager-table td {
padding: 9px 8px;
}
.pocket-manager > .panel-title {
flex-wrap: wrap;
}
}
/* 紧凑工作区:常用输入优先,辅助内容按需展开。 */
.order-entry-tools {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: 18px;
align-items: start;
}
.order-entry-tools .entry-tool {
margin: 0;
padding: 0;
min-width: 0;
}
.entry-tool > summary {
padding: 13px 16px;
font-weight: 650;
cursor: pointer;
min-height: 48px;
}
.entry-tool > summary .small {
font-weight: 400;
margin-left: 10px;
}
.entry-tool-body {
padding: 0 16px 16px;
}
.entry-tool[open] > summary {
border-bottom: 1px solid var(--border);
margin-bottom: 14px;
}
.order-review-menu {
position: relative;
}
.order-review-menu > summary {
cursor: pointer;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--white);
font-weight: 600;
}
.order-review-options {
position: absolute;
right: 0;
top: 100%;
z-index: 12;
display: grid;
gap: 6px;
min-width: 225px;
padding: 10px;
background: var(--white);
border: 1px solid var(--border);
border-radius: 8px;
box-shadow: 0 8px 24px #233d3520;
}
.order-review-options > button {
text-align: left;
}
.order-book-overview,
.order-people-overview {
border-bottom: 1px solid var(--border);
margin-bottom: 12px;
}
.order-book-overview > summary,
.order-people-overview > summary {
cursor: pointer;
padding: 9px 0;
font-weight: 600;
}
.order-book-overview[open] > summary,
.order-people-overview[open] > summary {
margin-bottom: 12px;
}
.order-mobile-list {
display: none;
}
@media (max-width: 1100px) {
.material-purchase-fields {
min-width: 0;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.material-purchase-fields > label {
min-width: 0;
}
.material-purchase-fields > label:last-of-type {
grid-column: 1/-1;
}
.material-purchase-fields > button {
grid-column: 1/-1;
}
.material-scroll-hint {
display: none;
}
}
@media (max-width: 650px) {
.order-entry-tools {
grid-template-columns: 1fr;
gap: 8px;
margin-bottom: 14px;
}
.entry-tool > summary {
padding: 11px 14px;
font-size: 14px;
}
.entry-tool > summary .small {
font-size: 11px;
}
.entry-tool-body {
padding: 0 14px 14px;
}
.entry-tool-body .form-actions {
margin-top: 12px;
}
#order-form {
padding-bottom: 110px;
}
#order-form .create-submit-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 20;
margin: 0;
padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
background: var(--white);
border-top: 1px solid var(--border);
box-shadow: 0 -3px 14px #233d3510;
gap: 12px;
align-items: center;
display: flex;
justify-content: space-between;
}
.create-submit-bar .summary-amount {
font-size: 24px;
line-height: 1.2;
}
.create-submit-bar > button {
flex-shrink: 0;
min-height: 46px;
}
.create-submit-bar > div {
min-width: 0;
}
.create-submit-bar .order-rounding-note {
font-size: 10px;
max-width: 185px;
}
#order-form .line-item > .internal {
padding: 14px 12px;
border: 0;
border-left: 3px solid #b79964;
border-radius: 0;
}
#order-form .internal .purchase-material,
#order-form .internal .purchase-labor {
background: transparent;
border: 0;
padding: 0;
border-radius: 0;
}
#order-form .internal .purchase-labor {
border-top: 1px solid #d9cbae;
padding-top: 14px;
}
.material-purchase-fields {
grid-template-columns: minmax(0, 1fr);
gap: 12px;
}
.material-purchase-scroll {
overflow: visible;
}
.material-purchase-fields input,
.material-purchase-fields select {
max-width: 100%;
font-size: 16px;
}
#main:has(.order-book-panel) > .page-heading {
display: block;
}
#main:has(.order-book-panel) > .page-heading .actions {
margin-top: 12px;
gap: 7px;
}
.order-review-menu > summary {
padding: 8px 11px;
font-size: 12px;
}
.order-review-options {
left: 0;
right: auto;
}
.order-book-dates {
gap: 8px;
margin-bottom: 8px;
}
.order-period-buttons button {
padding: 8px 13px;
}
.order-book-overview > summary,
.order-people-overview > summary {
font-size: 12px;
padding: 8px 0;
}
.order-book-panel {
padding-top: 12px;
}
.order-book-filters {
display: grid;
grid-template-columns: 1fr 1fr;
padding: 0 12px;
gap: 8px;
margin-bottom: 10px;
align-items: end;
}
.order-book-filters #order-search,
.order-book-filters #order-book-count {
grid-column: 1/-1;
min-width: 0;
width: 100%;
}
.order-book-filters select,
.order-book-filters label {
width: 100%;
min-width: 0;
}
.order-book-filters input,
.order-book-filters select {
font-size: 16px;
min-height: 44px;
}
.order-book-table-wrap {
display: none;
}
.order-mobile-list {
display: grid;
gap: 10px;
padding: 0 12px 12px;
}
.order-mobile-card {
border: 1px solid var(--border);
border-radius: 8px;
background: var(--white);
padding: 14px;
min-width: 0;
}
.order-mobile-card.order-reversed {
background: #f3f1ec;
}
.order-mobile-heading .order-book-link {
font-size: 12px;
}
.order-mobile-heading .order-book-customer-name {
font-size: 17px;
font-weight: 650;
}
.order-mobile-heading .order-book-secondary {
font-size: 11px;
color: var(--muted);
}
.order-mobile-heading .order-book-recovery-badge {
font-size: 11px;
padding: 2px 5px;
background: #fff0c5;
border-radius: 4px;
margin-left: 6px;
}
.order-mobile-heading .order-book-recovery-payment {
font-size: 13px;
font-weight: 600;
}
.order-mobile-heading .order-book-recovery-print {
font-size: 12px;
padding: 5px 0;
}
.order-mobile-meta {
font-size: 11px;
color: var(--muted);
margin-top: 7px;
line-height: 2;
}
.order-mobile-amounts {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin: 12px 0;
}
.order-mobile-amounts > div {
min-width: 0;
}
.order-mobile-amounts span {
display: block;
font-size: 11px;
color: var(--muted);
}
.order-mobile-amounts strong {
display: block;
font-size: 17px;
overflow-wrap: anywhere;
font-variant-numeric: tabular-nums;
}
.order-mobile-breakdown {
border-top: 1px solid var(--border);
}
.order-mobile-breakdown > summary {
font-size: 12px;
padding: 10px 0 0;
cursor: pointer;
color: var(--muted);
}
.order-mobile-breakdown dl {
font-size: 12px;
margin: 12px 0;
}
.order-mobile-breakdown dl > div {
display: flex;
justify-content: space-between;
gap: 12px;
margin: 7px 0;
}
.order-mobile-breakdown dt {
color: var(--muted);
flex-shrink: 0;
}
.order-mobile-breakdown dd {
margin: 0;
text-align: right;
overflow-wrap: anywhere;
}
.order-mobile-note {
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
padding: 10px 0;
border-top: 1px dashed var(--border);
}
}
@media (max-width: 650px) {
#main:has(.order-book-panel) > .page-heading,
#main:has(#order-form) > .page-heading {
display: block;
margin-bottom: 14px;
}
#main:has(.order-book-panel) > .page-heading .eyebrow,
#main:has(#order-form) > .page-heading .eyebrow {
display: none;
}
#main:has(.order-book-panel) > .page-heading p,
#main:has(#order-form) > .page-heading p {
display: none;
}
#main:has(.order-book-panel) > .page-heading .actions,
#main:has(#order-form) > .page-heading .actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 7px;
margin-top: 10px;
}
#main:has(.order-book-panel) > .page-heading .actions > button,
#main:has(#order-form) > .page-heading .actions > button {
min-height: 40px;
padding: 8px 12px;
font-size: 12px;
white-space: nowrap;
}
#order-form > .panel > .panel-title {
flex-wrap: wrap;
gap: 6px;
margin-bottom: 14px;
}
#order-form > .panel > .panel-title > h2 {
white-space: nowrap;
margin: 0;
}
#order-form > .panel > .panel-title > .small {
flex-basis: 100%;
font-size: 11px;
}
.order-book-overview {
margin-bottom: 10px;
}
.order-people-overview {
margin-top: 16px;
}
}
@media (max-width: 650px) {
html:has(#order-form) {
scroll-padding-bottom: 135px;
}
#order-form input,
#order-form select,
#order-form textarea {
scroll-margin-bottom: 135px;
}
}
/* 自动料费按结果展示,三项并排,避免沿用手填四列导致付款人换行。 */
.internal .material-source-controls[data-source='pool'] + .purchase-material {
padding: 10px 0 0;
border: 0;
border-top: 1px solid #d9cbae;
border-radius: 0;
background: transparent;
}
.internal .material-source-controls[data-source='pool'] + .purchase-material .purchase-cost-grid {
grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
gap: 8px 16px;
}
.internal .material-source-controls[data-source='pool'] + .purchase-material .purchase-cost-grid > label {
grid-column: auto;
}
.internal .material-source-controls[data-source='pool'] + .purchase-material input[readonly] {
min-height: 34px;
padding: 5px 0;
margin-top: 3px;
border: 0;
border-radius: 0;
background: transparent;
font-size: 16px;
font-weight: 600;
text-overflow: ellipsis;
}
.internal .material-source-controls[data-source='pool'] + .purchase-material .purchase-formula {
margin-top: 5px;
font-size: 12px;
font-weight: 400;
}
@media (max-width: 650px) {
.internal .material-source-controls[data-source='pool'] + .purchase-material .purchase-cost-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px 12px;
}
.internal .material-source-controls[data-source='pool'] + .purchase-material label {
font-size: 11px;
}
.internal .material-source-controls[data-source='pool'] + .purchase-material .material-pool-payer {
grid-column: 1/-1;
}
}
/* 私域运营:按员工核对新增与成交。 */
.private-ops-filters {
display: flex;
gap: 12px;
align-items: end;
flex-wrap: wrap;
}
.private-ops-filters > label {
flex: 1;
min-width: 150px;
}
.private-ops-filters > .actions {
flex-basis: 100%;
2026-12-04 02:12:58 +08:00
}
.private-ops-help {
margin: 16px 0 0;
}
2026-12-04 02:12:58 +08:00
.private-ops-table {
min-width: 950px;
}
2026-12-04 02:12:58 +08:00
.private-ops-table td {
font-variant-numeric: tabular-nums;
}
2026-12-04 02:12:58 +08:00
#private-people-dialog {
width: min(580px, 95vw);
}
2026-12-04 02:12:58 +08:00
#private-people-title {
padding-right: 30px;
}
@media (max-width: 650px) {
.private-ops-filters {
display: grid;
grid-template-columns: 1fr 1fr;
}
2026-12-04 02:12:58 +08:00
.private-ops-filters > label {
min-width: 0;
}
2026-12-04 02:12:58 +08:00
.private-ops-filters > .actions {
grid-column: 1/-1;
}
2026-12-04 02:12:58 +08:00
.private-ops-filters input,
.private-ops-filters select,
#private-people-form input,
#private-people-form select {
font-size: 16px;
}
2026-12-04 02:12:58 +08:00
#main:has(#private-ops-filter) > .page-heading {
display: block;
}
2026-12-04 02:12:58 +08:00
#main:has(#private-ops-filter) > .page-heading .actions {
margin-top: 12px;
}
}
/* 客户类型直接单选,整块标签均可点击。 */
.customer-type-field {
border: 0;
padding: 0;
margin: 0;
min-width: 0;
}
.customer-type-field legend {
padding: 0;
margin-bottom: 6px;
color: #566259;
font-size: 12px;
}
.customer-type-options {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 6px;
}
.customer-type-options > label {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
min-width: 0;
height: 44px;
padding: 8px 6px;
margin: 0;
border: 1px solid var(--border);
border-radius: 7px;
background: var(--white);
cursor: pointer;
}
.customer-type-options input[type='radio'] {
width: 15px;
height: 15px;
min-height: 0;
margin: 0;
padding: 0;
flex: none;
accent-color: var(--green);
}
.customer-type-options > label:has(input:checked) {
border-color: var(--green);
background: var(--soft);
color: var(--green);
}
.customer-type-options > label:has(input:focus-visible) {
outline: 2px solid var(--green);
outline-offset: 2px;
}
.customer-type-options input[type='radio']:focus {
outline: none;
}
.customer-type-options span {
font-size: 13px;
white-space: nowrap;
}
2026-12-04 02:12:58 +08:00
.private-ops-summary {
min-width: 980px;
}
.private-ops-summary th.number {
text-align: right;
}
2026-12-04 02:12:58 +08:00
.private-ops-summary tbody th {
background: var(--white);
color: var(--ink);
font-size: 13px;
font-weight: 650;
vertical-align: middle;
}
2026-12-04 02:12:58 +08:00
.private-ops-summary td {
vertical-align: middle;
padding: 11px 12px;
font-variant-numeric: tabular-nums;
}
2026-12-04 02:12:58 +08:00
.private-ops-summary td .small {
margin-top: 4px;
font-size: 11px;
}
2026-12-04 02:12:58 +08:00
.private-ops-summary td:last-child {
white-space: nowrap;
}
2026-12-04 02:12:58 +08:00
.private-ops-summary tbody tr:hover td,
.private-ops-summary tbody tr:hover th {
background: #f5f7f2;
}
2026-12-04 02:12:58 +08:00
.private-ops-summary th:first-child {
position: sticky;
left: 0;
z-index: 1;
min-width: 90px;
border-right: 1px solid var(--border);
}
2026-12-04 02:12:58 +08:00
.private-ops-summary-wrap:focus-visible {
outline: 2px solid var(--green);
outline-offset: 2px;
}
.private-people-history {
min-width: 520px;
}
.private-people-history th[colspan] {
text-align: center;
border-left: 1px solid var(--border);
}
.private-people-history th.number {
text-align: right;
}
.private-people-history tbody th {
color: var(--ink);
font-size: 13px;
font-weight: 500;
background: var(--white);
vertical-align: middle;
}
.private-people-history td {
vertical-align: middle;
font-variant-numeric: tabular-nums;
}
.private-people-history td:nth-child(2n) {
border-left: 1px solid var(--border);
}
.private-people-history .link-button {
font-weight: 600;
padding: 6px 0;
}
.private-people-history .small {
margin-top: 4px;
font-size: 11px;
}
.private-people-history th:first-child[rowspan],
.private-people-history tbody th {
position: sticky;
left: 0;
z-index: 1;
}
.private-people-history tbody tr:hover td,
.private-people-history tbody tr:hover th {
background: #f5f7f2;
}
/* 打印状态放备注后,避免撑高客户名称区域。 */
.order-book-table .order-print-status {
width: 76px;
min-width: 76px;
white-space: nowrap;
text-align: center;
}
.order-book-table .document-print-badge {
padding: 1px 5px;
margin: 0;
font-size: 11px;
font-weight: 500;
}
.order-book-table .document-print-badge.is-unprinted {
color: var(--muted);
background: transparent;
}
.order-mobile-print-status {
margin-top: 6px;
}
@media (max-width: 650px) {
.grid > .customer-type-field {
grid-column: 1/-1;
}
}