body.sp-order-page{--sp-rail:64px;background:#fff;color:#12283e;font-family:SkladReturnOnest,Arial,sans-serif}
body.sp-order-page .section-loading{border-color:#dce7ef;background:#f6fafd;color:#426b82;font-size:14px}
body.sp-order-page .section-loading strong{font-weight:400}
body.sp-order-page .section-loading small{color:#607b90}
body.sp-order-page .section-loading>span{border-color:#dce7ef;border-top-color:#426b82}
.sp-label-menu{opacity:0;transform:translateY(-5px);transition:opacity .18s ease,transform .18s ease,display .18s allow-discrete,overlay .18s allow-discrete}
.sp-label-menu:popover-open{opacity:1;transform:translateY(0)}
@starting-style{.sp-label-menu:popover-open{opacity:0;transform:translateY(-5px)}}
@media(prefers-reduced-motion:reduce){.sp-label-menu{transition:none;transform:none}body.sp-order-page .section-loading>span{animation:none}}
body.sp-order-page.sp-menu-open{--sp-rail:228px}
.sp-order-page>.topbar,.sp-order-page #warehouse-view>.page-heading,.sp-order-page #warehouse-view>.tabs,.sp-order-page #warehouse-view>footer{display:none}
.sp-order-page>main{width:calc(100% - var(--sp-rail));max-width:1280px;margin:0 auto 0 max(var(--sp-rail),calc((100% + var(--sp-rail) - 1280px)/2));padding:40px 40px 70px;transition:margin-left .36s,width .36s}
#orders-panel{container-type:inline-size;container-name:order-workspace}
#sp-order-shell{position:fixed;top:0;left:0;bottom:0;z-index:8;width:228px;font-family:SkladReturnOnest,Arial,sans-serif;min-height:100dvh}
#sp-order-shell.collapsed{width:64px}
#sp-order-shell svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#sp-order-shell svg.icons{position:absolute;width:0;height:0;overflow:hidden}
#sp-order-shell .sidebar{width:100%;background:#eff6fa;overflow:visible}
#sp-order-shell a{text-decoration:none}
#orders-panel .orders-heading{display:block;margin:0}
#orders-panel .orders-heading h1{font-size:32px;line-height:1.2;font-weight:500;letter-spacing:-.7px;margin:0 0 30px}
#orders-panel .orders-heading-tools{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 18px;width:100%}
#orders-panel .order-sources{display:flex;gap:14px;flex-wrap:wrap;align-items:center;padding:0;margin:0}
#orders-panel .source-indicator-line,#orders-panel .source-indicator-line strong{font-size:16px;font-weight:400;gap:6px;color:#54768d}
#orders-panel .order-source summary>.source-checked-at,#orders-panel .source-normal .source-label{display:none}
#orders-panel .source-dot{width:9px;height:9px;flex-basis:9px;background:#3869c8}
#orders-panel .source-ok[data-marketplace="ozon"] .source-dot{background:#3869c8}
#orders-panel .order-source[data-marketplace="wildberries"] .source-dot{background:#cf469f}
#orders-panel .order-source[data-marketplace="yandex"] .source-dot{background:#7895a6}
#orders-panel .source-label{font-size:14px;color:#54768d}
#orders-panel .source-detail{font-size:15px;line-height:1.45;top:28px;left:0;right:auto}
#orders-panel .sp-orders-updated{font-size:16px;color:#718596;white-space:nowrap}
#orders-panel #refresh-orders{font-size:17px;font-weight:400;min-height:48px;padding:10px 16px;color:#426b82;background:#fff;border:1px solid #d8e5ed;border-radius:8px}
#orders-panel .order-work-tabs{display:flex;gap:25px;flex-wrap:wrap;border-bottom:1px solid #dfe9f0;margin:0 0 0;padding:0;background:transparent}
#orders-panel .order-work-tabs button{padding:13px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#718596;min-height:48px;font-size:18px;font-weight:400}
#orders-panel .order-work-tabs button.active{color:#315e77;background:transparent;border-bottom-color:#426b82}
#orders-panel .order-work-tabs button span:not(:empty){background:#f0f5f8;border-radius:5px;padding:2px 6px;margin-left:5px;font-size:14px}
#orders-panel .sp-order-group-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 14px}
#orders-panel .sp-order-group-heading h3{font-size:18px;font-weight:500;margin:0;letter-spacing:0}
#orders-panel .sp-order-group-heading>span{font-size:14px;color:#718596}
#orders-panel .order-queue-card{background:#f7fafc;padding:20px;gap:16px 24px}
#orders-panel .order-queue-heading>.marketplace-pill{font-size:0;width:10px;height:10px;min-width:10px;padding:0;border-radius:50%;background:#3869c8;align-self:center}
#orders-panel .order-queue-heading>.marketplace-wildberries{background:#cf469f}
#orders-panel .order-queue-heading>.marketplace-yandex{background:#7895a6}
#orders-panel .order-heading-meta small.order-ship-by{font-size:19px;font-weight:400}
#orders-panel .order-heading-meta{min-width:175px}
#orders-panel .returns-heading h3,#orders-panel .return-decision-heading h3{font-size:18px;font-weight:500}
#orders-panel .return-decision-heading{display:none}
#orders-panel .returns-heading p,#orders-panel .return-state,#orders-panel .return-pickup-source{font-size:15px}
#orders-panel .return-pickup-card,#orders-panel .return-card{background:#fff;border:1px solid #d8e5ed;border-radius:14px;padding:20px}
#orders-panel .return-pickup-info strong,#orders-panel .return-item-info strong{font-size:19px;font-weight:500}
#orders-panel .return-pickup-info small,#orders-panel .return-item-info small{font-size:16px;color:#627d91}
#orders-panel .return-pickup-code button{font-size:17px;background:#406d83;color:#fff;border-color:#406d83}
#orders-panel .return-pickup-info{min-width:0;overflow-wrap:anywhere;grid-column:1}
#orders-panel .return-pickup-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:16px;background:#f7fafc}
#orders-panel .return-pickup-product{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:start;margin:0}
#orders-panel .return-pickup-product+.return-pickup-product{margin-top:12px}
#orders-panel .return-pickup-details{display:flex;flex-direction:column;gap:5px;min-width:0}
#orders-panel .return-pickup-reference{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;color:#627d91}
#orders-panel .return-pickup-reference .marketplace-pill{padding:0;background:none;font-size:15px;font-weight:400;min-width:0}
#orders-panel .return-pickup-reference small{margin:0}
#orders-panel .return-pickup-address{line-height:1.45}
#orders-panel .return-pickup-code{min-width:0;max-width:260px;grid-column:2}
#orders-panel .return-pickup-product .order-item-photo{flex:none}
#orders-panel .return-pickup-product strong{min-width:0;overflow-wrap:anywhere}
@container order-workspace (max-width:650px){#orders-panel .return-pickup-card{grid-template-columns:minmax(0,1fr);gap:16px}#orders-panel .return-pickup-code{grid-column:1;max-width:none;justify-self:end}}
#orders-panel .return-history>h3{display:none}
#orders-panel .return-day-group>summary{font-size:18px;font-weight:500}
@container order-workspace (min-width:850px){
 #orders-panel .sp-single-order{grid-template-columns:minmax(210px,1fr) auto auto;align-items:center;gap:18px;padding:16px}
 #orders-panel .sp-single-order>.order-heading-meta{min-width:145px}
 #orders-panel .sp-single-order>.order-header-actions{grid-column:auto;border:0;padding:0;align-self:center;align-items:center;justify-content:flex-end;max-width:420px}
 #orders-panel .sp-single-order .order-command-stack{max-width:100%}
 #orders-panel .sp-single-order .order-item-photo{width:60px;height:76px}
 #orders-panel .sp-single-order .order-queue-item{grid-template-columns:60px minmax(0,1fr);gap:12px}
 #orders-panel .sp-single-order .order-item-name{overflow-wrap:anywhere}
}
@media(max-width:680px){body.sp-order-page,body.sp-order-page.sp-menu-open{--sp-rail:0px}#sp-order-shell,#sp-order-shell.collapsed{width:100%;height:56px;min-height:0;bottom:auto}.sp-order-page>main{width:100%;margin:56px 0 0;padding:24px 16px 50px}#orders-panel .orders-heading h1{font-size:29px;margin-bottom:24px}#orders-panel .order-sources{gap:10px}#orders-panel .sp-orders-updated{flex-basis:100%;font-size:14px}#orders-panel .orders-heading-tools{align-items:start;gap:10px}#orders-panel .order-work-tabs{gap:5px 20px}#orders-panel .order-work-tabs button{font-size:16px;padding:11px 0}#orders-panel .order-heading-meta{min-width:0}#orders-panel .sp-order-group-heading>span{font-size:12px}#orders-panel .order-queue-card{padding:16px}}
@media(prefers-reduced-motion:reduce){.sp-order-page>main{transition:none}}

/* Exact order attention: one order, readable cause, direct route to its card. */
#orders-panel .source-detail{width:420px;max-width:calc(100vw - 48px);max-height:70vh;overflow:auto;background:#fff;font-size:16px;line-height:1.5}
#orders-panel .source-order-issue{padding:14px 0;border-top:1px solid #dfe9f0;margin-top:12px}
#orders-panel .source-order-issue strong,#orders-panel .source-order-issue>span{display:block;font-size:16px}
#orders-panel .source-order-issue p{font-size:16px;margin:8px 0}
#orders-panel .source-open-order{font:inherit;color:#426b82;background:#fff;border:1px solid #d8e5ed;border-radius:8px;padding:9px 14px}
#orders-panel .source-order-selected{outline:2px solid #426b82;outline-offset:3px}
