/* Tmall replacement-order amount lookup. */
.tmall-amount-workbench,.tmall-amount-results{margin-bottom:14px;overflow:hidden}.tmall-amount-workbench .panel-header,.tmall-amount-results .panel-header{min-height:68px}.tmall-amount-workbench .panel-header>.status{display:inline-flex;align-items:center;gap:6px}.tmall-amount-workbench .panel-header>.status svg{width:14px;height:14px}.tmall-amount-query-layout{display:grid;grid-template-columns:minmax(440px,1.35fr) minmax(300px,.65fr);border-top:1px solid var(--line)}.tmall-amount-input-block{min-width:0;padding:20px 22px;background:var(--surface)}.tmall-amount-input-block>label{margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--ink);font-size:10px;font-weight:700}.tmall-amount-input-block>label small{color:var(--muted);font-size:9px;font-weight:500}.tmall-amount-input{width:100%;min-height:154px;max-height:300px;padding:12px 14px;resize:vertical;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:5px;outline:0;font:11px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:0}.tmall-amount-input:focus{background:var(--surface);border-color:var(--brand-blue);box-shadow:0 0 0 3px rgba(47,100,200,.08)}.tmall-amount-input-actions{margin-top:12px;display:flex;align-items:center;justify-content:flex-end;gap:8px}.tmall-amount-upload{position:relative;overflow:hidden;cursor:pointer}.tmall-amount-upload input{width:1px;height:1px;position:absolute;opacity:0;pointer-events:none}.tmall-amount-input-actions .primary-button{min-width:126px;justify-content:center}.tmall-amount-source{min-width:0;padding:22px;display:grid;grid-template-columns:36px minmax(0,1fr);align-content:start;gap:12px 11px;background:var(--bg);border-left:1px solid var(--line)}.tmall-amount-source-icon{width:34px;height:34px;display:grid;place-items:center;color:var(--green-dark);background:var(--green-soft);border:1px solid var(--line-strong);border-radius:5px}.tmall-amount-source-icon svg{width:17px}.tmall-amount-source>div{min-width:0}.tmall-amount-source>div small,.tmall-amount-source>div strong{display:block}.tmall-amount-source>div small{color:var(--muted);font-size:8px}.tmall-amount-source>div strong{margin-top:3px;overflow:hidden;color:var(--ink);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.tmall-amount-source>div p{margin:9px 0 0;color:var(--muted);font-size:9px;line-height:1.65}.tmall-amount-source dl{grid-column:1/-1;margin:7px 0 0;border-top:1px solid var(--line)}.tmall-amount-source dl>div{padding:9px 0;display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;border-bottom:1px solid var(--line);font-size:9px}.tmall-amount-source dt{color:var(--muted)}.tmall-amount-source dd{min-width:0;margin:0;overflow:hidden;color:var(--ink);font-weight:700;text-align:right;text-overflow:ellipsis;white-space:nowrap}.tmall-amount-table{min-width:1160px;table-layout:fixed}.tmall-amount-table th,.tmall-amount-table td{padding:11px 12px;vertical-align:middle;white-space:nowrap}.tmall-amount-table th{white-space:normal;line-height:1.35}.tmall-amount-table td{overflow:hidden;text-overflow:ellipsis}.tmall-amount-table th:first-child{width:52px}.tmall-amount-table th:nth-child(2){width:180px}.tmall-amount-table th:nth-child(8),.tmall-amount-table th:nth-child(9){width:130px}.tmall-amount-table th:nth-child(10){width:86px}.tmall-amount-table tbody tr:hover{background:var(--brand-blue-faint)}.tmall-amount-row-failed{background:var(--red-soft)}.tmall-amount-sequence{width:24px;height:24px;display:grid;place-items:center;color:var(--muted);background:var(--bg);border-radius:4px;font-size:9px;font-weight:700}.tmall-amount-order-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;letter-spacing:0}.tmall-amount-receivable{color:var(--red);font-size:11px}.tmall-amount-table .status{max-width:170px;overflow:hidden;text-overflow:ellipsis}.tmall-amount-loading svg{animation:spin 1s linear infinite}.tmall-amount-results .empty-state svg{width:20px;margin-bottom:6px;color:var(--muted)}.tmall-amount-force-refresh{position:relative;height:34px;margin:0 auto 0 0!important;padding:0 6px 0 2px;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}.tmall-amount-force-refresh input{width:15px;height:15px;margin:0;accent-color:var(--green)}.tmall-amount-force-refresh::after{content:attr(data-tooltip);position:absolute;left:0;bottom:calc(100% + 7px);z-index:20;width:max-content;max-width:240px;padding:7px 9px;color:#fff;background:#263247;border-radius:4px;font-size:9px;font-weight:500;line-height:1.5;white-space:normal;opacity:0;visibility:hidden;transform:translateY(3px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none}.tmall-amount-force-refresh:hover::after,.tmall-amount-force-refresh:focus-within::after{opacity:1;visibility:visible;transform:translateY(0)}.tmall-amount-result-actions{display:flex;align-items:center;gap:8px}.public-tmall-mode .company-switcher,.public-tmall-mode .sidebar-footer,.public-tmall-mode #searchTrigger,.public-tmall-mode .notice-button,.public-tmall-mode #quickCreate{display:none}
@media(max-width:980px){.tmall-amount-query-layout{grid-template-columns:1fr}.tmall-amount-source{border-top:1px solid var(--line);border-left:0}}
@media(max-width:640px){.tmall-amount-workbench .panel-header{align-items:flex-start}.tmall-amount-input-block,.tmall-amount-source{padding:16px}.tmall-amount-input-block>label{align-items:flex-start;flex-direction:column}.tmall-amount-input{min-height:180px}.tmall-amount-input-actions{display:grid;grid-template-columns:1fr 1fr}.tmall-amount-input-actions .primary-button{grid-column:1/-1}.tmall-amount-input-actions button,.tmall-amount-upload{width:100%;justify-content:center}}
.tmall-amount-workbench-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.tmall-amount-workbench-actions>.status{display:inline-flex;align-items:center;gap:6px}.tmall-amount-workbench-actions>.status svg{width:14px;height:14px}.tmall-token-config-detail{display:grid;gap:16px}.tmall-token-config-detail .detail-note{display:grid;gap:5px}.tmall-token-config-detail .detail-note span{color:var(--muted);font-size:11px;line-height:1.6}.tmall-token-field{display:grid;gap:7px}.tmall-token-field>span{color:var(--muted);font-size:10px;font-weight:700}.tmall-token-field input{width:100%;height:42px;padding:0 12px;border:1px solid var(--line-strong);border-radius:4px}.tmall-token-field input:focus{border-color:var(--brand-blue);box-shadow:0 0 0 3px rgba(49,91,216,.09);outline:0}.tmall-token-security-note{margin:0;display:flex;align-items:flex-start;gap:7px;color:var(--muted);font-size:9px;line-height:1.6}.tmall-token-security-note svg{width:14px;height:14px;flex:0 0 auto;color:var(--green-dark)}
.tmall-token-backdrop{justify-content:center;align-items:center;padding:24px}.tmall-token-backdrop .detail-drawer.tmall-order-token-window{width:min(460px,calc(100vw - 48px));height:auto;max-height:calc(100vh - 48px);border-radius:8px;box-shadow:0 22px 70px rgba(9,20,15,.28);animation:tmall-token-modal-in .18s ease}.tmall-order-token-window .detail-header{padding:20px 22px 16px}.tmall-order-token-window .detail-header h2{font-size:17px}.tmall-order-token-window .detail-body{padding:18px 22px 20px}.tmall-order-token-window .detail-footer{min-height:62px;padding:12px 22px}.tmall-amount-token-config{width:34px;height:34px;padding:0}.tmall-amount-token-config svg{width:16px;height:16px}@keyframes tmall-token-modal-in{from{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@media(max-width:640px){.tmall-token-backdrop{padding:12px}.tmall-token-backdrop .detail-drawer.tmall-order-token-window{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.tmall-order-token-window .detail-header,.tmall-order-token-window .detail-body{padding-left:16px;padding-right:16px}.tmall-order-token-window .detail-footer{padding-left:16px;padding-right:16px}}
