*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,"Noto Sans KR",sans-serif;color:#171717;background:#f5f5f5}button,input,textarea{font:inherit}.hidden{display:none!important}.boot{position:fixed;inset:0;display:grid;place-items:center;background:#fff;font-size:34px;font-weight:900;letter-spacing:-2px;z-index:20}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(420px,100%);background:#fff;border:1px solid #e8e8e8;border-radius:22px;padding:34px;box-shadow:0 16px 50px rgba(0,0,0,.06)}.login-card.wide{width:min(560px,100%)}.brand,.side-brand{font-weight:900;letter-spacing:-1.5px}.brand{font-size:28px}.admin-label,.side-admin{font-size:11px;letter-spacing:2px;color:#999;margin-top:2px}.login-card h1{margin:32px 0 8px;font-size:24px}.login-card p{color:#707070;line-height:1.6}.login-card label{display:block;font-size:13px;font-weight:700;margin:16px 0 7px}.login-card input{width:100%;height:48px;border:1px solid #d8d8d8;border-radius:12px;padding:0 14px;outline:none}.login-card input:focus{border-color:#171717}.login-card form button,.primary{width:100%;height:50px;border:0;border-radius:12px;background:#171717;color:#fff;font-weight:800;margin-top:18px;cursor:pointer}.error-text{min-height:20px;color:#c02828;font-size:13px;margin-top:12px}.uid-box{background:#f6f6f6;border-radius:12px;padding:14px;margin:18px 0}.uid-box span{display:block;font-size:11px;color:#888}.uid-box strong{display:block;word-break:break-all;margin-top:5px;font-size:13px}.small{font-size:13px}.row{display:flex;gap:10px}.row button{margin-top:8px}.secondary{border:1px solid #d7d7d7;background:#fff;color:#171717;border-radius:10px;padding:10px 14px;cursor:pointer}.app{min-height:100vh;display:grid;grid-template-columns:220px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#171717;color:#fff;padding:28px 18px;display:flex;flex-direction:column}.side-brand{font-size:24px}.sidebar nav{margin-top:36px;display:grid;gap:5px}.nav-item{width:100%;border:0;background:transparent;color:#aaa;text-align:left;padding:12px 13px;border-radius:10px;cursor:pointer;font-weight:700}.nav-item.active{background:#fff;color:#171717}.nav-item.muted{cursor:default;color:#666}.nav-item span{float:right;font-size:10px;font-weight:400}.side-footer{margin-top:auto;border-top:1px solid #333;padding-top:18px;color:#aaa;font-size:12px}.side-footer button{margin-top:12px;width:100%;background:#2b2b2b;color:#ddd;border:0;border-radius:9px;padding:10px;cursor:pointer}.content{padding:30px 34px 60px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.topbar h1{font-size:28px;margin:0}.topbar p{margin:6px 0 0;color:#8a8a8a;font-size:13px}.small-button{font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;margin-bottom:18px}.metric{background:#fff;border:1px solid #e7e7e7;border-radius:16px;padding:18px}.metric span{font-size:12px;color:#888}.metric strong{display:block;font-size:25px;margin-top:8px}.panel{background:#fff;border:1px solid #e7e7e7;border-radius:16px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #eee}.panel h2{font-size:17px;margin:0}.panel-head p{font-size:12px;color:#888;margin:5px 0 0}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th{background:#fafafa;color:#777;font-size:11px;text-align:left;padding:12px 14px;border-bottom:1px solid #eee;white-space:nowrap}.data-table td{padding:13px 14px;border-bottom:1px solid #f0f0f0;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table .main{font-weight:750}.data-table .sub{color:#999;font-size:11px;margin-top:3px}.badge{display:inline-block;border-radius:999px;background:#f0f0f0;padding:4px 8px;font-size:10px;font-weight:700}.badge.on{background:#e6f8ed;color:#197444}.badge.warn{background:#fff4dd;color:#946000}.tabs{display:flex;gap:8px;margin-bottom:12px}.tab{border:1px solid #ddd;background:#fff;border-radius:999px;padding:8px 14px;cursor:pointer;font-size:12px;font-weight:700}.tab.active{background:#171717;color:#fff;border-color:#171717}.empty{padding:40px;text-align:center;color:#aaa}.empty.tall{min-height:420px;display:grid;place-items:center}.support-layout{display:grid;grid-template-columns:340px 1fr;gap:14px}.support-list-panel{min-height:600px}.support-chat-panel{min-height:600px}.support-item{padding:14px 16px;border-bottom:1px solid #eee;cursor:pointer}.support-item:hover,.support-item.active{background:#f7f7f7}.support-item strong{font-size:13px}.support-item p{font-size:12px;color:#777;margin:6px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-item small{display:block;color:#aaa;margin-top:6px}.chat-head{padding:16px 18px;border-bottom:1px solid #eee}.chat-head strong{display:block}.chat-head span{font-size:11px;color:#999}.messages{height:430px;overflow:auto;padding:20px;background:#fafafa}.message{max-width:72%;margin:0 0 12px;padding:11px 13px;border-radius:14px;background:#fff;border:1px solid #e8e8e8;font-size:13px;line-height:1.5;word-break:break-word}.message.support{margin-left:auto;background:#171717;color:#fff;border-color:#171717}.message small{display:block;margin-top:6px;opacity:.55;font-size:10px}.message img{display:block;max-width:240px;border-radius:9px;margin-top:7px}.reply-form{display:grid;grid-template-columns:1fr 110px;gap:10px;padding:14px;border-top:1px solid #eee}.reply-form textarea{resize:none;border:1px solid #ddd;border-radius:10px;padding:10px;outline:none}.reply-form button{border:0;border-radius:10px;background:#171717;color:#fff;font-weight:800;cursor:pointer}.toast{position:fixed;right:24px;bottom:24px;background:#171717;color:#fff;padding:12px 16px;border-radius:10px;font-size:12px;box-shadow:0 8px 30px rgba(0,0,0,.2)}code{background:#f2f2f2;padding:2px 5px;border-radius:5px}@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(3,1fr)}.support-layout{grid-template-columns:1fr}.support-list-panel{min-height:auto}.support-chat-panel{min-height:500px}}@media(max-width:760px){.app{grid-template-columns:1fr}.sidebar{position:relative;height:auto;padding:18px}.sidebar nav{grid-template-columns:repeat(4,1fr);margin-top:18px}.nav-item{font-size:11px;text-align:center;padding:9px 4px}.nav-item.muted{display:none}.side-footer{display:none}.content{padding:20px 14px 40px}.metric-grid{grid-template-columns:repeat(2,1fr)}.support-layout{grid-template-columns:1fr}.topbar h1{font-size:23px}}
.detail-button{border:1px solid #d8d8d8;background:#fff;color:#171717;border-radius:8px;padding:6px 10px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}.detail-button:hover{border-color:#171717}.detail-modal{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:28px}.detail-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.32)}.detail-card{position:relative;width:min(920px,100%);max-height:min(86vh,900px);display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 28px 80px rgba(0,0,0,.25);overflow:hidden}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #eee}.detail-head h2{margin:0;font-size:20px}.detail-head p{margin:5px 0 0;color:#999;font-size:11px;word-break:break-all}.detail-close{width:36px;height:36px;border:1px solid #ddd;border-radius:10px;background:#fff;font-size:24px;line-height:1;cursor:pointer}.detail-body{padding:20px 22px 26px;overflow:auto}.detail-loading{padding:60px;text-align:center;color:#aaa}.detail-section{margin-bottom:22px}.detail-section:last-child{margin-bottom:0}.detail-section h3{margin:0 0 10px;font-size:14px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.detail-kv{min-width:0;border:1px solid #ececec;background:#fafafa;border-radius:11px;padding:11px 12px}.detail-kv span{display:block;font-size:10px;color:#999;margin-bottom:5px}.detail-kv strong,.detail-kv div{display:block;font-size:12px;line-height:1.45;word-break:break-word}.detail-wide{grid-column:1/-1}.detail-text{white-space:pre-wrap}.detail-images{display:flex;flex-wrap:wrap;gap:8px}.detail-images a{display:inline-block;border:1px solid #ddd;border-radius:8px;padding:7px 9px;color:#171717;text-decoration:none;font-size:11px}.detail-images a:hover{border-color:#171717}.detail-note{font-size:11px;color:#888;line-height:1.6}.estimate-card{border:1px solid #e9e9e9;border-radius:12px;padding:13px 14px;margin-bottom:10px}.estimate-card:last-child{margin-bottom:0}.estimate-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.estimate-head strong{font-size:13px}.estimate-meta{font-size:10px;color:#999;margin-top:4px}.estimate-amount{font-size:15px;font-weight:800;white-space:nowrap}.estimate-message{margin-top:9px;font-size:12px;line-height:1.55;white-space:pre-wrap}.status-line{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.detail-empty{padding:24px;text-align:center;color:#aaa;border:1px dashed #ddd;border-radius:10px;font-size:12px}body.modal-open{overflow:hidden}@media(max-width:900px){.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.detail-modal{padding:10px}.detail-card{max-height:92vh;border-radius:14px}.detail-grid{grid-template-columns:1fr}.detail-wide{grid-column:auto}.detail-head,.detail-body{padding-left:16px;padding-right:16px}}
.cash-metrics{margin-bottom:18px}
.cash-plus{font-weight:800;color:#1d4ed8}
.cash-minus{font-weight:800;color:#dc2626}


/* PISIPER_ADMIN_WEB_V4_TAX_REPORT */
.tax-toolbar-panel{margin-bottom:18px}
.tax-controls{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.tax-controls label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#555}
.tax-controls input{height:40px;min-width:160px;border:1px solid #d8d8d8;border-radius:9px;padding:0 11px;background:#fff;color:#222}
.tax-controls button{height:40px}
.tax-warning{margin-top:14px;line-height:1.6}
.tax-note-box{margin:0 0 14px;padding:14px 16px;background:#f7f7f7;border:1px solid #ececec;border-radius:11px;color:#555;font-size:13px;line-height:1.7}
.tax-note-box strong{display:block;color:#222;margin-bottom:6px}
.tax-danger{color:#b42318;font-weight:700}
.tax-test{background:#fff1f0!important;color:#b42318!important;border-color:#ffd0cc!important}
.tax-table td,.tax-table th{white-space:nowrap}
.tax-table td:last-child,.tax-table th:last-child{white-space:normal;min-width:220px}
@media(max-width:760px){
  .tax-controls{align-items:stretch}
  .tax-controls label,.tax-controls input,.tax-controls button{width:100%}
}

/* PISIPER_ADMIN_TAX_PAID_USAGE_LABEL_FIX_V1 */
.tax-metric-note{
  display:block;
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  color:#8a8a8a;
  line-height:1.3;
}

/* 세무 신고 핵심 3개 금액 강조: 충전액 / 환불·취소 / 순 충전액 */
.tax-metrics .metric:nth-child(-n+3){
  border-color:#d9d9d9;
}

.tax-metrics .metric:nth-child(-n+3) span{
  color:#3a3a3a;
  font-weight:800;
}

.tax-metrics .metric:nth-child(-n+3) strong{
  color:#111;
  font-weight:900;
}

/* 순 충전액은 가장 중요하게 한 단계 더 강조 */
.tax-metrics .metric:nth-child(3){
  background:#f2f2f2;
  border-color:#cfcfcf;
  box-shadow:inset 0 0 0 1px #e0e0e0;
}

.tax-metrics .metric:nth-child(3) span{
  color:#222;
}

.tax-metrics .metric:nth-child(3) strong{
  font-size:30px;
  letter-spacing:-0.6px;
}

/* 참고성 지표는 시각적으로 한 단계 낮춤 */
.tax-metrics .metric:nth-child(n+4) span{
  color:#8a8a8a;
  font-weight:600;
}

.tax-metrics .metric:nth-child(n+4) strong{
  color:#3d3d3d;
  font-weight:750;
}

/* PISIPER_ADMIN_TAX_VISUAL_FIX_V2 */

/* 핵심 신고 금액 3개 */
.tax-metrics .metric:nth-child(1),
.tax-metrics .metric:nth-child(2),
.tax-metrics .metric:nth-child(3){
  border:1px solid #c8c8c8 !important;
}

.tax-metrics .metric:nth-child(1) span,
.tax-metrics .metric:nth-child(2) span,
.tax-metrics .metric:nth-child(3) span{
  color:#222 !important;
  font-weight:800 !important;
}

.tax-metrics .metric:nth-child(1) strong,
.tax-metrics .metric:nth-child(2) strong,
.tax-metrics .metric:nth-child(3) strong{
  color:#000 !important;
  font-weight:900 !important;
}

/* 순 충전액은 가장 중요하게 */
.tax-metrics .metric:nth-child(3){
  background:#ececec !important;
  border-color:#b8b8b8 !important;
  box-shadow:0 0 0 1px #d7d7d7 inset !important;
}

.tax-metrics .metric:nth-child(3) strong{
  font-size:30px !important;
}

/* 유료캐시 차감은 참고값이고 신규 매출이 아님 */
.tax-metrics .metric:nth-child(4){
  position:relative;
}
/* 나머지 참고지표는 한 단계 약하게 */
.tax-metrics .metric:nth-child(n+4) span{
  color:#858585 !important;
  font-weight:600 !important;
}

.tax-metrics .metric:nth-child(n+4) strong{
  color:#3d3d3d !important;
  font-weight:750 !important;
}

/* PISIPER_ADMIN_TAX_VISUAL_RESTORE_FINAL_V1 */

/* 이전 ::after 방식의 중복 "매출 아님"은 확실히 숨김 */
#taxMetricGrid.tax-metrics .metric:nth-child(4)::after{
  content:none !important;
  display:none !important;
}

/* 핵심 신고 금액 3개 */
#taxMetricGrid.tax-metrics .metric:nth-child(1),
#taxMetricGrid.tax-metrics .metric:nth-child(2),
#taxMetricGrid.tax-metrics .metric:nth-child(3){
  border:1px solid #c6c6c6 !important;
}

#taxMetricGrid.tax-metrics .metric:nth-child(1) span,
#taxMetricGrid.tax-metrics .metric:nth-child(2) span,
#taxMetricGrid.tax-metrics .metric:nth-child(3) span{
  color:#1f1f1f !important;
  font-weight:800 !important;
}

#taxMetricGrid.tax-metrics .metric:nth-child(1) strong,
#taxMetricGrid.tax-metrics .metric:nth-child(2) strong,
#taxMetricGrid.tax-metrics .metric:nth-child(3) strong{
  color:#000 !important;
  font-weight:900 !important;
}

/* 순 충전액: 가장 강하게 */
#taxMetricGrid.tax-metrics .metric:nth-child(3){
  background:#ededed !important;
  border-color:#b7b7b7 !important;
  box-shadow:inset 0 0 0 1px #d7d7d7 !important;
}

#taxMetricGrid.tax-metrics .metric:nth-child(3) strong{
  font-size:30px !important;
}

/* 4번 이후는 참고지표 */
#taxMetricGrid.tax-metrics .metric:nth-child(n+4) span{
  color:#858585 !important;
  font-weight:600 !important;
}

#taxMetricGrid.tax-metrics .metric:nth-child(n+4) strong{
  color:#3d3d3d !important;
  font-weight:750 !important;
}

/* admin.js에서 출력하는 "매출 아님" 한 줄만 유지 */
#taxMetricGrid .tax-metric-note{
  display:block !important;
  margin-top:6px !important;
  color:#8a8a8a !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
}

/* PISIPER_ADMIN_TAX_DUPLICATE_NOTE_SAFE_V3 */
/* JS에서 출력하는 "매출 아님" 1줄만 남기고 CSS 가상요소 중복만 숨깁니다. */
#taxMetricGrid .metric:nth-child(4)::after{
  content:none !important;
  display:none !important;
}

/* PISIPER_ADMIN_CUSTOMER_VERIFICATION_WEB_V1 */
.ops-setting-card{max-width:760px;border:1px solid #e7e7e7;border-radius:14px;padding:20px;background:#fff}
.ops-setting-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}
.ops-setting-head h3{margin:0 0 6px;font-size:18px}
.ops-setting-head p{margin:0;color:#666;font-size:13px;line-height:1.55}
.ops-choice{display:flex;gap:12px;align-items:flex-start;border:1px solid #dedede;border-radius:12px;padding:15px 16px;margin-top:10px;cursor:pointer}
.ops-choice:has(input:checked){border-color:#222;box-shadow:0 0 0 1px #222 inset;background:#fafafa}
.ops-choice input{margin-top:3px}.ops-choice span{display:flex;flex-direction:column;gap:5px}
.ops-choice strong{font-size:15px}.ops-choice small{font-size:13px;line-height:1.5;color:#666}
.ops-warning{margin-top:16px}.ops-meta{margin:14px 0;padding:11px 13px;border-radius:9px;background:#f7f7f7;color:#666;font-size:12.5px}
@media(max-width:760px){.ops-setting-head{flex-direction:column}#saveCustomerVerificationMode{width:100%}}

/* PISIPER_EXPERT_REVERIFICATION_ADMIN_V1 */
.detail-action-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 8px;
}
.detail-action-row .secondary{
  margin:0;
}
.detail-action-row button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
