/* 전체 디자인 정리 (2026-09-22). 마지막에 불러와서 글꼴·크기·정렬을 한 가지 규칙으로 맞춘다.
   글꼴 크기 단계: 페이지 제목 24 · 섹션 제목 17 · 본문 14~15 · 보조 12~13 / 굵기: 400 · 600 · 700 */
@font-face{font-family:PC Pretendard;src:url('assets/fonts/PretendardVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}

/* ── 공통: 고객 화면 ── */
body[data-portal="customer"] #memberContent :is(.game-heading h2,.page-panel>h2,.wallet-page-heading h2,.my-page>h2,.top>h1,.top>h2){font-size:24px!important;font-weight:700!important;letter-spacing:-.035em;line-height:1.3}
body[data-portal="customer"] :is(.today-hand-card,.jackpot-card){padding:16px!important}
body[data-portal="customer"] :is(.today-hand-card,.jackpot-card) .goal-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 6px}
body[data-portal="customer"] :is(.today-hand-card,.jackpot-card) .goal-title h3{font-size:17px!important;font-weight:700!important;margin:0}
body[data-portal="customer"] :is(.today-hand-card,.jackpot-card) .goal-title small{font-size:12px;font-weight:400;color:#aeb6b2}
body[data-portal="customer"] :is(.today-hand-card,.jackpot-card) .today-hand-visual{margin:10px 0 8px}
body[data-portal="customer"] :is(.today-hand-card,.jackpot-card) .today-hand-condition{font-size:13px;color:#c9d0cc}
body[data-portal="customer"] :is(.today-hand-card,.jackpot-card) .goal-caption{font-size:13px!important;font-weight:400!important;color:#c9d0cc;margin:6px 0 0;line-height:1.5}
body[data-portal="customer"] .jackpot-card{border-color:#dfc18a40!important}
body[data-portal="customer"] .jackpot-card .jackpot-pool strong{font-size:38px;font-weight:700}

/* ── 관리자 화면 ── */
body[data-portal="admin"]{--pc-font:'PC Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI','Malgun Gothic',sans-serif;font-family:var(--pc-font);letter-spacing:-.015em;-webkit-font-smoothing:antialiased}
body[data-portal="admin"] :is(button,input,select,textarea,summary){font-family:var(--pc-font)}
body[data-portal="admin"] #memberContent :is(h1,h2){font-size:22px;font-weight:700;letter-spacing:-.03em;line-height:1.3}
body[data-portal="admin"] #memberContent h3{font-size:17px;font-weight:700;letter-spacing:-.02em}
body[data-portal="admin"] #memberContent h4{font-size:15px;font-weight:700}
body[data-portal="admin"] #memberContent :is(p,li,td,th,label){font-size:14px}
body[data-portal="admin"] #memberContent :is(small,.muted){font-size:12px}
body[data-portal="admin"] #memberContent summary{font-size:15px;font-weight:600}

/* 버튼 두 단계: 기본 44px · 작은 도구 버튼 36px */
body[data-portal="admin"] #memberContent :is(form,section.card,details.card,.game-control-bar,.scanner-actions,.admin-page-heading+section)>button,
body[data-portal="admin"] #memberContent form button:not(.table-seat):not(.playing-card){min-height:44px;font-size:14px;font-weight:600;padding-top:0;padding-bottom:0}
body[data-portal="admin"] #memberContent :is(.admin-refresh,.wallet-refresh,.felt-tools>button,.admin-toolbar button,.admin-category-links button),
body[data-portal="admin"] #orderAlertBar button{min-height:36px!important;height:36px;font-size:13px!important;font-weight:600;padding:0 12px!important}
body[data-portal="admin"] #memberContent details:is(.mode-panel,.admin-disclosure,.event-sec,.card)>summary{min-height:44px;padding-top:10px!important;padding-bottom:10px!important}

/* 헤더: 버튼 3개(언어·앱 설치·고객 화면·로그아웃)를 같은 모양으로 */
body[data-portal="admin"] header.top{align-items:center}
body[data-portal="admin"] .header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
body[data-portal="admin"] .header-actions>:is(button,a.portal-switch){display:inline-flex;align-items:center;justify-content:center;min-height:40px;height:40px;padding:0 14px;border:1px solid #ffffff1c;border-radius:10px;background:#1b2223;color:#ece6d8;font-size:14px;font-weight:600;text-decoration:none;box-sizing:border-box}
body[data-portal="admin"] .header-actions>a.portal-switch{color:#dfc18a;border-color:#dfc18a55}
body[data-portal="admin"] .header-actions .pc-language-switch{margin:0}
body[data-portal="admin"] .header-actions .pc-language-switch summary{min-height:40px;height:40px;padding:0 12px;border-radius:10px;border:1px solid #ffffff1c;background:#1b2223;font-size:13px;box-sizing:border-box}
body[data-portal="admin"] .header-actions .pc-language-switch summary span{display:none}
body[data-portal="admin"] .header-actions .pc-language-panel{right:0;left:auto}

/* 매장·모드 줄: 모두 같은 높이(40px)로 한 줄 정렬 */
body[data-portal="admin"] .role-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body[data-portal="admin"] .role-strip label{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px}
body[data-portal="admin"] .role-strip :is(select,button,details>summary,.mode-chip,span.badge){min-height:40px!important;height:40px;box-sizing:border-box;padding-top:0!important;padding-bottom:0!important;display:inline-flex;align-items:center;font-size:14px;border-radius:10px}
body[data-portal="admin"] .role-strip select{padding:0 32px 0 12px!important}
body[data-portal="admin"] .role-strip details{margin:0}
body[data-portal="admin"] .header-actions .pc-language-switch summary{list-style:none;display:inline-flex;align-items:center;gap:4px}
body[data-portal="admin"] .header-actions .pc-language-switch summary::-webkit-details-marker{display:none}
body[data-portal="admin"] .header-actions .pc-language-switch summary::marker{content:''}
body[data-portal="admin"] .role-strip .role-badge{display:inline-flex;align-items:center;height:40px;min-height:40px;padding:0 14px;box-sizing:border-box;border-radius:10px;font-size:13px}
body[data-portal="admin"] #memberContent>details.mode-panel{margin:0}
body[data-portal="admin"] #memberContent>details.mode-panel>summary{min-height:40px!important;height:40px;padding:0 14px!important;display:flex;align-items:center;box-sizing:border-box;font-size:14px}
body[data-portal="admin"] #memberContent>details.mode-panel[open]>summary{height:auto}
body[data-portal="admin"] #memberContent>.tablet-entry-button{min-height:40px;height:40px;padding:0 14px;font-size:14px}
/* 직원 개인정보 동의 창 · 급여 계좌 */
#staffConsentGate{position:fixed;inset:0;z-index:9999;background:#0b0f10f2;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
#staffConsentGate .staff-consent-box{max-width:560px;width:100%;background:#1b2223;border:1px solid #dfc18a55;border-radius:16px;padding:20px;color:#ece6d8;max-height:calc(100dvh - 32px);overflow:auto}
#staffConsentGate h2{font-size:20px;margin:0 0 4px}
#staffConsentGate .staff-consent-list{padding-left:18px;margin:12px 0;font-size:14px;line-height:1.6}
#staffConsentGate .staff-consent-list li{margin:0 0 8px}
#staffConsentGate .staff-consent-list b{display:block;color:#dfc18a}
#staffConsentGate .staff-consent-check{display:flex;gap:8px;align-items:flex-start;margin:12px 0;font-size:14px}
#staffConsentGate .staff-consent-actions{display:grid;gap:8px}
#staffConsentGate .staff-consent-actions button{min-height:46px;border-radius:10px;font-size:15px;font-weight:600}
.staff-privacy-list .sp-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #ffffff12}
.staff-privacy-list .sp-row.inactive{opacity:.55}
.staff-privacy-list .ok{color:#6fcf97}.staff-privacy-list .warn{color:#f2b36b}
.staff-privacy-list .sp-actions{display:flex;gap:6px;flex:none}
.staff-privacy-list .sp-actions button{min-height:36px!important;font-size:13px!important;padding:0 10px!important}
.staff-bank-number{font-size:24px;font-weight:700;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:#dfc18a;margin:8px 0}
.event-sec .sec-status b.soon{color:#f2b36b}
/* 약관 변경 안내(고객) */
.legal-notice{position:fixed;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:900;max-width:520px;margin:0 auto;padding:12px 14px;border:1px solid #dfc18a66;border-radius:14px;background:#1b2223f2;box-shadow:0 8px 24px #0009;color:#ece6d8;display:flex;gap:10px;align-items:center}
.legal-notice p{margin:0;font-size:13px;line-height:1.5;flex:1}
.legal-notice strong{display:block;color:#dfc18a;font-size:14px}
.legal-notice div{display:flex;flex-direction:column;gap:6px;flex:none}
.legal-notice a{font-size:12px;color:#dfc18a;text-align:center}
.legal-notice button{min-height:36px;padding:0 14px;border-radius:9px;font-size:13px}

/* 인건비표 (payroll-sheet.js) */
.ps-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 16px}
.ps-bar label{display:flex;align-items:center;gap:8px;font-weight:600}
.ps-bar input[type=month]{min-height:40px}
.ps-start{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.ps-wrap{overflow-x:auto;margin:8px 0;border:1px solid rgba(255,255,255,.12);border-radius:10px;-webkit-overflow-scrolling:touch}
table.ps{border-collapse:separate;border-spacing:0;font-size:13px;min-width:100%;white-space:nowrap}
table.ps th,table.ps td{padding:4px 4px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;vertical-align:middle}
table.ps thead th{position:sticky;top:0;background:#151a22;font-size:12px;font-weight:600;color:#b9bcc4;z-index:2}
table.ps th.we{color:#f08a7e}
table.ps td.we input{background:rgba(240,138,126,.07)}
table.ps .n{text-align:right}
table.ps td:nth-child(2),table.ps th:nth-child(2){position:sticky;left:0;background:#10141b;z-index:1;width:128px;min-width:128px;box-shadow:1px 0 0 rgba(255,255,255,.12)}
table.ps thead th:nth-child(2){z-index:3;background:#151a22}
table.ps .ps-no{color:#8a8f99;font-size:12px;width:22px}
table.ps .ps-name input,table.ps .ps-name select{display:block;width:120px;max-width:120px;margin:0}
table.ps .ps-name select{margin-top:2px;font-size:11px;min-height:24px;height:24px;padding:0 4px;opacity:.8}
table.ps input,table.ps select{min-height:34px;padding:2px 6px;border-radius:6px;font-size:13px}
table.ps .ps-day input{width:44px;text-align:center;padding:2px}
table.ps .ps-money{width:92px;text-align:right}
table.ps .ps-net b{color:#8fd6a8}
table.ps tfoot td{border-top:1px solid rgba(255,255,255,.3);font-weight:600;background:#151a22}
table.ps tfoot td:nth-child(2){background:#151a22}
.ps-x{min-width:32px;min-height:32px;padding:0}
.ps-x.armed{background:#b42318;color:#fff;border-color:#b42318}
.ps-actions{display:flex;align-items:center;gap:12px;margin:8px 0}
.ps-dirty{color:#f0b35a;font-size:13px;font-weight:600}
.ps-foot{margin-top:12px}
.ps-legacy{margin-top:16px}
.ps-legacy>summary{cursor:pointer;font-weight:600}
input[type=number].ps-money::-webkit-inner-spin-button,table.ps .ps-day input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
table.ps input[type=number]{-moz-appearance:textfield}

/* 대표: 정산 화면의 월말 정산서 바로가기 */
.master-report-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:16px 18px;border:1px solid #dfc18a55;border-radius:14px;background:linear-gradient(135deg,#2a2416,#171a1c);color:inherit;text-decoration:none}
.master-report-link strong{display:block;font-size:17px;font-weight:700;color:#f1d9a4}
.master-report-link small{display:block;margin-top:2px;font-size:13px;color:#b9bcc4}
.master-report-link b{font-size:24px;color:#dfc18a;font-weight:400}
/* 관리자 헤더(폰): PC처럼 로고 왼쪽, 버튼은 오른쪽 한 줄(작게) */
@media(max-width:600px){
 body[data-portal="admin"] header.top{flex-direction:row!important;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;background:#10100f}
 body[data-portal="admin"] .member-shell #brandHome{width:84px;flex:0 0 auto}
 body[data-portal="admin"] header.top .header-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:5px!important;width:auto!important;margin:0!important}
 body[data-portal="admin"] .header-actions>:is(button,a.portal-switch){width:auto!important;height:34px!important;min-height:34px!important;padding:0 9px!important;font-size:12.5px;white-space:nowrap}
 body[data-portal="admin"] .header-actions .pc-language-switch summary{width:34px;height:34px;min-height:34px;padding:0!important}
}
/* 인건비 v2 — 날짜별 입력 */
.ps-bar label{font-size:16px}
.ps-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:10px 0;padding:4px;border-radius:12px;background:#11161c;border:1px solid #ffffff14}
.ps-tab{min-height:40px;border:0;border-radius:9px;background:transparent;color:#b9bcc4;font-weight:600;font-size:14px}
.ps-tab.on{background:#dfc18a;color:#15181c}
.ps-daybar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px}
.ps-arrow{min-width:48px;min-height:48px;font-size:24px;padding:0}
.ps-daypick{position:relative;flex:1;text-align:center;font-size:20px;font-weight:700}
.ps-daypick span.we{color:#f08a7e}
.ps-daypick select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.ps-hint{margin:6px 2px 10px}
.ps-daylist,.ps-mlist,.ps-slist{display:grid;gap:8px}
.ps-person{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px 14px}
.ps-who strong{display:block;font-size:17px}
.ps-who small{color:#9aa0a8;font-size:12px}
.ps-quick{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ps-quick button{min-width:48px;min-height:44px;padding:0 10px;border-radius:10px;font-size:16px;font-weight:600}
.ps-quick button.on{background:#dfc18a;color:#15181c;border-color:#dfc18a}
.ps-quick input{width:76px;min-height:44px;text-align:center;font-size:16px;border-radius:10px}
.ps-warn{color:#f0b35a}
.ps-mcard{padding:14px}
.ps-mhead{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ps-mhead strong{font-size:17px}.ps-mhead small{color:#9aa0a8}
.ps-calc{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}
.ps-calc div{padding:8px;border-radius:8px;background:#ffffff08}
.ps-calc dt{font-size:12px;color:#9aa0a8}.ps-calc dd{margin:2px 0 0;font-weight:600;font-variant-numeric:tabular-nums}
.ps-calc .net dd{color:#8fd6a8}
.ps-mfields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.ps-mfields label{display:grid;gap:4px;font-size:13px;color:#b9bcc4}
.ps-mfields input,.ps-mfields select{min-height:44px;font-size:15px}
.ps-sum{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.ps-sum span{display:block;font-size:12px;color:#9aa0a8}.ps-sum b{font-size:17px;font-variant-numeric:tabular-nums}
.ps-sum .net b{color:#8fd6a8}
.ps-extra{margin-top:10px}
.ps-scard{display:grid;grid-template-columns:1.4fr auto 1fr 1.2fr auto;align-items:end;gap:8px;padding:12px}
.ps-scard label{display:grid;gap:4px;font-size:13px;color:#b9bcc4}
.ps-scard input,.ps-scard select{min-height:44px;height:44px;margin:0!important;font-size:15px}
.ps-scard .ps-seg{box-sizing:border-box;margin:0}
body[data-portal="admin"] .ps-scard .ps-seg button{height:100%!important;min-height:0!important;margin:0!important;padding:0 14px!important;border:0!important;border-radius:0!important}
.ps-scard .ps-del{height:44px;min-height:44px;margin:0!important}
.ps-seg{display:flex;border:1px solid #ffffff22;border-radius:10px;overflow:hidden;height:44px}
.ps-seg button{border:0;border-radius:0;min-width:56px;background:transparent;color:#b9bcc4;font-weight:600}
.ps-seg button.on{background:#dfc18a;color:#15181c}
.ps-del{min-height:44px}
.ps-del.armed{background:#b42318;color:#fff;border-color:#b42318}
.ps-empty{text-align:center;padding:24px}
table.ps-view td,table.ps-view th{padding:6px 5px;font-size:13px}
table.ps-view tbody td.n{cursor:pointer}
table.ps-view tbody td.n:hover{background:#dfc18a22}
table.ps-view td:first-child,table.ps-view th:first-child{position:sticky;left:0;background:#10141b;min-width:80px}
.ps-savebar{position:sticky;bottom:calc(env(safe-area-inset-bottom) + 8px);z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0;padding:10px 12px;border-radius:14px;background:#151a22ee;border:1px solid #ffffff1c;backdrop-filter:blur(6px)}
.ps-savebar .ps-dirty{font-size:13px;color:#9aa0a8}
.ps-savebar.dirty{border-color:#f0b35a88}
.ps-savebar.dirty .ps-dirty{color:#f0b35a;font-weight:600}
.ps-savebar button{min-width:120px;min-height:44px}
@media(max-width:600px){
 .ps-tab{font-size:13px}
 .ps-person{flex-direction:column;align-items:stretch}
 .ps-quick{justify-content:space-between}
 .ps-quick button{flex:1;min-width:0}
 .ps-quick input{width:64px}
 .ps-calc{grid-template-columns:repeat(2,1fr)}
 .ps-mfields{grid-template-columns:1fr 1fr}
 .ps-mfields label:last-child{grid-column:1/-1}
 .ps-sum{grid-template-columns:repeat(2,1fr)}
 .ps-scard{grid-template-columns:1fr 1fr}
 .ps-scard .ps-sname{grid-column:1/-1}
 .ps-scard .ps-seg{grid-column:1/-1}
}
/* 인건비 버튼: 공용 버튼 스타일(첫 버튼 금색 등)을 덮어쓴다 */
body[data-portal="admin"] :is(.ps-quick,.ps-seg,.ps-tabs) button{background:#25231f!important;color:#e9e6df!important;border:1px solid #ffffff1f!important;box-shadow:none!important;background-image:none!important}
body[data-portal="admin"] .ps-tabs button{background:transparent!important;border-color:transparent!important;color:#b9bcc4!important}
body[data-portal="admin"] :is(.ps-quick,.ps-seg,.ps-tabs) button.on{background:#dfc18a!important;color:#15181c!important;border-color:#dfc18a!important}
.ps-quick button,.ps-seg button,.ps-tabs button{white-space:nowrap;transition:none!important}
.ps-bar label{white-space:nowrap;display:flex;align-items:center;gap:8px}
/* 인건비 v3 — QR 자동 · 성명 */
.ps-nick,.sp-nick{margin-left:6px;font-size:12px;font-weight:400;color:#8a8f99}
.ps-src{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:4px}
.ps-tag{display:inline-block;padding:1px 7px;border-radius:6px;font-size:11px;font-weight:600;background:#ffffff12;color:#b9bcc4}
.ps-tag.qr{background:#1f7a4d33;color:#8fd6a8}.ps-tag.qr.warn{background:#a2530c33;color:#f0b35a}
.ps-tag.edit{background:#dfc18a33;color:#f1d9a4}
.ps-span{font-size:12px;color:#9aa0a8}
body[data-portal="admin"] .ps-link{min-height:28px;height:28px;padding:0 8px;font-size:12px;background:transparent;border:1px solid #ffffff22;color:#dfc18a}
.ps-open{border-color:#f0b35a66;margin-bottom:10px}
.ps-open strong{color:#f0b35a}
.ps-open div{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
body[data-portal="admin"] .ps-open button{min-height:36px;font-size:13px}
table.ps-view td.ov{text-decoration:underline;text-decoration-color:#dfc18a;text-underline-offset:3px;color:#f1d9a4}
table.ps-view td.open{background:#a2530c33}
.staff-name-field{display:grid;gap:6px;margin:12px 0;font-weight:600}
.staff-name-field input{min-height:48px;font-size:17px}
.ps-who>small:not(.ps-nick){display:block;margin-top:2px}.ps-who .ps-nick{display:inline}

/* 관리자 폰 화면 정리: 주문 알림 한 줄, 매장·화면 모드·태블릿을 한 줄로 */
@media(max-width:600px){
 body[data-portal="admin"] #orderAlertBar.order-alert-calm{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-height:0;padding:6px 8px 6px 12px!important;margin:8px 0!important;border-radius:12px}
 body[data-portal="admin"] #orderAlertBar.order-alert-calm *{font-size:13px}
 body[data-portal="admin"] #orderAlertBar.order-alert-calm button{height:30px!important;min-height:30px!important;padding:0 10px!important;font-size:12px!important;margin:0!important;white-space:nowrap}
 body[data-portal="admin"] #orderAlertBar.order-alert-calm>:first-child{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body[data-portal="admin"] #orderAlertBar:not(.order-alert-calm):not(.order-alert-off) button{height:34px!important;min-height:34px!important;padding:0 12px!important;font-size:13px!important;margin:4px 4px 0 0!important}
 body[data-portal="admin"] #orderAlertBar:not(.order-alert-calm):not(.order-alert-off) p{margin:4px 0;font-size:13px}
 body[data-portal="admin"] #orderAlertBar:not(.order-alert-calm):not(.order-alert-off) small{font-size:12px;opacity:.75}
 body[data-portal="admin"] #memberContent{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
 body[data-portal="admin"] #memberContent>*{flex:1 1 100%;min-width:0}
 body[data-portal="admin"] #memberContent>:is(.role-strip,.mode-panel,.tablet-entry-button){flex:0 0 auto;margin:0!important}
 body[data-portal="admin"] #memberContent>.mode-panel[open]{flex:1 1 100%}
 body[data-portal="admin"] .role-strip{gap:0}
 body[data-portal="admin"] .role-strip>label>span,body[data-portal="admin"] .role-strip .role-badge{display:none}
 body[data-portal="admin"] .role-strip select{height:36px;min-height:36px;padding:0 28px 0 12px;font-size:14px}
 body[data-portal="admin"] .mode-panel>summary{height:36px;min-height:36px;padding:0 12px;font-size:13px;display:flex;align-items:center}
 body[data-portal="admin"] .tablet-entry-button{height:36px!important;min-height:36px!important;padding:0 12px!important;font-size:13px!important}
 body[data-portal="admin"] .admin-navigation{margin-top:4px}
 body[data-portal="admin"] .admin-category-tabs button{font-size:13px}
}

/* 족보 이벤트 지급 내역 */
.hr-card{margin-top:16px}
.hr-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.hr-head h3{margin:0;font-size:17px}
.hr-head h3 small{font-size:12px;font-weight:400;color:#8a8f99;margin-left:6px}
.hr-head button{height:34px;min-height:34px;padding:0 12px;font-size:13px;margin:0}
.hr-list{display:grid;gap:6px}
.hr-row{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px 12px;border:1px solid #ffffff14;border-radius:12px;background:#ffffff06}
.hr-main{display:flex;align-items:baseline;gap:8px;min-width:0}
.hr-main strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hr-prize{font-size:13px;color:#dfc18a;white-space:nowrap}
.hr-meta{grid-column:1;font-size:12px;color:#8a8f99}
.hr-side{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:2px;text-align:right}
.hr-side b{font-size:15px}
.hr-side small{font-size:11px;color:#8a8f99}
.hr-st{font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px;background:#ffffff14;color:#cfd2d8}
.hr-st.hr-available{background:#dfc18a26;color:#dfc18a}
.hr-st.hr-used{background:#6fcf9722;color:#6fcf97}
.hr-st.hr-expired{background:#ff6b6b1f;color:#ff8a8a}
body[data-portal] button.hr-row{width:100%;height:auto!important;min-height:0!important;margin:0!important;text-align:left;font:inherit;color:inherit!important;background:#ffffff06!important;border:1px solid #ffffff14!important;box-shadow:none!important;cursor:pointer;justify-content:initial}
body[data-portal] button.hr-row:hover{border-color:#dfc18a55!important}
.hr-cancel{grid-column:1/-1;font-size:12px;color:#ff8a8a}
.hr-tip{margin:8px 0 0;font-size:12px;color:#8a8f99}
button.danger{background:#b4232f!important;color:#fff!important;border-color:#b4232f!important}
.rank-soon{text-align:center;padding:24px 16px}
.rank-soon strong{display:block;font-size:17px;color:#dfc18a;margin-bottom:6px}
.rank-soon p{margin:0;color:#b9bcc4;font-size:14px}

/* 주문 알림: 소리 꺼짐·준비 전 한 줄 */
#orderAlertBar.order-alert-off{border-radius:12px}
#orderAlertBar .oa-line{display:flex;align-items:center;gap:6px}
#orderAlertBar .oa-line strong{flex:1;min-width:0;font-size:14px;line-height:1.3}
#orderAlertBar .oa-line button{flex:0 0 auto;height:32px!important;min-height:32px!important;padding:0 12px!important;font-size:13px!important;margin:0!important;white-space:nowrap}
#orderAlertBar .oa-line button.oa-on{background:#dfc18a!important;color:#15181c!important;border-color:#dfc18a!important;font-weight:700}
#orderAlertBar .oa-help{display:block;margin-top:4px;font-size:12px;color:#a8a293}
.join-store-check{margin:6px 0 10px;padding:10px 12px;border-radius:10px;background:#ffbd4a1f;border:1px solid #ffbd4a66;color:#ffd58a;font-size:14px}
.join-store-check strong{color:#fff}
.fv-state{margin:6px 0;padding:6px 10px;border-radius:8px;font-size:13px;background:#ffbd4a1a;border:1px solid #ffbd4a4d;color:#ffd58a}
.fv-state.fv-done{background:#6fcf9718;border-color:#6fcf9744;color:#8fe0b4}
/* 한가위 이벤트 (9/23~9/26) */
.chuseok-card{border:1px solid #dfc18a55;background:linear-gradient(135deg,#2a2416,#171a1c)}
.chuseok-card h3{margin:0 0 8px;font-size:17px;color:#f1d9a4}
.chuseok-card p{margin:4px 0;font-size:14px;color:#cfd2d8}
.chuseok-card b{color:#dfc18a}
.chuseok-note{font-size:12px!important;color:#8a8f99!important;margin-top:8px!important}
.chuseok-picks{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}
.chuseok-pick{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #ffffff1f;border-radius:10px;font-size:14px}
.chuseok-pick:has(input:checked){border-color:#dfc18a;background:#dfc18a1a}

/* 회원 탈퇴 · 재가입 (고객 화면) */
.withdraw-card{margin-top:18px}
.withdraw-card>summary{font-size:14px;color:#8a8f99}
.withdraw-card p{font-size:13px;line-height:1.55}
.withdraw-left{color:#e0a33a;font-weight:600}
.withdraw-gate{text-align:left}
.withdraw-gate h2{margin-top:0}

/* 이벤트 대회 · 바운티 */
.bounty-card .bounty-sum{font-size:15px;margin:6px 0 10px}
.bounty-card .bounty-sum strong{color:#e0a33a}
.bounty-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.bounty-list{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.bounty-row{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;width:100%;text-align:left;padding:10px 12px;border:1px solid #2a2f3a;border-radius:10px;background:#141922;color:inherit}
.bounty-row b{font-size:15px;color:#e0a33a}
.bounty-row small{grid-column:1/-1;color:#8a8f99;font-size:12px}
.bounty-row.cancelled{opacity:.5;text-decoration:line-through}
.bounty-row:disabled{cursor:default}
.game-table-count{font-weight:600}

/* 이벤트 대회 · 테이블 현황과 밸런싱 */
.cup-tables{margin:4px 0;font-variant-numeric:tabular-nums}
.card.reg-closed{border-color:#e3c07a}
.card.reg-closed h3{color:#e3c07a}
.cup-moves{margin:8px 0 12px;padding-left:18px}
.cup-moves li{margin-bottom:6px}

/* 2026-10-01 · 주문 알림 줄 안의 소리 설정 버튼 */
#orderAlertBar .oa-gear{background:transparent!important;border:1px solid #5b4f37!important;color:#d9cfb8!important;font-weight:500}
/* 2026-10-01 · 관리자 화면의 오늘 예상 인건비 카드: 어두운 화면에 맞춰 작게 (대표 대시보드는 그대로) */
body[data-portal="admin"] .live-labor{gap:10px;margin:10px 0;color:#ece6d8}
body[data-portal="admin"] .labor-store{padding:12px 16px;border:1px solid #3a3a33;border-radius:12px;background:#1d201e}
body[data-portal="admin"] .labor-store>span{font-size:12px;font-weight:600;color:#bfb49a}
body[data-portal="admin"] .labor-store>strong{font-size:24px;line-height:1.35;letter-spacing:-.5px;color:#dfc18a}
body[data-portal="admin"] .labor-store>small{font-size:11.5px;line-height:1.55;color:#8f9a92}
@media(max-width:600px){body[data-portal="admin"] .labor-store>strong{font-size:22px}}

/* 2026-10-01 · 회원 검색 결과: 여러 명이면 한 줄 목록 */
.member-pick-note{margin:6px 0;font-size:13px;color:#a8a293}
.member-pick-list{display:grid;gap:6px}
.member-pick-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 12px!important;min-height:44px;border:1px solid #3a3a33!important;border-radius:10px;background:#1d201e!important;color:#ece6d8!important}
.member-pick-row b{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.member-pick-row span{flex:1;min-width:0;font-size:12.5px;color:#a8a293}
.member-pick-row em{font-style:normal;font-size:13px;font-weight:700;color:#dfc18a}
.member-pick-row:hover{border-color:#dfc18a!important}
.member-pick-head{margin:6px 0}
.member-pick-head button{font-size:13px!important;padding:6px 12px!important}

/* 2026-10-01 · 예상 프라이즈: 한 줄 칩, 눌러야 순위별 금액 */
.game-prize-chip{display:inline-block;max-width:100%;margin:6px 0;border:1px solid #5b4f37;border-radius:999px;padding:0;font-size:13px}
.game-prize-chip[open]{display:block;border-radius:12px}
.game-prize-chip>summary{display:flex;align-items:center;gap:8px;padding:5px 12px;cursor:pointer;list-style:none;white-space:nowrap}
.game-prize-chip>summary::-webkit-details-marker{display:none}
.game-prize-chip>summary b{color:#dfc18a;font-variant-numeric:tabular-nums}
.game-prize-chip>summary small{color:#a8a293;font-size:12px}
.game-prize-chip>p{margin:0;padding:0 12px 4px;font-size:13px}
.game-prize-chip>small{display:block;padding:0 12px 8px;font-size:11.5px;color:#a8a293}

/* 2026-10-01 · 예상 프라이즈 B안: 큰 숫자 + 순위. 게임 카드에서는 제목(메가 · 빨강) 바로 옆 */
.game-prize-b{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 14px;align-items:center;padding:8px 14px;margin:6px 0;background:#232620;border-radius:10px}
.game-prize-b .gp-big{grid-row:span 2;font-size:26px;font-weight:700;line-height:1.1;color:#dfc18a;font-variant-numeric:tabular-nums}
.game-prize-b .gp-big small{font-size:14px;margin-left:1px}
.game-prize-b .gp-rows{font-size:13px;min-width:0;word-break:keep-all}
.game-prize-b .gp-note{font-size:11.5px;color:#8f9a92;min-width:0}
section.card:has(> .game-prize-b){display:flex;flex-wrap:wrap;align-items:center;column-gap:14px}
section.card:has(> .game-prize-b)>*{flex:1 1 100%;min-width:0}
section.card:has(> .game-prize-b)>h3{flex:0 1 auto;order:0;margin:0}
section.card:has(> .game-prize-b)>.game-prize-b{flex:0 1 auto;order:1;margin:4px 0}
section.card:has(> .game-prize-b)>:not(h3):not(.game-prize-b){order:2}

/* 2026-10-01 · 테이블 수 → MTT 진행 여부 */
.game-table-count.mtt{color:#dfc18a}
.game-table-max{font-size:12px;color:#a8a293}

/* 2026-10-01 · 테이블 옵션은 버튼 하나 → 창 */
.game-table-menu{font-size:13px!important;padding:5px 12px!important;min-height:0!important;height:auto!important;border-radius:999px!important}
.game-table-menu.mtt{border-color:#dfc18a!important;color:#dfc18a!important}
.table-menu-actions{display:grid;gap:8px;margin:12px 0}
.table-menu-actions button{width:100%}
/* 2026-10-01 · 게임 현황 정리: 도구 줄 · 게임 칩 · 한 게임만 · 테이블 칩 */
.games-toolbar{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin:8px 0 12px}
.games-toolbar>details.card{flex:0 0 auto;margin:0;padding:0;border-radius:999px}
.games-toolbar>details.card>summary{padding:7px 14px;font-size:14px;font-weight:600}
.games-toolbar>details.card[open]{flex-basis:100%;border-radius:12px}
.games-toolbar>details.card[open]>summary{border-bottom:1px solid #34372f}
.games-toolbar>details.card[open]>form{padding:12px}
.games-toolbar>section.card{flex-basis:100%;margin:0}
.games-toolbar .games-tool{font-size:14px!important;padding:7px 14px!important;min-height:0!important;height:auto!important;border-radius:999px!important}
.game-chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin:0 0 12px}
.game-chip{flex:0 0 auto;display:grid;gap:1px;text-align:left;padding:8px 14px!important;min-height:0!important;height:auto!important;border-radius:12px!important;border:1px solid #3a3a33!important;background:#1d201e!important;color:#ece6d8!important}
.game-chip b{font-size:14px}
.game-chip small{font-size:12px;color:#a8a293}
.game-chip.running small{color:#7fc6a4}
.game-chip.active{border-color:#dfc18a!important;background:#2a2619!important}
.game-stat{margin:4px 0 8px;font-size:12.5px;color:#a8a293}
.game-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px}
.game-actions>.game-control-bar{display:contents}
.game-actions>.game-control-bar>div{display:contents}
.game-actions>.game-control-bar>p,.game-actions>.game-control-bar>small{display:none}
.game-actions>.game-control-bar:has(button[disabled])>p{display:block;flex-basis:100%;margin:0;font-size:12px;color:#a8a293}
.game-more{flex:0 0 auto}
.game-more>summary{padding:6px 12px;border:1px solid #3a3a33;border-radius:999px;font-size:13px;cursor:pointer;list-style:none}
.game-more>summary::-webkit-details-marker{display:none}
.game-more[open]{flex-basis:100%}
.game-more[open]>summary{display:inline-block;margin-bottom:8px}
.table-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin:0 0 10px}
.table-tab{flex:0 0 auto;display:grid;gap:0;text-align:center;padding:6px 12px!important;min-height:0!important;height:auto!important;border-radius:10px!important;border:1px solid #3a3a33!important;background:#1d201e!important;color:#ece6d8!important}
.table-tab b{font-size:13px}
.table-tab small{font-size:12px;color:#a8a293;font-variant-numeric:tabular-nums}
.table-tab.low small{color:#f0a868;font-weight:700}
.table-tab.active{border-color:#dfc18a!important;background:#2a2619!important}
.table-area:not(.dealer-target)[data-focus="1"] [data-tbl]:not([data-tbl="1"]){display:none!important}
.table-area:not(.dealer-target)[data-focus="2"] [data-tbl]:not([data-tbl="2"]){display:none!important}
.table-area:not(.dealer-target)[data-focus="3"] [data-tbl]:not([data-tbl="3"]){display:none!important}
.table-area:not(.dealer-target)[data-focus="4"] [data-tbl]:not([data-tbl="4"]){display:none!important}
.table-area:not(.dealer-target)[data-focus="5"] [data-tbl]:not([data-tbl="5"]){display:none!important}
.table-area:not(.dealer-target)[data-focus="6"] [data-tbl]:not([data-tbl="6"]){display:none!important}
.table-area:not(.dealer-target)[data-focus] h4[data-tbl]{display:none!important}
.game-actions>.game-control-bar{display:contents!important;border:0!important;padding:0!important;background:none!important}
.game-more{border:0!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important}
.game-more>summary{display:inline-flex!important;align-items:center;white-space:nowrap;padding:6px 14px!important;border:1px solid #3a3a33!important;border-radius:999px!important;font-size:13px!important;min-height:0!important}
.game-more>summary::before{content:none!important}
.game-actions button{width:auto!important;flex:0 0 auto!important}
/* 2026-10-01 · 3층 정리: 머리글 → 테이블 줄(탭 + 도구) → 좌석판 */
.games-toolbar{align-items:center}
.games-toolbar .games-tool-main{background:#dfc18a!important;color:#15181c!important;border-color:#dfc18a!important;font-weight:700}
.games-toolbar .games-tool-quiet{margin-left:auto;background:transparent!important;color:#a8a293!important;border-color:#34372f!important;font-size:13px!important}
.games-note{font-size:13px;color:#a8a293}
.table-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 6px}
.table-head .table-tabs{margin:0;flex:1 1 auto;min-width:0}
.table-head-tools{display:flex;align-items:center;gap:6px;margin-left:auto;flex:0 0 auto}
.table-head-tools .felt-tools{display:contents}
.table-head-tools button{font-size:12.5px!important;padding:5px 10px!important;min-height:0!important;height:auto!important;border-radius:8px!important}
.table-live{font-size:11.5px;color:#7fc6a4;white-space:nowrap}
.table-area p.table-sync{display:none}
.table-area:not([data-focus]):not(.dealer-target) .table-head-tools .felt-tools[data-tbl]:not([data-tbl="1"]){display:none}
.dealer-target .table-tabs{display:none}
.dealer-target[data-dealer-table="1"] .table-head [data-tbl]:not([data-tbl="1"]),.dealer-target[data-dealer-table="2"] .table-head [data-tbl]:not([data-tbl="2"]),.dealer-target[data-dealer-table="3"] .table-head [data-tbl]:not([data-tbl="3"]),.dealer-target[data-dealer-table="4"] .table-head [data-tbl]:not([data-tbl="4"]),.dealer-target[data-dealer-table="5"] .table-head [data-tbl]:not([data-tbl="5"]),.dealer-target[data-dealer-table="6"] .table-head [data-tbl]:not([data-tbl="6"]){display:none!important}
/* 2026-10-01 · 게임 현황 8·9·10분 */
.tt-presets{display:inline-flex;border:1px solid #3a3a33;border-radius:8px;overflow:hidden}
.tt-presets .tt-preset{font-size:12.5px!important;padding:5px 9px!important;min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;color:#d9cfb8!important}
.tt-presets .tt-preset+.tt-preset{border-left:1px solid #3a3a33!important}
.tt-presets .tt-preset.active{background:#dfc18a!important;color:#15181c!important;font-weight:700}
.game-not-started{margin:0 0 10px;padding:10px 12px;border:1px solid #e0795f;border-radius:10px;background:#3a1f1a;color:#f7d6cc;font-size:13.5px;line-height:1.5}
.game-not-started b{color:#ffb49e}
/* 인건비: 다른 매장 소속 직원의 지원 근무 */
.ps-tag.sup{background:#3b6fd633;color:#a9c3ff;margin-left:6px}
.ps-person.sup,.ps-mcard.sup{border-left:3px solid #5b8cf0}
table.ps-view tr.sup td{background:#3b6fd614}table.ps-view tr.sup td:first-child{background:#141c2b}
.ps-mhead .ps-tag.sup{margin-right:auto}
/* 직원 계좌: 이체 내역 붙여넣어 한꺼번에 등록 */
.staff-privacy .sp-owner{display:inline-block;margin-left:4px;padding:0 6px;border-radius:5px;font-size:11px;background:#dfc18a26;color:#f1d9a4}
.sp-bulk{margin-top:14px;border-top:1px solid #ffffff12;padding-top:12px}
.sp-bulk summary{cursor:pointer;font-weight:700;color:#f1d9a4}
.sp-bulk textarea{width:100%;margin-top:8px;font-family:ui-monospace,monospace;font-size:13px}
.sp-bulk-actions{display:flex;gap:8px;margin:10px 0}
.sp-bulk-list{display:grid;gap:6px;margin-top:6px}
.sp-bulk-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;border-radius:8px;background:#ffffff08;cursor:pointer}
.sp-bulk-row.bad{opacity:.6;cursor:default}
.sp-bulk-row input{width:auto;min-height:0;margin:0}
.sp-bulk-row .ok{color:#6fcf97}.sp-bulk-row .warn{color:#f2b36b}
/* 직원 핸드폰 출퇴근 버튼 */
.cs-card{border:1px solid #dfc18a55}
.cs-card h3,.cs-review h3,.cs-today h3{margin:0 0 8px}
.cs-state{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15px}
.cs-state b{font-size:18px;color:#cfd3da}.cs-state.on b{color:#6fcf97}
.cs-state span{color:#b9bcc4}
.cs-tag{padding:1px 7px;border-radius:6px;font-size:12px;font-weight:700}.cs-tag.warn{background:#a2530c33;color:#f2b36b}
.cs-actions{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:12px 0 6px}
.cs-btn{flex:1 1 220px;min-height:56px!important;font-size:19px!important;font-weight:800!important}
.cs-btn.out{background:#2b3442!important;color:#f1d9a4!important;border:1px solid #dfc18a77!important}
.cs-note{font-size:12px;margin:4px 0 0}
.cs-review{border:1px solid #a2530c66}
.cs-list{display:grid;gap:8px;margin-top:8px}
.cs-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#ffffff08}
.cs-row small{color:#b9bcc4}
.cs-row button{flex:none;min-height:38px!important;padding:0 14px!important}
.cs-btn.armed{background:#f2b36b!important;color:#1a1206!important;border:0!important}
.cs-tag.ok{background:#1f7a4d33;color:#8fd6a8}.cs-tag{background:#ffffff14;color:#b9bcc4}
.cs-today h3 small{font-weight:500;color:#b9bcc4}
.cs-wait{flex:none;color:#b9bcc4;font-size:12px}
.cs-mgr{border:1px solid #dfc18a44}.cs-mgr h3{margin:0 0 8px}.cs-mgr h3 small{font-weight:500;color:#b9bcc4}
.cs-mgr-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-top:10px}
.cs-mgr-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#b9bcc4;flex:1 1 150px}
.cs-mgr-btns{display:flex;gap:8px;flex:1 1 220px}.cs-mgr-btns button{flex:1;min-height:46px!important;font-weight:700!important}
tr.cs-pickable{cursor:pointer}tr.cs-pickable:hover td{background:#dfc18a14}tr.cs-open td{color:#f2b36b}
.cs-today [data-action="nav"]{margin-top:10px}
form[data-form="attendanceReport"]{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;align-items:end}form[data-form="attendanceReport"]>label{min-width:0;margin:0}form[data-form="attendanceReport"] input{width:100%;min-width:0;box-sizing:border-box}form[data-form="attendanceReport"]>button{grid-column:1/-1;margin:0}
.cs-mgr-list{display:grid;gap:8px;margin-top:10px}
.cs-mgr-row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#ffffff08;border-left:3px solid transparent}
.cs-mgr-row.on{border-left-color:#5fc48a;background:#1f7a4d1f}.cs-mgr-row.editing{border-left-color:#dfc18a}
.cs-mgr-who{display:flex;flex-direction:column;gap:2px;min-width:0}.cs-mgr-who b{font-size:16px}
.cs-mgr-st{font-size:13px;color:#b9bcc4}.cs-mgr-st.on{color:#8fd6a8;font-weight:700}.cs-mgr-st.none{color:#8a8d95}
.cs-mgr-go{flex:none;min-width:84px;min-height:42px!important;margin:0!important;font-weight:700!important}
.cs-mgr-edit{flex:1 1 100%;display:grid;gap:8px}.cs-mgr-edit label{display:grid;gap:4px;font-size:12px;color:#b9bcc4;margin:0}.cs-mgr-edit input{width:100%;box-sizing:border-box;min-width:0}
.cs-mgr-edit .cs-mgr-btns{flex:none}.cs-mgr-edit .muted{margin:0;font-size:12px}
.cs-mgr-warn{margin:0;padding:8px 10px;border-radius:8px;background:#a2530c33;color:#f2b36b;font-weight:700;font-size:14px}
.cs-mgr-nick{font-size:12px;font-weight:400;color:#8a8d95;margin-left:4px}
/* 직원 출퇴근 처리: 2열 카드 (편집 중인 줄은 한 줄 전체) */
.cs-mgr-list{grid-template-columns:1fr 1fr}
.cs-mgr-row{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:8px;min-width:0}
.cs-mgr-edit{flex:none}
.cs-mgr-row .cs-mgr-who b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-mgr-row .cs-mgr-go{width:100%;min-width:0}
.cs-mgr-row.editing{grid-column:1/-1}
