/* 관리자와 마이페이지에서 함께 사용하는 회비 장부 */
.fees-root{container-type:inline-size;container-name:fees}
.fees-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 28px}
.fees-kpi{padding:18px;border:1px solid var(--line,rgba(17,17,19,.11));border-radius:14px;background:#fff;min-width:0}
.fees-kpi .l{display:block;font-size:13px;color:#55555e;font-weight:600;margin-bottom:10px}
.fees-kpi .n{display:block;font-size:clamp(20px,2.1vw,28px);font-weight:800;letter-spacing:-.03em;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fees-kpi .s{display:block;margin-top:8px;font-size:12px;line-height:1.6;color:#64646c}
.fees-kpi.bal{background:#fcf5f5;border-color:#e6c8cd}.fees-kpi.bal .n{color:#a6192e}
.fees-kpi small{font-size:14px;color:#64646c;font-weight:500}
.fees-box{padding:22px;border:1px solid var(--line,rgba(17,17,19,.11));border-radius:14px;background:#fff;min-width:0}
.fees-box h3,.fees-form-section h3{margin:0 0 8px;font-size:17px;font-weight:750;color:var(--ink,#111)}
.fees-readonly{font-size:13px;line-height:1.75;color:#64646c;margin:0 0 16px;overflow-wrap:anywhere}
.fees-form-section{margin:0 0 26px;padding:20px;background:#faf9f5;border-radius:12px;border:1px solid var(--line,rgba(17,17,19,.11))}
.fees-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;align-items:start}
.fees-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;color:#4d4d56;min-width:0}
.fees-form label.file{grid-column:1 / -1}
.fees-form input,.fees-form select,.fees-dialog textarea{min-width:0;width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #aaaab2;border-radius:8px;font-size:15px;line-height:1.4;font-family:inherit;background:#fff;color:var(--ink,#111);min-height:44px}
.fees-form input[type=file]{font-size:13px}
.fees-form button{justify-self:start;grid-column:1 / -1}
.fees-primary,.fees-secondary,.fees-del,.fees-rcpt-add,.fees-more{font:inherit;font-size:13px;font-weight:650;min-height:44px;padding:9px 14px;border-radius:8px;cursor:pointer;line-height:1.4}
.fees-primary{border:1px solid #a6192e;background:#a6192e;color:#fff}
.fees-secondary,.fees-more{border:1px solid #aaaab2;background:#fff;color:var(--ink,#111)}
.fees-del{border:1px solid #ddb6bd;background:#fff;color:#a6192e;padding:8px 11px;white-space:nowrap}
.fees-del:hover{background:#fcf5f5}.fees-primary:hover{background:#871326}
.fees-primary:disabled,.fees-secondary:disabled,.fees-del:disabled,.fees-rcpt-add:disabled,.fees-more:disabled{opacity:.55;cursor:wait}
.fees-msg{font-size:13px;line-height:1.7;margin:0 0 12px;color:#1c6e30;overflow-wrap:anywhere}
.fees-msg:empty{display:none}.fees-msg.error{color:#a6192e}
.fees-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}
.fees-table th{position:static!important;top:auto;z-index:auto;background:#faf9f5;font-size:12px;color:#55555e;font-weight:700;text-align:left}
.fees-table th,.fees-table td{padding:14px 10px;border-bottom:1px solid var(--line,rgba(17,17,19,.11));vertical-align:top;line-height:1.65;overflow-wrap:anywhere}
.fees-table th:nth-child(1){width:100px}.fees-table th:nth-child(2){width:54px}.fees-table th:nth-child(3){width:96px}
.fees-table th.amt{width:130px}.fees-table th.action{width:62px}
.fees-table td.date{white-space:nowrap;font-size:13px;color:#55555e;font-variant-numeric:tabular-nums}
.fees-table .amt{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}
.fees-table .amt.in{color:#1c6e30}.fees-table .amt.out{color:#a6192e}
.fees-table .item{font-weight:600;color:var(--ink,#111)}
.fees-table .note{display:block;margin-top:4px;color:#64646c;font-size:13px;font-weight:400;white-space:pre-wrap}
.fees-table .cat{display:inline-block;padding:2px 8px;border-radius:6px;background:#f0eee6;color:#55555e;font-size:12px}
.fees-table .action{text-align:right}.fees-table tbody tr:last-child td{border-bottom:0}
.fees-empty{padding:22px 0!important;color:#64646c;text-align:center!important;font-size:14px;line-height:1.8}
.fees-explanation{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--line,rgba(17,17,19,.11))}
.fees-rcpts{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;align-items:center}
.fees-rcpt-wrap{display:inline-flex;position:relative;padding-top:4px;padding-right:8px}
.fees-rcpt{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border:1px solid #c9c9ce;border-radius:8px;background:#f5f4ef;overflow:hidden;text-decoration:none;color:#55555e;font-size:12px;font-weight:650}
.fees-rcpt img{width:100%;height:100%;object-fit:cover;display:block}
.fees-rcpt-x{position:absolute;top:-4px;right:-4px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #ddb6bd;border-radius:50%;background:#fff;color:#a6192e;font-size:18px;cursor:pointer;padding:0}
.fees-rcpt-add{display:inline-flex;align-items:center;border:1px dashed #aaaab2;background:#fff;color:#55555e}
.fees-audit{margin-top:24px;border:1px solid var(--line,rgba(17,17,19,.11));border-radius:12px;background:#fff}
.fees-audit summary{padding:16px 20px;cursor:pointer;font-size:15px;font-weight:700;line-height:1.6}
.fees-audit summary span{font-size:12px;font-weight:400;color:#64646c;margin-left:10px}
.fees-audit-body{padding:0 20px 20px}.fees-audit-list{list-style:none;padding:0;margin:0}
.fees-audit-list li{border-top:1px solid var(--line,rgba(17,17,19,.11));padding:18px 0;overflow-wrap:anywhere}
.fees-audit-meta{font-size:12px;color:#64646c;line-height:1.8;margin:0 0 8px}
.fees-audit-entry{display:flex;justify-content:space-between;gap:16px;font-size:14px;line-height:1.6}
.fees-audit-entry strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.fees-audit-reason{margin:10px 0 0;font-size:14px;line-height:1.7;white-space:pre-wrap}
.fees-dialog{box-sizing:border-box;width:min(480px,calc(100% - 32px));max-height:calc(100svh - 32px);border:1px solid #ddd;border-radius:14px;padding:24px;color:var(--ink,#111);background:#fff;overflow:auto;font-family:inherit}
.fees-dialog::backdrop{background:rgba(0,0,0,.5)}
.fees-dialog h3{font-size:19px;margin:0 0 12px}.fees-dialog p{font-size:14px;line-height:1.75;overflow-wrap:anywhere}
.fees-dialog label{display:block;font-size:14px;font-weight:650;margin:18px 0 8px}.fees-dialog textarea{resize:vertical;min-height:100px}
.fees-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.fees-lb{width:min(1000px,calc(100% - 32px));padding:16px}.fees-lb img{display:block;max-width:100%;max-height:75svh;margin:auto}
.fees-lb .fees-dialog-actions{margin-top:12px;align-items:center}.fees-lb .cap{flex:1;margin:0;font-size:13px;color:#55555e}
.fees-kpis~* :is(button,input,select,textarea,a,summary):focus-visible,.fees-dialog :is(button,textarea):focus-visible{outline:3px solid #245eaa;outline-offset:3px}
@container fees (max-width:900px){.fees-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.fees-table th:nth-child(3){width:78px}.fees-table th.amt{width:114px}}
@container fees (max-width:640px){
  .fees-kpis{gap:10px;margin:16px 0 20px}.fees-kpi{padding:14px}.fees-kpi .n{font-size:22px}.fees-kpi .s{font-size:12px}
  .fees-box{padding:16px}.fees-form-section{padding:16px;margin-bottom:22px}.fees-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .fees-form label:nth-child(4),.fees-form label:nth-child(6){grid-column:1 / -1}.fees-form input,.fees-form select,.fees-dialog textarea{font-size:16px}
  .fees-form button{width:100%}.fees-table,.fees-table tbody{display:block;width:100%}
  .fees-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .fees-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px 0;border-bottom:1px solid var(--line,rgba(17,17,19,.11))}
  .fees-table tbody tr:last-child{border-bottom:0}.fees-table td{padding:0;border:0;font-size:14px}
  .fees-table td.date{grid-column:1;grid-row:1}.fees-table td.amt{grid-column:2;grid-row:1}
  .fees-table td.kind{grid-column:1;grid-row:2;font-size:12px;color:#55555e}.fees-table td.category{grid-column:2;grid-row:2;text-align:right}
  .fees-table td.item{grid-column:1 / -1;grid-row:3}.fees-table td.action{grid-column:1 / -1;grid-row:4;text-align:right}
  .fees-table td.fees-empty{grid-column:1 / -1}.fees-rcpt-wrap{padding-right:12px;padding-top:10px}.fees-rcpt-x{width:44px;height:44px;right:-6px;top:-6px}
  .fees-audit summary{padding:16px}.fees-audit-body{padding:0 16px 16px}.fees-audit-entry{gap:10px}.fees-dialog{padding:20px}
}

@media(max-width:700px){.fees-dialog textarea{font-size:16px}.fees-dialog{padding:20px}}
