/* 관리자 유통사 화면(#/admin/distributors, assets/admin-distributors.js). 앞머리 dst-. 줄 모양은 관리자 회원·작품 화면(admin-members.css의 amb-)을 그대로 쓴다.
 * 버튼은 남색·흰색만(빨강 없음). 사이트 공통 규칙이 글자색을 덮어써서 body.editorial을 붙인다. */
.dst-page .admin-wrap{max-width:1180px}
body.editorial .dst-top h2{margin-right:6px;font-size:24px!important;font-weight:800;letter-spacing:-.03em}
body.editorial .dst-top .amb-search{margin-left:auto}
body.editorial .amb-btn.dst-primary{border-color:#1e2a4a;background:#1e2a4a;color:#fff!important}
body.editorial a.amb-btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none}
.dst-row{grid-template-columns:minmax(0,2fr) 1.5fr .8fr .7fr 1.2fr 1.3fr 16px;min-height:70px}
body.editorial .dst .amb-c small,body.editorial .dst .dst-st+small,body.editorial .dst-row>span>small{display:block;margin-top:2px;font-size:12px}
body.editorial .dst .dst-warn,body.editorial .dst small.dst-warn,body.editorial .dst b.dst-warn{color:#8a5300!important}
body.editorial .dst-st{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;white-space:nowrap}
.dst-st:before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
body.editorial .dst-st.on{color:#1f7a4d!important}
body.editorial .dst-st.hold{color:#8a5300!important}
body.editorial .dst-st.off{color:#8e8e8e!important}
/* 지금 할 일 */
.dst-todo{margin:16px 0 4px;border:1px solid #e5e5e5;border-radius:10px}
body.editorial .dst-todo h3{padding:12px 16px;border-bottom:1px solid #f0f0f1;font-size:14px}
body.editorial .dst-todo h3 b{margin-left:5px;color:#8a5300!important}
.dst-trow{display:grid;grid-template-columns:190px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:50px;padding:8px 16px;border-bottom:1px solid #f4f4f5;font-size:13.5px}
.dst-trow:last-child{border-bottom:0}
body.editorial .dst-trow>b{font-weight:700;color:#0a0a0a!important}
body.editorial .dst-trow>span{color:#262626!important}
body.editorial .dst-trow small{margin-left:8px;font-size:12.5px}
/* 상세 */
.dst-head{align-items:flex-start}
.dst-badge{display:inline-block;margin-left:8px;padding:3px 9px;border:1px solid #d9dbe1;border-radius:999px;font-size:12px;font-weight:700;color:#3d4250;letter-spacing:0;vertical-align:5px}
.dst-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}
.dst-facts>div{min-width:0;padding:14px 16px;border-left:1px solid #e5e5e5}
.dst-facts>div:first-child{padding-left:2px;border-left:0}
.dst-facts dt{font-size:12.5px;font-weight:600;color:#8e8e8e}
body.editorial .dst-facts dd{margin:5px 0 0;font-size:15px;font-weight:800;color:#0a0a0a!important}
body.editorial .dst-facts dd small{display:block;margin-top:4px;font-size:12.5px;font-weight:500;line-height:1.45}
body.editorial .dst-ver{font-weight:600;color:#8e8e8e!important}
.dst-select{height:32px;padding:0 8px;border:1px solid #d4d4d8;border-radius:6px;background:#fff;font:inherit;font-size:14px;font-weight:700;color:#0a0a0a}
body.editorial .dst-link{display:inline-flex;align-items:center;margin-top:8px;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:700;color:#1e2a4a!important;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#c9ccd4;cursor:pointer;min-height:0!important}
.dst-note{display:flex;align-items:center;gap:12px;margin:12px 0 0;padding:11px 14px;border-radius:8px;background:#f6f7f9;font-size:13.5px;line-height:1.5;color:#3d4250}
.dst-note.warn{background:#fff8ec}
.dst-note .dst-link{flex:none;margin:0 0 0 auto}
.dst-tabs{margin-top:18px!important}
.dst-tabs a{flex:none;padding:11px 1px 9px;font-size:14.5px;font-weight:600;color:#737373!important}
.dst-tabs a.on{font-weight:800;color:#0a0a0a!important;box-shadow:inset 0 -2px #0a0a0a}
body.editorial .dst-tabs a b{margin-left:2px;font-weight:700;color:#a3a3a3!important}
body.editorial .dst-tabs a.on b{color:#0a0a0a!important}
.dst-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 4px}
.dst-wrow{grid-template-columns:minmax(0,2.6fr) .7fr .8fr .9fr 1.5fr 40px;min-height:76px}
.dst-wrow.off{background:#fcfcfc}
.dst-work{display:flex;align-items:center;gap:12px;min-width:0}
.dst-work .amb-who{min-width:0}
body.editorial .dst-work .amb-who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.editorial .dst-work .amb-who small{white-space:normal}
.dst-cover{flex:none;width:40px;height:56px;overflow:hidden;border-radius:3px;background:#f0f0f1}
.dst-cover>*{width:100%!important;height:100%!important}
.dst-cover img{display:block;object-fit:cover}
.dst-menu-cell{display:flex;justify-content:flex-end}
.dst-menu{position:relative}
.dst-menu summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d4d4d8;border-radius:6px;background:#fff;font-size:15px;font-weight:800;color:#404040;cursor:pointer;list-style:none}
.dst-menu summary::-webkit-details-marker{display:none}
.dst-menu>div{position:absolute;right:0;top:38px;z-index:5;width:220px;padding:6px;border:1px solid #e5e5e5;border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(15,20,35,.12)}
body.editorial .dst-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:6px;background:none;font:inherit;font-size:13.5px;font-weight:600;text-align:left;color:#0a0a0a!important;cursor:pointer}
.dst-menu button:hover{background:#f4f4f6}
.dst-menu hr{margin:4px 0;border:0;border-top:1px solid #f0f0f1}
.dst-editrow{padding:10px 14px 14px;border-bottom:1px solid #eceef2;background:#f7f8fa}
.dst-editrow .dst-form{margin-top:0}
.dst-panel{margin:14px 0 0;padding:14px 16px;border:1px solid #e5e5e5;border-radius:10px;background:#fff}
.dst-panel[hidden]{display:none}
body.editorial .dst-panel h3{padding:0;border:0}
.dst-new{margin-top:16px}
/* 계약 탭 */
.dst-contract{padding:16px 2px;border-bottom:1px solid #f0f0f1}
.dst-contract.off{opacity:.75}
.dst-cline{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
body.editorial .dst-cline>b{font-size:16px;font-weight:800}
body.editorial .dst-cmeta{margin:6px 0 0;font-size:13px;color:#737373!important}
.dst-contract .dst-note{display:block}
.dst-file{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.dst-more{margin-top:10px}
body.editorial .dst-more summary{cursor:pointer;font-size:13.5px;font-weight:700;color:#1e2a4a!important}
.dst-newc{margin-top:18px;padding-top:14px;border-top:1px solid #e5e5e5}
.dst-log .amb-line{grid-template-columns:140px minmax(0,1fr) 60px}
body.editorial .dst-log .amb-line b{font-weight:700;color:#0a0a0a!important}
body.editorial .dst-log .amb-line small{margin-left:6px;font-size:12.5px}
/* 입력 칸·버튼(예전과 같음) */
.dst-hint{margin:8px 0 0;color:#6b7180;font-size:13px;line-height:1.55}
body.editorial .dst-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px!important;padding:0 12px;border:1px solid #d6dae2;border-radius:8px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:#1e2a4a!important;cursor:pointer;text-decoration:none}
body.editorial .dst-btn.primary{background:#1e2a4a;border-color:#1e2a4a;color:#fff!important}
body.editorial .dst-btn:disabled{opacity:.5;cursor:default}
.dst-upload{position:relative}
.dst-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:12px}
.dst-form label{display:grid;gap:4px;font-size:12.5px;font-weight:700;color:#3d4250}
.dst-form input:not([type=checkbox]),.dst-form select{min-width:150px;height:36px;padding:0 10px;border:1px solid #d6dae2;border-radius:8px;background:#fff;font:inherit;font-size:13.5px;color:#16181d}
.dst-form .dst-check{display:flex;align-items:center;gap:6px;height:36px;font-weight:600}
.dst-form .dst-hint{flex-basis:100%;margin:0}
.dst-search{display:grid;gap:4px;margin-top:12px;font-size:12.5px;font-weight:700;color:#3d4250}
.dst-search input{max-width:360px;height:38px;padding:0 12px;border:1px solid #d6dae2;border-radius:8px;font:inherit}
.dst-results{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
body.editorial .dst-member{display:inline-flex;align-items:center;gap:6px;min-height:34px!important;padding:0 12px;border:1px solid #d6dae2;border-radius:99px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:#1e2a4a!important;cursor:pointer}
body.editorial .dst-member small{color:#8a8f98!important;font-weight:500}
body.editorial .dst-member.on{background:#1e2a4a;border-color:#1e2a4a;color:#fff!important}
body.editorial .dst-member.on small{color:rgba(255,255,255,.75)!important}
.dst-picked{flex-basis:100%;margin:0;font-size:13.5px}
.dst-noticeform{padding-top:4px}
/* 돌려받을 금액 */
.dst-owed{margin-top:12px;padding:12px 14px;border-radius:8px;background:#fff8ec}
.dst-owed p{margin:0;font-size:13px;color:#3d4250}
.dst-owed .dst-form{margin-top:10px}
@media (max-width:900px){
  .dst-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dst-facts>div:nth-child(3){padding-left:2px;border-left:0}
  .dst-facts>div:nth-child(n+3){border-top:1px solid #e5e5e5}
}
@media (max-width:700px){
  .dst-row{grid-template-columns:minmax(0,1fr) auto;min-height:64px}
  .dst-row>span:nth-child(2),.dst-row>span:nth-child(3),.dst-row>span:nth-child(4),.dst-row>span:nth-child(5),.dst-row>i{display:none}
  .dst-trow{grid-template-columns:minmax(0,1fr) auto}
  .dst-trow>b{grid-column:1/-1}
  body.editorial .dst-trow small{display:block;margin:2px 0 0}
  .dst-wrow{grid-template-columns:minmax(0,1fr) auto 40px;padding:10px 4px}
  .dst-wrow>span:nth-child(2),.dst-wrow>span:nth-child(3),.dst-wrow>span:nth-child(4){display:none}
  .dst-form input:not([type=checkbox]),.dst-form select{min-width:0;width:100%}
  .dst-form label{flex-basis:100%}
  .dst-log .amb-line{grid-template-columns:minmax(0,1fr) auto}
  .dst-log .amb-line time{grid-column:1/-1}
}
/* 정산 지급 화면의 유통사 부분(assets/payouts.js 관리자 지급 목록): 세금계산서 칸, 명세서 합계 줄 */
.pay-act .pay-invoice{display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:240px;margin-left:auto;white-space:normal}
.pay-act .pay-invoice input{width:100%;height:34px;padding:0 8px;border:1px solid #d6dae2;border-radius:8px;font:inherit;font-size:12.5px}
.pay-act small{display:block;margin-top:4px;color:#6b7180;white-space:normal}
.payout-month{margin:4px 0 12px}
.payout-month input{height:36px;padding:0 10px;border:1px solid #d6dae2;border-radius:8px;font:inherit}
.payout-table tr.payout-total td{font-weight:700;border-top:2px solid #e3e6ec}
