/* 27판 stmt stream: 자산 현황, 수입 지출, 현금 흐름, 리포트 closed to the approved boards (D_desk_bs/pl/cf/report, M_bs/pl/cf/report) */

/* ---------- heads ---------- */
/* 자산 현황 on PC names the statement and its day under the title (D_desk_bs) */
.phead>.ttl:has(.ph-sub){display:flex;flex-direction:column}
.phead>.ttl>small:has(>.ph-sub){order:2;margin:6px 0 0;font-size:12.5px;font-weight:500;color:var(--ink-3)}
/* 내보내기 and 메모 as plain bordered buttons, no icons (D_desk_bs, D_desk_pl, D_desk_report) */
@media (min-width:1100px){
  .phead .xbtn{height:38px;padding:0 14px;font-size:14px;font-weight:500;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px}
  .phead:has(.xbtn) .pnote{height:38px;padding:0 14px;font-size:14px;font-weight:500;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px}
  .phead:has(.xbtn) .pnote svg{display:none}
}

/* ---------- four numbers ---------- */
.kpi .sub b{font-weight:700;color:var(--ink);font-size:13px}
@media (max-width:1099px){
  .kpi .sub b{font-weight:inherit;color:inherit;font-size:inherit}
  .kpi b small{font-size:inherit;font-weight:inherit;color:inherit;margin-left:0;letter-spacing:inherit}
}

/* ---------- composition bars ---------- */
.mixb-cols{gap:8px 12px}
.mixb.lb .mixb-lg{margin-left:0;gap:6px 12px;font-size:11.5px}
@media (max-width:1099px){
  .mixb-cols span{font-size:11.5px}
  .mixb-cols b{font-size:13px}
  .mixb-bar{height:12px}
}

/* ---------- statement tables (PC) ---------- */
/* group carets are small triangles (▸ ▾) as on every board */
.caret.tri{width:12px;height:12px;color:var(--ink-3)}
.caret.tri svg{display:none}
.caret.tri::before{content:"";display:block;width:0;height:0;border-left:6px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;margin-left:2px}
table.fin .alink .caret.tri{margin:0 4px 0 -2px}
/* the earlier period's column is grey (D_desk_pl) */
table.fin td.cdim,table.fin td.cdim .vfaint{color:var(--ink-3)}
@media (min-width:1100px){
  .stmt table.fin{font-size:13.5px}
  .stmt table.fin th,.stmt table.fin td{padding-top:9px;padding-bottom:9px}
  .stmt table.fin tr.grp td{font-weight:800}
  .stmt table.fin tr.sec.top td{font-size:14.5px}
  .stmt table.fin tr.kid td:first-child{padding-left:32px}
}
/* 전부 펼치기 / 전부 접기: plain words (D_desk_pl, D_desk_cf, phones), bordered on 자산 현황 PC (D_desk_bs) */
.stmt-tools .fold-btns .btn,.cft-tools .fold-btns .btn{border:0;background:none;height:30px;padding:0 4px;font-size:13px;font-weight:500;color:var(--ink-3)}
.stmt-tools .fold-btns .btn:disabled{opacity:.5}
.stmt-tools .fold-btns,.cft-tools .fold-btns{gap:10px}
@media (min-width:1100px){
  .stmt.bs2 .stmt-tools .fold-btns .btn{border:1px solid var(--line);height:32px;padding:0 12px;font-weight:700;color:var(--ink);border-radius:8px}
  .stmt.bs2 .stmt-tools .fold-btns .btn:disabled{color:var(--ink-4);font-weight:500;opacity:1}
  .stmt.bs2 .stmt-tools .fold-btns{gap:6px}
}
@media (hover:hover){.stmt-tools .fold-btns .btn:not(:disabled):hover,.cft-tools .fold-btns .btn:hover{color:var(--ink)}}
/* 자본 sits one quiet tap away under the table */
.cap-q{padding:10px 0 0;justify-content:flex-end}
.cap-q .lnk{color:var(--ink-3);font-weight:500;min-height:36px}
@media (hover:hover){.cap-q .lnk:hover{color:var(--ink)}}

/* ---------- statement lists (phones: M_bs, M_pl) ---------- */
.ms{display:flex;flex-direction:column}
:where(.ms) button{font:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer;width:100%}
.ms .tnum,.ms .v{font-variant-numeric:tabular-nums}
.ms-h{display:flex;justify-content:space-between;font-size:11.5px;color:var(--ink-3);padding:2px 0 6px}
.ms-st{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-weight:900;font-size:15px}
.ms-st .v b{font-weight:900}
.ms-st .v small{font-size:11.5px;font-weight:700;margin-left:6px}
.ms-bs .ms-sec{display:flex;flex-direction:column}
.ms-bs .ms-st{padding:12px 0 9px;border-top:2px solid var(--ink);margin-top:8px}
.ms-bs .ms-sec:first-of-type .ms-st{margin-top:0}
.ms-pl .ms-sec{display:flex;flex-direction:column;margin-top:18px}
.ms-pl .ms-sec:first-of-type{margin-top:4px}
.ms-pl .ms-st{padding:0 0 9px;border-bottom:2px solid var(--ink)}
.ms-g{display:flex;flex-direction:column;gap:6px;padding:11px 0;border-top:1px solid var(--line-2);min-height:44px}
.ms-pl .ms-st+.ms-g{border-top:0}
.ms-g .l1{display:flex;align-items:baseline;gap:4px;min-width:0}
.ms-g .l1 .caret.tri{align-self:center;flex:none}
.ms-g .l1 .n{flex:1 1 auto;min-width:0;font-size:14.5px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-g.leaf .l1 .n{padding-left:0}
.ms-g .l1 .v{font-size:14.5px;font-weight:800;white-space:nowrap}
.ms-g .l2{display:flex;align-items:center;gap:8px;padding-left:16px;font-size:11.5px}
.ms-g .l2 .shr{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px}
.ms-g .l2 .shr>:first-child{flex:1 1 auto;min-width:0}
.ms-g .l2 .pc{color:var(--ink-3);font-weight:600;white-space:nowrap;min-width:30px}
.ms-g .l2 .d{white-space:nowrap;text-align:right;min-width:84px;color:var(--ink-2);font-weight:600}
.ms-pl .ms-g .l2{justify-content:flex-end}
.ms-pl .ms-g .l2 .d{color:var(--ink-3);font-weight:500}
.ms-k{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13.5px;min-height:36px}
.ms-k .n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-k .v{white-space:nowrap}
.ms-k .v small{display:inline-block;font-size:11.5px;color:var(--ink-3);margin-left:6px;text-align:right}
.ms-bs .ms-k{padding:8px 0 8px 18px;border-top:1px solid var(--line-2);background:var(--surface-2)}
.ms-bs .ms-k .v small{min-width:60px}
.ms-pl .ms-k{padding:6px 0 6px 16px}
.ms-pl .ms-k .v small{min-width:70px}
.ms-k.q,.ms-k.hid{color:var(--ink-3)}
.ms-none{font-size:13px;padding:10px 0}
.ms-tot{display:flex;justify-content:space-between;align-items:baseline;gap:10px;background:var(--surface-2);border-radius:8px;padding:12px;margin-top:12px;font-weight:900;font-size:15px}
.ms-tot .v{text-align:right}
.ms-tot .v b{font-weight:900}
.ms-tot .v small{font-size:11.5px;font-weight:700;margin-left:6px;white-space:nowrap}
@media (hover:hover){.ms-g:hover .n,.ms-k:hover .n{text-decoration:underline;text-underline-offset:3px}}
@media (max-width:374px){
  .ms-g .l1 .n,.ms-g .l1 .v{font-size:13.5px}
  .ms-g .l2 .d{min-width:70px}
  .ms-tot{flex-wrap:wrap}
  .ms-tot .v small{display:block;margin:2px 0 0}
}
@media (max-width:1099px){
  /* the tools row: checkbox on the left, 전부 펼치기 / 전부 접기 as words on the right, one line */
  .stmt .stmt-tools{flex-wrap:nowrap;gap:8px;font-size:12.5px}
  .stmt .stmt-tools label{white-space:nowrap}
  .stmt .stmt-tools .fold-btns{flex-wrap:nowrap;gap:8px}
  .stmt .stmt-tools .fold-btns .btn{font-size:12.5px;min-height:36px;padding:0 2px}
  .cap-q{justify-content:flex-start}
}

/* ---------- 리포트 ---------- */
/* plain underline tabs (D_desk_report, M_report) with no band behind them */
.tabs.rp-tabs{gap:22px}
.tabs.rp-tabs button{padding:10px 2px 11px;font-weight:700}
@media (max-width:1099px){
  .tabs.rp-tabs.sticky-tabs{background:var(--surface)}
  .tabs.rp-tabs{gap:18px}
  .tabs.rp-tabs button{padding:9px 0 10px;font-size:14.5px}
}
@media (max-width:1099px){
  /* 36px touch rows for the checkbox and the fold words on every statement tool row (자금 증감 too) */
  .stmt-tools label.row{min-height:36px}
  .stmt-tools .fold-btns .btn{min-height:36px}
}
/* a 0 in a statement row reads like any other number (D_desk_bs, D_desk_pl); the earlier column stays grey */
.stmt table.fin td .vfaint{color:inherit;font-weight:inherit}
