/* Measured MIND+ task/list geometry, 2026-11-07; only reception surfaces. */
#app.mind-reception{font:12px 'ＭＳ Ｐゴシック','MS PGothic','ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro',sans-serif;color:#111;background:#fff}
.mind-reception .app-shell{display:block}.mind-reception .body-shell{width:100%;min-width:0}.mind-reception .sidebar{display:none}.mind-reception .sidebar.open{display:flex;width:226px;box-shadow:4px 0 14px #0004}.mind-reception .mobile-menu{display:inline-flex}
.mind-reception .topbar{height:32px;min-height:32px;padding:3px 10px;gap:6px;position:relative;background:#efefef;border-bottom:1px solid #aaa;color:#111}.mind-reception .topbar .breadcrumb{font-size:12px;color:#222}.mind-reception .topbar select,.mind-reception .topbar input{height:24px;padding:1px 3px;border-radius:0;border-color:#aaa}.mind-reception .topbar .btn{height:24px;min-height:24px;padding:1px 7px;border-radius:1px;color:#111;font-weight:400}
.mind-reception .reception-main{padding:8px 10px;max-width:none}.mind-reception .btn{border:1px solid #999;border-radius:1px;min-height:25px;height:25px;padding:1px 8px;font-size:12px;font-weight:400;color:#111;background:linear-gradient(#fff,#e4e4e4);gap:3px}.mind-reception .btn.primary{background:#dbe8fb;border-color:#7091bd;color:#111}.mind-reception .btn.ghost{background:transparent;border-color:transparent}.mind-reception input,.mind-reception select{border-radius:0;padding:1px 3px;height:23px;border:1px solid #aaa;color:#111}
.mind-reception-title{height:25px;background:#191919;color:#fff;display:flex;align-items:center;justify-content:center;gap:18px}.mind-reception-title h1{font-size:14px;margin:0;font-weight:bold}.mind-reception-title>span{font-size:12px;font-weight:bold}.mind-reception-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:7px 0 5px}.mind-reception-toolbar .actions{gap:5px}.mind-reception-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}.mind-reception-meta>[data-reception-sync]{font-size:10px;color:#555}.mind-reception .legend{display:flex;font-size:11px;gap:0;align-items:center;color:#111}.mind-reception .legend>span{padding:3px 10px;line-height:16px;border:1px solid #aaa;border-right:0;border-radius:0}.mind-reception .legend>span:last-child{border-right:1px solid #aaa}
.booking-status.reserved,.mind-reception .reservation-block.reserved{background:#ffd700}.booking-status.confirmed,.mind-reception .reservation-block.confirmed{background:#dda0dd}.booking-status.prechecked,.mind-reception .reservation-block.prechecked{background:#b7e2ef}.booking-status.preparing,.mind-reception .reservation-block.preparing{background:#8fbc8f}.booking-status.active,.mind-reception .reservation-block.active{background:#6495ed}.booking-status.finished,.mind-reception .reservation-block.finished{background:#a9a9a9}.booking-status.cancelled{background:#eee;color:#777}.booking-status.break{background:#d2b48c}
.mind-reception .reception-sources{gap:6px;margin:4px 0}.mind-reception .reception-sources .bridge-task-notice,.mind-reception .reception-sources .mind-task-notice{padding:3px 6px;border-radius:0;font-size:11px;gap:5px;align-items:center}.mind-reception .reception-sources strong{font-size:11px}.mind-reception .reception-sources small{font-size:10px;margin:1px 0}.mind-reception .reception-sources .mind-reference-note{display:none}.mind-reception .reception-sources .btn{height:22px;min-height:22px;font-size:11px;padding:0 5px}.mind-reception .bridge-task-notice>div:first-child{gap:4px}.mind-reception .bridge-task-notice span{font-size:10px}.mind-reception .reception-controls{border:0;border-radius:0;padding:3px 0;gap:9px;margin:0 0 3px}.mind-reception .reception-controls>label{gap:4px;font-size:12px;color:#111}.mind-reception .reception-controls input[type=search]{width:125px}.mind-reception .reception-controls input[type=checkbox]{height:auto;margin:0}.mind-reception .timeline-guide{font-size:11px;color:#333;margin:0}.mind-reception .reception-panel{border:0;border-radius:0}.mind-reception .timeline-wrap{border:1px solid #999;min-height:120px;max-width:100%}.mind-reception .reception-timeline{width:calc(320px + var(--track-width));min-width:calc(320px + var(--track-width));color:#111}.mind-reception .reception-timeline .timeline-head,.mind-reception .reception-timeline .timeline-row{grid-template-columns:320px var(--track-width)}
.mind-reception .timeline-head{height:23px;background:#96baef}.mind-reception .timeline-head>div:first-child{padding:0;background:#96baef;color:#111;font-size:12px}.mind-fixed-head{display:grid;grid-template-columns:195px 125px}.mind-fixed-head>span{display:flex;align-items:center;justify-content:center;border-right:1px solid #999;font-weight:bold}.mind-reception .timehours{font-size:12px;color:#111}.mind-reception .timehours span{padding:3px 2px;border-left:1px solid #999;text-align:center;font-weight:bold;height:23px}
.mind-reception .reception-timeline .timeline-row{border-top:1px solid #999}.mind-reception .cast-cell{padding:0;gap:0;align-items:stretch;display:grid;grid-template-columns:195px 125px;border-right:1px solid #999;background:#f7f7f7;overflow:hidden}.mind-cast-name{padding:2px 3px;min-width:0;border-right:1px solid #999}.mind-cast-name strong{display:block;font-size:12px!important;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mind-reception .cast-cell small{font-size:11px;color:#882344;line-height:17px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mind-reception .cast-cell .btn{font-size:10px;min-height:17px;height:17px;padding:0 3px;color:#23476f;text-decoration:underline;border:0;vertical-align:baseline}.mind-shift-cell{height:var(--row-height);text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;background:#f5eeee;line-height:16px;overflow:hidden}.mind-shift-cell.working{background:#e0ffff}.mind-reception .cast-cell .mind-shift-cell .btn{color:#111;text-decoration:none;font-size:12px}
.mind-reception .time-track{background-color:#fff;background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--hour-width)/6 - 1px),#bbb calc(var(--hour-width)/6 - 1px),#bbb calc(var(--hour-width)/6))}.mind-reception .shift-bg{background:#f5edf1}.mind-reception .reception-timeline .reservation-block,.mind-reception .reception-timeline .has-source .reservation-block,.mind-reception .reception-timeline .has-mind .reservation-block,.mind-reception .cast-break-block{top:0;bottom:auto;height:calc(var(--row-height) - 1px);border:0;border-right:1px solid #999;border-radius:0;padding:1px 2px;color:#111;font-size:12px;line-height:13px;white-space:normal;overflow:hidden}.mind-reception .reservation-block strong,.mind-reception .reservation-block small,.mind-reception .cast-break-block strong,.mind-reception .cast-break-block small{font:12px/13px 'MS PGothic','Hiragino Kaku Gothic Pro',sans-serif;margin:0;display:block;white-space:nowrap}.mind-reception .cast-break-block{background:#d2b48c}.mind-reception .slot-preview{height:var(--row-height);bottom:auto}.mind-reception .source-reservation,.mind-reception .mind-source-block{border-radius:0;padding:3px;line-height:15px}.mind-reception .source-reservation strong,.mind-reception .mind-source-block strong{font-size:11px}.mind-reception .source-reservation small,.mind-reception .mind-source-block small{font-size:11px;margin:1px 0}.mind-reception .timeline-hint{background:#f3f3f3;color:#555;border-radius:0;font-size:11px;padding:3px 6px}.mind-reception .toolbar{padding:4px 0}.mind-reception .toolbar input{min-width:230px}.mind-reception .alert{padding:5px 8px;margin-bottom:5px;border-radius:0}
.mind-booking-list{width:1121px;min-width:1121px;table-layout:fixed;border-collapse:collapse;font:12px/1.35 'MS PGothic','Hiragino Kaku Gothic Pro',sans-serif;color:#111}.mind-booking-list th,.mind-booking-list td{padding:2px 3px;border:1px solid #999;vertical-align:middle;text-align:center;overflow-wrap:anywhere}.mind-booking-list thead th{background:#96baef;height:23px;font-weight:400}.mind-booking-list .booking-person{height:33px}.mind-booking-list .booking-place{height:28px}.mind-booking-list .alternate{background:#eef5ff}.mind-booking-list small{display:block;font-size:10px;line-height:13px}.mind-booking-list .amount{white-space:nowrap;text-align:right}.mind-booking-list .booking-status{display:inline-block;max-width:100%;width:100%;font:12px 'MS PGothic','Hiragino Kaku Gothic Pro',sans-serif;border-radius:0;padding:1px 2px;height:21px}.mind-booking-list select.booking-status{cursor:pointer;border:1px solid #999}.mind-booking-list .btn{padding:1px 3px;font-size:11px;min-height:22px;height:22px}.mind-booking-list .booking-memo{text-align:left}.mind-booking-list .booking-memo>div{max-height:65px;overflow:auto;white-space:pre-wrap;line-height:14px}.mind-booking-list .booking-person small{color:#333}.mind-reception .mind-review-list .panel-head{padding:7px;border-bottom:1px solid #999}.mind-reception .mind-review-list .data-table th{background:#96baef;color:#111;padding:3px;font-size:12px}.mind-reception .mind-review-list .data-table td{padding:3px;border:1px solid #bbb;line-height:1.3;color:#111}
@media(max-width:700px){.mind-reception .topbar{height:auto;min-height:32px;flex-wrap:wrap}.mind-reception .topbar .breadcrumb{display:none}.mind-reception .topbar select{max-width:155px}.mind-reception .topbar .logout{margin-left:auto}.mind-reception-title{justify-content:flex-start;padding:0 6px;gap:8px}.mind-reception-title>span{font-size:11px;overflow:hidden;white-space:nowrap}.mind-reception-title h1{font-size:12px;white-space:nowrap}.mind-reception-toolbar,.mind-reception-meta{flex-wrap:wrap}.mind-reception .legend>span{padding:1px 5px;font-size:10px}.mind-reception .reception-sources{grid-template-columns:1fr}.mind-reception .reception-main{padding:5px}.mind-reception .reception-controls{gap:5px}.mind-reception .timeline-guide{flex-basis:100%}.mind-reception .reception-controls>label{font-size:11px}}
.mind-reception .mind-shift-actions{display:flex;align-items:center;justify-content:center;gap:1px;width:100%;min-width:0}
.mind-reception .cast-cell .mind-shift-actions .btn{font-size:10px;padding:0 2px;white-space:nowrap}
.mind-reception .cast-cell .mind-shift-actions .source-toggle{background:#e6e9ee;border:1px solid #9aa5b3;color:#243a57;line-height:15px;text-decoration:none;min-width:0;overflow:hidden;text-overflow:ellipsis}
.mind-reception .cast-cell .mind-shift-actions .source-toggle.has-difference{background:#fff1c7;color:#743e00;border-color:#ac822c}
.mind-reception .source-toggle:focus-visible{outline:2px solid #2458a0;outline-offset:1px}
.mind-reception .source-footprint{position:absolute;top:0;height:calc(var(--row-height) - 1px);z-index:2;overflow:hidden;white-space:nowrap;border:1px dashed #8793a5;border-radius:0;background:repeating-linear-gradient(135deg,#edf0f5 0,#edf0f5 5px,#dfe5ec 5px,#dfe5ec 6px);color:#23344b;font-size:11px;line-height:12px;padding:0 2px;text-align:left;cursor:pointer}
.mind-reception .source-footprint>strong,.mind-reception .source-footprint>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px/12px 'MS PGothic','Hiragino Kaku Gothic Pro',sans-serif;margin:0}
.mind-reception .source-footprint .timeline-place-label{font-weight:bold;color:#111}
.mind-reception .source-origin{font-size:9px;font-weight:normal;color:#51677a}
.mind-reception .source-footprint.source-difference{border-color:#a77b29;background:#fff5d9}
.mind-reception .source-footprint.source-cancelled{background:#ededed;color:#666}
.mind-reception .source-footprint.source-cancelled>strong{text-decoration:line-through}
.mind-reception .source-footprint.source-finished{background:#e1e5e9}
.mind-reception .source-footprint:focus-visible{outline:2px solid #2458a0;outline-offset:-2px;z-index:7}

/* Keep hotels legible in 43px rows; full saved places remain available without opening tickets. */
.mind-reception .reservation-block>strong,.mind-reception .reservation-block>small,
.mind-reception .source-reservation>strong,.mind-reception .source-reservation>small,
.mind-reception .mind-source-block>strong,.mind-reception .mind-source-block>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mind-reception .reservation-block .timeline-place-label,
.mind-reception .source-reservation .timeline-place-label,
.mind-reception .mind-source-block .timeline-place-label{font-size:11px;font-weight:bold;line-height:13px;color:#111}
.mind-reception .source-reservation,.mind-reception .mind-source-block{padding:1px 2px}
.mind-reception .source-reservation>strong,.mind-reception .source-reservation>small,
.mind-reception .mind-source-block>strong,.mind-reception .mind-source-block>small{display:block;font-size:11px;line-height:12px;margin:0}
.mind-reception [data-place-detail]:is(:hover,:focus-visible)::after{content:attr(data-place-detail);position:fixed;left:12px;bottom:12px;z-index:120;max-width:min(620px,calc(100vw - 24px));padding:8px 12px;border:1px solid #60738a;border-radius:3px;background:#fff;color:#111;box-shadow:0 2px 10px #0003;font:13px/1.5 sans-serif;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none}

.mind-reception .mind-source-block{height:43px}
.cast-profile-link{color:#2458a0;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.cast-profile-link:focus-visible{outline:2px solid #2458a0;outline-offset:2px}
.mind-reception .mind-cast-name .cast-profile-name{color:#174e8a;font:inherit}

/* Selected-ticket dispatch keeps the timetable visible while editing the route. */
.dispatch-selection-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0;padding:7px 9px;border:1px solid #b6c6d5;background:#f2f7fb;font-size:12px}.dispatch-selection-toolbar small{color:#506576}.timeline-dispatch-check{position:absolute;top:4px;margin-left:3px;z-index:8;display:grid;place-items:center;width:18px;height:19px;background:#fff;border-radius:3px;border:1px solid #4c6f8d;cursor:pointer}.timeline-dispatch-check input,.list-dispatch-check input{margin:0;width:14px;height:14px;accent-color:#235d8a}.list-dispatch-check{display:block;margin:0 0 4px}.reception-timeline .reservation-block.has-dispatch-selector{padding-left:25px}.reception-timeline .reservation-block.dispatch-selected{outline:3px solid #235d8a;outline-offset:-2px}.sd-scope{background:#eaf3fa;padding:10px;border-left:4px solid #326d9a}.sd-driver-option{display:flex;align-items:flex-start;gap:8px;margin:10px 0;font-size:12px}.sd-driver-option input{width:17px;height:17px;flex:none}.sd-leg{margin:13px 0;border-top:1px solid #d7e1e8;padding-top:10px}.sd-leg>.check-label{font-weight:700}.sd-leg-fields{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:10px}.sd-booking label,.sd-waypoints label{display:flex;flex-direction:column;font-size:12px;gap:4px;margin:8px 0}.sd-booking label.check-label{flex-direction:row;align-items:center}.sd-booking .check-label input{width:16px;height:16px}.sd-waypoints{padding-left:22px}.sd-waypoints>li{padding:8px 10px;background:#f7f8fa;border:1px solid #d7e1e8;margin:8px 0}.sd-waypoints textarea{min-height:54px}.sd-route-stops{padding-left:23px}.sd-route-stops>li{margin:12px 0}.sd-stop-waypoint{background:#fff7e4;padding:7px}.sd-stop-instruction{font-weight:600;color:#5c4b27;margin:5px 0}.sd-booking legend{font-size:13px;font-weight:700}.sd-booking details{font-size:12px}.sd-booking .actions{gap:5px}.sd-booking input,.sd-booking textarea{min-width:0;width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:520px){.sd-leg-fields{grid-template-columns:1fr}.dispatch-selection-toolbar{gap:5px}.dispatch-selection-toolbar small{width:100%}}
.sd-route-stops .sd-stop-source{display:inline-block;margin-right:7px;padding:2px 5px;font-size:11px;font-weight:700;border:1px solid #8aa1b5;background:#e9f2f9}.sd-route-stops .sd-stop-fixed{border-left:3px solid #78828b;padding:7px;background:#f0f1f2}.sd-route-stops .sd-stop-fixed .sd-stop-source{background:#e5e6e8;border-color:#959ba0}.sd-route-stops .sd-occupancy{display:block;margin-top:4px;font-size:12px;font-weight:700;color:#235d8a}.sd-route-stops .sd-occupancy.text-danger{color:#a12d2d}.sd-driver-start{padding:8px 10px;margin:5px 0 12px 24px;border-left:3px solid #b6c6d5;background:#f7f9fb}.sd-driver-start label{display:flex;flex-direction:column;gap:4px;font-size:12px;margin:7px 0}.sd-driver-start input,.sd-driver-start select{width:100%;min-width:0}

/* MIND task-table shift palette, observed 2026-11-09. */
.shift-state-requested{--shift-color:#ccccff}.shift-state-scheduled{--shift-color:#ccffea}.shift-state-confirmed{--shift-color:#e0ffff}.shift-state-waiting{--shift-color:#e0ffff}.shift-state-available{--shift-color:#fff8dc}.shift-state-closed{--shift-color:#ffe4e1}.shift-state-off{--shift-color:#dfdfdf}.shift-state-unknown{--shift-color:#f5eeee}
.mind-reception .mind-shift-cell,.mind-reception .mind-shift-cell.working{background:var(--shift-color,#f5eeee)}
.mind-reception .shift-bg{background:var(--shift-color,#f5edf1);opacity:.65}
.timeline-roster-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:3px 0;font-size:11px}.shift-state-legend{display:flex;gap:3px;flex-wrap:wrap}.shift-state-legend>span,.tag[class*="shift-state-"]{background:var(--shift-color);padding:2px 5px;color:#222;border:1px solid #aaa;border-radius:2px}.text-danger{color:#983020}.mind-shift-actions{display:flex;align-items:center;justify-content:center;gap:2px;max-width:100%}.mind-shift-actions small{font-size:10px!important}.mind-reception .cast-cell .shift-memo-button{background:#fff8d7}.mind-reception .shift-state-off .mind-cast-name{background:#ececec}.mind-reception .timeline-row:hover .mind-cast-name{background:#ffdead}

.task-display-notice{padding:4px 7px;background:#fff7df;font-size:11px;border:1px solid #d9c794}.task-display-notice p{margin:2px 0}

.mind-reception .cast-break-block.annotation-memo{bottom:auto;min-height:32px;padding:0 2px;z-index:3;background:#fff0a8;border:1px dashed #a88716;font-size:11px}
.mind-reception .cast-break-block .timeline-memo-time{display:block;white-space:nowrap;font-size:10px;line-height:13px;overflow:hidden;text-overflow:ellipsis}
.mind-reception .cast-break-block .timeline-memo-content{display:block;white-space:nowrap;font-size:12px;font-weight:bold;line-height:14px;overflow:hidden;text-overflow:ellipsis}
.mind-reception .task-actual-span{position:absolute;bottom:0;height:3px;background:currentColor;pointer-events:none;opacity:.65}
.mind-reception .source-reservation,.mind-reception .mind-source-block,.mind-reception .cast-break-block{min-width:0}

/* Daily reception labels stay beside the cast name without adding row height. */
.mind-reception .mind-cast-title{display:flex;align-items:center;gap:2px;min-width:0;height:19px}
.mind-reception .mind-cast-title strong{flex:1;min-width:0}
.mind-reception .cast-day-status{flex:0 0 48px;width:48px;min-width:48px;height:19px;min-height:19px;padding:0 1px;border:1px solid #888;border-radius:2px;font:11px/17px sans-serif;color:#20242b;background:#fff}
.mind-reception .cast-day-status.status-complete{background:#ffe4e1}.mind-reception .cast-day-status.status-reception{background:#fff8dc}.mind-reception .cast-day-status.status-home{background:#e4e7eb}
.mind-reception .cast-day-status:focus-visible{outline:2px solid #285dac;outline-offset:1px}

/* Keep two-line rows while widening the cast name and adding daily room/color controls. */
.mind-reception .mind-cast-name>small{display:flex;align-items:center;gap:2px;height:18px}
.mind-reception .cast-cell .cast-waiting-room{width:48px;min-width:0;flex:0 0 48px;height:17px;padding:0 2px;font-size:11px;color:#111;background:#fff;border:1px solid #aaa}
.mind-reception .mind-shift-cell{display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:19px 17px;align-content:center;gap:1px;padding:1px 2px;color:var(--shift-text,#111)}
.mind-reception .mind-shift-period{min-width:0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mind-reception .cast-shift-color{width:48px;min-width:0;height:19px;padding:0;font-size:10px;color:var(--shift-text,#111);background:var(--shift-color,#fff);border:1px solid #888}
.mind-reception .mind-shift-actions{grid-column:1/-1}
.mind-reception .cast-cell .mind-shift-actions .btn,.mind-reception .cast-cell .mind-shift-actions small{color:var(--shift-text,#111)}
.mind-reception .cast-cell .mind-shift-actions .source-toggle{color:#243a57}
.mind-reception .shift-bg{opacity:.85;box-shadow:inset 0 0 0 1px #0002;pointer-events:none}

.mind-reception .reception-timeline .reservation-block.ticket-stage-colored,.mind-reception .booking-status.ticket-stage-colored{background:var(--ticket-color,#f5edcf);color:var(--ticket-text,#111)}
.mind-reception .reservation-block .ticket-stage-label{font-weight:bold}
.mind-reception .legend .ticket-stage-colored{white-space:nowrap}
.task-colors-grid{display:grid;gap:6px}.task-color-edit-row,.task-color-heading{display:grid;grid-template-columns:32px minmax(100px,1fr) 150px;align-items:center;gap:8px}.task-color-edit-row>input{width:100%;min-width:0}.task-color-controls{display:flex;gap:5px;align-items:center}.task-color-controls input[type=color]{width:37px;height:30px;padding:1px;flex:none}.task-color-controls input:not([type=color]){width:108px;min-width:0;font-family:monospace}.task-color-heading{font-size:12px;font-weight:bold}
/* Small task-table actions keep neighboring bookings visible. */
#ticket-actions-popover,#source-ticket-actions-popover{position:fixed;z-index:70;top:95px;right:18px;width:330px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 115px);overflow:auto;padding:12px;background:#fffdf7;border:1px solid #8e9b94;border-radius:5px;box-shadow:0 8px 32px #172b3250;font-size:13px}
#ticket-actions-popover[hidden],#source-ticket-actions-popover[hidden]{display:none}
.ticket-actions-heading,.ticket-actions-tabs{display:flex;align-items:center;gap:6px;justify-content:space-between}
.ticket-actions-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ticket-actions-summary{display:block;margin:4px 0 10px;color:#4b5854}
.ticket-actions-tabs .btn{flex:1}
.ticket-actions-section{display:grid;gap:8px;margin-top:12px}
.ticket-actions-section label{font-weight:700}.ticket-actions-section select,.ticket-actions-section textarea{width:100%;font:inherit;padding:7px;border:1px solid #89998f;border-radius:3px}.ticket-actions-section textarea{resize:vertical}
.ticket-actions-signal{display:grid;gap:6px;margin-top:10px}.ticket-actions-signal p{margin:0;padding:6px 8px;font-size:12px;line-height:1.5}.ticket-actions-copied{background:#eef6f1;color:#234b3a}
.ticket-actions-section small{color:#55665c;font-size:11px}.ticket-actions-error,.ticket-actions-discard{padding:8px;background:#fff0e8;color:#8a321f}.ticket-actions-discard .btn{margin-right:5px}
/* A receipt-only browser window, using the same editor and save safeguards. */
.standalone-ticket-home{padding:24px;font-size:14px}.standalone-ticket-home h1{font-size:20px}.standalone-ticket-home .btn{margin-right:8px}
#app.standalone-ticket~#dialog{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important}
#app.standalone-ticket~#dialog .dialog-head{cursor:default}
#app.standalone-ticket~#dialog [data-action="ticket-window-minimize"],#app.standalone-ticket~#dialog [data-action="ticket-window-size"]{display:none}

/* Dense receipt workspace: MIND's date/place band and three working columns.
   ID-scoped rules intentionally override the later generic floating styles. */
#dialog.ticket-dialog .dialog-body>.form-grid{gap:5px}
#dialog.ticket-dialog .ticket-group>header{min-height:22px;padding:2px 5px}
#dialog.ticket-dialog .ticket-group>header h3{line-height:17px}
#dialog.ticket-dialog .ticket-group>.form-grid{padding:4px;gap:4px}
#dialog.ticket-dialog .ticket-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 8px;padding:4px 6px;margin-bottom:4px}
#dialog.ticket-dialog .ticket-summary>[data-reception-sync]{grid-column:1/-1;margin:0;line-height:12px}
#dialog.ticket-dialog .ticket-summary>.booking-status{align-self:start;padding:2px 6px;line-height:18px;font-size:11px;font-weight:bold;background:var(--ticket-color,#f5edcf);color:var(--ticket-text,#111)}
#dialog.ticket-dialog .ticket-summary>.ticket-time{gap:1px 9px}
#dialog.ticket-dialog .ticket-summary>.ticket-time>span{font-size:10px}
#dialog.ticket-dialog .ticket-summary>.reception-notes,#dialog.ticket-dialog .ticket-summary>.small-note,#dialog.ticket-dialog .ticket-summary>.ticket-alert,#dialog.ticket-dialog .ticket-summary>.ticket-ok{grid-column:1/-1;margin:0}
#dialog.ticket-dialog .ticket-summary>.reception-notes[open]{max-height:62px}
#dialog.ticket-dialog .ticket-summary>.ticket-alert{max-height:72px;overflow:auto;overscroll-behavior:contain;line-height:15px}
#dialog.ticket-dialog .ticket-summary>.ticket-alert.error{border-left:3px solid #a52e24}
#dialog.ticket-dialog .dialog-body>.alert{max-height:76px;overflow:auto;overscroll-behavior:contain}
#dialog.ticket-dialog .ticket-summary>.small-note,#dialog.ticket-dialog .ticket-summary>.ticket-ok{font-size:10px;line-height:13px}
#dialog.ticket-dialog .mind-ticket-basics>.form-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:4px 6px}
#dialog.ticket-dialog .mind-ticket-basics .field:not(details){grid-column:span 2;grid-template-columns:40px minmax(0,1fr);align-items:center}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-storeId),#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-date){grid-column:span 3}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-ticketStage),#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-channelId){grid-column:span 4}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-ticketStage){grid-template-columns:89px minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-channelId){grid-template-columns:60px minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-locationId),#dialog.ticket-dialog .mind-ticket-basics .field.full:has(#f-destination){grid-column:span 5}
#dialog.ticket-dialog .mind-ticket-basics .field.full:has(#f-destination){grid-template-columns:60px minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-date){grid-template-columns:32px minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-duration),#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-room){grid-template-columns:50px minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-basics .field>small{grid-column:1/-1;font-size:9px;line-height:12px}
#dialog.ticket-dialog .mind-ticket-basics .ticket-time-adjust{grid-column:span 2;align-self:start;justify-content:flex-end;gap:2px;padding-top:1px}
#dialog.ticket-dialog .mind-ticket-basics .ticket-time-adjust>span{display:none}
#dialog.ticket-dialog .mind-ticket-columns{display:grid;grid-template-columns:minmax(0,300fr) minmax(0,240fr) minmax(0,300fr);grid-template-areas:"customer cast payment" "context context additions";gap:5px;align-items:start}
#dialog.ticket-dialog .mind-ticket-columns>#section-ticket-customer{grid-area:customer}
#dialog.ticket-dialog .mind-ticket-columns>#section-ticket-cast{grid-area:cast}
#dialog.ticket-dialog .mind-ticket-columns>#section-ticket-payment{grid-area:payment}
#dialog.ticket-dialog .mind-ticket-columns>#section-ticket-context{grid-area:context}
#dialog.ticket-dialog .mind-ticket-columns>#section-ticket-additions{grid-area:additions}
#dialog.ticket-dialog .mind-ticket-columns .ticket-group>.form-grid{grid-template-columns:minmax(0,1fr)}
#dialog.ticket-dialog #section-ticket-customer .field:has(#ticket-customer-search){grid-template-columns:60px minmax(0,1fr)}
#dialog.ticket-dialog #section-ticket-customer .field:has(#ticket-customer-search)>small{grid-column:1/-1;font-size:9px;line-height:12px}
#dialog.ticket-dialog #section-ticket-customer .ticket-new-customer{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:3px}
#dialog.ticket-dialog #section-ticket-customer .ticket-new-customer>.btn{min-height:23px;padding:1px 5px;font-size:11px;white-space:nowrap}
#dialog.ticket-dialog #section-ticket-customer .ticket-new-customer>small{flex-basis:100%;font-size:9px;line-height:12px}
#dialog.ticket-dialog #ticket-customer-count{font-size:9px;line-height:12px}
#dialog.ticket-dialog #ticket-customer-contact{padding:2px 4px;max-height:80px;font-size:11px;line-height:15px}
#dialog.ticket-dialog #ticket-customer-contact dl>div{grid-template-columns:55px minmax(0,1fr)}
#dialog.ticket-dialog #section-ticket-payment .field:not(details){grid-template-columns:105px minmax(0,1fr)}
#dialog.ticket-dialog #section-ticket-payment .field:has(#f-pointUsed){padding-top:3px;border-top:1px solid #ccd3dd;grid-template-columns:minmax(0,1fr) 65px}
#dialog.ticket-dialog #section-ticket-payment .field:has(#f-pointUsed)>small{grid-column:1/-1;font-size:9px;line-height:12px}
#dialog.ticket-dialog #section-ticket-payment input[type=number]{font-variant-numeric:tabular-nums;text-align:right}
#dialog.ticket-dialog .mind-ticket-additions>.form-grid{grid-template-columns:1fr}
#dialog.ticket-dialog .mind-ticket-additions .ticket-choice.field.full{grid-column:1;margin:0}
#dialog.ticket-dialog .ticket-choice>summary{padding:3px 5px;line-height:15px}
#dialog.ticket-dialog .ticket-choice-summary{margin:1px 0;font-size:10px;line-height:14px}
#dialog.ticket-dialog .ticket-choice>summary>small{font-size:9px;line-height:12px}
#dialog.ticket-dialog .ticket-choice-list{max-height:170px}
#dialog.ticket-dialog #section-ticket-context{max-height:275px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#dialog.ticket-dialog #ticket-context-content{display:flex;flex-direction:column}
#dialog.ticket-dialog #ticket-context-content>.ticket-context-ng{order:0;position:sticky;top:0;z-index:3;padding:4px 6px}
#dialog.ticket-dialog #ticket-context-content>.ticket-context-caution,#dialog.ticket-dialog #ticket-context-content>.ticket-context-error{order:0}
#dialog.ticket-dialog #ticket-context-content>.ticket-context-columns{order:1;grid-template-columns:minmax(0,300fr) minmax(0,240fr)}
#dialog.ticket-dialog #ticket-context-content>.ticket-heaven-points{order:2;border-top:1px solid #b5c0cc}
#dialog.ticket-dialog .ticket-context-ng>small{font-size:9px;line-height:12px}
#dialog.ticket-dialog .ticket-context header{padding:3px 4px;gap:3px}
#dialog.ticket-dialog .ticket-context h3{font-size:11px;line-height:15px}
#dialog.ticket-dialog .ticket-context-note{padding:3px 4px;font-size:9px;line-height:12px}
#dialog.ticket-dialog .ticket-history-scroll{max-height:126px}
#dialog.ticket-dialog .ticket-history-scroll th,#dialog.ticket-dialog .ticket-history-scroll td{padding:2px 3px}
#dialog.ticket-dialog .ticket-history-scroll strong,#dialog.ticket-dialog .ticket-history-scroll small{line-height:13px}
#dialog.ticket-dialog .ticket-cast-notes{max-height:150px}
#dialog.ticket-dialog .ticket-cast-notes article{padding:4px}
#dialog.ticket-dialog .ticket-cast-notes h4{margin:0 0 2px;font-size:10px}
#dialog.ticket-dialog .ticket-cast-notes p{font-size:11px;line-height:15px}
#dialog.ticket-dialog .ticket-point-account{padding:3px 4px}
#dialog.ticket-dialog .ticket-context-message,#dialog.ticket-dialog .ticket-context-error,#dialog.ticket-dialog .ticket-context-caution{padding:4px;line-height:14px}
#dialog.ticket-dialog .mind-ticket-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;align-items:start}
#dialog.ticket-dialog .mind-ticket-secondary>.ticket-group.field.full{grid-column:auto}
#dialog.ticket-dialog .mind-ticket-secondary .ticket-group>.form-grid{grid-template-columns:minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-secondary .mind-ticket-dispatch.field.full{grid-column:1;justify-content:flex-start}
#dialog.ticket-dialog .mind-ticket-secondary .ticket-status-actions>small{font-size:9px;line-height:12px}
#dialog.ticket-dialog .mind-ticket-secondary textarea{height:42px}
#dialog.ticket-dialog .ticket-neighbors-section{padding:3px 5px}
@media(max-width:700px){
 #dialog.ticket-dialog .mind-ticket-basics>.form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 #dialog.ticket-dialog .mind-ticket-basics .field:not(details),#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-storeId),#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-date),#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-channelId){grid-column:span 2}
 #dialog.ticket-dialog .mind-ticket-basics .field:has(#f-ticketStage),#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-locationId),#dialog.ticket-dialog .mind-ticket-basics .field.full:has(#f-destination){grid-column:1/-1}
 #dialog.ticket-dialog .mind-ticket-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"customer cast" "context context" "payment additions"}
 #dialog.ticket-dialog .mind-ticket-secondary{grid-template-columns:1fr}
 #dialog.ticket-dialog #section-ticket-context{max-height:340px}
}
@media(max-width:440px){
 #dialog.ticket-dialog .mind-ticket-columns{grid-template-columns:1fr;grid-template-areas:"customer" "cast" "context" "payment" "additions"}
 #dialog.ticket-dialog #ticket-context-content>.ticket-context-columns{grid-template-columns:1fr}
 #dialog.ticket-dialog .ticket-summary{grid-template-columns:1fr}
 #dialog.ticket-dialog .ticket-summary>.ticket-time{grid-column:1}
}

/* Source-only MIND receipt: keep review and import safeguards in a compact dock. */
#dialog[open]:has(>#editor[data-mode="mr-input"]){position:fixed;inset:auto 12px 12px auto;width:min(880px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(720px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);margin:0;display:flex;flex-direction:column;border:1px solid #73869b;border-radius:3px;box-shadow:0 8px 28px #172b4540;overflow:hidden;color:#172332;font:12px/1.4 "MS PGothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}
#dialog:has(>#editor[data-mode="mr-input"])>.dialog-head{flex:none;padding:4px 7px;min-height:31px;background:#191919;color:#fff}
#dialog:has(>#editor[data-mode="mr-input"])>.dialog-head h2{font-size:13px;color:#fff}
#dialog:has(>#editor[data-mode="mr-input"])>.dialog-head .dialog-close{width:25px;height:23px;font-size:18px;line-height:20px;background:#f4f6f8;color:#182c44;border:1px solid #9eabb9;border-radius:2px}
#dialog:has(>#editor[data-mode="mr-input"])>form{display:flex;flex-direction:column;flex:1;min-height:0}
#dialog:has(>#editor[data-mode="mr-input"]) .dialog-body{padding:6px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
#dialog:has(>#editor[data-mode="mr-input"]) .dialog-actions{flex:none;position:relative;padding:5px 7px;gap:5px;background:#e8edf4;border-top:1px solid #9eacbb}
#dialog:has(>#editor[data-mode="mr-input"]) .btn{min-height:25px;padding:2px 6px;font-family:inherit;font-size:12px;line-height:18px;border-radius:2px;white-space:normal}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt{display:grid;gap:5px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-compact{padding:4px 6px;background:#fff7dd;border:1px solid #cebd87;font-size:11px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-compact header{display:flex;align-items:center;justify-content:space-between;gap:4px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-person{margin:2px 0;line-height:15px;font-weight:bold}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-person>span{margin-left:10px;font-weight:normal}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-warning{margin:2px 0;font-size:11px;line-height:15px;color:#6f4800;font-weight:bold}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-evidence{margin:2px 0 0;max-height:180px;overflow:auto;overscroll-behavior:contain}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-evidence summary{cursor:pointer;font-size:10px;line-height:15px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-evidence .review-table{width:100%;margin:3px 0;font-size:11px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-evidence .review-table th,#dialog:has(>#editor[data-mode="mr-input"]) .mr-source-evidence .review-table td{padding:2px 4px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-group{min-width:0;border:1px solid #9baabc;background:#f7f8fa}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-group>h3{margin:0;padding:2px 5px;font-size:12px;line-height:18px;background:#96baef;border-bottom:1px solid #839fc4;color:#12243c}
#dialog:has(>#editor[data-mode="mr-input"]) .form-grid{padding:4px;gap:4px;grid-template-columns:1fr}
#dialog:has(>#editor[data-mode="mr-input"]) .field{min-width:0;gap:2px;margin:0}
#dialog:has(>#editor[data-mode="mr-input"]) .field label{margin:0;font-size:11px;line-height:15px;color:#222;font-weight:normal}
#dialog:has(>#editor[data-mode="mr-input"]) input:not([type="checkbox"]),#dialog:has(>#editor[data-mode="mr-input"]) select,#dialog:has(>#editor[data-mode="mr-input"]) textarea{box-sizing:border-box;min-width:0;min-height:0;width:100%;height:23px;padding:1px 3px;font-family:inherit;font-size:12px;line-height:18px;border:1px solid #a4a8af;border-radius:1px;background:#fff;color:#111}
#dialog:has(>#editor[data-mode="mr-input"]) input[type="number"]{font-variant-numeric:tabular-nums;text-align:right}
#dialog:has(>#editor[data-mode="mr-input"]) textarea{height:45px;resize:vertical}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-basics{background:#ddd6eb}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-basics>.form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-basics .field:has(#mr-destination){grid-column:span 2}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-columns{display:grid;grid-template-columns:minmax(0,300fr) minmax(0,240fr) minmax(0,300fr);gap:5px;align-items:start}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-customer .form-grid{grid-template-columns:minmax(0,1fr) auto}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-customer .field:has(#mr-customerId){grid-column:1/-1}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-customer-search-action{align-self:end}
#dialog:has(>#editor[data-mode="mr-input"]) #mr-search-status{font-size:10px;line-height:14px}
#dialog:has(>#editor[data-mode="mr-input"]) #mr-search-status p{margin:2px 0}
#dialog:has(>#editor[data-mode="mr-input"]) #mr-search-status .alert{padding:4px;margin:2px 0;font-size:11px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-payment .field{display:grid;grid-template-columns:115px minmax(0,1fr);align-items:center;gap:3px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-note{margin:2px 0;font-size:10px;line-height:14px;color:#4a5663;overflow-wrap:anywhere}
/* The other course rows of the former ticket: a box and their names, wrapped inside the column. */
#dialog:has(>#editor[data-mode="mr-input"]) .mr-extra-courses>label{display:flex;align-items:flex-start;gap:5px;min-width:0;color:#222}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-extra-courses input{flex:none;margin:1px 0 0}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-notes>.form-grid{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-notes .field.full{grid-column:auto}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-confirm{padding:5px 6px;border:1px solid #a4b79b;background:#edf5e9}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-confirm .check-label{display:flex;align-items:flex-start;gap:6px;font-size:11px;line-height:17px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-confirm input{flex:none;margin-top:2px}
#dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt>.alert{margin:0;padding:5px 6px;font-size:11px;line-height:15px;max-height:100px;overflow:auto}
@media(max-width:700px){
 #dialog:has(>#editor[data-mode="mr-input"]){inset:auto 6px 6px;width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:min(720px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)}
 #dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-basics>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-columns{grid-template-columns:1fr 1fr}
 #dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-payment{grid-column:1/-1}
 #dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-notes>.form-grid{grid-template-columns:1fr}
}
@media(max-width:440px){
 #dialog:has(>#editor[data-mode="mr-input"]) .mr-receipt-columns{grid-template-columns:1fr}
 #dialog:has(>#editor[data-mode="mr-input"]) .mr-source-compact header{flex-wrap:wrap}
}

/* Keep duplicated summary notes closed initially; blocking errors remain visible. */
#dialog.ticket-dialog .ticket-keyboard-hint{font-size:9px;line-height:12px}
#dialog.ticket-dialog .ticket-neighbors-section{display:block;box-sizing:border-box;font-size:11px;line-height:16px}
#dialog.ticket-dialog .ticket-neighbors-section:not([open]){height:24px;min-height:0;padding:3px 5px}
#dialog.ticket-dialog .ticket-neighbors-section>summary{padding:0;margin:0;min-height:0;line-height:16px}
#dialog.ticket-dialog .ticket-summary>.reception-notes:not([open]){padding-top:1px;line-height:15px;min-height:0}
#dialog.ticket-dialog .ticket-summary>.reception-notes>summary{line-height:15px}
#dialog.ticket-dialog .dialog-body>.small-note{margin:2px 0;font-size:9px;line-height:12px}
/* Keep help geometry stable when focus moves from a field to an action button.
   Collapsing on blur can move the button between pointerdown and click. */
#dialog.ticket-dialog .mind-ticket-basics .field>small,#dialog.ticket-dialog #section-ticket-customer .field:has(#ticket-customer-search)>small,#dialog.ticket-dialog #section-ticket-customer .ticket-new-customer>small,#dialog.ticket-dialog #section-ticket-payment .field:has(#f-pointUsed)>small{display:block}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-date){grid-template-columns:42px minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-duration){grid-template-columns:62px minmax(0,1fr)}
#dialog.ticket-dialog .mind-ticket-basics .field.ticket-time-adjust{display:flex;flex-direction:row;flex-wrap:nowrap}
#dialog.ticket-dialog .mind-ticket-basics .ticket-time-adjust>.actions{display:flex;flex-direction:row;flex-wrap:nowrap;gap:3px}
#dialog.ticket-dialog #section-ticket-payment .field:not(details){grid-template-columns:126px minmax(0,1fr)}
#dialog.ticket-dialog #section-ticket-payment .field:has(#f-pointUsed){grid-template-columns:minmax(0,1fr) 65px}
#dialog.ticket-dialog #ticket-cast-profile{display:block;padding:0}
#dialog.ticket-dialog #ticket-cast-profile .cast-profile-missing{margin:0;font-size:10px;line-height:15px}
#dialog.ticket-dialog #ticket-cast-profile .cast-profile-missing>summary{cursor:pointer}
#dialog.ticket-dialog #ticket-cast-profile .cast-profile-missing>small{display:block;padding:3px 0;line-height:14px}
#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-storeId)>label,#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-date)>label,#dialog.ticket-dialog .mind-ticket-basics .field:has(#f-duration)>label{white-space:nowrap}

/* Initial in-page receipt leaves the task table at the left; drag coordinates,
   the wide toggle and the minimized state keep their own geometry. */
#dialog.ticket-dialog.ticket-floating[open]:not(.ticket-wide):not(.ticket-minimized){inset:12px 12px auto auto;width:min(880px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(740px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);margin:0}

/* Phone-first member intake lives inside the receipt's existing member column. */
#dialog #ticket-customer-intake{display:block;min-width:0;grid-column:1/-1;margin:0;font-size:11px;line-height:1.4}
#dialog #ticket-customer-intake:empty{display:none}
#dialog #ticket-customer-intake .tcu-create{padding:5px;border:1px solid #7997b9;border-left:3px solid #3676b5;background:#edf5ff;border-radius:2px}
#dialog #ticket-customer-intake .tcu-create>h3,#dialog #ticket-customer-intake .tcu-create>h4,#dialog #ticket-customer-intake .tcu-create>strong{display:block;margin:0 0 4px;color:#123f69;font-size:12px;line-height:17px}
#dialog #ticket-customer-intake .tcu-fields{display:grid;grid-template-columns:1fr;gap:4px;min-width:0}
#dialog #ticket-customer-intake .tcu-field{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:4px;min-width:0}
#dialog #ticket-customer-intake .tcu-field>label{margin:0;font-size:11px;line-height:15px;color:#172332}
#dialog #ticket-customer-intake .tcu-field>small{grid-column:1/-1;margin:0;font-size:10px;line-height:13px;color:#4c6074}
#dialog #ticket-customer-intake input,#dialog #ticket-customer-intake textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:2px 4px;font-family:inherit;font-size:12px;line-height:17px;border:1px solid #899eaf;border-radius:2px;background:#fff;color:#132431}
#dialog #ticket-customer-intake input{height:25px;min-height:25px}
#dialog #ticket-customer-intake input[type="tel"]{font-variant-numeric:tabular-nums}
#dialog #ticket-customer-intake .tcu-notes{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin-top:5px;padding:5px;border:1px solid #bbad7c;border-left:3px solid #a9892c;background:#fffbed;min-width:0}
#dialog #ticket-customer-intake .tcu-notes>label{margin:0;color:#59460f;font-size:11px;font-weight:bold;line-height:16px}
#dialog #ticket-customer-intake .tcu-notes textarea{height:68px;min-height:52px;max-height:180px;resize:vertical;white-space:pre-wrap;overflow:auto;overscroll-behavior:contain}
#dialog #ticket-customer-intake .tcu-notes>button{justify-self:end}
#dialog #ticket-customer-intake .tcu-notes>small{margin:0;font-size:10px;line-height:13px;color:#66592f}
#dialog #ticket-customer-intake .tcu-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;margin-top:5px;min-width:0}
#dialog #ticket-customer-intake button{min-height:25px;max-width:100%;padding:2px 6px;font-family:inherit;font-size:11px;line-height:17px;white-space:normal;overflow-wrap:anywhere}
#dialog #ticket-customer-intake .tcu-create .tcu-actions>.primary{flex:1}
#dialog #ticket-customer-intake .tcu-notice{margin:4px 0 0;padding:4px 5px;color:#174569;background:#eaf2f9;border:1px solid #b1c8db;font-size:11px;line-height:15px;overflow-wrap:anywhere}
#dialog #ticket-customer-intake .tcu-error{margin:4px 0 0;padding:5px;color:#8c211b;background:#fff0ed;border:1px solid #c97f74;border-left:3px solid #a62b21;font-size:11px;line-height:16px;white-space:pre-wrap;overflow-wrap:anywhere}
#dialog #ticket-customer-intake .ticket-customer-ng-banner{display:block;grid-column:1/-1;margin:0 0 5px;padding:6px;border:1px solid #c4ae7b;border-left:4px solid #a67b14;border-radius:2px;background:#fff6d9;color:#654a0b;line-height:16px;overflow-wrap:anywhere}
#dialog #ticket-customer-intake .ticket-customer-ng-banner>strong{display:block;font-size:12px;line-height:17px}
#dialog #ticket-customer-intake .ticket-customer-ng-banner p{margin:3px 0 0;font-size:11px;line-height:16px;white-space:pre-wrap}
#dialog #ticket-customer-intake .ticket-customer-ng-banner ul{margin:4px 0 0;padding-left:16px;max-height:110px;overflow:auto;overscroll-behavior:contain;font-size:11px;line-height:16px}
#dialog #ticket-customer-intake .ticket-customer-ng-banner small{display:block;margin-top:3px;font-size:10px;line-height:14px}
#dialog #ticket-customer-intake .ticket-customer-ng-banner.is-banned{color:#851e17;background:#fff0ee;border-color:#cc8379;border-left-color:#ad2a21}
#dialog #ticket-customer-intake .ticket-customer-ng-banner.is-cast-blocked{color:#7a3c0c;background:#fff3e4;border-color:#cf9c6b;border-left-color:#bb6b21}
#dialog #ticket-customer-intake .ticket-customer-ng-banner.is-unverified{color:#654a0b;background:#fff7dd;border-color:#c9b172;border-left-color:#a67b14}
#dialog #ticket-customer-intake input:focus-visible,#dialog #ticket-customer-intake textarea:focus-visible,#dialog #ticket-customer-intake button:focus-visible{outline:2px solid #246da6;outline-offset:1px}
#dialog #ticket-customer-intake input:disabled,#dialog #ticket-customer-intake textarea:disabled{background:#edf0f4;color:#53616d;border-color:#bac4cc;cursor:not-allowed}
#dialog #ticket-customer-intake button:disabled{opacity:.55;cursor:not-allowed}
#dialog #ticket-customer-intake [hidden]{display:none}
#dialog #ticket-customer-intake .ticket-customer-ng-banner.is-clear{color:#235637;background:#edf7ee;border-color:#a2c4ab;border-left-color:#4c8a5c}

/* An explicit inline action reveals the name field even in a short receipt window. */
#dialog #ticket-customer-count{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#dialog #ticket-customer-count>.btn{font-size:11px;min-height:25px;white-space:normal;background:#e7f0fc;color:#174b80;border-color:#7496bd}

/* Cross-store identity is an explicit selection; history remains store scoped. */
#dialog .tcu-existing{margin:7px 0;padding:7px;border:1px solid #8fa8c5;background:#edf4ff}
#dialog .tcu-existing article{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;padding:7px 0;border-top:1px solid #bfccdf}
#dialog .tcu-existing article small{display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
#dialog .tcu-existing article>.btn{white-space:normal;max-width:100%;font-size:11px}

/* A closed native dialog must stay hidden regardless of receipt layout. */
#dialog:not([open]){display:none!important}

/* Heaven reservation notice: a bell at the right end of the board's title bar. */
.mind-reception-title{position:relative}
/* The automatic import of working hours stopped by itself, keeps failing, or is on while nothing comes in (static/shift-auto-alert.mjs):
   rows under the board's title, one for a store; nothing while all is well. The class names are this notice's own - the import page
   has a line called shift-auto-alert. */
.shift-auto-notice-slot:empty{display:none}
.shift-auto-notice p{display:flex;align-items:center;gap:8px;margin:0;padding:2px 10px;border-bottom:1px solid #e3c463;background:#fff4d2;color:#4d3900;font-size:12px;line-height:1.5}
.shift-auto-notice p.stopped{border-bottom-color:#eda9a2;background:#fde7e4;color:#6d1a12}
.shift-auto-notice p>svg{flex:none}
.shift-auto-notice p>span{flex:0 1 auto;min-width:0}
.shift-auto-notice p>.btn{flex:none;margin:0;min-height:0;height:20px;padding:0 9px;font-size:11.5px;line-height:18px;white-space:nowrap}
@media(max-width:700px){.shift-auto-notice p{flex-wrap:wrap;row-gap:3px;padding:4px 10px}.shift-auto-notice p>span{flex:1 1 calc(100% - 30px)}.shift-auto-notice p>.btn{height:28px;line-height:26px;margin-left:21px}}
.heaven-notice{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex}
.heaven-notice:empty{display:none}
.heaven-bell{display:inline-flex;align-items:center;gap:4px;height:19px;padding:0 7px;border:1px solid #6d6d6d;border-radius:10px;background:#2b2b2b;color:#fff;font-size:11px;line-height:1;white-space:nowrap}
.heaven-bell:hover{background:#3a3a3a}
.heaven-bell b{min-width:16px;padding:1px 4px;border-radius:8px;background:#555;color:#fff;font-size:11px;text-align:center}
.heaven-bell.waiting b{background:#f2c94c;color:#1b1b1b}
.heaven-bell.fresh{border-color:#ff8a80}
.heaven-bell.fresh b{background:#d32f2f;color:#fff}
.heaven-bell em{font-style:normal;font-weight:bold;color:#ffd0cc}
.heaven-bell i{font-style:normal;color:#ffe08a}
.heaven-bell.failed em{color:#ffb4ab}
@media(max-width:900px){.mind-reception-title{justify-content:flex-start;padding:0 6px}.heaven-notice{position:static;transform:none;margin-left:auto}}
@media(max-width:700px){.heaven-bell>span{display:none}}
#app.reception-docked .heaven-bell>span{display:none}
.hn-table td small{display:block;color:#5d6b62;font-size:11px;margin-top:3px}
.hn-table tr.hn-fresh td{background:#fff8e6}
.hn-totals{margin:8px 0}

/* Store buttons under the board title: one press to change the store or show all. */
.store-switch{display:flex;flex-wrap:wrap;gap:3px;margin:4px 0 0}
.store-tab{height:20px;padding:0 8px;border:1px solid #9a9a9a;border-radius:0;background:#f3f3f3;color:#111;font-size:11px;line-height:18px;white-space:nowrap}
.store-tab:hover{background:#e4e4e4}
.store-tab.active{background:#191919;border-color:#191919;color:#fff;font-weight:bold}
.store-tab b{display:inline-block;min-width:14px;margin-left:4px;padding:0 3px;border-radius:7px;background:#d32f2f;color:#fff;font-size:10px;line-height:14px;text-align:center}

/* One Heaven reservation at a time: Heaven's values and the ticket draft side by side. */
.ri-quick .alert{margin:0 0 6px;padding:6px 10px}
.ri-quick-warnings{margin:0 0 6px;font-size:12px}
.ri-quick-table{width:100%;border-collapse:collapse;font-size:12px}
.ri-quick-table th,.ri-quick-table td{border:1px solid #d5dcd6;padding:3px 7px;vertical-align:middle;text-align:left}
.ri-quick-table thead th{background:#eef2ee;font-size:11px}
.ri-quick-table tbody th{width:78px;background:#f6f8f6;font-weight:600;white-space:nowrap}
.ri-quick-table td:nth-child(2){width:34%;background:#fffdf5}
.ri-quick-table small{display:inline-block;margin-left:6px;color:#5d6b62;font-size:11px}
.ri-quick-table select,.ri-quick-table input[type=number],.ri-quick-table input[name=destination]{padding:2px 6px;font-size:12px;border-radius:4px}
.ri-quick-table input[type=number]{width:58px}
.ri-quick-table input[name=destination]{width:min(100%,280px);margin-left:6px}
.ri-ok{color:#1b6b3a;font-weight:bold}
.ri-ask{display:inline-block;margin-left:6px;padding:0 7px;border-radius:9px;background:#fff1d6;color:#7a4b00;font-size:11px;font-weight:600}
.ri-chip{display:inline-flex;align-items:center;gap:3px;margin-right:9px;white-space:nowrap}
.ri-options{display:inline-block;margin-left:6px}
.ri-options[open]{display:block;margin:4px 0 0}
.ri-quick-travel{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center}
.ri-quick-step{align-self:center;margin:0 4px;color:#3f5248;font-size:12px;white-space:nowrap}
/* The notice list and the side-by-side review need more width than an ordinary dialog. */
#dialog:not([data-docked="true"]):has(form[data-mode="hn-list"]){width:920px}
#dialog:not([data-docked="true"]):has(form[data-mode="ri-quick"]){width:980px}

/* ---- Board chrome in a few lines, so more of the table shows without scrolling. ---- */
/* Stores, last-update time and the colour legend share one bar. */
.mind-reception-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:3px 10px;margin:4px 0 3px}
.mind-reception-bar .store-switch{margin:0}
.mind-reception-bar .mind-reception-meta{min-height:0;margin-left:auto;gap:10px}
.mind-reception .mind-reception-toolbar{margin:3px 0}
/* Every notice is a chip on one shared, wrapping line instead of a strip of its own. */
.mind-reception .reception-status{display:flex;flex-wrap:wrap;align-items:stretch;gap:3px 4px;margin:3px 0}
.mind-reception .reception-status .reception-sources{display:contents}
.mind-reception .reception-status>:not(.reception-sources),.mind-reception .reception-status .reception-sources>*{display:flex;flex:0 1 auto;flex-flow:row wrap;align-items:center;justify-content:flex-start;gap:2px 8px;min-height:24px;margin:0;padding:1px 8px;border-radius:0;font-size:11px;line-height:1.35}
.mind-reception .reception-status>:empty{display:none}
.mind-reception .reception-status small{display:inline;margin:0;font-size:10px;line-height:1.3}
.mind-reception .reception-status .btn{height:20px;min-height:20px;padding:0 6px;font-size:11px}
.mind-reception .reception-status .heaven-refresh{flex:1 1 300px}
.mind-reception .reception-status .heaven-refresh-main>small{display:none}
.mind-reception .reception-status .heaven-refresh-status{margin-top:0}
.mind-reception .reception-status .reception-holds-notice details{margin-left:0}
.mind-reception .reception-controls{margin:0 0 2px;padding:2px 0}
.mind-reception .reception-main>.timeline-hint{padding:1px 6px;line-height:1.5;min-height:0}
.mind-reception .reception-main>.small-note{margin:2px 0 0}
/* The table takes the height that is left; the page itself no longer scrolls for it. */
@media(min-width:701px) and (min-height:520px){
 #app.mind-reception:not(.reception-docked):not(.standalone-ticket) .body-shell{display:flex;flex-direction:column;height:100dvh}
 /* Auto side margins would stop a flex item from stretching; the wide table would then widen the whole page. */
 #app.mind-reception:not(.reception-docked):not(.standalone-ticket) .reception-main{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-width:0;min-height:0;margin-inline:0;overflow:auto}
 #app.mind-reception:not(.reception-docked):not(.standalone-ticket) .reception-main>*{flex:0 0 auto}
 #app.mind-reception:not(.reception-docked):not(.standalone-ticket) .reception-main>.reception-panel{display:flex;flex:1 1 0;flex-direction:column;min-height:min(48dvh,420px);margin-bottom:2px}
 #app.mind-reception:not(.reception-docked):not(.standalone-ticket) .reception-panel>.timeline-wrap,#app.mind-reception:not(.reception-docked):not(.standalone-ticket) .reception-panel>.table-wrap{flex:1 1 0;min-height:0;max-height:none}
}

/* ---- Ticket window: use the screen's height and keep the notes above the first field to one line each. ---- */
#dialog.ticket-dialog.ticket-floating[open]:not(.ticket-wide):not(.ticket-minimized){height:min(1060px,calc(100dvh - 24px))}
#dialog.ticket-dialog .dialog-body>.form-error:empty{margin:0}
#dialog.ticket-dialog .reception-hold-controls{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;margin:2px 0;padding:2px 7px}
#dialog.ticket-dialog .reception-hold-controls>small{display:inline;flex:1 1 220px;font-size:10px;line-height:1.3}
#dialog.ticket-dialog .reception-hold-controls .btn{min-height:22px;height:22px;padding:0 8px;font-size:11px}
#dialog.ticket-dialog .booking-staff-history{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;padding:2px 8px}
#dialog.ticket-dialog .booking-staff-history h4{margin:0}
#dialog.ticket-dialog .booking-staff-history>*{margin-top:0;margin-bottom:0}
#dialog.ticket-dialog #ticket-signal-content>header{min-height:0;padding-top:2px;padding-bottom:2px}
#dialog.ticket-dialog .ticket-signal-warning{padding:2px 7px}
#dialog.ticket-dialog .ticket-signal-actions{padding:3px 7px}
#dialog.ticket-dialog .ticket-signal-note{margin:2px 7px 3px;font-size:10px;line-height:1.35}

/* One-at-a-time review: what the dictionary answered, and the boxes that add to it. */
.ri-remember{display:inline-flex;align-items:center;gap:4px;margin-left:8px;font-size:11px;color:#4d5a52;white-space:nowrap}
.ri-remember input{margin:0}
.ri-term-option{display:flex;align-items:center;gap:6px;margin:2px 0;font-size:12px}
.ri-term-option select{max-width:260px}
.ri-matched{margin-bottom:4px}
/* One-at-a-time review: the building the customer named and the way to enter it. */
.ri-entry{margin-top:6px}.ri-entry:empty{display:none}
/* Shift colours a store added itself (2026-11-16): a wider last column for the delete button, and the row that adds one. */
.task-color-edit-row.added{grid-template-columns:32px minmax(100px,1fr) 206px}
.task-color-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px}.task-color-add small{color:#565e68}
.task-colors-grid{max-height:min(58vh,560px);overflow:auto;overscroll-behavior:contain;padding-right:2px}
@media(max-width:560px){.task-color-edit-row.added{grid-template-columns:32px minmax(0,1fr)}.task-color-edit-row.added .task-color-controls{grid-column:1/-1}}

/* A cast's marks on the task table (2026-11-16): one character each beside the store, and a panel behind them. Staff only. */
.cast-cell .cast-marks{display:inline-flex;align-items:center;gap:1px;height:15px;min-height:0;margin:0 2px 0 0;padding:0;border:0;background:none;vertical-align:middle;cursor:pointer}
.cast-cell .cast-marks:focus-visible{outline:2px solid #1f5f8b;outline-offset:1px}
.cast-cell .mind-cast-title .cast-marks{flex:none;margin:0}
.cast-cell .mind-cast-title>strong{flex:1 1 auto;min-width:0}
/* The room can give way to the marks; the two memo buttons are never pushed out of the cell. */
.cast-cell .mind-cast-name small>.cast-waiting-room{flex:0 1 48px;min-width:26px}
.cast-cell .mind-cast-name small>.btn{flex:none}
.cast-mark{display:inline-block;min-width:13px;height:14px;padding:0 1px;box-sizing:border-box;border-radius:2px;font-size:10px;font-weight:700;line-height:14px;text-align:center;text-decoration:none}
.cast-mark.new{background:#1f7a3d;color:#fff}
.cast-mark.ng{background:#b3261e;color:#fff}
.cast-mark.caution{background:#ffd54a;color:#3d2c00}
.cast-mark.info{background:#e3e7ee;color:#2f4a6b;font-weight:400}
#cast-marks-popover{position:fixed;z-index:70;top:95px;right:18px;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 115px);overflow:auto;padding:12px;background:#fffdf7;border:1px solid #8a97a6;border-radius:6px;box-shadow:0 8px 28px rgba(23,43,69,.25);color:#1b2430;font-size:12px;line-height:1.5}
#cast-marks-popover[hidden]{display:none}
/* While a ticket is open at the right, the panel sits over the casts' column at the lower left and leaves the ticket alone. */
body:has(#dialog.ticket-dialog[open]) #cast-marks-popover{top:auto;right:auto;left:6px;bottom:6px;width:324px;max-height:min(70dvh,560px)}
#cast-marks-popover .cm-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
#cast-marks-popover .cm-head h2{margin:0;font-size:15px}
#cast-marks-popover .cm-head h2 small{margin-left:8px;color:#55606d;font-size:11px;font-weight:400}
#cast-marks-popover .cm-marks{margin:0 0 6px;padding:0;list-style:none}
#cast-marks-popover .cm-marks li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:2px 0;font-weight:600}
#cast-marks-popover .cm-marks small{color:#55606d;font-size:11px;font-weight:400}
#cast-marks-popover .cm-notes{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 8px;margin:0 0 8px;padding:6px 8px;border:1px solid #e0c9c7;background:#fff5f4}
#cast-marks-popover .cm-notes dt{color:#8c1d18;font-weight:600}
#cast-marks-popover .cm-notes dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#cast-marks-popover .cm-stats{width:100%;margin:4px 0;border-collapse:collapse;font-variant-numeric:tabular-nums}
#cast-marks-popover .cm-stats th,#cast-marks-popover .cm-stats td{padding:4px 6px;border-bottom:1px solid #e3e6ea;text-align:right;vertical-align:top}
#cast-marks-popover .cm-stats th:first-child{text-align:left;font-weight:500}
#cast-marks-popover .cm-stats thead th{color:#55606d;font-size:11px}
#cast-marks-popover .cm-stats small{display:block;color:#55606d;font-size:10px}
#cast-marks-popover .cm-wait,#cast-marks-popover .cm-about{margin:6px 0 0;color:#55606d;font-size:11px}
#cast-marks-popover .cm-actions{display:flex;justify-content:flex-end;margin-top:8px}
/* The way from the task table to the daily report of the day, on the dark title bar (static/daily-report.mjs). */
.mind-reception-title .dr-go{margin:0;height:19px;padding:0 9px;font:inherit;font-size:11.5px;line-height:17px;font-weight:bold;white-space:nowrap;color:#fff;background:transparent;border:1px solid rgba(255,255,255,.65);border-radius:10px;cursor:pointer}.mind-reception-title .dr-go:hover,.mind-reception-title .dr-go:focus-visible{background:rgba(255,255,255,.18)}.mind-reception-title .dr-badge{margin-left:0}
/* スマホの幅：タスク表の題の帯の「日付・店舗名」が、途中で切れないようにする（「2026-11-2」で切れると、別の日に見える）。
   帯を 2 行にして、日付と店舗名を、2 行目に、全部出す。PC の幅では、何も変わらない。 */
@media(max-width:600px){.mind-reception-title{height:auto;min-height:25px;flex-wrap:wrap;row-gap:0;padding:2px 6px}.mind-reception-title>span:not(.dr-badge){order:9;flex:0 0 100%;overflow:visible;white-space:normal;line-height:1.5}}
