/*
 * View 样式：layout。
 * 源码：frontend/src/views/styles/033-layout.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */
body[data-business-role=customer] .list-order{border:1px solid #d5dfda;border-radius:12px;padding:16px;margin-top:14px;background:white}
body[data-business-role=customer] .list-order>strong{font-size:15px;letter-spacing:.3px}
body[data-business-role=customer] .list-order>details{margin-top:12px;border-top:1px solid #e3eae5}
body[data-business-role=customer] .list-order>details>summary{padding:12px 0;font-weight:600;list-style:none;display:flex;justify-content:space-between}
body[data-business-role=customer] .list-order>details>summary:after{content:'＋';color:#27745f}
body[data-business-role=customer] .list-order>details[open]>summary:after{content:'−'}
.customer-detail-history{margin:2px 0 0 12px}.customer-detail-history summary{cursor:pointer;display:inline-flex;align-items:center;gap:4px;color:#17634e;font-size:12px;padding:6px 2px;list-style:none;border-radius:4px}.customer-detail-history summary::-webkit-details-marker{display:none}.customer-detail-history summary:before{content:"▸"}.customer-detail-history[open] summary:before{content:"▾"}.customer-detail-history summary:focus:not(:focus-visible){outline:none}.customer-detail-history summary:focus-visible{outline:2px solid #17634e;outline-offset:2px}.customer-detail-history .customer-detail-timeline{margin-left:-12px}.customer-detail-content{background:#f6f9f7;border-radius:10px;padding:14px;margin-bottom:12px;color:#193e38}
.customer-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}.customer-detail-heading b{display:block;font-size:16px;margin-top:3px}.customer-detail-eyebrow{font-size:11px;color:#6b8177;letter-spacing:.4px}
.customer-detail-addresses{display:grid;grid-template-columns:1fr 1fr;gap:10px}.customer-detail-address{padding:12px;border:1px solid #dce6df;border-radius:8px;background:white;min-width:0}.customer-detail-address h4{margin:6px 0;font-size:14px}.customer-detail-address p{line-height:1.6;overflow-wrap:anywhere}.customer-detail-address>div{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;margin-top:8px}
.customer-detail-section{margin-top:10px;padding-top:10px;border-top:1px solid #dbe5df}.customer-detail-section>h4{font-size:14px;margin:0 0 10px}.customer-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0}.customer-detail-fields dt{font-size:11px;color:#76847c}.customer-detail-fields dd{margin:3px 0 0;font-size:12px;overflow-wrap:anywhere}.customer-detail-good{padding:10px 0;border-bottom:1px dashed #d9e3dc}.customer-detail-good:last-child{border-bottom:0}.customer-detail-good-head{display:flex;justify-content:space-between;gap:8px;background:none!important;padding:0!important;min-height:0!important;height:auto!important;border:0!important;font-size:13px}.customer-detail-good p{margin:4px 0!important}.customer-detail-note{white-space:pre-wrap}.customer-detail-notes p{white-space:pre-wrap}.customer-detail-notes b{display:block;margin-bottom:4px;font-size:11px}.customer-detail-timeline{list-style:none;padding:0 0 0 12px;margin:0;border-left:2px solid #cee0d4}.customer-detail-timeline li{position:relative;padding:0 0 7px 8px}.customer-detail-timeline li:before{content:'';position:absolute;left:-17px;top:5px;width:8px;height:8px;border-radius:50%;background:#4f8a70}.customer-detail-timeline b{display:block;font-size:12px}.customer-detail-timeline time{font-size:11px;color:#7b887f}
@media(max-width:600px){.customer-detail-addresses{grid-template-columns:1fr}.customer-detail-content{padding:11px}.customer-detail-heading{align-items:flex-start}.customer-detail-fields{gap:10px}.customer-detail-section .order-freight{padding:8px!important}}

/* UI-093 compact customer order detail */
.customer-detail-content{padding:10px;margin-bottom:8px;line-height:1.35}
.customer-detail-heading{margin-bottom:8px;gap:6px}.customer-detail-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px}.customer-detail-heading b{display:inline;margin:0;font-size:14px}
.customer-detail-addresses{gap:6px}.customer-detail-address{padding:7px 8px}.customer-detail-address h4{display:inline;margin:0 0 0 6px;font-size:13px}.customer-detail-address p{margin:4px 0!important;font-size:12px;line-height:1.4}.customer-detail-address>div{gap:4px 10px;margin-top:3px;line-height:1.35}
.customer-detail-section{margin-top:7px;padding-top:7px}.customer-detail-section>h4{margin:0 0 5px;font-size:13px}.customer-detail-fields{gap:5px 10px;margin:5px 0}.customer-detail-fields>div{min-width:0}.customer-detail-fields dd{margin-top:1px;line-height:1.35}.customer-detail-good{padding:4px 0}.customer-detail-good p{font-size:11px;line-height:1.35;margin:2px 0!important}.customer-detail-notes p{margin:4px 0!important;font-size:12px}.customer-detail-notes b{display:inline;margin:0 6px 0 0}.customer-detail-section .order-freight{padding:6px 8px!important;margin:4px 0!important;line-height:1.4}.customer-detail-section .order-freight small{margin-top:2px}.customer-detail-timeline li{padding-bottom:4px;display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.customer-detail-timeline time{line-height:1.3}
@media(max-width:600px){.customer-detail-content{padding:8px}.customer-detail-fields{gap:5px 8px}.customer-detail-section .order-freight{padding:6px!important}}

/* UI-094 customer photo actions and fixed viewer */
.customer-order-photo-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;min-width:0}.customer-order-photo-actions>button{width:100%;min-width:0!important;padding:9px 2px!important;margin:0!important;font-size:11px!important;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
#customerPhotoDialog{position:fixed;inset:0;margin:auto;width:min(94vw,760px);height: min(78dvh,680px);max-width:94vw;max-height:82dvh;padding:10px;box-sizing:border-box;overflow:hidden;resize:none;touch-action:none;overscroll-behavior:none;border:1px solid #dce6df;border-radius:12px;background:#fff;color:#193e38}
#customerPhotoDialog::backdrop{background:#0009}#customerPhotoDialog .photo-viewer-layout{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;height:100%;min-height:0}#customerPhotoDialog header{display:flex;align-items:center;justify-content:space-between;gap:8px}#customerPhotoDialog h3{font-size:15px;margin:0}#customerPhotoDialog button{font-size:13px;padding:8px 12px;min-height:38px;margin:0}#customerPhotoDialog .photo-viewer-body{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;background:#f6f9f7;border-radius:6px}#customerPhotoDialog img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;touch-action:none;user-select:none;-webkit-user-drag:none}#customerPhotoDialog footer{display:flex;align-items:center;justify-content:center;gap:16px}#customerPhotoDialog footer span{font-size:13px}
