.stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.check-dropdown{position:relative;min-width:155px;align-self:end}.check-dropdown summary{padding:11px;border:1px solid #b7c9d6;border-radius:6px;background:#fff;cursor:pointer}.check-dropdown>div{position:absolute;z-index:30;top:100%;left:0;background:white;box-shadow:0 8px 25px #2343;min-width:235px;max-height:350px;overflow:auto;padding:12px;border:1px solid #b7c9d6}.check-dropdown label{display:flex;align-items:center;gap:10px;white-space:nowrap;padding:8px;font-size:17px}.check-dropdown input{width:20px;height:20px}.operations-filter{align-items:end;flex-wrap:wrap;gap:14px}.reception-table{min-width:2600px}.reception-table .sticky-one{left:0;min-width:220px;max-width:220px;width:220px}.reception-table .sticky-two{left:220px;min-width:180px;width:180px}.reception-table .sticky-three{left:400px;min-width:155px;width:155px}.reception-table .order-photos{min-width:150px}.order-photos img{width:125px;height:125px;object-fit:contain;background:#edf4f9;display:inline-block;border:1px solid #aabfce}.image-missing{display:grid;place-content:center;width:125px;height:125px;border:1px dashed #9cabb6;background:#f4f7f9;color:#546675}.order-title{white-space:normal;overflow-wrap:anywhere;line-height:1.6;margin-top:9px}.table-scroll a,.definition a,.back-link,.reception-panel a{color:#175e9a;text-decoration:underline;text-underline-offset:4px;font-weight:650}.table-scroll a:hover,.definition a:hover{color:#11416b;background:#e0efff}.table-scroll a:focus-visible,.check-dropdown summary:focus-visible{outline:3px solid #2c80c6;outline-offset:3px}.workflow.new_order{background:#ffe0db;color:#9d2e25}.workflow.intake_review,.workflow.accepted{background:#ffe7f0;color:#8a3a5c}.workflow.ready{background:#fff1c4;color:#795b14}.workflow.in_progress{background:#dff2de;color:#285f34}.workflow.customer_review,.workflow.contact_pending{background:#e1edff;color:#254f8a}.workflow.customer_approved,.workflow.design_finalized,.workflow.shipping_preparation,.workflow.reapproval_required{background:#eee3fb;color:#654583}.workflow.completed{background:#e3e6e9;color:#45515a}.workflow.on_hold,.workflow.cancelled,.workflow.revision_requested{background:#ffecd2;color:#8b4c10}.reception-summary{display:flex;gap:24px;align-items:center;flex-wrap:wrap}.reception-summary .workflow,.page-heading .workflow{font-size:clamp(22px,2vw,30px);padding:12px 20px;white-space:normal}.missing-items{padding:16px;background:#fff0e6;border-left:5px solid #c86434;margin:18px 0}.deadline-urgent .deadline-count,.deadline-overdue .deadline-count{font-weight:800;color:#a52e26;background:#ffebe6}.deadline-soon .deadline-count{background:#fff5d8;color:#755912}.deadline-completed .deadline-count{color:#5d6871}.required-mark{color:#c42d37;font-weight:800}.upload-row{padding:22px;border:2px dashed #9db7ca;border-radius:9px;min-height:160px;background:#f6fafc}.upload-row.drag-active{border-color:#2679b9;background:#e0f0fc}.upload-row input[type=file]{font-size:17px}.upload-row small{font-size:16px}.external-mail{padding:18px;background:#e7f1f9;border:1px solid #c0d1df;border-radius:12px;margin:15px 0 15px 12%}.external-mail summary{cursor:pointer;font-weight:650}.section-label{border-bottom:1px solid #c3d5e1;padding:10px 0;margin:20px 0 12px}.detail-layout .page-heading h1{overflow-wrap:anywhere}@media(max-width:700px){.reception-table .sticky-two,.reception-table .sticky-three{position:static}.reception-table .sticky-one{min-width:155px;max-width:155px;width:155px}.stats{grid-template-columns:repeat(2,1fr)}.check-dropdown>div{max-width:85vw}.reception-summary{display:block}.reception-summary>div{margin:16px 0}.reception-summary .workflow{display:inline-block}}
/* Order operations: compact status cards, explicit filter rows, configurable fixed columns. */
.order-stats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.order-stats .stat{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;min-width:135px;flex:0 1 165px;border:1px solid #b9c7d5;border-radius:8px;text-align:left}.order-stats .stat-label{font-size:15px;color:inherit;white-space:nowrap}.order-stats .stat-value{font-size:24px;white-space:nowrap;line-height:1.3}.order-stats .stat-value small{color:inherit}.order-stats .stat.is-active{outline:3px solid #2d658e;outline-offset:1px;box-shadow:0 0 0 3px white inset}.order-stats .stat:hover{filter:brightness(.96)}
.operations-filter{display:block}.search-actions{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-bottom:14px}.filter-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.check-dropdown label.filter-option{flex-direction:row;display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:7px 4px;min-width:0;color:var(--ink);font-size:16px}.check-dropdown .filter-option input{flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;padding:0}.check-dropdown summary{font-size:15px}.operations-filter .search{max-width:480px;min-width:240px}.check-dropdown>div{z-index:45}.order-title{display:block}
.reception-table{table-layout:fixed}.reception-table th,.reception-table td{border-right:1px solid #dbe3eb;overflow-wrap:anywhere}.reception-table th{cursor:grab}.reception-table th:active{cursor:grabbing}.reception-table .column-fixed{position:sticky;left:var(--column-left);z-index:2;box-shadow:1px 0 0 #c8d4df}.reception-table th.column-fixed{z-index:4}.reception-table td{white-space:normal}.reception-table th{white-space:normal;font-size:14px}.reception-table .order-photos{padding:12px}.column-settings{display:grid;gap:6px}.column-settings>div{display:grid;grid-template-columns:minmax(100px,1fr) 75px 42px 42px;align-items:center;gap:7px;padding:6px;border-bottom:1px solid var(--line)}.column-settings .check{font-size:14px;white-space:nowrap}.order-detail-layout{display:block}.order-basic-form{margin-top:20px;gap:18px}.order-basic-form .btn.primary{grid-column:1/-1;justify-self:start}.basic-records{margin:0 0 20px;grid-template-columns:160px minmax(0,1fr)}.basic-reference-image{width:110px;height:110px;object-fit:contain;margin-top:8px}.order-basic-form textarea{min-height:100px}#order-subjects{scroll-margin-top:20px}.order-basic-form label{min-width:0}
@media(max-width:1150px){.reception-table .column-fixed{position:static}.reception-table .column-first{position:sticky;left:0}.reception-table th.column-first{z-index:4}}
@media(max-width:700px){.order-stats .stat{min-width:130px;flex:1 1 140px;max-width:220px}.search-actions .search{min-width:100%;max-width:none}.filter-controls>.check-dropdown{flex:1 1 140px;min-width:0}.check-dropdown>div{min-width:210px;max-width:min(280px,80vw)}.filter-controls>.check-dropdown:nth-child(even)>div{left:auto;right:0}.order-basic-form{grid-template-columns:1fr}.basic-records{grid-template-columns:110px minmax(0,1fr)}.reception-table .column-fixed,.reception-table .column-first{position:static}.reception-table th{position:sticky;top:0}.order-detail-layout .card-header{flex-wrap:wrap}}
/* Phase-oriented dashboard and compact, editable order workbench. */
.stage-dashboard{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin:0 0 20px}.stage-group{--stage-color:#6a7a86;--stage-bg:#f1f3f5;border-left:4px solid var(--stage-color);padding:6px 10px;flex:0 1 auto;max-width:100%}.stage-group h2{font-size:16px;font-weight:750;color:var(--stage-color);margin:0 0 5px}.stage-group>div{display:flex;flex-wrap:wrap;gap:4px 8px;max-width:320px}.stage-intake{--stage-color:#a5423e;--stage-bg:#fff0ed}.stage-production{--stage-color:#80601b;--stage-bg:#fff6d9}.stage-confirmation{--stage-color:#35684c;--stage-bg:#eaf5ed}.stage-revision{--stage-color:#765192;--stage-bg:#f4edfa}.stage-finalize{--stage-color:#306d98;--stage-bg:#e8f3fc}.stage-shipping,.stage-exception{--stage-color:#616a74;--stage-bg:#edf0f3}.stage-status{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;background:var(--stage-bg,#f0f4f8);color:var(--stage-color,#345b7c);border:1px solid transparent;border-radius:5px;padding:4px 7px;font-size:15px;line-height:1.5;white-space:nowrap}.stage-status strong{font-size:17px}.stage-status small{font-size:13px;margin-left:3px;color:inherit}.stage-status:hover{border-color:currentColor}.stage-status.is-active{outline:2px solid currentColor;outline-offset:1px;font-weight:750}.stage-exception .on_hold{color:#765192;background:#f4edfa}.all-orders-count{display:inline-flex;margin:4px 0 4px 14px;vertical-align:middle}.page-heading:has(.all-orders-count) h1{display:inline}.order-section{margin-bottom:14px}.order-section>summary{list-style:none;cursor:pointer;padding:13px 18px;min-height:54px;flex-wrap:wrap}.order-section>summary::-webkit-details-marker{display:none}.order-section>summary::before{content:'▸';font-size:18px;color:#526e88}.order-section[open]>summary::before{content:'▾'}.order-section>summary h2{margin-right:auto;font-size:20px}.order-section:not([open])>summary{border-bottom:0}.order-section .card-body{padding:15px 18px}.order-section>summary:focus-visible{outline:3px solid #2983bd;outline-offset:-3px}.compact-order-form{display:grid;gap:12px}.compact-primary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 14px;align-items:start}.compact-primary-grid label{min-width:0;gap:3px}.compact-primary-grid input,.compact-primary-grid select{padding:6px 9px;min-height:38px}.compact-order-form>.btn{justify-self:start}.readonly-field{min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.readonly-field>span{font-size:14px;font-weight:650;color:var(--muted)}.readonly-field>strong{font-size:16px;font-weight:600}.compact-acceptance{grid-column:span 2;display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-height:60px}.compact-acceptance .mail-toolbar{margin:0}.basic-supplement>summary{cursor:pointer;font-weight:650;color:#355e80;padding:5px 0}.basic-supplement>div{margin-top:10px}.basic-supplement textarea{min-height:74px}.compact-customer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 15px}.compact-customer-grid textarea{min-height:72px}.inline-save-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.compact-subject-fields>.field-grid{gap:10px 15px}.compact-subject-fields .full{grid-column:auto}.compact-subject-fields textarea{min-height:75px;max-height:180px}.compact-subject-fields .full.stack{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px 22px}.inline-subject .card-header{padding:10px 15px}.inline-subject .photo{position:relative}.photo-remove-cross{position:absolute;top:4px;right:4px;background:#fff;color:#923b39;border:1px solid #b56565;border-radius:50%;font-size:24px;width:30px;height:30px;line-height:1;padding:0;box-shadow:0 1px 4px #0003}.photo-pending-remove img{opacity:.3;filter:grayscale(1)}.photo-pending-remove::after{content:'削除予定';position:absolute;top:48px;left:25px;background:#963e35;color:white;padding:2px 6px;pointer-events:none}.inline-photo-drop{min-height:110px;padding:13px}.inline-photo-drop [data-photo-pending]{width:100%}.inline-photo-drop [data-photo-pending] p{display:flex;justify-content:space-between;gap:10px;font-size:15px}.inline-subject form>.btn.primary{justify-self:start}.embedded-design-list{display:grid;gap:12px}.embedded-design-list article{border-bottom:1px solid var(--line);padding-bottom:12px;min-width:0}.embedded-design-heading{display:flex;align-items:center;flex-wrap:wrap;gap:5px 16px;margin-bottom:8px}.embedded-design-heading small{font-size:14px}.embedded-design-name{font-size:19px;font-weight:750;text-decoration:underline}.embedded-design-images{display:flex;gap:9px;overflow-x:auto;max-width:100%;padding:3px 3px 8px}.embedded-design-images a{display:block;position:relative;flex:0 0 124px;border:2px solid transparent;border-radius:6px}.embedded-design-images img{width:120px;height:120px;object-fit:contain;background:#edf3f7;display:block}.embedded-design-images .is-rejected{filter:grayscale(1);opacity:.38}.embedded-design-images .is-selected{border-color:#28765c}.embedded-design-images span{position:absolute;bottom:2px;left:2px;background:#236c50;color:white;padding:0 5px;font-size:13px}.embedded-design-empty{border:1px dashed #a5baca;border-radius:6px;padding:22px;text-align:center;color:#607183}.studio-image-card:focus{outline:4px solid #3a91b3;outline-offset:4px}
@media(max-width:1150px){.compact-primary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.compact-primary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-dashboard{gap:8px}.stage-group{padding:5px 8px;flex:1 1 180px}.stage-group>div{max-width:none}}
@media(max-width:520px){.compact-primary-grid,.compact-customer-grid{grid-template-columns:1fr}.compact-acceptance{grid-column:auto}.stage-group{flex:1 1 145px}.stage-status{font-size:14px;white-space:normal;text-align:left}.stage-status strong{white-space:nowrap}.order-section>summary{padding:11px 13px;gap:8px}.order-section>summary h2{font-size:19px}.order-section .card-body{padding:12px}.all-orders-count{margin-left:0}.compact-subject-fields .full.stack{display:grid;gap:9px}.embedded-design-heading{gap:4px 8px}.embedded-design-images a{flex-basis:108px}.embedded-design-images img{width:104px;height:104px}}

/* Desktop workflow dashboard: one equal-width column per stage, scroll locally. */
.stage-dashboard{display:flex;flex-wrap:nowrap;gap:12px;align-items:stretch;overflow-x:auto;max-width:100%;min-width:0;padding:3px 3px 12px;box-sizing:border-box;overscroll-behavior-x:contain}
.stage-dashboard .stage-group{box-sizing:border-box;flex:1 0 228px;min-width:228px;max-width:none;margin:0;border-left:4px solid var(--stage-color);padding:8px 10px;align-self:stretch}
.stage-dashboard .stage-group h2{height:26px;white-space:nowrap;font-size:16px;margin:0 0 9px}
.stage-dashboard .stage-group>div{display:flex;flex-direction:column;align-items:stretch;gap:7px;max-width:none}
.stage-dashboard .stage-status{width:100%;min-height:36px;box-sizing:border-box;border-radius:7px;padding:6px 8px;background:linear-gradient(110deg,var(--chip-start,var(--stage-bg)),var(--chip-end,#fff));font-size:14px;white-space:nowrap;gap:6px}
.stage-dashboard .stage-status:nth-child(2){background:linear-gradient(110deg,var(--chip-end,#fff),var(--stage-bg))}
.stage-dashboard .stage-status:nth-child(3){background:linear-gradient(110deg,var(--stage-bg),var(--chip-start,var(--stage-bg)))}
.stage-dashboard .stage-intake{--chip-start:#ffe6e1;--chip-end:#fff5f2}
.stage-dashboard .stage-production{--chip-start:#fff0c4;--chip-end:#fff9e8}
.stage-dashboard .stage-confirmation{--chip-start:#dff1e5;--chip-end:#f3faf5}
.stage-dashboard .stage-revision{--chip-start:#eee3f6;--chip-end:#f9f5fc}
.stage-dashboard .stage-finalize{--chip-start:#deedfb;--chip-end:#f3f8fd}
.stage-dashboard .stage-shipping{--chip-start:#e9edf1;--chip-end:#f6f8fa}
.stage-dashboard .stage-exception{--chip-start:#e9ecef;--chip-end:#f6f7f8}
.stage-dashboard .stage-exception .on_hold{background:linear-gradient(110deg,#eee4f6,#faf6fd);color:#765192}
.stage-dashboard .stage-exception .cancelled{background:linear-gradient(110deg,#e9ecef,#f6f7f8);color:#616a74}
.order-basic-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;justify-self:start}
.order-basic-actions .reception-complete{margin:0}

/* Six compact stages fit ordinary desktop widths without a dashboard scrollbar. */
.stage-dashboard{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;overflow:visible;overflow-x:visible;overflow-y:visible;padding:3px 0 10px;width:100%;min-width:0}
.stage-dashboard .stage-group{min-width:0;max-width:none;width:100%;padding:6px 2px;border-left-width:3px}
.stage-dashboard .stage-group h2{height:42px;min-width:0;margin:0 0 6px;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.stage-dashboard .stage-group>div{gap:5px}
.stage-dashboard .stage-status{min-width:0;min-height:34px;justify-content:flex-start;gap:3px;padding:4px 3px;font-size:14px;line-height:1.5;white-space:normal}
.stage-dashboard .stage-status>span{min-width:0;overflow-wrap:anywhere}
.stage-dashboard .stage-status strong{flex-shrink:0;font-size:16px;white-space:nowrap}
.stage-dashboard .stage-status small{font-size:11px;margin-left:1px}
.stage-dashboard .stage-finalize .shipping_preparation{background:linear-gradient(110deg,#e2f3fa,#f4fbfe);color:#356b85}

.stage-revision .on_hold{background:linear-gradient(110deg,#eee5f8,#f6f0fb);color:#705080}
.workflow-field{position:relative;display:grid;gap:5px;min-width:0}.workflow-picker-trigger{width:100%;display:flex;justify-content:space-between;gap:8px;min-height:44px;border:1px solid #bdcbd6;border-radius:7px;padding:8px 10px;font-size:inherit;color:#294459;background:#eef3f7}
.workflow-options{position:absolute;top:100%;left:0;min-width:240px;width:100%;max-height:420px;overflow-y:auto;background:white;border:1px solid #b6c8d6;border-radius:8px;padding:7px;box-shadow:0 8px 20px #17344d22;z-index:30}.workflow-options[hidden]{display:none}.workflow-choice-group{display:grid;gap:4px;margin:4px 0}.workflow-options .stage-status{width:100%;text-align:left;justify-content:flex-start;min-height:38px;border:1px solid transparent;border-radius:7px;padding:7px 10px;font-size:16px}.workflow-options [aria-selected=true]{outline:2px solid #527c9e;outline-offset:-2px;font-weight:800}.workflow-options [role=option]:focus{outline:3px solid #355e81;outline-offset:-3px}
.workflow-picker-trigger.new_order,.workflow-picker-trigger.intake_review,.workflow-picker-trigger.accepted{background:#fae8e3}.workflow-picker-trigger.ready,.workflow-picker-trigger.in_progress{background:#fbf1cf}.workflow-picker-trigger.contact_pending,.workflow-picker-trigger.customer_review,.workflow-picker-trigger.customer_approved{background:#e3f2e7}.workflow-picker-trigger.revision_requested,.workflow-picker-trigger.reapproval_required,.workflow-picker-trigger.on_hold{background:#eee5f8}.workflow-picker-trigger.design_finalized{background:#e5effa}.workflow-picker-trigger.shipping_preparation{background:#e2f3fa}.workflow-picker-trigger.completed,.workflow-picker-trigger.cancelled{background:#e9edf0}
.list-design-image.is-finalized img{outline:2px solid #c6a45e}.list-design-image.is-approved img{outline:2px solid #82acd0}.list-image-label.source-finalized{color:#876221;font-weight:700}.list-image-label.source-approved{color:#2c638e;font-weight:700}

.workflow-choice-group.stage-finalize .shipping_preparation{background:#e2f3fa;color:#356b85}

/* Keep the open status list outside the card, below the sticky header and dialogs. */
.order-detail-main .reception-panel:has([role=combobox][aria-expanded=true]){position:relative;z-index:4;overflow:visible}
