.business-attachment-tabs{display:flex;gap:12px;align-items:center;min-height:28px;margin:4px 0;border-bottom:1px solid #d6e0ef;font-size:13px}
.business-attachment-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#526786;padding:4px 8px;cursor:pointer}
.business-attachment-tabs button[aria-selected="true"]{border-bottom-color:#2467e8;color:#1558dc;font-weight:600}
.business-document-list{position:absolute;z-index:2;display:flex;flex-direction:column;overflow:auto;border:1px solid #d6e0ef;background:#fff;margin:0;padding:2px 6px;min-width:0;box-sizing:border-box}
.business-document-list[hidden],.business-phone-images[hidden]{display:none!important}
.customer-private-images{display:contents}
.customer-private-images[hidden]{display:none}
.customer-private-archive .customer-store-archive{margin-top:8px}
.customer-detail .customer-detail-actions{position:sticky;bottom:0;z-index:4;padding:10px 0;background:#fff}
.customer-detail .customer-shipping-addresses{padding:12px 14px;border:1px solid #dce6f1;border-radius:8px;background:#f7faff}
.customer-shipping-addresses h3{margin:0 0 8px}
.customer-shipping-addresses ul{list-style:none;margin:0;padding:0}
.customer-shipping-addresses li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;overflow-wrap:anywhere}
.customer-shipping-addresses li+li{border-top:1px solid #dce6f1}
.customer-shipping-addresses p{margin:0}
.customer-shipping-addresses li p{margin-top:4px;user-select:text}
.customer-shipping-addresses li span{color:#64748b;margin-left:4px}
.customer-shipping-addresses button{white-space:nowrap}
@media(min-width:761px){
  #customer-form[data-customer-edit]>label:has([name="category_id"]){grid-area:1 / 1}
  #customer-form[data-customer-edit]>label:has([name="member_level_id"]){grid-area:1 / 2}
  #customer-form[data-customer-edit]>label:has([name="name"]){grid-area:2 / 1}
  #customer-form[data-customer-edit]>label:has([name="phone"]){grid-area:2 / 2}
  #customer-form[data-customer-edit]>label:has([name="status"]){grid-area:3 / 1}
}
@media(max-width:760px){
  #customer-form.customer-store-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  #customer-form.customer-store-form{grid-template-columns:minmax(0,1fr)}
  .customer-detail .customer-detail-summary>dl{grid-template-columns:75px minmax(0,1fr)}
  .customer-detail .customer-detail-assets{gap:12px;flex-wrap:wrap}
}
.business-document-row{display:flex;align-items:center;gap:8px;min-height:26px;border-bottom:1px solid #edf1f6;font-size:12px}
.business-document-row:last-child{border-bottom:0}
.business-document-row span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.business-document-row small{color:#607089;white-space:nowrap}
.business-document-row button{border:0;background:none;color:#2467e8;cursor:pointer;padding:2px 4px}
.business-document-row button[data-remove]{color:#e03945;font-size:17px}
.business-document-empty{display:grid;flex:1;place-items:center;text-align:center;color:#94a3b8;font-size:12px}
.business-image-empty{position:absolute;z-index:1;display:grid;place-items:center;box-sizing:border-box;padding:4px;border:1px solid #d6e0ef;text-align:center;background:#fff;color:#94a3b8;font-size:12px;pointer-events:none}
.business-image-empty[hidden]{display:none!important}
#repair-form .business-image-empty{border-top:0}
#inventory-product-form .business-image-empty{border-color:#d6dce5;border-top:0}
#after-sale-form .business-image-empty{border-color:#b9c7da;border-top:0}
.business-phone-images{display:contents}
.business-phone-images figure{position:relative;flex:none;width:56px;height:56px;margin:0;border:1px solid #d6e0ef;background:#f5f8fc}
.business-phone-images img{width:100%;height:100%;object-fit:contain}
.business-phone-images figure>span{display:block;overflow:hidden;font-size:10px;word-break:break-all;max-height:100%}
.business-phone-images figure>button{position:absolute;right:1px;top:1px;width:20px;min-width:20px;height:20px;min-height:20px;margin:0;padding:0;border:0;border-radius:50%;line-height:20px;background:#df4350;color:#fff;cursor:pointer}
.business-document-preview{position:fixed;inset:0;z-index:100000;background:#0009;display:grid;place-items:center;padding:24px}
.business-document-preview section{width:min(1000px,100%);height:min(760px,100%);background:#fff;display:flex;flex-direction:column}
.business-document-preview header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;gap:12px}
.business-document-preview header b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.business-document-preview iframe{border:0;flex:1;min-height:0}
#repair-form .image-panel.business-repair-attachments>.business-attachment-tabs{position:absolute;z-index:3;box-sizing:border-box;height:28px;min-height:28px;margin:0;padding:0 6px;background:#f7faff;border:1px solid #d6e0ef;white-space:nowrap}
#repair-form .image-panel.business-repair-attachments>.business-document-list{border-top:0}
#repair-form .image-panel.business-repair-attachments>.business-attachment-tabs button{font-size:12px;height:27px;padding:3px 8px}
#repair-form .repair-bottom-columns .image-panel.business-repair-attachments #repair-image-list{padding:31px 4px 4px!important;grid-auto-columns:62px!important}
#repair-form .image-panel.business-repair-attachments #repair-image-list .image-tile{width:58px!important;height:86px!important}
#inventory-product-form .business-inline-attachments .inventory-product-image-list,
#staff-editor .business-inline-attachments [data-staff-image-preview],
#after-sale-form .business-inline-attachments [data-image-preview]{position:relative;padding-top:31px;box-sizing:border-box}
#inventory-product-form .business-inline-attachments .inventory-product-image-list>.business-attachment-tabs,
#staff-editor .business-inline-attachments [data-staff-image-preview]>.business-attachment-tabs,
#after-sale-form .business-inline-attachments [data-image-preview]>.business-attachment-tabs{position:absolute;z-index:3;top:0;left:0;right:0;box-sizing:border-box;height:28px;min-height:28px;margin:0;padding:0 6px;background:#f7faff;border:0;border-bottom:1px solid #d6e0ef;white-space:nowrap}
#inventory-product-form .business-inline-attachments .inventory-product-image-list>.business-attachment-tabs button,
#staff-editor .business-inline-attachments [data-staff-image-preview]>.business-attachment-tabs button,
#after-sale-form .business-inline-attachments [data-image-preview]>.business-attachment-tabs button{height:27px;padding:3px 8px;font-size:12px}
#inventory-product-form .business-inline-attachments>.business-document-list,
#after-sale-form .business-inline-attachments>.business-document-list{border-top:0}

#staff-editor .business-inline-attachments [data-staff-image-preview] figure,
#after-sale-form .business-inline-attachments [data-image-preview] figure{height:86px;box-sizing:border-box}
