#tab-accounting .btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:var(--accent);color:#fff;
  border:1px solid var(--accent);border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:600;cursor:pointer;
  text-decoration:none;white-space:nowrap;font-family:inherit}
#tab-accounting .btn:hover{background:var(--accent-d)}
#tab-accounting .kpi-head-actions{flex-wrap:wrap}
#tab-accounting .acc-toolbar{flex-wrap:wrap}
#tab-accounting .acc-kinds{flex-wrap:wrap}
#tab-accounting .chip{white-space:nowrap}
#tab-accounting .chip-n{display:inline-block;margin-left:6px;font-size:10px;font-family:var(--mono);opacity:.65}
#tab-accounting .select{width:auto}
#tab-accounting .acc-q{width:220px;max-width:100%}

#tab-accounting .acc-board{display:flex;gap:12px;align-items:stretch;overflow-x:auto;padding:4px 2px 14px;margin-top:4px;scrollbar-width:thin}
#tab-accounting .acc-col{flex:1 1 0;min-width:262px;background:var(--panel-2);border:1px solid var(--line);border-radius:12px;
  padding:10px 9px 8px;min-height:160px;display:flex;flex-direction:column}
#tab-accounting .acc-col-h{display:flex;align-items:center;gap:7px}
#tab-accounting .acc-col-dot{width:9px;height:9px;border-radius:50%;background:var(--check)}
#tab-accounting .acc-col-dot.processing{background:var(--auto)}
#tab-accounting .acc-col-dot.paid{background:var(--normal)}
#tab-accounting .acc-col-t{font-size:13px;font-weight:700}
#tab-accounting .acc-col-n{margin-left:auto;font-size:11px;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:0 8px}
#tab-accounting .acc-col-sum{font-family:var(--mono);font-size:15px;font-weight:700;margin-top:4px}
#tab-accounting .acc-col-hint{font-size:10.5px;color:var(--muted);margin:2px 0 8px;line-height:1.6}
#tab-accounting .acc-drop{display:flex;flex-direction:column;gap:8px;min-height:60px;border-radius:9px;padding:2px;transition:background .12s;flex:1 1 auto}
#tab-accounting .acc-drop.over{background:rgba(184,118,90,.10);outline:1px dashed var(--accent)}
#tab-accounting .acc-none{font-size:11px;color:var(--muted);text-align:center;margin:12px 0}

#tab-accounting .acc-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:9px 11px 7px;cursor:grab;
  box-shadow:0 1px 3px rgba(90,70,50,.05);user-select:none}
#tab-accounting .acc-card:hover{border-color:var(--accent)}
#tab-accounting .acc-card.dragging{opacity:.45}
#tab-accounting .acc-card-h{display:flex;align-items:center;gap:6px}
#tab-accounting .acc-vendor{font-size:12px;color:var(--ink-2);font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tab-accounting .acc-kind{font-size:10px;border-radius:20px;padding:1px 7px;border:1px solid var(--line);background:var(--panel-2);color:var(--ink-2);white-space:nowrap}
#tab-accounting .acc-kind.k1{background:#f7e9e2;border-color:#efd3c6;color:#a2624a}
#tab-accounting .acc-kind.k2{background:var(--normal-bg);border-color:#cfe0d5;color:var(--normal)}
#tab-accounting .acc-kind.k3{background:var(--check-bg);border-color:#ecdcae;color:#8f6a1f}
#tab-accounting .acc-kind.k4{background:var(--auto-bg);border-color:#d3dae6;color:var(--auto)}
#tab-accounting .acc-title{font-size:13px;font-weight:700;line-height:1.45;margin-top:3px}
#tab-accounting .acc-amt{font-family:var(--mono);font-size:15px;font-weight:700;margin-top:4px;border-top:1px dashed var(--line);padding-top:5px}
#tab-accounting .acc-card-f{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;align-items:center}
#tab-accounting .acc-due{font-size:10.5px;border-radius:20px;padding:1px 7px;background:var(--panel-2);border:1px solid var(--line);color:var(--ink-2)}
#tab-accounting .acc-due.over{background:var(--over-bg);border-color:#efcfc4;color:var(--over);font-weight:600}
#tab-accounting .acc-due.soon{background:var(--check-bg);border-color:#ecdcae;color:#8f6a1f}
#tab-accounting .acc-due.paid{background:var(--normal-bg);border-color:#cfe0d5;color:var(--normal)}
#tab-accounting .acc-owner{font-size:10.5px;color:var(--muted)}
#tab-accounting .acc-memo{font-size:10.5px;color:#7a5a06;background:#fff7e6;border:1px solid #f2ddb0;border-radius:20px;padding:0 7px}
#tab-accounting .acc-move{display:flex;align-items:center;gap:6px;margin-top:6px}
#tab-accounting .acc-move .ghost-btn{min-width:30px;font-size:13px;line-height:1;padding:3px 8px}
#tab-accounting .acc-move .ghost-btn:disabled{opacity:.3;cursor:default}
#tab-accounting .acc-no{flex:1;text-align:center;font-size:10px;color:var(--muted);font-family:var(--mono)}

#tab-accounting .acc-docs{margin-top:10px}
#tab-accounting .acct-links{display:flex;flex-direction:column}
#tab-accounting .acct-link{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
#tab-accounting .acct-link:last-child{border-bottom:0}
#tab-accounting .acct-link:hover{background:var(--panel-2)}
#tab-accounting .acct-link-title{font-size:14px;font-weight:600}
#tab-accounting .acct-link-sub{font-size:12px;color:var(--muted)}

#tab-accounting .acc-modal-back{position:fixed;inset:0;background:rgba(54,49,42,.38);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}
#tab-accounting .acc-modal-back[hidden]{display:none}
#tab-accounting .acc-modal{background:var(--panel);border-radius:14px;width:min(640px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.18)}
#tab-accounting .acc-modal-h{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);font-weight:700;font-size:14px}
#tab-accounting .acc-modal-h span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tab-accounting .acc-x{border:0;background:transparent;font-size:20px;cursor:pointer;color:var(--muted);line-height:1}
#tab-accounting .acc-modal-body{padding:14px 16px;overflow-y:auto}
#tab-accounting .acc-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
#tab-accounting .acc-form label{display:flex;flex-direction:column;gap:4px;font-size:11.5px;color:var(--muted);min-width:0}
#tab-accounting .acc-form label.wide{grid-column:1 / -1}
#tab-accounting .acc-form .input,#tab-accounting .acc-form .select{width:100%;box-sizing:border-box;font-size:13px;font-family:inherit;min-width:0}
#tab-accounting .acc-hist{margin-top:14px;border-top:1px solid var(--line-2);padding-top:10px;font-size:12px}
#tab-accounting .acc-hist-h{font-weight:700;margin-bottom:6px;font-size:12px}
#tab-accounting .acc-hist-r{line-height:1.8}
#tab-accounting .acc-hist-r>span:first-child{font-family:var(--mono);color:var(--muted);margin-right:8px}
#tab-accounting .acc-modal-f{display:flex;align-items:center;gap:8px;padding:10px 16px;border-top:1px solid var(--line);flex-wrap:wrap}
#tab-accounting .acc-sp{flex:1}

@media (max-width:880px){
  #tab-accounting .acc-board{flex-direction:column;overflow-x:visible}
  #tab-accounting .acc-col{flex:0 0 auto;min-width:0;min-height:0}
}
@media (max-width:560px){
  #tab-accounting .acc-form{grid-template-columns:1fr}
  #tab-accounting .acc-q{width:100%}
  #tab-accounting .acc-toolbar .select{flex:1 1 auto}
}
