/* Theme scope deliberately outranks legacy middle-order selectors. */
/* Order presentation only; no changes to permissions, requests or stored values. */
html:root[data-ui-theme] body .admin-order-filter-dialog{width:640px!important;max-width:calc(100vw - 32px);margin:5vh auto!important;max-height:90vh;display:flex;flex-direction:column;border-radius:10px;overflow:hidden}
html:root[data-ui-theme] body .admin-order-filter-dialog .el-dialog__header{padding:16px 24px;border-bottom:1px solid #d4dfeb;flex:none}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-filter-title{display:flex;align-items:center;gap:12px;color:#163a59;font-size:20px;font-weight:600;line-height:32px}
.order-filter-title svg{width:20px;height:20px;padding:5px;box-sizing:content-box;background:#eaf3f9;border-radius:4px;flex:none}
html:root[data-ui-theme] body .admin-order-filter-dialog .el-dialog__body{padding:20px 28px;max-height:520px;overflow-y:auto;min-height:0;flex:0 1 auto;box-sizing:border-box}
html:root[data-ui-theme] body .admin-order-filter-dialog .el-dialog__footer{flex:none;margin:0;padding:16px 24px;background:#f5f7fa;border-top:1px solid #e6ebf0;text-align:center}
html:root[data-ui-theme] body .admin-order-filter-dialog .el-dialog__footer>span{display:flex;justify-content:center;gap:12px}
html:root[data-ui-theme] body .admin-order-filter-dialog .el-dialog__footer .el-button{margin:0;min-width:96px}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-filter-help{margin:0 0 16px;color:#8192a5;font-size:14px;line-height:22px}
html:root[data-ui-theme] body .admin-order-filter-dialog .standard-filter-section{margin:16px 0 0;padding:0;border:0}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-filter-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;min-width:0;min-height:32px;height:32px;padding:6px 12px;margin:0 0 2px;background:#f5f8fb;border:0;border-radius:2px;color:#687b8d;font:400 14px/20px var(--ui-font-body,Arial,sans-serif);text-align:left;box-shadow:none}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-row{display:grid;grid-template-columns:180px 140px minmax(0,1fr);align-items:center;gap:10px;margin:0;padding:10px 0;min-height:40px;border-bottom:1px solid #f1f4f7;box-sizing:border-box}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-row .el-checkbox{margin:0;white-space:normal;font-weight:400;line-height:20px}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-row .el-checkbox__label{font-size:14px;color:#687b8d}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-values{display:flex;gap:8px;min-width:0}
html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-values>*{width:100%;min-width:0}
html:root[data-ui-theme] body .admin-order-filter-dialog .standard-filter-section .order-filter-help{padding:20px 0;margin:0}
html:root[data-ui-theme] body .admin-order-filter-dialog .el-input__inner{height:32px!important;min-height:32px!important;line-height:30px!important;padding-top:0;padding-bottom:0}
html:root[data-ui-theme] body .admin-order-filter-dialog .el-input__icon{line-height:32px!important}
/* Shared item card layout across administration and all middle-platform modes. */
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product,.middle-order-product){border:1px solid #d4dfeb;border-radius:6px;overflow:hidden}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product,.middle-order-product)>summary{display:flex;align-items:stretch;gap:0;padding:0;background:#f8fafc;font-size:14px;line-height:22px}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-heading,.middle-order-product-heading){flex:1;min-width:0;padding:14px 12px}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-product-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-product-name strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-sample-tag{display:inline-flex;align-items:center;flex:none;white-space:nowrap;border:1px solid #cbdfee;border-radius:4px;background:#eaf3f9;color:#1f4e79;padding:0 6px;font-size:12px;line-height:20px;font-weight:400}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-heading,.middle-order-product-heading) small{display:block;font-size:12px;line-height:20px;margin:4px 0 0;color:#8192a5}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-metric,.middle-order-metric){flex:0 0 94px;min-width:0;padding:14px 8px;border-left:1px solid #e7edf3;box-sizing:border-box;overflow-wrap:anywhere}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-metric,.middle-order-metric) small{display:block;color:#8192a5;font-size:12px;margin:0 0 6px}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-body,.middle-order-product-body){display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,1fr);gap:0;padding:0;border-top:1px solid #d4dfeb}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-item-facts{margin:0;padding:20px;min-width:0;display:block}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-item-facts>div{margin:0;padding:8px 0;border-bottom:1px solid #e7edf3}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-item-facts>div:first-child{padding-top:0}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-item-facts>div:last-child{padding-bottom:0;border-bottom:0}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-item-facts dt{color:#8192a5;font-size:14px;line-height:22px;margin:0}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) .order-item-facts dd{font-size:14px;line-height:22px;color:#526a82;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-visual,.middle-order-visual){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;min-width:0;border-left:1px solid #e7edf3}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-visual,.middle-order-visual) img,html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-image-empty,.middle-order-image-empty){width:128px;height:96px;max-width:100%;object-fit:contain;background:#f5f7fa;border-radius:6px}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-image-empty,.middle-order-image-empty){display:flex;align-items:center;justify-content:center;color:#8192a5;font-size:13px}
html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-visual,.middle-order-visual) .el-button{margin:0;padding:9px 12px;min-height:40px;height:auto;max-width:100%;box-sizing:border-box;border:1px solid #b6cce0;background:#fff;color:#1f4e79;white-space:normal;line-height:22px;text-align:center}
/* overflow:hidden creates a non-scrolling sticky ancestor; clip retains clipping without it. */
html:root[data-ui-theme] body .app-main:has(.admin-order-detail){overflow:clip!important}
html:root[data-ui-theme] body .admin-order-detail .order-sidebar{position:sticky;top:76px;align-self:start;max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
@media(max-width:1100px){html:root[data-ui-theme] body .admin-order-detail .order-detail-columns{grid-template-columns:1fr}html:root[data-ui-theme] body .admin-order-detail .order-sidebar{position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0}}
@media(max-width:680px){html:root[data-ui-theme] body .admin-order-filter-dialog .el-dialog__body{padding:18px}html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-row{grid-template-columns:1fr}html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-row:not(.is-selected){grid-template-columns:1fr}html:root[data-ui-theme] body .admin-order-filter-dialog .order-condition-values{flex-wrap:wrap}html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-body,.middle-order-product-body){grid-template-columns:1fr}html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-visual,.middle-order-visual){border-left:0;border-top:1px solid #e7edf3}html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product,.middle-order-product)>summary{flex-wrap:wrap}html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-heading,.middle-order-product-heading){flex-basis:80%}html:root[data-ui-theme] body :is(.admin-order-detail,.middle-order-detail) :is(.order-product-metric,.middle-order-metric){flex:1}html:root[data-ui-theme] body .admin-order-detail .order-sidebar{grid-template-columns:1fr}}
