:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17212b;background:#f3f5f7;font-size:16px}*{box-sizing:border-box}html,body{max-width:100%;overflow-x:hidden}body{margin:0}header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px max(18px,calc((100vw - 760px)/2));background:#102a43;color:#fff;box-shadow:0 2px 12px #102a4329}header h1{font-size:22px;margin:2px 0 0}header small{color:#9fb3c8}header span{font-size:13px}.identity-area{display:flex;align-items:center;justify-content:flex-end;max-width:56%;margin-left:12px}.identity-area select{width:auto;max-width:100%;padding:7px 28px 7px 9px;border-color:#486581;background:#fff;color:#17212b;font-size:13px}main{width:100%;max-width:760px;margin:auto;padding:18px 14px 80px}.toolbar{display:flex;align-items:center;justify-content:space-between}.toolbar h2{font-size:20px}.panel,.card{background:#fff;border:1px solid #d9e2ec;border-radius:12px;padding:16px;margin:12px 0;box-shadow:0 3px 12px #102a430a}.card{cursor:pointer}.card:active{transform:scale(.995)}.card h3,.panel h3{margin:0 0 10px}.meta{display:flex;gap:8px;flex-wrap:wrap;color:#627d98;font-size:13px}.tag{padding:3px 8px;border-radius:999px;background:#e6f6ff;color:#006d9c}.filters{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fields label,.panel>label{display:flex;flex-direction:column;gap:5px;color:#486581;font-size:13px}.value{color:#17212b;white-space:pre-wrap;overflow-wrap:anywhere}input,select,textarea,button{min-width:0;max-width:100%;font:inherit;border:1px solid #bcccdc;border-radius:8px;padding:10px;background:#fff}textarea{min-height:78px;resize:vertical}button{background:#087f5b;color:#fff;border:0;font-weight:600;cursor:pointer}.secondary{background:#e9eef2;color:#334e68}.danger{background:#c92a2a}.actions{display:flex;gap:10px;position:sticky;bottom:10px;z-index:1}.actions button{flex:1;box-shadow:0 3px 12px #0002}.notice{padding:12px;border-radius:8px;background:#fff3bf;color:#7c4a03;margin-bottom:12px}.error{background:#ffe3e3;color:#a51111}.empty{text-align:center;color:#829ab1;padding:40px}ol{padding-left:22px}li{margin:9px 0;color:#486581}@media(max-width:560px){.fields{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.filters button{grid-column:1/-1}}
.product-section{border:1px solid #d9e2ec;border-radius:8px;padding:8px;background:#f8fafc}.product-label,.field-label{display:block;color:#486581}.product-label{margin-bottom:5px}.empty-product{display:block;color:#829ab1;font-size:12px;padding:2px 0}.selected-product{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 0;border-bottom:1px solid #e6ebef}.selected-product small,.product-result small{display:block;overflow-wrap:anywhere;font-size:12px}.remove-product{flex:0 0 auto;padding:1px 6px;background:transparent;color:#c92a2a;border:0;font-size:15px;line-height:1}.product-picker{display:grid;gap:6px;margin-top:6px}.product-filter-row,.product-search-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.product-filter-row label,.product-filter-control{display:grid;gap:3px;color:#627d98;font-size:11px}.product-filter-control{position:relative}.product-filter-row select,.product-filter-control input,.product-search-row input{min-height:44px;padding:7px;font-size:12px}.product-search-row{grid-template-columns:minmax(0,1fr) 60px}.product-picker :disabled{background:#eef2f5;color:#829ab1;cursor:not-allowed}.brand-results{position:absolute;top:100%;left:0;right:0;z-index:4;display:grid;gap:4px;max-height:180px;overflow:auto;background:#fff;border:1px solid #d9e2ec;border-radius:8px;box-shadow:0 6px 18px #102a4329}.brand-results:empty{display:none}.product-results{display:grid;gap:4px;max-height:180px;overflow:auto}.brand-result,.product-result{text-align:left;background:#fff;color:#17212b;border:1px solid #d9e2ec;padding:8px;font-weight:400}.brand-result:hover,.product-result:hover{border-color:#087f5b;background:#ecfdf5}.searching{color:#627d98;padding:5px}
.store-fields{align-items:start}.field-column{display:grid;gap:12px;align-content:start}.amount-hint{color:#627d98;margin-top:-3px}input[readonly]{background:#eef2f5;color:#829ab1}.attachment-rows{display:grid;gap:10px;margin-bottom:8px}.attachment-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px;border:1px solid #d9e2ec;border-radius:10px;background:#f8fafc}.attachment-row label{display:flex;flex-direction:column;gap:5px;color:#486581;font-size:13px}.remove-attachment-row{white-space:nowrap}.attachment-row+.attachment-row{margin-top:0}@media(max-width:560px){.attachment-row{grid-template-columns:1fr}.remove-attachment-row{justify-self:start}}
.warehouse-flow{display:grid;grid-template-columns:1fr 1fr;gap:12px}.warehouse-flow.single{grid-template-columns:1fr}.warehouse-field-group{min-width:0;padding:12px;border:1px solid #d9e2ec;border-radius:10px;background:#f8fafc}.warehouse-field-group h4{margin:0 0 3px;color:#334e68}.warehouse-field-group>small{display:block;margin-bottom:12px;color:#627d98}.warehouse-field-group .fields{grid-template-columns:1fr}@media(max-width:560px){.warehouse-flow{grid-template-columns:1fr}}
.section-hint{margin:0 0 12px;padding:10px 12px;border-radius:9px;background:#f0f7ff;color:#486581}
#shipment-fields{border:0;padding:0;margin:0;min-width:0}#shipment-fields>label{display:grid;gap:6px;color:#486581}#shipment-fields .toolbar{flex-wrap:wrap;gap:8px;margin:12px 0}.shipment-check{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}.shipment-check input{width:20px;height:20px;flex-shrink:0;accent-color:#087f5b}.shipment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #d9e2ec}.shipment-row span{overflow-wrap:anywhere}.shipment-row small{display:block;color:#627d98;font-size:12px}.shipment-row a{padding:10px;color:#006d9c;white-space:nowrap}#shipment-candidates{max-height:420px;overflow:auto;margin-bottom:16px}#shipment-result,#shipment-info{color:#486581;overflow-wrap:anywhere}#shipment-view button:disabled{opacity:.55;cursor:not-allowed}#shipment-view button:hover:not(:disabled){filter:brightness(.95)}#shipment-view :focus-visible{outline:2px solid #087f5b;outline-offset:3px}#open-shipments{min-height:44px}
.autosave-status{margin:12px 0 0;color:#087f5b;font-size:13px}.autosave-error{color:#c92a2a}
.section-form label[hidden]{display:none}
#return-dialog{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #d9e2ec;border-radius:12px;color:#17212b;background:#fff;box-shadow:0 12px 40px #102a4333}#return-dialog::backdrop{background:#102a4366}#return-dialog h3{margin:0 0 12px;font-size:20px}#return-context{color:#627d98;font-size:13px;overflow-wrap:anywhere}#return-form label{display:block;color:#486581;font-size:13px;margin-bottom:6px}#return-reason{display:block;width:100%;min-height:100px}.return-buttons{display:flex;gap:10px;margin-top:16px}.return-buttons button{flex:1;min-height:44px}#return-dialog :focus-visible{outline:2px solid #087f5b;outline-offset:3px}#return-dialog button:hover{filter:brightness(.96)}#actions button:disabled{opacity:.55;cursor:wait}
#void-dialog{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #d9e2ec;border-radius:12px;color:#17212b;background:#fff;box-shadow:0 12px 40px #102a4333}#void-dialog::backdrop{background:#102a4366}#void-dialog h3{margin:0 0 12px;font-size:20px}#void-context{color:#627d98;font-size:13px;overflow-wrap:anywhere}#void-form label{display:block;color:#486581;font-size:13px;margin-bottom:6px}#void-reason{display:block;width:100%;min-height:100px}.return-buttons{display:flex;gap:10px;margin-top:16px}.return-buttons button{flex:1;min-height:44px}#void-dialog :focus-visible{outline:2px solid #087f5b;outline-offset:3px}#void-dialog button:hover{filter:brightness(.96)}#actions button:disabled{opacity:.55;cursor:wait}
#void-reason{font-size:16px}#void-error{color:#c92a2a;font-size:14px;margin:8px 0 0}#void-error:empty{display:none}
.case-group{margin:18px 0 26px}.case-group-heading{display:flex;align-items:center;gap:8px;margin:0 2px 8px;color:#334e68;font-size:17px}.count-badge{min-width:24px;padding:2px 7px;border-radius:999px;background:#d9e2ec;color:#486581;text-align:center;font-size:12px}.group-empty{padding:22px 16px;border:1px dashed #bcccdc;border-radius:10px;color:#829ab1;text-align:center;background:#f8fafc}
.filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end}.filters label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#486581;font-size:13px}.filters input,.filters select{width:100%;min-height:44px}.filters button{min-height:44px}@media(max-width:560px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filters button{grid-column:1/-1}}
.selected-product{flex-wrap:wrap}
#shipment-missing{margin:16px 0;padding:12px;border:1px solid #d9e2ec;border-radius:10px;background:#f8fafc}
#shipment-missing>p{font-size:14px;color:#486581}
.manufacturer-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:8px;padding:12px 0;border-bottom:1px solid #d9e2ec}
.manufacturer-row:last-child{border-bottom:0}.manufacturer-row p{margin:0;overflow-wrap:anywhere}.manufacturer-row small{display:block;font-size:12px;color:#627d98}
.manufacturer-row label{display:grid;gap:6px;font-size:14px;color:#486581}.manufacturer-row input,.manufacturer-row button{min-height:44px;width:100%}
.manufacturer-feedback{grid-column:1/-1;color:#486581;font-size:14px}.manufacturer-feedback:empty{display:none}
@media(max-width:560px){.manufacturer-row{grid-template-columns:1fr}}
.step-help{margin:0 0 16px;color:#334e68;min-width:0}
.step-help>summary{display:list-item;width:fit-content;min-height:44px;padding:10px 14px;border:1px solid #bcccdc;border-radius:8px;background:#f0f7ff;color:#006d9c;font-size:14px;font-weight:600;cursor:pointer}
.step-help>summary:hover{background:#e3f3fb}.step-help>summary:focus-visible{outline:2px solid #087f5b;outline-offset:3px}
.step-help[open]>summary{margin-bottom:10px}
.step-help-content{padding:14px;border:1px solid #d9e2ec;border-radius:10px;background:#f8fafc;font-size:14px;line-height:1.65;overflow-wrap:anywhere;text-wrap:pretty}
.step-help-content h4{margin:0 0 8px;font-size:16px}.step-help-content p{margin:8px 0}
.step-help-content .step-help-disclaimer{color:#627d98}.step-help-content dl{margin:12px 0}
.step-help-content dl>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,3fr);gap:12px;padding:8px 0;border-bottom:1px solid #d9e2ec}
.step-help-content dt{font-weight:600}.step-help-content dd{margin:0}.step-help-attachment{color:#486581}
@media(max-width:560px){.step-help-content dl>div{grid-template-columns:1fr;gap:3px}}
.item-handling{flex:1 1 100%;margin:6px 0;font-size:13px}
.item-handling select{font-size:14px;min-height:44px;padding:8px}
.item-handling-note{flex:1 1 100%;color:#486581}
.handling-panel{margin-top:16px;padding:14px;background:#f5f7fa;border:1px solid #d9e2ec;border-radius:10px}
.handling-panel h4{margin:0 0 8px;font-size:15px}
.handling-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #d9e2ec;font-size:14px}
.handling-row:last-child{border:0}
.handling-panel p{margin:6px 0;font-size:14px}
@media(max-width:560px){.handling-row{grid-template-columns:1fr}}
.case-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:12px;background:#e3eaf0;margin-bottom:14px}
.case-categories button{min-height:46px;background:transparent;color:#486581;font-weight:600}
.case-categories button[aria-pressed="true"]{background:#087f5b;color:#fff;box-shadow:0 2px 6px #102a431a}
#list-view :focus-visible{outline:3px solid #087f5b;outline-offset:3px}
#list-view .toolbar{flex-wrap:wrap;gap:8px}#list-view .toolbar h2{flex:1}
#filters{grid-template-columns:repeat(4,minmax(0,1fr))}#filters .case-search-field{grid-column:1/4}#filters>button{grid-column:4}
#filters [hidden]{display:none}.list-hint,.list-result-count{color:#627d98;font-size:13px;line-height:1.6;margin:12px 0}
.case-card{padding:0;overflow:hidden}.case-card-link{display:block;padding:16px;color:inherit;text-decoration:none}
.case-card-link:hover{background:#f7fcfa}.case-card:focus-within{outline:3px solid #087f5b;outline-offset:2px}
.case-card-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-bottom:10px}.case-card-heading h3{margin:0;overflow-wrap:anywhere;font-size:19px}
.phone-tail{font-size:13px;color:#627d98}.case-products{font-size:14px;color:#334e68;line-height:1.6;margin:12px 0;overflow-wrap:anywhere}
.case-card-footer{justify-content:space-between;gap:8px}.my-pending{background:#e3f5ed;color:#087f5b}
.list-pagination{text-align:center;margin:18px 0}.list-pagination button{min-height:44px;min-width:160px}.list-pagination p{color:#c92a2a;font-size:13px}
@media(max-width:560px){#filters{grid-template-columns:repeat(2,minmax(0,1fr))}#filters .case-search-field{grid-column:1/-1}#filters>button{grid-column:1/-1}.case-categories button{padding:10px 4px;font-size:14px;white-space:nowrap}}

#timeline .timeline-time{display:block;margin-bottom:3px;color:#627d98;font-size:13px;font-variant-numeric:tabular-nums}#timeline .timeline-event{overflow-wrap:anywhere;line-height:1.6}

/* Export review stays readable in the enterprise WeChat mobile viewport. */
#export-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow: auto; }
#export-dialog p { overflow-wrap: anywhere; }
#export-filters { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; }
#export-filters dt { color: #52647a; }
#export-filters dd { margin: 0; overflow-wrap: anywhere; }
#export-dialog .export-check { display: flex; align-items: center; gap: 8px; }
#export-dialog .export-check input { width: auto; }
.export-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#export-result, #export-download-result { min-height: 1.4em; }
#export-dialog { border: 1px solid #d6e0e8; border-radius: 14px; padding: 24px; color: #172b4d; box-shadow: 0 18px 60px #102c4033; }
#export-dialog::backdrop { background: #102c4066; }
#export-dialog h3 { margin-top: 0; }
#export-dialog button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) { #export-dialog { padding: 18px; } .export-buttons button { flex: 1 1 40%; } }
/* Current work first; original records stay available without expanding access. */
.handling-summary{border-left:4px solid #087f68;background:#f1f8f6}
.handling-summary h3{margin-top:0}.handling-summary a{font-weight:600}
.money-compare table{width:100%;border-collapse:collapse;font-size:14px}
.money-compare caption{text-align:left;font-weight:700;padding-bottom:8px}
.money-compare th,.money-compare td{padding:10px 6px;border-bottom:1px solid #dbe6e9;text-align:left;vertical-align:top}
.history-section{margin:14px 0;border:1px solid #dbe6e9;border-radius:12px;background:#fff}
.history-section>summary{padding:16px;font-weight:600;cursor:pointer;color:#445b6a}
.history-section>.panel{margin:0;border:0;box-shadow:none}
.return-context{padding:12px 16px;margin:16px 0;background:#fff3de;border-left:4px solid #b67b1e;border-radius:6px}
.return-context p{margin:5px 0}.return-context .timeline-time{display:inline}
.attachment-group{border-top:1px solid #e1e8ed;margin-top:12px}.attachment-group h4{margin:12px 0 8px}
.evidence-file{display:flex;gap:12px;justify-content:space-between;align-items:center;margin:10px 0}.evidence-file>div{min-width:0}.evidence-file a{overflow-wrap:anywhere}.evidence-file small{display:block;color:#607987;margin-top:4px}.evidence-file button{flex-shrink:0}
.quick-choices{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.quick-choices button{padding:7px 10px;font-size:13px;min-height:36px}
.attachment-tags{grid-column:1 / -1;margin:0}.waiting-context{font-size:13px;color:#546d7d;margin-bottom:0}.waiting-context .timeline-time{display:inline}
#attachment-preview{width:min(920px,92vw);max-height:90vh;padding:20px;border:1px solid #dbe6e9;border-radius:14px}#attachment-preview::backdrop{background:#102e45aa}
.preview-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.preview-toolbar h3{margin:0}#preview-image{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:12px auto}#preview-image[hidden]{display:none}
@media(max-width:600px){.money-compare table{font-size:13px}.money-compare th,.money-compare td{padding:8px 4px}.evidence-file{align-items:flex-start}#attachment-preview{padding:16px}}
