@charset "UTF-8";
/*
    영업 > 협력업체 (/sales/partner)

    좌 : 업체 목록 · 우 : 고른 업체의 소속자.
    고객사대시보드(.oc-*)와 같은 두 칸 짜임을 쓴다 — 같은 일(좌에서 고르고
    우에서 다룬다)을 하는 화면이라 다르게 보일 이유가 없다.
*/

.pt-page{ min-width:0; }

.pt-mid{
    display:grid;
    grid-template-columns:380px minmax(0, 1fr);
    gap:12px;
    height:calc(100vh - 210px);
    min-height:420px;
}

.pt-col{
    display:flex; flex-direction:column; min-width:0; min-height:0;
    background:#fff; border:1px solid #e3e8f0; border-radius:10px; padding:14px 16px;
}

.pt-col__head{
    display:flex; align-items:center; justify-content:space-between;
    gap:10px; margin-bottom:10px; flex:none;
}
.pt-col__head h2{
    margin:0; font-size:16px; font-weight:700; color:#243247;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pt-col__btns{ display:flex; gap:6px; flex:0 0 auto; }

.pt-cnt{
    margin-left:6px; padding:1px 9px; border-radius:11px;
    background:#eef3fa; color:#0a529d; font-size:12px; font-weight:700;
}

.pt-filter{ margin-bottom:8px; min-width:0; flex:none; }
.pt-filter .search-box{
    /* index.css 의 .search-box 는 400px 고정이라 380px 칸 밖으로 삐져나간다 */
    width:100%; max-width:100%;
    display:flex; align-items:center; height:40px;
    border:1px solid #d8dee8; border-radius:6px; background:#fff; overflow:hidden;
}
.pt-filter .form-control{ flex:1 1 auto; min-width:0; height:38px; border:0; }
.pt-filter .search-btn{ flex:0 0 auto; width:38px; height:38px; border:0; background:none; cursor:pointer; }

.pt-list-scroll,
.pt-mem-scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; }
.pt-list-scroll .simplebar-content-wrapper,
.pt-mem-scroll  .simplebar-content-wrapper{ overflow-y:auto; }
.pt-list-scroll > .simplebar-wrapper,
.pt-mem-scroll  > .simplebar-wrapper{ height:100%; }

/* ── 업체 한 줄 ─────────────────────────────────────────── */

.pt-list{ list-style:none; margin:0; padding:0; }

.pt-item{
    border:1px solid #e6eaf1; border-radius:8px; padding:10px 12px;
    margin-bottom:8px; cursor:pointer; transition:all .12s;
}
.pt-item:hover{ border-color:#b6cdea; background:#fafcff; }
.pt-item.is-sel{ border-color:#0a529d; background:#f4f9ff; box-shadow:0 0 0 1px #0a529d inset; }

.pt-item__top{ display:flex; align-items:center; gap:6px; }
.pt-item__top b{
    flex:1 1 auto; min-width:0; font-size:14px; color:#1b2b46;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pt-item__cnt{
    flex:0 0 auto; padding:1px 8px; border-radius:9px;
    background:#eef3fa; color:#0a529d; font-size:11px; font-weight:700;
}
.pt-item__sub{
    margin-top:3px; font-size:12px; color:#6b7688;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* 우리 회사 표시. 소속자를 담당자 표에서 가져오는 한 곳뿐이라 눈에 띄게 둔다 */
.pt-own{
    flex:0 0 auto; padding:1px 8px; border-radius:9px;
    background:#eef7f1; color:#1f7a45; font-size:11px; font-weight:700; white-space:nowrap;
}

.pt-muted{ color:#a8b0c0; }
.pt-empty{ margin:0; padding:26px 10px; text-align:center; color:#8a94a6; font-size:13px; }

.pt-own-hint{
    flex:none; margin:0 0 10px; padding:9px 12px; border-radius:6px;
    background:#f4f9ff; border:1px solid #d8e6f7;
    font-size:12.5px; color:#41506a; line-height:1.55;
}
.pt-own-hint b{ color:#0a529d; }

/* ── 소속자 한 줄 ───────────────────────────────────────── */

.pt-mem{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    grid-template-areas:"main btns" "duty btns";
    gap:2px 10px; align-items:center;
    border:1px solid #e6eaf1; border-radius:8px;
    padding:10px 12px; margin-bottom:8px;
}
.pt-mem__main{ grid-area:main; display:flex; align-items:baseline; gap:8px; min-width:0; }
.pt-mem__main b{ font-size:14px; color:#1b2b46; white-space:nowrap; }
.pt-mem__tel{ font-size:12.5px; color:#6b7688; }
.pt-mem__duty{
    grid-area:duty; font-size:12.5px; color:#6b7688;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pt-mem__btns{ grid-area:btns; display:flex; gap:4px; }

/* ── 모달 ───────────────────────────────────────────────── */

/* 골격은 modal_skin.css 공통 .modal__box/__dim/__body. 여기선 폭·여백(6vh)·카드여백만 */
.pt-modal .modal__box{ width:min(520px, calc(100% - 32px)); margin:6vh auto; }
.pt-modal .modal__card{ padding:18px 22px; }

/* ── 소속자 계정 ───────────────────────────────────────── */
/*
   작업요청을 업체에 넘겨 놓고도 그 사람이 로그인할 길이 없으면, 요청은
   우리 화면에만 떠 있는 종이가 된다. 그래서 소속자 줄에서 바로 보이게 둔다.
*/
.pt-mem__acct{ display:flex; align-items:center; gap:6px; margin-top:6px; }
.pt-acct{
    display:inline-block; padding:1px 8px; border-radius:9px;
    font-size:11px; font-weight:700; white-space:nowrap;
}
.pt-acct.is-on{   background:#eaf6ee; color:#1f7a45; }
.pt-acct.is-off{  background:#f1f3f7; color:#8a94a6; }
.pt-acct.is-wait{ background:#fdf6e3; color:#8a6d13; }
.pt-mem__acct .btn{
    width:auto; min-width:0; height:24px; padding:0 9px; font-size:11.5px; white-space:nowrap;
}
