/* Data-specific layout only. Desktop surfaces reuse shipping-desktop-skin rules. */
#douyinOrdersSection { min-width: 0; }
html body.template-glass-shipping #douyinOrdersSection { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
#douyinFactsRoot { min-width: 0; max-width: 100%; color: var(--tg-ink, #1d1d1f); font: 400 12px/1.35 var(--tg-font, sans-serif); overflow-wrap: anywhere; }
#douyinFactsRoot [hidden] { display: none !important; }
#douyinFactsRoot p { margin: 4px 0; }
#douyinFactsRoot .douyin-orders-heading { margin-bottom: 12px; }
#douyinFactsRoot h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
html body.template-glass-shipping #douyinFactsRoot .douyin-orders-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
#douyinFactsRoot label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 400; color: var(--tg-muted, #6e6e73); }
#douyinFactsRoot input, #douyinFactsRoot select, #douyinFactsRoot button { box-sizing: border-box; min-width: 0; max-width: 100%; height: 32px; margin: 0; padding: 0 10px; border: var(--tg-trigger-border, 1px solid #ddd); border-radius: 10px; background: #fff; color: inherit; font: inherit; }
#douyinFactsRoot input { width: 210px; }
#douyinFactsRoot button { cursor: pointer; box-shadow: none; }
#douyinFactsRoot button:disabled { opacity: .45; cursor: default; }
#douyinFactsRoot :is(input,select,button):focus-visible { outline: 2px solid var(--tg-blue, #0071e3); outline-offset: 2px; }
#douyinFactsRoot .douyin-facts-actions, #douyinFactsRoot .douyin-orders-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#douyinFactsRoot .douyin-facts-actions { margin-left: auto; }
#douyinFactsRoot .douyin-view-switcher svg { width: 16px; height: 16px; }
#douyinFactsRoot .douyin-orders-pager { justify-content: flex-end; color: var(--tg-muted, #6e6e73); padding: 12px 0; }
#douyinFactsRoot .douyin-metric-chip { gap: 6px; }
#douyinFactsRoot .douyin-metric-chip strong { font: inherit; font-weight: 600; color: var(--tg-ink, #1d1d1f); }
#douyinFactsRoot .douyin-orders-heading p, #douyinFactsRoot [data-douyin-facts-summary], #douyinFactsRoot .douyin-product-reference { color: var(--tg-muted, #6e6e73); font-size: 11px; line-height: 1.5; }
#douyinFactsRoot .douyin-data-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
#douyinFactsRoot .douyin-data-table .douyin-detail-row > td { height: auto; }
#douyinFactsRoot .douyin-product-presentation, #douyinFactsRoot .douyin-card-summary { grid-column: 1 / -1; min-width: 0; }
#douyinFactsRoot .douyin-product-reference { margin-top: 5px; font-size: 10px; }
#douyinFactsRoot .douyin-product-counts { font-size: 12px; line-height: 1.6; color: var(--tg-muted, #6e6e73); }
#douyinFactsRoot .douyin-product-counts { color: var(--tg-ink, #1d1d1f); font-weight: 600; }
#douyinFactsRoot [data-douyin-group] { color: var(--tg-blue, #0071e3); background: transparent; border: 0; padding: 0; box-shadow: none; }
#douyinFactsRoot .douyin-product-orders { grid-column: 1 / -1; }
#douyinFactsRoot .douyin-product-order { font-size: 12px; padding: 10px 12px; border-radius: 10px; background: #f5f5f7; margin: 6px 0; }
#douyinFactsRoot .douyin-cards-grid { display: grid; }
#douyinFactsRoot .douyin-cards-grid .douyin-product > button { grid-column: 1 / -1; justify-self: end; }
#douyinFactsRoot .empty-state { grid-column: 1 / -1; text-align: center; padding: 36px 16px; color: var(--tg-muted, #6e6e73); }
#douyinFactsRoot .douyin-unclassified { grid-column: 1 / -1; padding: 16px; margin-top: 12px; border: 1px solid #e5e5e7; border-radius: 12px; background: #fafafa; }
#douyinFactsRoot .douyin-unclassified > p { color: var(--tg-muted, #6e6e73); }
@media (max-width: 768px) {
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-orders-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 12px; border: 1px solid #ddd; border-radius: 18px; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-orders-toolbar label { flex-direction: column; align-items: stretch; gap: 6px; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot input { width: 100%; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-view-switcher { display: flex; gap: 6px; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-view-switcher .is-active { color: #0071e3; background: #f2f2f7; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-orders-metrics { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .metric-card { display: inline-flex; padding: 0; background: none; border: 0; box-shadow: none; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-data-table, html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-data-table tbody { display: block; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-data-table thead { display: none; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-product { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; padding: 16px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 18px; background: #fff; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-product > td { display: block; height: auto; min-width: 0; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-product > td:first-child { display: none; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-product > td:nth-child(2) { grid-column: 1 / -1; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-product > td:nth-child(n+3):nth-child(-n+6)::before { content: attr(data-label); display: block; color: #6e6e73; margin-bottom: 4px; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-detail-row { display: block; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-detail-row td { display: block; }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-cards-grid { grid-template-columns: minmax(0,1fr); }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-cards-grid .douyin-product { grid-template-columns: 80px minmax(0,1fr); }
 html body.is-mobile-viewport:not(.is-dashboard-login-page) #douyinFactsRoot .douyin-orders-pager { justify-content: flex-start; }
}

/* Source-specific read-only placeholders; geometry and product styles are shared. */
#douyinFactsRoot .douyin-readonly-placeholder { color: var(--tg-faint, #8e8e93); }
/* Match shared specification wrapping for the read-only span variant. */
html body #douyinOrdersSection #douyinFactsRoot .shipping-integrated-specs > span.shipping-integrated-spec-chip {
 box-sizing: border-box !important; min-width: 0 !important; max-width: 100% !important;
 height: auto !important; white-space: normal !important; overflow-wrap: anywhere !important;
 text-align: left !important; cursor: default;
}
#douyinFactsRoot .douyin-data-table .douyin-detail-row > td { height: auto !important; }

#douyinFactsRoot .douyin-data-table .douyin-detail-row > td { grid-column: 1 / -1; }

/* Douyin is paginated, not virtualized: shared rows remain in normal flow. */
html body:not(.is-dashboard-login-page) #douyinOrdersSection #douyinFactsRoot .douyin-data-table.is-shipping-grid-v6-ready > tbody > tr {
 position: relative !important; inset: auto !important; contain: none !important;
}
