/* 客户结算：只使用 yanxu-ui.css 中的 --l-* 变量，不另定义颜色。 */
.settle-month{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--l-text-3)}
.settle-month input{height:30px;border:1px solid var(--l-line-strong);border-radius:6px;padding:0 8px;font:13px var(--font);color:var(--l-text);background:var(--l-surface)}
.settle-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.settle-totals{display:flex;gap:18px;font-size:12px;color:var(--l-text-3)}
.settle-totals strong{color:var(--l-text);font-weight:600;margin-left:4px;font-variant-numeric:tabular-nums}
.settle-table td{vertical-align:middle}
.settle-clickable{cursor:pointer}
.settle-client{display:flex;flex-direction:column;line-height:1.35}
.settle-client .muted,.settle-sub{font-size:12px}
.settle-sub{display:block}
.settle-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.settle-actions{text-align:right;white-space:nowrap}
.settle-link{color:var(--l-accent);cursor:pointer}
.settle-settings-link{background:transparent;border:0;padding:0;font:inherit;text-align:left}
.settle-foot{font-size:12px;padding:10px 16px;margin:0;border-top:1px solid var(--l-line)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.settle-form{display:flex;flex-direction:column;gap:12px}
.settle-fieldset{border:1px solid var(--l-line);border-radius:8px;padding:10px 14px 12px;margin:0;background:var(--l-surface);color:var(--l-text)}
.settle-fieldset legend{font-size:13px;font-weight:600;color:var(--l-text);padding:0 4px}
.settle-fieldset legend small{font-weight:400;margin-left:6px}
.settle-inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.settle-inline input[name]:not([type]){height:30px;width:140px;padding:4px 10px}
.settle-tax-options{gap:12px 18px}
.settle-tax-rate[hidden]{display:none!important}
.settle-tax-rate .settle-hint{flex:1;min-width:220px;line-height:1.5}
.settle-form input:disabled{cursor:default}
.settle-check,.settle-radio{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--l-text);cursor:pointer}
.settle-options{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.settle-radio{align-items:flex-start}
.settle-radio span{display:flex;flex-direction:column}
.settle-radio small{font-size:12px}
.settle-hint{font-size:12px;margin:6px 0 0}
.settle-confirm{font-weight:600}
.settle-items{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.settle-item-row{display:grid;grid-template-columns:1.2fr 0.8fr 2fr 26px;gap:6px;align-items:center}
.settle-item-row input{height:30px;min-width:0}

.settle-bill.modal{width:min(1080px,calc(100vw - 48px))}
/* Keep bill content opaque in both themes; legacy global table stripes use light-only colors. */
.settle-bill .mini-table,.settle-bill .data-table{background:var(--l-surface);color:var(--l-text)}
.settle-bill .mini-table tbody>tr,.settle-bill .data-table tbody>tr{background:var(--l-surface)!important}
.settle-bill .mini-table tbody>tr:nth-child(even),.settle-bill .data-table tbody>tr:nth-child(even),
.settle-bill .mini-table tbody>tr:hover,.settle-bill .mini-table tbody>tr:focus-within,
.settle-bill .data-table tbody>tr:hover,.settle-bill .data-table tbody>tr:focus-within{background:var(--l-sunken)!important}
.settle-bill .mini-table th,.settle-bill .mini-table td,.settle-bill .data-table th,.settle-bill .data-table td{border-color:var(--l-line)!important}
.settle-bill .mini-table tbody th,.settle-bill .mini-table tbody td,
.settle-bill .data-table tbody th,.settle-bill .data-table tbody td{background:transparent!important;color:var(--l-text)!important}
.settle-bill .mini-table thead th,.settle-bill .data-table thead th{background:var(--l-sunken)!important;color:var(--l-text-2)!important}
.settle-bill .mini-table .settle-total th,.settle-bill .mini-table .settle-total td{color:var(--l-text)!important;font-weight:600!important}
.settle-meta{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:12px;color:var(--l-text-2);margin-bottom:6px}
.settle-section{border-top:1px solid var(--l-line);padding:12px 0 4px;margin-top:10px}
.settle-section h3{font-size:13px;font-weight:600;margin:0 0 8px;display:flex;align-items:center;gap:6px}
.settle-section h3 .muted{font-weight:400}
.settle-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.settle-subhead{margin-top:14px!important}
.settle-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.settle-columns .settle-section{border-top:1px solid var(--l-line)}
.settle-summary th,.settle-adjust td,.settle-summary td{padding:6px 4px}
.settle-summary th small,.settle-section .mini-table th small{display:block;font-weight:400;font-size:12px}
.settle-total th,.settle-total td{font-weight:600;color:var(--l-text)}
.settle-basis-line{display:flex;flex-direction:column;gap:2px;padding:6px 0;border-bottom:1px solid var(--l-line);font-size:13px}
.settle-basis-line>span:first-child{font-size:12px;color:var(--l-text-3)}
.settle-basis-line small{font-size:12px}
.settle-basis-line,.settle-summary th{overflow-wrap:anywhere}
.settle-changes{list-style:none;padding:0;margin:6px 0;font-size:12px;display:flex;flex-direction:column;gap:4px}
.settle-roster-form{display:grid;grid-template-columns:1.4fr 0.8fr 2fr auto;gap:6px;align-items:center;margin-top:6px}
.settle-roster-form select,.settle-roster-form input{height:30px;min-width:0}
.settle-split-table input{height:26px;width:96px}
.settle-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.settle-lines{max-height:320px;overflow:auto}
.settle-review h3 svg{color:var(--l-orange)}
.settle-pending{border:1px solid var(--l-line-strong);border-radius:8px;padding:12px 14px;margin-bottom:12px;background:var(--l-sunken)}
.settle-pending h3{font-size:13px;margin:0 0 8px}
.settle-pending .full{grid-column:1/-1}
.settle-details{margin-top:10px;font-size:12px}
.settle-details summary{cursor:pointer;color:var(--l-text-2)}
.settle-client-entry{margin-top:14px;padding-top:12px;border-top:1px solid var(--l-line)}
.settle-scope th,.settle-scope td{padding:6px 4px}
.settle-scope thead th{font-size:12px;font-weight:500;color:var(--l-text-3)}
.settle-warn{color:var(--l-orange)}
.settle-change-table{margin-bottom:8px;max-height:220px}
.settle-client-entry{display:flex;align-items:center;justify-content:space-between;gap:12px}
.settle-client-entry>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.settle-client-summary{font-size:12px}
