/* =====================================================================
 *  club.css — CLUB 모듈 화면 CSS
 *
 *  [2026-08-27] 조각(view)에 박혀 있던 <style> 을 여기로 모았다.
 *  조각은 화면을 옮길 때마다 다시 받아 오는데, 그때마다 같은 CSS 가
 *  응답에 실려 오고 브라우저가 캐시할 수도 없었다.
 *
 *  고치면 layouts/head-css.php 의 ?v= 를 0.01 올릴 것.
 * ===================================================================== */

/* ── module/CLUB/views/settle/index.html.php ───────────────────────────── */
/* 정산 — 이 화면에서만 쓴다 */
#mlSettle .st-item{padding:10px 14px;border-top:1px solid var(--vz-border-color);cursor:pointer}
#mlSettle .st-item:first-child{border-top:0}
#mlSettle .st-item:hover{background:var(--vz-light)}
#mlSettle .st-item.on{background:var(--vz-primary-bg-subtle)}
#mlSettle .st-item.done{opacity:.7}
#mlSettle .st-item .ti{font-size:13px;font-weight:600;overflow:hidden;
    text-overflow:ellipsis;white-space:nowrap}
#mlSettle .st-bar{height:4px;border-radius:2px;background:var(--vz-border-color);
    margin-top:6px;overflow:hidden}
#mlSettle .st-bar i{display:block;height:100%;background:var(--vz-primary)}

#mlSettle .sh-head, #mlSettle .sh-row{display:grid;gap:0 10px;align-items:center;
    grid-template-columns:minmax(0,1.4fr) 62px 104px 104px 104px 68px}
#mlSettle .sh-head{padding:7px 14px;background:var(--vz-light);
    font-size:11.5px;color:var(--vz-secondary-color)}
#mlSettle .sh-head span:nth-child(n+2){text-align:right}
#mlSettle .sh-row{padding:8px 14px;border-top:1px solid var(--vz-border-color)}
#mlSettle .sh-row.ok{background:rgba(10,179,156,.05)}
#mlSettle .sh-row .nm{font-size:13px;font-weight:500;overflow:hidden;
    text-overflow:ellipsis;white-space:nowrap}
#mlSettle .sh-row .tag{display:inline-block;margin-left:4px;padding:0 5px;
    border-radius:.25rem;font-size:10.5px;
    background:var(--vz-primary-bg-subtle);color:var(--vz-primary)}
#mlSettle .num{font-family:var(--vz-font-monospace);font-size:13px;text-align:right}
#mlSettle .num.w{color:var(--vz-secondary-color);font-size:12px}
#mlSettle .act{text-align:right}

/* 보낼 돈 — 문장처럼 읽히게 */
#mlSettle .pay-line{display:flex;align-items:center;gap:6px;padding:8px 4px;
    border-bottom:1px dashed var(--vz-border-color);font-size:13.5px}
#mlSettle .pay-line:last-child{border-bottom:0}
#mlSettle .pay-line i{color:var(--vz-secondary-color)}

@media (max-width:767.98px){
    #mlSettle .sh-head{display:none}
    #mlSettle .sh-row{grid-template-columns:1fr auto;gap:2px 8px}
    #mlSettle .sh-row .nm{grid-column:1/3}
    #mlSettle .num{grid-column:span 1;text-align:left;font-size:12px}
    #mlSettle .num::before{content:attr(data-lb);color:var(--vz-secondary-color);
        font-size:11px;margin-right:3px}
    #mlSettle .act{grid-column:2;text-align:right}
}

/* ═══ 회비 관리 [58차 UI 재설계] — module/CLUB/views/dues/index.html.php (옛 <style> 을 여기로) ═══ */
#mlDues .ml-dues-kpi .card-body { min-height: 74px; }
#mlDues .ml-dues-bar { height: 6px; margin-top: .45rem; }
/* [61차] card-header-tabs 의 음수 여백(-16px)이 탭 글자를 머리 밖으로 밀어 잘랐다 — 여백 없이 머리 안에 둔다 */
#mlDues .ml-dues-tabs { margin: 0; } #mlDues .ml-dues-tabs .nav-link { padding: .35rem .7rem; white-space: nowrap; line-height: 1.5; }
#mlDues .card-header:has(.ml-dues-tabs) { padding-top: .35rem; padding-bottom: 0; }
#mlDues .ml-dues-tools { row-gap: .35rem; }
#mlDues .dues-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#mlDues .dues-tb { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
#mlDues .dues-tb th, #mlDues .dues-tb td { border-bottom: 1px solid var(--vz-border-color); padding: 6px 4px; text-align: center; font-size: 12.5px; vertical-align: middle; }
#mlDues .dues-tb thead th { background: var(--vz-light); font-size: 11.5px; color: var(--vz-secondary-color); font-weight: 500; position: sticky; top: 0; z-index: 2; }
#mlDues .dues-tb thead th.now { color: var(--vz-primary); font-weight: 700; }
#mlDues .dues-tb tfoot td, #mlDues .dues-tb tfoot th { background: var(--vz-light); border-top: 2px solid var(--vz-border-color); line-height: 1.2; }
/* 회원 이름 칸은 왼쪽에 붙여 둔다 — 옆으로 넘겨도 누구 줄인지 보여야 한다 */
#mlDues .nmcol { position: sticky; left: 0; z-index: 3; background: var(--vz-secondary-bg); text-align: left; min-width: 118px; padding-left: 12px; }
#mlDues thead .nmcol, #mlDues tfoot .nmcol { z-index: 4; background: var(--vz-light); }
#mlDues .nmcol .nm { font-weight: 600; }
#mlDues .nmcol .rl { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: .25rem; font-size: 10.5px; font-weight: 500; background: var(--vz-primary-bg-subtle); color: var(--vz-primary); }
#mlDues .nmcol .rl.off { background: var(--vz-secondary-bg-subtle); color: var(--vz-secondary-color); }
/* [4-203 · 쉼 인원] 쉼 예정 — 회색으로 흐리지 않고 표시만(쉼이 시작되는 달 전까지 보통 회원) */
#mlDues .nmcol .rl.soon { background: var(--vz-warning-bg-subtle); color: var(--vz-warning-text-emphasis, var(--vz-warning)); }
#mlDues tr.off { opacity: .55; }
#mlDues tr.hide { display: none; }
#mlDues .sumcol { min-width: 96px; text-align: right; padding-right: 12px; }
/* 칸 — 색으로 상태를, 아이콘·숫자로 내용을 */
#mlDues .cell { cursor: pointer; min-width: 44px; line-height: 1.2; }
#mlDues .cell:hover { outline: 2px solid var(--vz-primary); outline-offset: -2px; }
#mlDues .cell.paid { background: rgba(10,179,156,.13); color: #0ab39c; }
#mlDues .cell.partial { background: rgba(247,184,75,.16); color: #d98c00; font-size: 11px; }
#mlDues .cell.unpaid { background: rgba(240,101,72,.10); color: #f06548; }
#mlDues .cell.waived { background: var(--vz-light); color: var(--vz-secondary-color); }
#mlDues .cell.none { background: transparent; cursor: default; }
#mlDues .cell.none:hover { outline: 0; }
#mlDues .cell .v { font-family: var(--vz-font-monospace); }
#mlDues .dues-tb th.mon.dim, #mlDues .dues-tb td.mon.dim { opacity: .35; }
/* 범례 */
#mlDues .lg { display: inline-flex; align-items: center; gap: 3px; color: var(--vz-secondary-color); white-space: nowrap; }
#mlDues .lg::before { content: ''; width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
#mlDues .lg.paid::before { background: rgba(10,179,156,.5); }
#mlDues .lg.partial::before { background: rgba(247,184,75,.6); }
#mlDues .lg.unpaid::before { background: rgba(240,101,72,.45); }
#mlDues .lg.waived::before { background: var(--vz-border-color); }
/* 한 달 목록 (폰) */
#mlDues .ml-dues-month .mrow-l { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border-bottom: 1px solid var(--vz-border-color); cursor: pointer; }
#mlDues .ml-dues-month .mrow-l:hover { background: var(--vz-light); }
#mlDues .ml-dues-month .st { width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
#mlDues .ml-dues-month .st.paid { background: rgba(10,179,156,.15); color: #0ab39c; }
#mlDues .ml-dues-month .st.partial { background: rgba(247,184,75,.2); color: #d98c00; }
#mlDues .ml-dues-month .st.unpaid { background: rgba(240,101,72,.12); color: #f06548; }
#mlDues .ml-dues-month .st.waived, #mlDues .ml-dues-month .st.none { background: var(--vz-light); color: var(--vz-secondary-color); }
/* 미납 안내 */
#mlDues .ml-dues-remind-out .msg { border: 1px solid var(--vz-border-color); border-radius: .5rem; padding: .5rem .75rem; margin-bottom: .4rem; font-size: .84rem; white-space: pre-line; position: relative; }
#mlDues .ml-dues-remind-out .msg .cp { position: absolute; right: .4rem; top: .3rem; }
/* 회비 계획 카드 */
#mlDues .ml-dues-plan.off { opacity: .6; }
/* [4-287] 점선 «계획 추가» 카드만 — 계획이 없을 때의 파란 단추(btn-primary · 같은 이름)까지 배경이 지워져 흰 글자가 안 보였다 */
#mlDues .card.ml-dues-planadd { background: transparent; }
#mlDues .card.ml-dues-planadd:hover { background: var(--vz-light); }
#mlDues .ml-dp-months label { margin-right: .5rem; }
@media (max-width: 767.98px) {
    #mlDues .dues-tb { min-width: 640px; }
    #mlDues .nmcol { min-width: 96px; }
    #mlDues .sumcol { min-width: 80px; }
    #mlDues .ml-dues-tabs { overflow-x: auto; }
    #mlDues .ml-dues-legend { width: 100%; }
}
/* [162차 · 친목 점검] 회비 격자 — 청구된 칸은 모서리 점(미수 · D8) · 앞날 칸은 누르면 미리 받기(D25) · 탈퇴 줄(D23) · 납부 내역 줄 → 그 거래(D31) */
#mlDues .dues-tb .cell.billed { position: relative; }
#mlDues .dues-tb .cell.billed::after { content: ''; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #f7b84b; }
#mlDues .lg.billed::before { width: 6px; height: 6px; border-radius: 50%; background: #f7b84b; }
#mlDues .cell.none.future.can { cursor: pointer; }
#mlDues .cell.none.future.can:hover { outline: 2px dashed var(--vz-primary); outline-offset: -2px; }
#mlDues .nmcol .rl.left { background: var(--vz-danger-bg-subtle); color: var(--vz-danger); }
#mlDues tr.ml-dues-pay[data-jid] { cursor: pointer; }
#mlDues .ml-dues-plan[role="button"] { cursor: pointer; }
#mlDues .ml-dues-plan[role="button"]:hover { border-color: var(--vz-primary) !important; }
/* 폰(<576)에서는 탭을 두 줄로 — 옆으로 넘기는 줄이라 넷째 탭(회비 계획)이 잘려 안 보였다(N5) */
#mlDues .ml-dues-tabs { flex-wrap: nowrap; }
@media (max-width: 575.98px) {
    #mlDues .ml-dues-tabs { flex-wrap: wrap; overflow: visible; row-gap: .15rem; }
    #mlDues .ml-dues-tabs .nav-link { padding: .3rem .55rem; }
}

/* [162차 · 4절 X5] 받기 모달 «받은 기록» — 받을 때마다 한 줄 · 고치는 줄은 옅은 파랑.
   모달은 mlModal() 이 body 로 옮기므로 #mlDues 로 좁히지 않는다(정산 모달과 같다 — 이름으로만 건다) */
.ml-dp-pays .ml-dp-payrow { padding: .3rem .35rem .3rem .6rem; min-height: 38px; }
.ml-dp-pays .ml-dp-payrow.on { background: var(--vz-primary-bg-subtle); }
.ml-dp-pays .ml-dp-payrow .btn { padding: .15rem .4rem; }
.ml-dp-pays .ml-dp-payrow b { min-width: 4.5em; text-align: right; }

/* ═══ 회원 관리 [59차] ═══ */
#mlMembers .ml-mb-table tr.ml-mb-row { cursor: pointer; }
#mlMembers .ml-mb-cards .ml-mb-card { padding: .7rem 1rem; border-bottom: 1px solid var(--vz-border-color); cursor: pointer; }
#mlMembers .ml-mb-cards .ml-mb-card:active { background: var(--vz-light); }
#mlMembers .ml-mb-perm .form-check-input { cursor: pointer; }
/* [162차 · 4절 X5] 명부 차례 바꾸기 — «차례 바꾸기» 를 누른 동안(#mlMembers.ml-mb-sorting)만 점 무늬가 보이고 줄을 끈다(mlPointerSort · moneylink.js).
   폰은 점 무늬에서만 끌기가 시작된다(touch-action: none — 거기서 쓸면 화면이 밀리지 않는다 · 나머지 자리는 그대로 스크롤) */
#mlMembers .ml-mb-grip { display: none; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; margin: -.3rem .3rem -.3rem -.45rem; color: var(--vz-secondary-color); font-size: 1.1rem; cursor: grab; touch-action: none; border-radius: .3rem; vertical-align: middle; }
#mlMembers.ml-mb-sorting .ml-mb-grip { display: inline-flex; }
#mlMembers.ml-mb-sorting .ml-mb-grip:hover { background: var(--vz-light); color: var(--vz-primary); }
#mlMembers.ml-mb-sorting .ml-mb-row { cursor: grab; user-select: none; }
#mlMembers .ml-mb-row.ml-ps-drag { opacity: .45; }
#mlMembers tr.ml-mb-row.ml-ps-over > td, #mlMembers .ml-mb-card.ml-ps-over { box-shadow: inset 0 2px 0 var(--vz-primary); }
#mlMembers .ml-mb-sortbar { background: var(--vz-primary-bg-subtle); }
@media (max-width: 767.98px) { #mlMembers .ml-mb-grip { min-width: 38px; min-height: 38px; font-size: 1.3rem; } }
/* ═══ 정산·더치페이 [59차] ═══ */
#mlSettle .ml-st-bar { height: 5px; }
#mlSettle .ml-st-item.off { opacity: .65; }
#mlSettle .ml-st-item .progress-bar { background: var(--vz-success); }
#mlSettle .ml-st-kpi .font-monospace { letter-spacing: -.01em; }
#mlSettle .ml-st-tabs { margin: 0; } #mlSettle .ml-st-tabs .nav-link { padding: .35rem .7rem; white-space: nowrap; line-height: 1.5; }
#mlSettle .card-header:has(.ml-st-tabs) { padding-top: .35rem; padding-bottom: 0; }
#mlSettle .ml-st-transfer .tr-line { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border: 1px solid var(--vz-border-color); border-radius: .5rem; margin-bottom: .4rem; font-size: .9rem; }
#mlSettle .ml-st-transfer .tr-line .from { font-weight: 600; } #mlSettle .ml-st-transfer .tr-line .to { font-weight: 600; color: var(--vz-primary); }
/* [162차 · 친목 점검 · 정산] 모달은 mlModal() 이 body 로 옮긴다 — #mlSettle 로만 좁히면 옮긴 뒤 단계 막대·가중치 칸 폭이 풀려
   가중치 칸이 758px 한 줄씩이었다(N2). 모달 쪽(.ml-st-modal)에도 같은 규칙을 건다 */
#mlSettle .ml-st-pick, .ml-st-modal .ml-st-pick { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
#mlSettle .ml-st-pick .ml-st-pk, .ml-st-modal .ml-st-pick .ml-st-pk { display: flex; align-items: center; gap: .35rem; min-width: 150px; }
#mlSettle .ml-st-pick .ml-st-w, .ml-st-modal .ml-st-pick .ml-st-w { width: 56px; } #mlSettle .ml-st-pick .ml-st-c, .ml-st-modal .ml-st-pick .ml-st-c { width: 110px; }
#mlSettle .ml-st-steps, .ml-st-modal .ml-st-steps { display: flex; gap: .4rem; font-size: .78rem; }
#mlSettle .ml-st-steps span, .ml-st-modal .ml-st-steps span { flex: 1; text-align: center; padding: .3rem .4rem; border-radius: .4rem; background: var(--vz-light); color: var(--vz-secondary-color); }
#mlSettle .ml-st-steps span.on, .ml-st-modal .ml-st-steps span.on { background: var(--vz-primary-bg-subtle); color: var(--vz-primary); font-weight: 600; }
#mlSettle .ml-st-shares th { white-space: nowrap; }
#mlSettle .ml-st-shares tr.ml-st-me > td { background: rgba(var(--vz-info-rgb, 41,156,219), .06); }
#mlSettle .ml-st-transfer .tr-line .btn { margin-left: .25rem; }
@media (max-width: 767.98px) { #mlSettle .ml-st-tabs { overflow-x: auto; } #mlSettle .ml-st-pick .ml-st-pk, .ml-st-modal .ml-st-pick .ml-st-pk { min-width: 100%; } }
