.home-pending-card[data-home-order-id]{position:relative;isolation:isolate;}
.home-pending-card.has-user-change::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;background:rgba(230,234,238,.6);}
.home-pending-card.has-user-change.user-change-add::after{background:rgba(255,170,99,.5);}
.home-user-change-notice{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 12px;border:1px solid #222;border-radius:999px;background:#222;color:#fff;font-size:11px;line-height:16px;cursor:pointer;box-sizing:border-box;}
.home-user-change-notice svg{width:15px;height:15px;flex-shrink:0;}
.user-change-add .home-user-change-notice{background:#222;border-color:#222;color:#fff;}
.home-user-change-notice strong{font-size:12px;white-space:nowrap;}.home-user-change-notice span{font-size:12px;white-space:nowrap;}.home-user-change-notice:hover{filter:brightness(.98);}
.home-change-open{width:100%;height:28px;padding:0 8px;border:1px solid #222;border-radius:7px;background:#222;color:#fff;font-size:11px;cursor:pointer;}
.home-intake-change-card .home-pending-actions{display:flex;}.home-intake-change-card .home-change-open{flex:1;}
.selection-change-review-mask{position:fixed;inset:0;z-index:16000;background:rgba(0,0,0,.38);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;}
.selection-change-review-popup{width:720px;max-width:100%;max-height:90vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;padding:20px;box-sizing:border-box;box-shadow:0 16px 50px rgba(0,0,0,.15);}
.selection-change-review-popup header{display:flex;align-items:center;justify-content:space-between;gap:12px;}.selection-change-review-popup h3{margin:0 0 6px;font-size:17px;}.selection-change-review-popup header span{font-size:11px;color:#888;overflow-wrap:anywhere;}.selection-change-review-popup header button{flex-shrink:0;width:30px;height:30px;background:#fff;border:1px solid #ddd;border-radius:50%;font-size:20px;color:#666;cursor:pointer;}
.selection-change-review-info{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 8px;padding:10px 12px;border-radius:8px;background:#f2f6fa;color:#456078;font-size:12px;}.selection-change-review-info span{font-size:11px;line-height:18px;}
.selection-change-review-list{min-height:0;overflow:auto;max-height:60vh;}.selection-change-review-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #eee;font-size:12px;}.selection-change-review-row img,.selection-change-no-photo{width:56px;height:75px;object-fit:cover;border-radius:7px;flex-shrink:0;}.selection-change-no-photo{display:flex;align-items:center;justify-content:center;background:#f6f6f6;font-size:10px;color:#aaa;}.selection-change-review-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;overflow-wrap:anywhere;}.selection-change-review-copy span,.selection-change-review-copy small{font-size:11px;color:#888;}.selection-change-review-quantity{display:flex;flex-direction:column;gap:8px;text-align:right;white-space:nowrap;}.selection-change-review-quantity span{color:#888;font-size:11px;}.selection-change-review-delta{min-width:48px;padding:5px 7px;text-align:center;border-radius:6px;background:#edf3f9;color:#456078;font-weight:700;}.addition .selection-change-review-delta{background:#fff0e4;color:#b66327;}
.selection-change-review-popup footer{display:flex;justify-content:flex-end;gap:10px;padding-top:16px;}.selection-change-review-popup footer button{min-width:88px;height:36px;padding:0 12px;border:1px solid #ccc;border-radius:8px;background:#fff;color:#222;font-size:12px;cursor:pointer;}.selection-change-review-popup footer button.primary{background:#222;color:#fff;border-color:#222;}.selection-change-review-popup button:disabled{opacity:.45;cursor:default;}
@media(max-width:480px){.selection-change-review-mask{padding:12px;}.selection-change-review-popup{padding:14px;}.selection-change-review-row{gap:8px;flex-wrap:wrap;}.selection-change-review-copy{flex-basis:calc(100% - 70px);}.selection-change-review-quantity{flex:1;text-align:left;flex-direction:row;margin-left:64px;}.selection-change-review-popup footer{gap:6px;}.selection-change-review-popup footer button{min-width:0;flex:1;}}

.selection-cancel-reason{width:100%;min-height:100px;box-sizing:border-box;padding:12px;border:1px solid #ddd;border-radius:8px;font:14px Arial,sans-serif;resize:vertical;}
.selection-cancel-panel{grid-column:1/-1;flex:0 0 100%;width:100%;box-sizing:border-box;margin-top:10px;padding:12px;border-radius:10px;background:#f7f5f2;max-height:30vh;overflow:auto;text-align:left;}
.selection-cancel-heading,.selection-cancel-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.selection-cancel-heading strong{font-size:13px;}.selection-cancel-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;}
#orderModal .selection-cancel-panel button{flex:none;width:auto;min-width:0;height:32px;padding:0 12px;border:1px solid #d8d8d8;border-radius:7px;background:#fff;color:#222;font-size:12px;cursor:pointer;}
#orderModal .selection-cancel-panel button[aria-pressed="true"],#orderModal .selection-cancel-panel button.primary{background:#222;border-color:#222;color:#fff;}
#orderModal .selection-cancel-panel button:disabled{opacity:.5;cursor:default;}
.selection-cancel-panel .selection-cancel-reason{min-height:64px;resize:none;font-size:13px;margin-bottom:10px;}.selection-cancel-reason[hidden]{display:none;}
.selection-cancel-footer span{font-size:11px;color:#888;}.selection-cancel-footer .primary{white-space:nowrap;}
.home-cancelled-slip{cursor:pointer;}.selection-cancelled-info{display:flex;flex-direction:column;gap:8px;margin:12px 0;font-size:13px;overflow-wrap:anywhere;}.selection-cancelled-info span{font-size:11px;color:#888;}
.selection-intake-reminder{position:fixed;inset:0;margin:auto;height:fit-content;z-index:135;box-sizing:border-box;width:640px;max-width:calc(100vw - 24px);max-height:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;padding:24px;border:1px solid #bcbcbc;border-radius:16px;background:#fff;box-shadow:0 12px 40px #0002;color:#222;font-family:inherit;}
.selection-todo-header{position:absolute;right:24px;top:22px;width:96px;display:flex;align-items:center;justify-content:flex-end;}
.selection-todo-header h3{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.selection-todo-header>div{display:flex;align-items:center;gap:8px;width:100%;}.selection-todo-header button{box-sizing:border-box;flex:1;min-width:0;height:30px;padding:0;border:1px solid #ddd;border-radius:8px;background:#fff;color:#555;font-family:inherit;font-size:12px;font-weight:400;cursor:pointer;}.selection-todo-header button[data-intake-later]{flex:0 0 30px;width:30px;padding:0;border-radius:50%;font-size:19px;}
.selection-todo-selection{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:0 0 22px;padding:0;border:0;}
.selection-intake-reminder-copy{min-width:0;display:flex;flex-direction:column;gap:9px;}.selection-intake-reminder-copy strong,.selection-dispatch-section>strong{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:0;font-size:17px;line-height:25px;font-weight:700;}.selection-intake-reminder-copy strong svg{width:19px;height:19px;flex:0 0 auto;margin-right:3px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}.selection-intake-reminder-copy strong b,.selection-dispatch-section>strong b{font-size:inherit;font-weight:inherit;}.selection-intake-reminder-copy small,.selection-dispatch-section>strong small{font-size:inherit;font-weight:inherit;color:inherit;}
.selection-intake-reminder-copy>span{font-size:13px;line-height:22px;color:#555;}
.selection-intake-reminder-actions{flex:0 0 96px;margin:42px 0 0;}.selection-intake-reminder-actions button{width:100%;height:32px;padding:0 14px;border:1px solid #222;border-radius:8px;background:#222;color:#fff;font-family:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer;}
.selection-dispatch-section{min-width:0;margin:0;padding:20px 0 0;border-top:1px solid #eee;font-size:13px;}.selection-dispatch-section p{margin:9px 0 14px;color:#555;line-height:22px;font-size:13px;}
.selection-dispatch-scroll{max-height:300px;overflow:auto;border:1px solid #ddd;border-radius:10px;background:#fff;}.selection-dispatch-section table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed;text-align:center;font-family:inherit;font-size:13px;font-weight:400;color:#333;}
.selection-dispatch-section th,.selection-dispatch-section td{padding:6px 8px;border-right:1px solid #eee;border-bottom:1px solid #eee;vertical-align:middle;line-height:1.35;font-weight:400;overflow-wrap:anywhere;}.selection-dispatch-section th:last-child,.selection-dispatch-section td.selection-dispatch-actions{border-right:0;}.selection-dispatch-section td.selection-dispatch-last{border-bottom:0;}.selection-dispatch-section tbody tr:last-child>td{border-bottom:0;}
.selection-dispatch-section th{padding:6px;font-size:13px;font-weight:600;background:#fafafa;color:#333;}.selection-dispatch-section th:nth-child(1){width:9%;}.selection-dispatch-section th:nth-child(2){width:14%;}.selection-dispatch-section th:nth-child(3){width:24%;}.selection-dispatch-section th:nth-child(4){width:6%;}.selection-dispatch-section th:nth-child(5){width:10%;}.selection-dispatch-section th:nth-child(6){width:13%;}.selection-dispatch-section th:nth-child(7){width:24%;}
.selection-dispatch-section td:nth-child(2)>span{display:block;max-height:80px;overflow:auto;overflow-wrap:anywhere;}.selection-dispatch-section td:nth-child(2)>span+br{display:none;}.selection-dispatch-section td strong{display:block;margin-top:3px;font-size:14px;line-height:1.35;font-weight:600;}.selection-dispatch-section td:last-child{width:auto;}.selection-dispatch-section button{max-width:100%;padding:6px 8px;border:1px solid #222;border-radius:8px;background:#222;color:#fff;font-family:inherit;font-size:12px;font-weight:500;line-height:1.5;cursor:pointer;white-space:normal;}
.selection-dispatch-section td small{display:block;color:#555;font-size:11px;line-height:1.35;}.selection-dispatch-section .selection-todo-empty{padding:22px 12px;text-align:center;color:#555;font-size:13px;}.selection-intake-reminder button:disabled{opacity:.4;cursor:default;}
.selection-todo-footer{margin-top:14px;padding:0;border:0;color:#555;background:none;font-size:12px;line-height:18px;text-align:right;}
@media(max-width:480px){.selection-intake-reminder{padding:20px 18px;}.selection-todo-header{top:19px;right:18px;width:88px;}.selection-todo-selection{gap:14px;margin-bottom:18px;}.selection-intake-reminder-copy strong,.selection-dispatch-section>strong{font-size:15px;line-height:24px;}.selection-intake-reminder-copy strong svg{width:17px;height:17px;}.selection-intake-reminder-copy>span,.selection-dispatch-section p{font-size:12px;line-height:20px;}.selection-intake-reminder-actions{flex-basis:88px;margin-top:42px;}.selection-dispatch-section{padding-top:18px;}.selection-dispatch-section th,.selection-dispatch-section td{padding:6px 5px;font-size:11px;}.selection-dispatch-section button{padding:6px;font-size:11px;}}
#selectionTodoEntry{position:fixed;z-index:95;width:54px;height:54px;border:1.5px solid #222;border-radius:50%;background:#222;color:#fff;font:800 13px "Inter Tight","Noto Sans SC",sans-serif;cursor:pointer;box-shadow:0 6px 16px #0002}
#selectionTodoEntry[hidden]{display:none}#selectionTodoEntry:disabled{opacity:.65;cursor:wait}#selectionTodoEntry:focus-visible{outline:2px solid #222;outline-offset:3px}
#selectionTodoEntry .selection-todo-badge{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 3px;border:1.5px solid #222;border-radius:999px;background:#fff;color:#222;font-family:inherit;font-size:11px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;}
#selectionTodoEntry .selection-todo-badge[hidden]{display:none;}

.selection-dispatch-section table{min-width:580px;font-size:13px;}.selection-dispatch-section td{padding:6px;}.selection-dispatch-section td strong{margin-top:0;font-size:13px;white-space:nowrap;}.selection-dispatch-section .selection-dispatch-price{white-space:nowrap;}.selection-dispatch-section .selection-dispatch-goods{text-align:left;}.selection-dispatch-section button{font-size:11px;}

.selection-dispatch-order-ids>span{display:block;white-space:nowrap;}.selection-dispatch-item-list{display:block;}.selection-dispatch-item-line{height:32px;display:flex;align-items:center;justify-content:center;line-height:1.25;box-sizing:border-box;}.selection-dispatch-goods .selection-dispatch-item-line{justify-content:flex-start;}.selection-dispatch-item-line>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}.selection-dispatch-actions>div{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;}.selection-dispatch-section td.selection-dispatch-actions{border-right:0;}

/* Fixed customer rows; order detail scrolls independently. */
.selection-intake-reminder{width:760px;}
.selection-dispatch-section>strong small{font-size:12px;font-weight:500;color:#555;border:1px solid #e5e5e5;border-radius:5px;padding:1px 5px;margin-left:3px;line-height:18px;}
.selection-dispatch-scroll{max-height:266px;}
.selection-dispatch-section th{position:sticky;top:0;z-index:1;height:34px;}
.selection-dispatch-section th:nth-child(1){width:8%;}.selection-dispatch-section th:nth-child(2){width:16%;}.selection-dispatch-section th:nth-child(3){width:24%;}.selection-dispatch-section th:nth-child(4){width:7%;}.selection-dispatch-section th:nth-child(5){width:12%;}.selection-dispatch-section th:nth-child(6){width:14%;}.selection-dispatch-section th:nth-child(7){width:19%;}
.selection-dispatch-customer>td{height:58px;box-sizing:border-box;white-space:nowrap;overflow:hidden;}
.selection-dispatch-summary-line{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:18px;}
.selection-dispatch-customer .selection-dispatch-price{white-space:normal;}
.selection-dispatch-customer .selection-dispatch-actions button{white-space:nowrap;padding:8px 12px;font-size:12px;}
.selection-intake-reminder.has-customer-detail .selection-todo-header{position:static;width:auto;margin-bottom:8px;justify-content:flex-end;}
.selection-intake-reminder.has-customer-detail .selection-dispatch-section{border-top:0;padding-top:0;}
.selection-dispatch-detail-summary{display:flex;flex-wrap:wrap;gap:12px 24px;background:#fafafa;border:1px solid #eee;border-radius:8px;padding:12px;margin:14px 0;font-size:13px;}
.selection-dispatch-detail .selection-dispatch-scroll{height:266px;max-height:266px;overflow-y:scroll;}
.selection-dispatch-detail th:nth-child(1){width:15%;}.selection-dispatch-detail th:nth-child(2){width:25%;}.selection-dispatch-detail th:nth-child(3){width:7%;}.selection-dispatch-detail th:nth-child(4){width:12%;}.selection-dispatch-detail th:nth-child(5){width:15%;}.selection-dispatch-detail th:nth-child(6){width:26%;}
.selection-dispatch-detail tbody td{height:56px;}
.selection-dispatch-detail-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;color:#555;font-size:12px;}
.selection-dispatch-detail-bottom button{background:#fff;color:#555;border-color:#ddd;font-size:12px;}
@media(max-height:650px){.selection-dispatch-detail .selection-dispatch-scroll{height:180px;max-height:180px;}}
@media(max-width:480px){.selection-dispatch-section table{min-width:620px;}.selection-dispatch-customer>td{height:58px;}.selection-dispatch-detail-summary{gap:8px 12px;font-size:12px;}.selection-dispatch-detail-bottom{align-items:flex-start;}.selection-dispatch-customer .selection-dispatch-actions button{font-size:11px;padding:7px 9px;}}

.selection-intake-reminder.has-customer-detail .selection-todo-header>div{width:96px;}
.selection-dispatch-section th,.selection-dispatch-detail tbody td{box-sizing:border-box;}
.selection-dispatch-summary-line{overflow:hidden!important;overflow-wrap:normal!important;}
.selection-todo-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;}

.selection-dispatch-split-actions{display:flex;justify-content:center;gap:6px;flex-wrap:nowrap!important;}.selection-dispatch-customer .selection-dispatch-split-actions button{padding:6px 9px;font-size:13px;white-space:nowrap;}

/* Mini-program inquiries in the order message center. */
.selection-inquiry-section { margin-top:20px; padding-top:18px; border-top:1px solid #eee; font-family:inherit; }
.selection-inquiry-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.selection-inquiry-head strong { font-size:17px; line-height:25px; font-weight:700; }
.selection-inquiry-head small { margin-left:8px; color:#555; font-size:12px; font-weight:400; }
.selection-inquiry-head a { color:#555; font-size:12px; white-space:nowrap; }
.selection-inquiry-filters { display:flex; gap:6px; margin-top:8px; }
.selection-inquiry-filters button { min-height:30px; padding:0 10px; border:1px solid #222; border-radius:8px; background:#fff; color:#222; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.selection-inquiry-filters button[aria-pressed="true"] { background:#222; color:#fff; }
.selection-inquiry-empty { padding:12px; margin:8px 0 0; border:1px solid #e4e4e4; border-radius:8px; text-align:center; color:#555; font-size:13px; }
.selection-inquiry-list { list-style:none; margin:10px 0 0; padding:0; max-height:208px; overflow:auto; border:1px solid #ddd; border-radius:10px; background:#fff; }
.selection-inquiry-list li { display:grid; grid-template-columns:minmax(80px,1fr) minmax(0,2.5fr) minmax(104px,1fr) auto; align-items:center; gap:12px; min-height:54px; padding:8px 10px; font-size:13px; line-height:1.4; }
.selection-inquiry-list li + li { border-top:1px solid #eee; }
.selection-inquiry-list li > div { min-width:0; }
.selection-inquiry-list strong,.selection-inquiry-list small { display:block; overflow-wrap:anywhere; }
.selection-inquiry-list strong { font-weight:600; }
.selection-inquiry-list small { color:#555; font-size:12px; line-height:1.45; }
.selection-inquiry-list .selection-inquiry-entry strong { font-size:12px; }
.selection-inquiry-list button { height:32px; padding:0 12px; border:1px solid #222; border-radius:8px; background:#222; color:#fff; font:inherit; font-size:12px; font-weight:500; white-space:nowrap; cursor:pointer; }
.selection-inquiry-actions { display:flex; align-items:center; gap:6px; }
.selection-inquiry-list .selection-inquiry-handled { background:#fff; color:#222; }
.selection-inquiry-list .selection-inquiry-handled:disabled { border-color:#ddd; background:#f5f5f5; color:#666; cursor:default; }
.selection-inquiry-detail { position:fixed; inset:0; margin:auto; width:min(420px,calc(100vw - 24px)); height:fit-content; max-height:calc(100dvh - 24px); padding:20px; overflow:auto; overscroll-behavior:contain; border:1px solid #ddd; border-radius:16px; background:#fff; color:#222; font-family:inherit; box-shadow:0 12px 40px #00000014; }
.selection-inquiry-detail::backdrop { background:rgba(0,0,0,.38); }
.selection-inquiry-detail header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.selection-inquiry-detail h3 { margin:0; font-size:17px; font-weight:700; line-height:25px; }
.selection-inquiry-detail > strong { display:block; font-size:15px; font-weight:700; line-height:1.45; overflow-wrap:anywhere; }
.selection-inquiry-detail header button { flex:0 0 30px; height:30px; padding:0; border:1px solid #ddd; border-radius:50%; background:#fff; color:#555; font:inherit; font-size:19px; line-height:1; cursor:pointer; }
.selection-inquiry-detail p,.selection-inquiry-style-content { margin:6px 0 0; color:#666; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.selection-inquiry-style-content img { display:block; max-width:100%; max-height:min(280px,40dvh); margin:12px auto 0; border-radius:8px; object-fit:contain; }
@media(max-width:480px) {
  .selection-inquiry-head strong { font-size:15px; }
  .selection-inquiry-list li { grid-template-columns:minmax(0,1fr) auto; column-gap:8px; row-gap:4px; }
  .selection-inquiry-list li > div { grid-column:1; }
  .selection-inquiry-list .selection-inquiry-entry { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
  .selection-inquiry-list li > .selection-inquiry-actions { grid-column:2; grid-row:1 / span 3; flex-direction:column; align-items:stretch; }
  .selection-inquiry-list button { padding:0 8px; }
  .selection-inquiry-detail { padding:16px; }
}

#selectionIntakeBackdrop{position:fixed;inset:0;z-index:134;background:rgb(0 0 0 / 26%);pointer-events:none;}
#selectionIntakeReminder .selection-intake-reminder-copy>span,
#selectionIntakeReminder .selection-dispatch-section p,
#selectionIntakeReminder .selection-todo-empty,
#selectionIntakeReminder .selection-todo-footer,
#selectionIntakeReminder .selection-inquiry-empty{color:#333;}
#actionConfirmModal .action-confirm-modal{max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #bbb;background:#fff;}
#actionConfirmModal .action-confirm-text{color:#333;font-size:14px;}
