.mo-page { display:grid; gap:16px; color:#17243a; }
.mo-tools, .mo-card, .mo-heading, .mo-timeline, .mo-detail-info, .mo-goods { border:1px solid #d8e1ec; background:#fff; border-radius:10px; }
.mo-tools form { display:flex; flex-wrap:wrap; align-items:end; padding:14px 16px; gap:10px; }
.mo-tools label { display:grid; gap:4px; font-size:13px; color:#52657b; }
.mo-tools input, .mo-tools select { min-height:34px; }
.mo-tools input[type=search] { width:min(300px, 70vw); }
.mo-tabs { display:flex; flex-wrap:wrap; gap:6px; padding:0 16px; border-top:1px solid #e8edf4; }
.mo-tabs button { border:0; background:transparent; border-bottom:2px solid transparent; border-radius:0; padding:11px 8px; }
.mo-tabs button[aria-pressed=true] { color:#1e58cd; border-color:#2563eb; font-weight:650; }
.mo-tabs button span { margin-inline-start:6px; color:#52657b; font-variant-numeric:tabular-nums; }
.mo-cards { display:grid; gap:12px; }
.mo-card > header, .mo-card > footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; padding:10px 16px; background:#f4f7fb; }
.mo-card > header { border-radius:9px 9px 0 0; height:auto; min-height:42px; }
.mo-card > footer { border-top:1px solid #e8edf4; border-radius:0 0 9px 9px; color:#53667c; }
.mo-card > footer:empty { display:none; }
.mo-card > header time, .mo-card small, .mo-pay span, .mo-timeline time { color:#53667c; }
.mo-card > header .mo-status { margin-inline-start:auto; }
.mo-method, .mo-status { padding:4px 8px; border-radius:5px; background:#e7effe; color:#1a56c3; }
.mo-status[data-state=completed] { background:#e7f5ee; color:#17684f; }
.mo-status[data-state=cancelled], .mo-status[data-state=closed] { background:#e8edf4; color:#52657b; }
.mo-card-grid { display:grid; grid-template-columns:minmax(260px, 1fr) minmax(140px, 17%) minmax(165px, 25%); }
.mo-items { padding:6px 16px; }
.mo-item { display:grid; grid-template-columns:52px minmax(0, 1fr) auto auto; align-items:center; gap:8px; min-height:64px; padding:7px 0; }
.mo-item + .mo-item { border-top:1px solid #e8edf4; }
.mo-item strong, .mo-item small, .mo-pay span, .mo-pay small { display:block; line-height:20px; overflow-wrap:anywhere; }
.mo-thumbnail { display:inline-grid; place-items:center; width:48px; height:48px; flex:0 0 48px; object-fit:cover; border-radius:5px; border:1px solid #e8edf4; }
.mo-no-image { color:#53667c; background:#f2f5fa; font-size:12px; }
.mo-card-grid > .mo-pay, .mo-card-grid > .mo-actions { padding:10px 12px; border-left:1px solid #e8edf4; align-content:center; }
.mo-pay strong { display:block; font-size:20px; line-height:26px; font-variant-numeric:tabular-nums; }
.mo-actions, .mo-detail-actions, .mo-pager, .mo-more > div { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.mo-pager, .mo-detail-actions { justify-content:flex-end; }
.mo-actions button, .mo-detail-actions button, .mo-more > summary { min-height:32px; }
.mo-icon { position:relative; min-width:32px; padding:2px 7px; color:#1a56c3; background:#edf3ff; font-size:16px; line-height:1; }
.mo-icon:is(:hover,:focus-visible)::before { content:attr(data-tip); position:absolute; z-index:2; bottom:calc(100% + 6px); right:0; padding:6px 8px; background:#17243a; color:#fff; border-radius:4px; white-space:nowrap; font-size:12px; }
.mo-more > summary { display:grid; place-items:center; background:#f4f7fb; border:1px solid #d8e1ec; border-radius:4px; padding:0 8px; cursor:pointer; }
.mo-more > div { padding-top:4px; }
.mo-empty { margin:0; padding:28px 14px; border:1px dashed #c9d6e6; border-radius:8px; text-align:center; color:#52657b; background:#fff; }
.mo-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 16px; }
.mo-heading h2 { margin:0; font-size:18px; }
.mo-heading b { color:#52657b; }
.mo-timeline { display:grid; grid-auto-columns:minmax(0,1fr); grid-auto-flow:column; padding:18px 12px; margin:0; list-style:none; text-align:center; }
.mo-timeline li { position:relative; display:grid; justify-items:center; align-content:start; gap:6px; padding:0 4px; color:#52657b; }
.mo-timeline li:not(:first-child)::before { content:''; position:absolute; top:7px; width:100%; right:50%; height:2px; background:#d8e1ec; }
.mo-timeline li.reached { color:#1a56c3; }
.mo-timeline li.reached + li.reached::before { background:#2563eb; }
.mo-timeline i { width:16px; height:16px; border-radius:50%; border:2px solid #879bb4; background:#fff; z-index:1; }
.mo-timeline li.reached i { background:#2563eb; border-color:#2563eb; }
.mo-detail-info { display:grid; grid-template-columns:1fr 1.2fr 1.2fr; }
.mo-detail-info > section, .mo-goods { min-width:0; padding:14px 16px; }
.mo-detail-info > section + section { border-left:1px solid #e8edf4; }
.mo-detail-info h3, .mo-goods h3 { margin:0 0 12px; font-size:15px; }
.mo-detail-info details { margin-top:10px; }
.mo-detail-info summary { cursor:pointer; color:#1e58cd; }
.mo-detail-info dl, .mo-detail-info dd { margin:0; }
.mo-detail-info dl > div { display:grid; grid-template-columns:90px 1fr; gap:8px; padding:4px 0; line-height:20px; }
.mo-detail-info dt { color:#52657b; }
.mo-detail-info dd { overflow-wrap:anywhere; }
.mo-product-cell { display:flex; gap:8px; align-items:center; }
.mo-total { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:14px; padding-top:12px; }
.mo-print-frame { position:fixed; width:0; height:0; border:0; }
@media (max-width:1050px) {
  .mo-card-grid { grid-template-columns:minmax(0,1fr) 150px; }
  .mo-card-grid > .mo-actions { grid-column:1 / -1; border:0; border-top:1px solid #e8edf4; padding-inline:16px; }
}
@media (max-width:760px) {
  .mo-card-grid, .mo-detail-info { grid-template-columns:1fr; }
  .mo-card-grid > .mo-pay, .mo-detail-info > section + section { border:0; border-top:1px solid #e8edf4; }
  .mo-timeline { display:flex; flex-wrap:wrap; gap:16px; text-align:left; }
  .mo-timeline li { justify-items:start; }
  .mo-timeline li::before { display:none; }
}

.mo-placeholder i { display:block; width:min(120px,80%); height:12px; margin:6px 0; border-radius:4px; background:#e8eef6; animation:mo-loading 1.35s ease-in-out infinite alternate; }
.mo-placeholder .mo-placeholder-in { display:flex; gap:20px; padding:16px; }
.mo-placeholder.mo-timeline { min-height:73px; }
.mo-page .visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; }
@keyframes mo-loading { to { opacity:.35 } }
@media(prefers-reduced-motion:reduce) { .mo-placeholder i { animation:none } }
