/* Buyer gifts: dense staff workspace only; no status or fulfillment behavior changes. */
/* Manual delivery uses the same saved values as the operational edit form. */
#modal-backdrop .cup-manual-dialog #customer-gift-manual-form select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:28px;padding:4px 6px;border:1px solid var(--line,#e2d9d1);border-radius:5px;background:var(--card,var(--paper,#fff));color:var(--text,var(--ink,#24211f));font-size:11px;line-height:1.2}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-history-legend-row>td{width:auto!important;height:auto;padding:3px 9px!important;white-space:normal;background:rgba(155,137,115,.035)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-source-legend{font-size:10px;line-height:1.35;color:var(--muted,#796e64)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-source-legend summary{cursor:pointer;padding:3px 0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-source-legend p{margin:4px 0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-source-line{display:flex;flex-wrap:wrap;gap:3px 12px;margin:4px 0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-source-line span{min-width:0;overflow-wrap:anywhere}
body.admin-mode .page-view[data-view="admin-fulfillment"] :is(.cup-history-source-line a,.cup-history-row-source){color:var(--accent,#c64a1b);text-decoration:underline;text-underline-offset:2px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-row-source{font-size:10px;white-space:nowrap}
@media(max-width:760px){
 #modal-backdrop .cup-manual-dialog #customer-gift-manual-form{grid-template-columns:1fr}
 #modal-backdrop .cup-manual-dialog #customer-gift-manual-form :is(input,select,textarea,button){min-height:44px!important;font-size:16px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-history-legend-row,body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-history-legend-row>td{display:block;width:100%!important;box-sizing:border-box}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-source-legend{font-size:12px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-history-source-legend summary{min-height:44px;box-sizing:border-box;padding:12px 0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] :is(.cup-history-source-line a,.cup-history-row-source){display:inline-flex;align-items:center;min-height:44px;font-size:12px}
}
body.admin-mode .page-view[data-view="admin-fulfillment"] .admin-heading{gap:6px;margin-bottom:6px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .admin-heading h1{font-size:19px;line-height:1.15;margin:2px 0 4px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .eyebrow{font-size:8px;line-height:1.15;margin-bottom:3px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .admin-heading .lead{font-size:10px;line-height:1.2;margin:0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-panel{margin:6px 0;padding:7px 9px;min-width:0;border-radius:10px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .panel-head{gap:5px;margin-bottom:5px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .panel-head h2{font-size:13px;line-height:1.15;margin:0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .panel-head p:not(.eyebrow){font-size:9px;line-height:1.2;margin:3px 0 0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-toolbar{gap:5px;margin:5px 0;align-items:end}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-search-label{gap:2px;min-width:min(100%,330px);font-size:9px;line-height:1.15}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-search-label input{height:24px;min-height:24px;padding:3px 7px;border-radius:5px;font-size:10px;line-height:1.15}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-filters{gap:4px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-filters button{min-height:24px;padding:3px 6px;border-radius:5px;font-size:9px;line-height:1.15}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-scroll{min-width:0;max-width:100%;border-radius:6px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff{min-width:0;width:100%;table-layout:fixed;font-size:10px;line-height:1.12}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff th{padding:4px 5px;font-size:8px;line-height:1.1;overflow-wrap:anywhere}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff td{height:27px;padding:2px 5px;line-height:1.12;white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:none}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(1){width:13%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(2){width:11%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(3){width:12%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(4){width:30%;min-width:0;max-width:none}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(5){width:24%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(6){width:10%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff td small{margin-top:1px;font-size:8px;line-height:1.1}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-group td{height:auto;width:auto;padding:3px 5px;font-size:9px;line-height:1.15}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-gift-name{margin:0 0 1px;font-size:9px;line-height:1.1}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-status{width:100%;min-width:0;max-width:100%;height:22px;min-height:22px;padding:2px 4px;border-radius:4px;font-size:9.5px;line-height:1.1}
body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff button{min-height:22px;max-width:100%;padding:3px 5px;border-radius:4px;font-size:9px;line-height:1.1;white-space:nowrap}

/* Keep the gift and its full stage label together on wide workstations. */
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-ready{color:#8bd9b7}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-wait{color:#f4c18f}
html[data-theme="dark"] body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .customer-gift-detail>p:not(.customer-gift-note),
html[data-theme="dark"] body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .customer-gift-address :is(p,label){color:#c8b9ae}
@media(min-width:761px) and (max-width:1399px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(4){width:28%}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff :is(th,td):nth-child(6){width:12%}
}
@media(min-width:1400px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-stage-cell{white-space:nowrap}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-gift-name{display:inline-block;vertical-align:middle;margin:0 4px 0 0;font-size:9px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-status{display:inline-block;vertical-align:middle;width:175px;min-width:175px;max-width:175px}
}

/* Only this detail dialog is reduced; other dialogs retain their own density. */
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail){width:min(690px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);min-height:0;padding:10px 12px;overflow:auto;border-radius:10px;animation:none;transition:none;transform:none}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .modal-close{top:8px;right:8px;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border-radius:5px;font-size:18px;line-height:1}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-detail{min-width:0;font-size:10px;line-height:1.2}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .modal-label{font-size:8px;line-height:1.15;padding:3px 5px;margin-bottom:4px}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) h2{font-size:17px;line-height:1.15;margin:3px 28px 5px 0;overflow-wrap:anywhere}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-detail>p{font-size:10px;line-height:1.2;margin:4px 0;overflow-wrap:anywhere}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-note{padding:5px 6px;border-radius:5px}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-source{font-size:9px}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:6px 0;padding:7px;border-radius:6px;white-space:normal;min-width:0}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address>:is(h3,p,b,.customer-gift-actions),
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address>label:has(textarea){grid-column:1/-1}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) :is(.customer-gift-address,.customer-gift-fulfillment) h3{font-size:12px;line-height:1.15}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) :is(.customer-gift-address,.customer-gift-fulfillment) p{font-size:9px;line-height:1.2;overflow-wrap:anywhere}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address label{min-width:0;gap:2px;font-size:9px;line-height:1.15}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address :is(input,textarea){box-sizing:border-box;min-width:0;max-width:100%;min-height:24px;height:24px;padding:4px 6px;font-size:11px;line-height:1.15;border:1px solid var(--line);border-radius:5px;background:var(--card,var(--paper,#fff));color:var(--text,var(--ink,#24211f))}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address textarea{height:44px;min-height:44px;resize:vertical}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-detail button{min-height:24px;padding:4px 7px;font-size:10px;line-height:1.15;border-radius:5px}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-fulfillment{gap:5px;margin:6px 0}
body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-fulfillment>div{gap:4px}

@media(max-width:760px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-panel{padding:6px;margin:5px 0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-search-label{min-width:0;width:100%}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-search-label input{height:40px;min-height:40px;font-size:16px;padding:5px 6px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-filters button{min-height:40px;padding:4px 5px;font-size:10px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-scroll{border:0;overflow:visible}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff{display:block;width:100%;min-width:0;font-size:10px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 6px;margin:0;padding:5px;border-radius:6px;min-width:0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff td{display:block;width:auto!important;height:auto;min-width:0!important;max-width:none!important;border:0;padding:2px 0;font-size:10px;line-height:1.15;overflow-wrap:anywhere}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff td::before{display:block;margin-bottom:2px;font-size:8px;line-height:1.1}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff td>*{grid-column:auto;min-width:0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff td small{font-size:9px;line-height:1.1;margin-top:1px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-row td:nth-child(1){grid-column:1;grid-row:1}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-row td:nth-child(2){grid-column:2;grid-row:1}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-row td:nth-child(3){grid-column:1;grid-row:2}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-row td:nth-child(6){grid-column:2;grid-row:2}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-row td:nth-child(4){grid-column:1/-1;grid-row:3}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-row td:nth-child(5){grid-column:1/-1;grid-row:4}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-group{display:block;margin:0;padding:0;border:0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-group td{display:block;padding:4px 5px;font-size:9px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-gift-name{display:inline-block;margin:0 0 2px;font-size:10px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff .customer-gift-status{display:block;width:100%;max-width:100%;height:40px;min-height:40px;font-size:16px;padding:4px 5px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-table--staff button{min-height:40px;padding:4px 6px;font-size:10px}
 body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail){width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:8px;border-radius:8px}
 body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .modal-close{top:5px;right:5px;width:40px;height:40px;min-width:40px;min-height:40px}
 body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) h2{margin-right:40px;font-size:17px}
 body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address{padding:6px;gap:4px}
 body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address :is(input,textarea){height:40px;min-height:40px;font-size:16px;padding:5px}
 body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-address textarea{height:55px;min-height:55px}
 body.admin-mode:has([data-view="admin-fulfillment"]:not(.is-hidden)) .modal-card:has(.customer-gift-detail) .customer-gift-detail button{min-height:40px;padding:4px 5px;font-size:10px;white-space:normal}
}

/* Approved compact Cups table. Scoped to the staff list; partner view is unchanged. */
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-scroll{overflow:auto;max-width:100%;border-radius:8px}
body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table.customer-gift-table--staff{width:100%;min-width:760px;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.3}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-order{width:17%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-date{width:9%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-person{width:17%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-quantity{width:4%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-delivery{width:12%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-address{width:auto}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-stage{width:190px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table thead th{width:auto!important;min-width:0!important;padding:7px 8px;font-size:11px;white-space:normal;text-transform:none;letter-spacing:0;line-height:1.25}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>td{width:auto!important;min-width:0!important;max-width:none!important;padding:5px 8px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.3}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-row small{display:block;font-size:11px;line-height:1.25;margin-top:2px;color:var(--muted,#796e64)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-order-toggle{display:flex;align-items:center;gap:5px;width:100%;min-height:24px;max-width:100%;border:0;border-radius:3px;padding:0;background:none;text-align:left;color:inherit;font:inherit;cursor:pointer}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-order-toggle>span{color:#9b603c;min-width:10px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-order-toggle b{font-size:12px;overflow-wrap:anywhere}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-order-meta{display:flex;flex-wrap:wrap;gap:3px 6px;padding-left:15px;font-size:10px;line-height:1.25;color:var(--muted,#796e64)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-source-chip{display:inline-block;padding:0 4px;border:1px solid var(--border,#e2d9d1);border-radius:4px;font-size:10px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-quantity-cell{text-align:center}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-address-toggle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;max-width:100%;width:100%;border:0;padding:0;background:none;text-align:left;color:inherit;font:inherit;line-height:1.3;cursor:pointer}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select.customer-gift-status{position:static;display:block;width:100%!important;min-width:0!important;max-width:none!important;min-height:30px;height:30px;padding:3px 21px 3px 7px;font-size:11px;line-height:1.2;text-overflow:clip;white-space:normal;border:1px solid #d6c7b9;border-radius:5px;color:inherit;background-color:var(--surface,#fff)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select:disabled{opacity:1;color:var(--muted,#796e64)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-review-badge{display:inline-block;border:0;background:transparent;color:#9c5b17;padding:2px 0;margin:0;font-size:10px;text-align:left;line-height:1.2;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-row--pending{background:rgba(249,188,67,.065)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-row--sent{background:rgba(62,137,215,.065)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-row--received{background:rgba(40,157,117,.05)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-row--history{background:rgba(155,137,115,.035)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.customer-gift-group>td{padding:0!important;border-top:1px solid var(--border,#e2d9d1)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .customer-gift-group button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:30px;border:0;border-radius:0;padding:5px 9px;font-size:11px;line-height:1.2;font-weight:600;background:var(--surface-soft,#f5f1ed);color:inherit;text-align:left;cursor:pointer}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .customer-gift-group b{display:inline-block;padding:1px 5px;margin-left:5px;background:rgba(128,107,84,.1);border-radius:5px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .customer-gift-group small{font-size:10px;font-weight:400;color:var(--muted,#796e64)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-group--pending button{background:rgba(249,188,67,.13)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-group--sent button{background:rgba(62,137,215,.12)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-group--received button{background:rgba(40,157,117,.12)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail[hidden]{display:none!important}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail>td{padding:10px;white-space:normal}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-detail-head button,body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-row-detail-actions button{font-size:11px;min-height:30px;padding:5px 9px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-row-details>dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 15px;margin:0 0 9px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-row-details dt{font-size:10px;color:var(--muted,#796e64)}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-row-details dd{font-size:12px;margin:1px 0 0;overflow-wrap:anywhere}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-status-evidence select{display:none}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-missing{color:var(--muted,#796e64)}
@media(max-width:760px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-panel>.panel-head{flex-wrap:wrap;gap:5px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-panel>.panel-head>div{flex:1 1 100%;min-width:0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-panel>.panel-head>[data-customer-gift-add]{flex:none;width:auto;min-width:0;min-height:44px;padding:6px 10px;white-space:nowrap}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-toolbar{display:block}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-search-label{width:100%;margin-bottom:5px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:4px;padding-bottom:3px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-filters button{flex:0 0 auto;width:auto!important;min-height:44px;white-space:nowrap;padding:5px 8px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-scroll{overflow:visible}
 body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table.customer-gift-table--staff{display:block;min-width:0;width:100%;table-layout:auto;border:0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table colgroup,body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table thead{display:none}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tbody{display:block}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:0 8px;margin:0 0 7px;padding:7px 9px;border:1px solid var(--border,#e2d9d1);border-radius:7px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>td{display:block!important;grid-column:auto!important;grid-row:auto!important;border:0!important;padding:2px 0!important;min-width:0!important;max-width:100%!important;overflow:hidden;white-space:normal;font-size:12px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>td:before{display:none!important}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>.cup-order-cell{grid-column:1!important;grid-row:1!important}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>.cup-date-cell{grid-column:2!important;grid-row:1!important;text-align:right;align-self:center}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>.cup-person-cell{grid-column:1!important;grid-row:2!important;align-self:center}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>.cup-quantity-cell{grid-column:2!important;grid-row:2!important;text-align:right;align-self:center}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-quantity-cell:after{content:' шт.';color:var(--muted,#796e64)}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>.cup-delivery-cell{grid-column:1 / -1!important;grid-row:3!important;display:flex!important;gap:7px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>.cup-address-cell{grid-column:1 / -1!important;grid-row:4!important}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>.cup-stage-cell{grid-column:1 / -1!important;grid-row:5!important;display:flex!important;flex-wrap:wrap;gap:3px 8px;align-items:center}
 body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table .cup-order-toggle,body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table .cup-address-toggle,body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group button{min-height:44px!important;height:auto}
 html body.admin-mode #app-main.workspace .page-view[data-view="admin-fulfillment"] table.cup-approved-table .cup-stage-cell select.customer-gift-status{height:44px!important;min-height:44px!important;flex:1 1 160px;width:100%!important;font-size:16px!important;line-height:22px!important}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-review-badge{min-height:44px;font-size:11px;padding:4px 2px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .customer-gift-group,body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .customer-gift-group td{display:block;width:100%}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .customer-gift-group{margin:5px 0}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail{display:block;margin:-7px 0 8px;border:1px solid var(--border,#e2d9d1);border-top:0;border-radius:0 0 7px 7px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail>td{display:block;width:100%;box-sizing:border-box;padding:9px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-row-details>dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-detail-head{align-items:flex-start;flex-wrap:wrap}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-detail-head button,body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-row-detail-actions button,body.admin-mode .page-view[data-view="admin-fulfillment"] .customer-gift-filters button{min-height:44px}
 #modal-backdrop .cup-operational-dialog input:not([type=hidden]),#modal-backdrop .cup-operational-dialog select,#modal-backdrop .cup-operational-dialog textarea,#modal-backdrop .cup-operational-dialog button,#modal-backdrop .cup-review-dialog input:not([type=hidden]),#modal-backdrop .cup-review-dialog select,#modal-backdrop .cup-review-dialog textarea,#modal-backdrop .cup-review-dialog button{min-height:44px}
}

/* Compact inline cup details; field values and event handlers are unchanged. */
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail>td{padding:6px 9px;line-height:1.25}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-approved-detail-head{gap:6px;margin-bottom:5px;font-size:11px;line-height:1.3}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-approved-detail-head button,body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-detail-actions button{min-height:25px;padding:3px 7px;font-size:10px;line-height:1.25}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 14px;margin:0 0 5px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:5px;align-items:baseline;min-width:0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div>dt{font-size:10px;line-height:1.3;margin:0;overflow-wrap:anywhere}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div>dd{font-size:11px;line-height:1.3;margin:0;overflow-wrap:anywhere;min-width:0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:4px 0 0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>p{font-size:11px;line-height:1.35;margin:4px 0}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-operational-history{font-size:10px;line-height:1.3;margin:5px 0 0;padding-top:4px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-operational-history>summary{min-height:22px;cursor:pointer;line-height:1.3}
@media(min-width:1600px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div:nth-child(9){grid-column:span 2}
}
@media(max-width:1000px) and (min-width:761px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail>td{padding:6px 8px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-approved-detail-head{gap:5px;margin-bottom:4px;font-size:12px;align-items:center}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-approved-detail-head button,body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-detail-actions button{min-height:44px;padding:5px 8px;font-size:12px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div{display:block}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div:nth-child(9){grid-column:span 2}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div>dt{font-size:10.5px;line-height:1.2}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div>dd{font-size:12px;line-height:1.3;margin-top:1px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-operational-history{font-size:12px;margin-top:4px;padding-top:2px}
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-operational-history>summary{min-height:44px;padding:12px 0;box-sizing:border-box}
}

/* Full cup addresses, including apartment promo text, stay inside their cells. */
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-order{width:14%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-col-delivery{width:11%}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-address-toggle{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:normal;overflow-wrap:anywhere;word-break:normal;box-sizing:border-box}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div{align-items:start}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div.cup-detail-address{grid-column:1 / -1}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div>:is(dt,dd){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;box-sizing:border-box}
/* Held source evidence is separate from the operational dispatch table. */
.cup-source-held-history{margin-top:12px;border:1px solid #d6a65d;border-radius:7px;padding:8px 10px;background:var(--surface,#fffdf8);font-size:12px;line-height:1.35;min-width:0;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}
.cup-source-held-history>summary{cursor:pointer;font-weight:700}.cup-source-held-history small{display:block;font-size:11px;line-height:1.3;color:var(--text-muted,#766c62);margin-top:3px;overflow-wrap:anywhere}
.cup-source-held-history>summary small{display:inline;margin-left:8px;font-weight:400}.cup-source-held-history p{margin:7px 0}
.cup-source-held-scroll{overflow:auto;max-height:460px;min-width:0;max-width:100%;width:100%;box-sizing:border-box}.cup-source-held-history table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}
.cup-source-held-history th,.cup-source-held-history td{padding:7px 8px;border-top:1px solid #e4d9cb;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.cup-source-held-history th:nth-child(1){width:17%}.cup-source-held-history th:nth-child(2){width:24%}.cup-source-held-history th:nth-child(3){width:16%}.cup-source-held-history th:nth-child(4){width:27%}.cup-source-held-history th:nth-child(5){width:16%}
.cup-source-held-history td>div+div{margin-top:7px;padding-top:5px;border-top:1px dashed #ded2c2}
@media(max-width:760px){.cup-source-held-history table{min-width:850px}.cup-source-held-history a{display:inline-block;min-height:30px;padding-top:4px}.cup-source-held-history>summary{min-height:30px;padding:4px 0}}

/* Keep full native stage labels on one line without raising desktop rows. */
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select.customer-gift-status{white-space:nowrap;word-break:normal;overflow-wrap:normal}
@media(min-width:761px){
 body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select.customer-gift-status{box-sizing:border-box;font-size:10.5px;font-weight:500;letter-spacing:normal;padding-left:5px;padding-right:18px;height:30px;min-height:30px;line-height:1.2}
}
/* Dark fulfillment controls and historical evidence use explicit readable pairs. */
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] [data-customer-gift-add]{background:#a83a12;color:#fff;border-color:#e7a178;box-shadow:none}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] [data-customer-gift-add]:hover{background:#8c300e;color:#fff}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-group--review button{background:#302920;color:#f6eee5;border-color:#806a52}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-approved-group--review button small{color:#dacbbb}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-source-held-history{background:#211d19;color:#f4e7db;border-color:#a47d49}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-source-held-history :is(summary,th){color:#fff1e4}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-source-held-history th{background:#322c25}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-source-held-history :is(small,p){color:#d1c3b6}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-source-held-history a{color:#ffb184}
html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-source-held-history :is(th,td),html[data-theme="dark"] body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-source-held-history td>div+div{border-color:#6c5a48}

/* Long cup addresses wrap inside their own column, including unbroken text. */
body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table{table-layout:fixed}
body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table td.cup-address-cell{min-width:0;overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top}
body.admin-mode .page-view[data-view="admin-fulfillment"] table.cup-approved-table td.cup-address-cell>.cup-address-toggle{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;contain:inline-size;overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:normal;height:auto;-webkit-line-clamp:unset}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-detail-address>dd{box-sizing:border-box;contain:inline-size;min-width:0;max-width:100%;overflow:hidden;white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* Exact fulfillment-sheet delivery states. */
.cup-status-source-link{display:block;font-size:11px;margin-top:4px}.cup-stage-cell select:disabled{color:inherit;opacity:1;cursor:default}
.cup-approved-group--request{background:#fff3da}.cup-approved-group--handed{background:#e9f0ff}.cup-approved-group--transit{background:#e8f6f8}.cup-approved-group--delivered{background:#e9f6ee}.cup-approved-group--cancelled{background:#faeeee}.cup-approved-group--unset{background:#f4f1ec}

/* Soft, distinct delivery-state colors, matching CRM selectors. */
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select[data-cup-delivery-tone="unset"],.cup-operational-dialog select[data-cup-delivery-tone="unset"]{background-color:#f4f1ec;color:#70665c;border-color:#d6cfc6;font-weight:600}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select[data-cup-delivery-tone="request"],.cup-operational-dialog select[data-cup-delivery-tone="request"]{background-color:#fff4d6;color:#8e631b;border-color:#e5c777;font-weight:600}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select[data-cup-delivery-tone="handed"],.cup-operational-dialog select[data-cup-delivery-tone="handed"]{background-color:#eaf0ff;color:#375f9b;border-color:#abc0e6;font-weight:600}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select[data-cup-delivery-tone="transit"],.cup-operational-dialog select[data-cup-delivery-tone="transit"]{background-color:#e6f5f7;color:#286d7b;border-color:#93c9d2;font-weight:600}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select[data-cup-delivery-tone="delivered"],.cup-operational-dialog select[data-cup-delivery-tone="delivered"]{background-color:#e7f4ec;color:#27734c;border-color:#9acdaf;font-weight:600}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select[data-cup-delivery-tone="cancelled"],.cup-operational-dialog select[data-cup-delivery-tone="cancelled"]{background-color:#fbeaec;color:#a4434a;border-color:#e4b0b6;font-weight:600}
html[data-theme="dark"] [data-cup-delivery-tone]{color-scheme:light}

/* Compact desktop rows retain full wrapping addresses and existing status colors. */
@media(min-width:761px){
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table tr.cup-working-row>td{padding:3px 7px;line-height:1.2}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-order-toggle{min-height:19px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-working-row small{margin-top:1px;line-height:1.15}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .cup-stage-cell select.customer-gift-status{min-height:26px;height:26px;padding-top:2px;padding-bottom:2px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table .customer-gift-group button{min-height:25px;padding:3px 8px}
body.admin-mode .page-view[data-view="admin-fulfillment"] .cup-approved-table thead th{padding:5px 7px}
}

/* Pastel accordion headings use the same palette as delivery selectors. */
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--unset button{background:#f0edf3;color:#6b6273;border-left:3px solid #d6cedf}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--unset b{background:#ffffff8c;color:#6b6273}
body.admin-mode [data-view="admin-fulfillment"] .customer-gift-filters [data-customer-gift-filter="unset"]{background:#f0edf3;color:#6b6273;border-color:#d6cedf}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--request button{background:#fff4d6;color:#8e631b;border-left:3px solid #e5c777}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--request b{background:#ffffff8c;color:#8e631b}
body.admin-mode [data-view="admin-fulfillment"] .customer-gift-filters [data-customer-gift-filter="request"]{background:#fff4d6;color:#8e631b;border-color:#e5c777}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--handed button{background:#eaf0ff;color:#375f9b;border-left:3px solid #abc0e6}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--handed b{background:#ffffff8c;color:#375f9b}
body.admin-mode [data-view="admin-fulfillment"] .customer-gift-filters [data-customer-gift-filter="handed"]{background:#eaf0ff;color:#375f9b;border-color:#abc0e6}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--transit button{background:#e6f5f7;color:#286d7b;border-left:3px solid #93c9d2}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--transit b{background:#ffffff8c;color:#286d7b}
body.admin-mode [data-view="admin-fulfillment"] .customer-gift-filters [data-customer-gift-filter="transit"]{background:#e6f5f7;color:#286d7b;border-color:#93c9d2}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--delivered button{background:#e7f4ec;color:#27734c;border-left:3px solid #9acdaf}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--delivered b{background:#ffffff8c;color:#27734c}
body.admin-mode [data-view="admin-fulfillment"] .customer-gift-filters [data-customer-gift-filter="delivered"]{background:#e7f4ec;color:#27734c;border-color:#9acdaf}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--cancelled button{background:#fbeaec;color:#a4434a;border-left:3px solid #e4b0b6}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group.cup-approved-group--cancelled b{background:#ffffff8c;color:#a4434a}
body.admin-mode [data-view="admin-fulfillment"] .customer-gift-filters [data-customer-gift-filter="cancelled"]{background:#fbeaec;color:#a4434a;border-color:#e4b0b6}
body.admin-mode [data-view="admin-fulfillment"] .cup-source-held-history>summary{background:#f0ebf8;color:#69527f;border-radius:6px}

/* Smaller type and vertical spacing for the requested desktop list density. */
@media(min-width:761px){
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table tr.cup-working-row>td{font-size:11px!important;line-height:1.15!important;padding:2px 6px!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-order-toggle,html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-order-toggle b,html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-person-cell>b{font-size:11px!important;line-height:1.15!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-order-toggle{min-height:18px!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-working-row small{font-size:10px!important;line-height:1.15!important;margin-top:1px!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-order-meta,html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-source-chip{font-size:9.5px!important;line-height:1.15!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .cup-stage-cell select.customer-gift-status{font-size:10.5px!important;min-height:24px!important;height:24px!important;padding-top:1px!important;padding-bottom:1px!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] table.cup-approved-table .customer-gift-group button{font-size:11px;min-height:25px;padding-block:3px}
}

/* Keep the staff workspace fluid even when a late theme rule caps its width. */
@media(min-width:761px){html body.admin-mode #app-main.workspace{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-inline:0!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div.cup-detail-address{grid-column:auto!important;min-width:0!important;max-width:100%!important;display:grid!important;grid-template-columns:104px minmax(0,1fr)!important}
html body.admin-mode #app-main [data-view="admin-fulfillment"] .cup-approved-table .cup-working-detail .cup-row-details>dl>div.cup-detail-address>dd{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;overflow:hidden!important}
}
