/* Till sign-in (store computer) and the owner's staff page. Same tokens as style.css. */
body[data-surface=customer][data-view=till] .wrap{max-width:none;padding:0}
body[data-surface=customer][data-view=till] .wrap>#error{max-width:560px;margin:18px auto}
/* The staff page keeps the store list's page frame (style.css strips it from auth views). */
body[data-surface=customer][data-view=staff]:not([data-view=stores]) .wrap{max-width:1120px;padding:36px 28px}
@media(max-width:700px){body[data-surface=customer][data-view=staff]:not([data-view=stores]) .wrap{padding:25px 18px}}
.till-shell{min-height:calc(100dvh - 111px);display:flex;justify-content:center;align-items:flex-start;padding:56px 20px;background:#f3f5f8}
.till{width:100%;max-width:760px}
.till-head{display:flex;align-items:center;gap:16px;margin-bottom:28px}
.till-head .logo{width:56px;height:56px}
.till-head h1{margin:0;font-size:28px}
.till-head p{margin:2px 0 0}
/* Language switch for the people who work the till (中文 / Español), same look as the one inside the store. */
.till-head{flex-wrap:wrap}.till-head>div{flex:1 1 auto;min-width:0}.till-head>.lang-toggle{flex:none;margin-left:auto}
.lang-toggle{display:inline-flex;border:1px solid #c8d1dd;border-radius:9px;overflow:hidden;background:white}
.lang-toggle button{min-height:40px;padding:6px 14px;border:0;border-radius:0;background:transparent;color:#59677b;font-size:14px;font-weight:650}
.lang-toggle button:hover:not(:disabled){background:#f4f7fc;border-color:transparent}
.lang-toggle button[aria-pressed=true],.lang-toggle button[aria-pressed=true]:hover:not(:disabled){background:#1b293d;color:white}
.till-people{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.till-card{width:100%;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:white;border:1px solid var(--line);border-radius:10px;padding:18px 12px}
.till-card strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere;text-align:center}
.till-card span:last-child{font-size:12px;color:#59677b}
.till-card:hover:not(:disabled){border-color:#9fb5df;background:white;box-shadow:0 6px 18px #18345c0d}
.till-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#edf2ff;color:#2449a0;font-size:21px;font-weight:700;flex:none}
.till-avatar.small{width:32px;height:32px;font-size:14px}
.till-pin{background:white;border:1px solid var(--line);border-radius:12px;padding:26px;max-width:380px;margin:0 auto}
.till-person{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.till-pin .inline-error{margin:14px 0 0;padding:10px 12px;font-size:13px}
.till-person strong{display:block;font-size:18px;line-height:1.3}
.till-person span:not(.till-avatar){font-size:12px;color:#59677b}
.till-pin input[type=password]{font-size:26px;letter-spacing:10px;text-align:center;min-height:56px}
.pin-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px}
.pin-key{min-height:56px;font-size:21px;font-weight:600;font-variant-numeric:tabular-nums}
.pin-aux{font-size:14px;font-weight:500;color:#59677b}
.till-submit{width:100%;margin-top:18px;min-height:52px;font-size:16px;font-weight:700}
.till-switch{display:block;margin:10px auto 0}
.till-foot{display:flex;justify-content:center;margin-top:28px}
.till-empty{max-width:520px}
.staff-heading{align-items:flex-start;margin-bottom:6px}
.staff-heading p{margin-bottom:0}
.staff-panel{margin-top:22px}
.staff-panel h2{margin:0}
.staff-panel .table-wrap{margin-top:16px}
.staff-note{font-size:12px;margin:10px 0 0}
.staff-empty{margin:16px 0 0}
.staff-name{display:flex;align-items:center;gap:10px}
.staff-tag{display:inline-block;margin-left:8px;font-size:11px;color:#2449a0;background:#edf2ff;border-radius:4px;padding:1px 6px;vertical-align:1px}
.staff-store{display:inline-block;margin:2px 6px 2px 0;padding:2px 8px;border:1px solid var(--line);border-radius:999px;font-size:12px;white-space:nowrap}
.staff-actions{white-space:nowrap;text-align:right}
.staff-actions button+button{margin-left:6px}
.badge-off{background:#f1f2f5;color:#6a7486}
.till-ready{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.choices{border:0;padding:0;margin:18px 0 0;min-width:0}
.choices legend{font-weight:650;margin-bottom:6px;padding:0}
.choice{display:flex;gap:10px;align-items:flex-start;font-weight:400;margin:8px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.choice input{width:auto;min-height:0;margin:3px 0 0;flex:none}
.choice strong{display:block;font-size:14px}
.choice small{display:block;font-size:12px;line-height:1.6}
.choice.inline{display:inline-flex;margin-right:8px;padding:8px 12px}
.choice:has(input:checked){border-color:#9fb5df;background:#f5f8ff}
.refund-choice{margin-top:12px}
.pin-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.native-business-staff{font-size:13px;color:#2449a0;background:#edf2ff;border-radius:999px;padding:6px 12px;white-space:nowrap}
@media(max-width:700px){.till-shell{padding:28px 14px}.till-head h1{font-size:23px}.till-people{grid-template-columns:repeat(2,minmax(0,1fr))}.till-card{min-height:128px}.till-pin{padding:20px}.pin-fields{grid-template-columns:1fr}.staff-table,.staff-table tbody{display:block;width:100%}.staff-table thead{display:none}.staff-table tr{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:14px 0;border-bottom:1px solid #dce2ea}.staff-table tr:last-child{border-bottom:0}.staff-table td{display:block;min-width:0!important;padding:0;border:0}.staff-table td:first-child{grid-column:1/-1}.staff-actions{grid-column:1/-1;text-align:left}}
.shift-count{min-width:0}
.shift-count input{width:8rem;max-width:100%;min-height:38px;padding:6px 10px;text-align:right;font-variant-numeric:tabular-nums}
.shift-count td,.shift-count th{white-space:nowrap;padding:10px 12px}
.shift-count td:nth-child(2),.shift-count td:nth-child(3),.shift-count th:nth-child(2),.shift-count th:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:700px){.shift-count td,.shift-count th{padding:8px 6px;min-width:0!important}.shift-count input{width:6.5rem}}
.shift-confirm{margin-top:14px}
.staff-tag.staff-tag-wait{background:#fff4d6;color:#7a5200}

/* Refund window: one number of days, saved in place. */
.refund-window{display:grid;gap:6px;max-width:420px}
.refund-days{display:flex;align-items:center;gap:8px}
.refund-days input{width:96px}
/* 删商品记录: the owner's rule and the records */
.void-policy{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;margin:12px 0 16px}
.void-policy .choice{flex:1 1 360px;margin:0}
.void-policy .choice small{display:block;margin-top:4px;color:var(--muted,#5b6577);font-weight:400}
.void-table td{vertical-align:top}
.void-table .void-till{display:block;font-size:12px}
.void-table .void-money{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.void-table .staff-tag{margin:0 6px 0 0}
/* As cards on a phone the authorizer has no column heading: it says what it is. */
@media(max-width:700px){.void-table .void-authorizer{grid-column:1/-1}.void-table .void-authorizer::before{content:attr(data-label) "：";color:#5b6577}}
/* 断网收银: the per-store switch, offline numbers that do not add up, and the offline sales. */
.staff-tag.staff-tag-ok{background:#e7f5ee;color:#137a4b}
.staff-tag.staff-tag-warn{background:#fdecea;color:#a3271d}
.offline-table .staff-tag{margin:0 6px 0 0}
.offline-checks{margin:0 0 16px}
.offline-checks ul{margin:6px 0 0;padding-left:20px}
.offline-checks li{margin:2px 0}
.offline-policy-form + .offline-policy-form{margin-top:0}
.shift-offline-note{margin:0 0 12px;font-size:13px}
.offline-warning{margin:0 0 12px}

/* 撤销 / 停用 asked once more, in place under the row. */
.confirm-row td{background:#fff7f5;border-bottom:1px solid #f3c4bf}
.inline-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;color:#7a2219}
.inline-confirm>span{flex:1 1 320px;line-height:1.55}
.inline-confirm-actions{display:flex;gap:8px;flex-wrap:wrap}
.inline-confirm button.danger{background:#a62d3c;border-color:#a62d3c;color:#fff}
.inline-confirm button.danger:hover:not(:disabled){background:#8c2331;border-color:#8c2331}

/* Touch screens (the owner on a phone, a tablet at the counter): every control a finger wide. */
@media(pointer:coarse){body td>button,body .small,body .inline-label select,body .lang-toggle button,body .shift-count input,body .native-business-actions button,body .auth-links button,body .text-action,body .store-table td:last-child button{min-height:44px}}
/* Open shifts on a phone: each value says what it is (store, till, who, since when), not "Fuego Rojo / Fuego Rojo / 店主". */
@media(max-width:700px){[data-testid=shifts-panel] .staff-table td[data-label]::before{content:attr(data-label) "：";color:#5b6577}}
