/* Cashier sign-in and manager-owned staff controls. */
.login-role-tabs{display:flex;gap:4px;padding:4px;margin-bottom:24px;border:1px solid #e3ddeb;border-radius:10px;background:#f5f3fa}
.login-role-tabs button{flex:1;min-height:44px;padding:9px 12px;border:0;border-radius:7px;background:transparent;color:#656076;font-size:15px}
.login-role-tabs button.is-active{background:#fff;color:#6646bd;font-weight:650;box-shadow:0 1px 5px #3020400b}
.cashier-login .auth-form-card{max-width:430px}
.shift-login-modes{display:flex;background:#f5f3fa;border:1px solid #e3ddeb;border-radius:10px;padding:4px;gap:4px;margin-bottom:28px}
.shift-login-modes button,.shift-login-modes span{flex:1;text-align:center;font-size:15px;min-height:42px;padding:10px 12px;border:0;border-radius:7px;line-height:1.4}
.shift-login-modes button{background:transparent;color:#656076}
.shift-login-modes button:hover{background:#ede7f8;color:#593ca5}
.shift-login-modes span{background:#fff;color:#6646bd;box-shadow:0 1px 5px #3020400b;font-weight:650}
.shift-pin-input{letter-spacing:.45em;text-align:center;font-size:22px!important;font-variant-numeric:tabular-nums;padding-inline:14px!important}
.cashier-login .auth-submit{display:flex;justify-content:center;align-items:center;gap:10px}
.cashier-login .auth-submit svg{width:20px;height:20px}
.shift-management{min-width:0;color:#242538}
.shift-management .page-heading p{line-height:1.8}
.shift-management svg{width:20px;height:20px;flex-shrink:0}
.shift-shop-code{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 24px;border:1px solid #ded4f2;background:#f2edfc;border-radius:14px;margin:0 0 22px;min-width:0}
.shift-shop-code>div{display:flex;align-items:center;gap:14px;min-width:0}
.shift-code-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:1px solid #d9ccef;background:#fff;border-radius:12px;color:#7454d6}
.shift-shop-code strong{font-size:16px;display:block;margin-bottom:6px}
.shift-shop-code p{font-size:14px;color:#6a607d;line-height:1.7}
.shift-shop-code code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:25px;font-weight:700;letter-spacing:.12em;color:#5b3aac;background:#fff;border:1px dashed #c7b6e7;border-radius:10px;padding:14px 18px;overflow-wrap:anywhere;min-width:0;text-align:center}
.shift-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.shift-stats>div{padding:20px 22px;background:#fff;border:1px solid #e1e4ec;border-radius:12px}
.shift-stats span{font-size:14px;color:#697286}
.shift-stats strong{display:block;font-size:30px;line-height:1.5;margin-top:5px;color:#29243b;font-variant-numeric:tabular-nums}
.shift-staff-section,.shift-history-section{margin-bottom:24px;overflow:hidden}
.shift-section-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px}
.shift-section-header h2{font-size:19px;margin:0 0 6px;color:#282536}
.shift-section-header p{color:#687083;font-size:14px;line-height:1.8}
.shift-section-header>svg{color:#7c699f}
.shift-search{margin:0 24px 20px}
.shift-staff-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(285px,100%),1fr));gap:16px;padding:0 24px 24px}
.shift-staff-card{border:1px solid #e1e4ec;border-radius:12px;background:#fff;padding:20px;min-width:0}
.shift-staff-identity{display:flex;align-items:center;gap:12px}
.shift-staff-avatar{display:grid;place-items:center;width:44px;height:44px;background:#f1ecfc;border:1px solid #e1d6f5;color:#7150b1;border-radius:12px;flex-shrink:0;font-size:15px;font-weight:650}
.shift-staff-identity>div{min-width:0}
.shift-staff-identity h3{font-size:17px;line-height:1.65;overflow-wrap:anywhere;margin:0 0 6px}
.shift-staff-card>p{font-size:13px;color:#778092;margin-block:20px}
.shift-staff-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #edf0f5;padding-top:15px}
.shift-staff-actions .button{font-size:14px;min-height:40px}
.shift-staff-list>.auth-empty{grid-column:1/-1;padding:35px 16px}
.shift-loading{text-align:center;padding:48px 20px;color:#687083}
.shift-table-wrap{border:0;border-top:1px solid #e8eaf0;border-radius:0}
.shift-table td{vertical-align:middle;line-height:1.7}
.shift-table th,.shift-table td{font-size:14px}
.shift-table td:nth-child(2),.shift-table td:nth-child(3){color:#687083;min-width:145px}
.shift-close-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;white-space:normal;line-height:1.6;text-align:center;max-width:205px}
.shift-close-audit{min-width:125px;max-width:230px;color:#687083;font-size:13px;white-space:normal;overflow-wrap:anywhere}
.shift-close-audit p{margin-top:5px;color:#493c63}
.shift-close-identity{display:grid;gap:5px;padding:14px;border:1px solid #e4dcf3;border-radius:10px;background:#f5f1fc;overflow-wrap:anywhere}
.shift-close-identity strong{font-size:17px;color:#604399}
.shift-close-identity span{font-size:13px;line-height:1.7;color:#687083}
.shift-close-help{padding:13px 15px;background:#f8f7fb;border-inline-start:3px solid #b3a0dc;color:#625975;font-size:13px;line-height:1.9}
.shift-dialog textarea{box-sizing:border-box;width:100%;min-height:92px;resize:vertical;padding:11px 12px;border:1px solid #ddd9e7;border-radius:8px;background:#fff;color:#242538;font:inherit;line-height:1.7}
.shift-dialog textarea:focus{outline:2px solid #8c72d5;outline-offset:2px}
.shift-dialog .button.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.shift-dialog{position:fixed;margin:auto;padding:0;width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 32px);background:#fff;color:#242538;border:1px solid #ddd9e7;border-radius:16px;box-shadow:0 24px 100px #23213728;overflow:auto;overscroll-behavior:contain}
.shift-dialog::backdrop{background:#29233855}
.shift-dialog .auth-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #e8eaf0}
.shift-dialog h2{font-size:21px;color:#282536;margin:0}
.shift-dialog .auth-dialog-body{padding:22px 24px;display:grid;gap:18px;min-width:0}
.shift-dialog .auth-intro{margin:0}
.shift-dialog .auth-help{margin:0}
.shift-dialog .auth-form{gap:0}
.shift-dialog-name{font-size:17px;font-weight:650;color:#604399;padding:12px;background:#f5f1fc;border:1px solid #e4dcf3;border-radius:8px;overflow-wrap:anywhere}
.shift-dialog .auth-dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid #e8eaf0;background:#fafbfe}
.shift-dialog .auth-notice{margin:0}
.shift-summary{text-align:center}
.shift-summary>.auth-symbol{margin:0 auto 18px}
.shift-summary>h2{margin-bottom:10px}
.shift-summary>p{color:#687083;margin-bottom:22px}
.shift-summary dl{margin:0;text-align:start}
.shift-summary dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:13px 0;border-bottom:1px solid #e8eaf0}
.shift-summary dt{color:#687083;font-size:14px}
.shift-summary dd{margin:0;font-size:14px;line-height:1.7}
@media(max-width:650px){
 .shift-shop-code{flex-direction:column;align-items:stretch;padding:18px;gap:18px}
 .shift-shop-code code{align-self:flex-start;font-size:23px;padding:12px 18px}
 .shift-stats{gap:8px}
 .shift-stats>div{padding:14px 10px}
 .shift-stats span{font-size:13px;line-height:1.7;display:block}
 .shift-stats strong{font-size:26px}
 .shift-section-header{padding:18px;align-items:flex-start;gap:12px;flex-wrap:wrap}
 .shift-section-header .button{min-height:40px}
 .shift-search{margin-inline:18px}
 .shift-staff-list{padding:0 18px 18px}
 .shift-dialog .auth-dialog-header,.shift-dialog .auth-dialog-body,.shift-dialog .auth-dialog-footer{padding-inline:18px}
 .shift-table td:nth-child(2),.shift-table td:nth-child(3){min-width:0}
 .shift-table td.shift-management-cell{grid-column:1/-1;align-items:flex-start}
 .shift-close-button{max-width:none;min-height:44px}
 .shift-close-audit{max-width:none}
 .shift-dialog .auth-dialog-footer{flex-wrap:wrap}
}
@media(max-width:380px){.shift-stats{grid-template-columns:1fr}.shift-stats>div{display:flex;align-items:center;justify-content:space-between;padding:10px 15px}.shift-stats strong{margin:0}.shift-staff-actions .button{flex:1}}
