@charset "UTF-8";
/*
    자료공유 > 형상관리 (/share/scm)

    틀은 장비관리와 같다 (도구줄 → 표 → 두 탭 모달).
    탭 모양은 공용(modal_skin.css 의 md-tab*)을 쓴다.

    여기만의 것
      · 주소가 길어 표에서 한 줄을 크게 차지한다 — 말줄임 + 복사 단추로 줄인다
      · Git · SVN 은 색으로 가른다 (글자만으로는 표에서 잘 안 잡힌다)
*/

.scm-page{
    background:#fff; border:1px solid #e3e8f0; border-radius:10px; padding:16px 18px;
}

/* ── 도구줄 ─────────────────────────────────────────────── */

.scm-tool{
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; flex-wrap:wrap; margin-bottom:10px;
}
.scm-tool__right{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }

.scm-search{ width:260px; height:36px; }
.scm-search input{ height:100%; width:100%; padding:0 12px; font-size:14px; }

.scm-tps{ display:flex; flex-wrap:wrap; gap:6px; }
.scm-tpbtn{
    padding:6px 15px; border:1px solid #dfe5ee; border-radius:16px;
    background:#fff; color:#41506a; font-family:inherit; font-size:13px;
    cursor:pointer; white-space:nowrap;
}
.scm-tpbtn:hover{ border-color:#9dc0ee; color:#0a529d; }
.scm-tpbtn.is-on{ background:#0a529d; border-color:#0a529d; color:#fff; font-weight:700; }

.scm-hint{
    display:flex; align-items:center; flex-wrap:wrap; gap:6px;
    margin:0 2px 10px; font-size:12px; color:#77839a;
}
.scm-hint b{ color:#41506a; }
.scm-total{ margin-left:auto; color:#41506a; }
.scm-total b{ color:#0a529d; font-weight:700; }

/* ── 표 ─────────────────────────────────────────────────── */

.scm-scroll{ max-height:calc(100vh - 340px); }
.scm-table tbody tr.scm-row{ cursor:pointer; }
.scm-table tbody tr.scm-row:hover{ background:#f6faff; }
.scm-nm{ font-weight:600; color:#1b2b46; }

/* 주소는 길다. 줄이고, 온전한 값은 마우스를 올렸을 때 본다 */
.scm-url{ display:flex; align-items:center; gap:8px; }
.scm-url__v{
    flex:1 1 auto; min-width:0;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    color:#0a529d; font-family:Consolas, 'Courier New', monospace; font-size:12.5px;
}
.scm-copy{
    flex:0 0 auto; padding:2px 9px; border:1px solid #dfe5ee; border-radius:11px;
    background:#fff; color:#41506a; font-family:inherit; font-size:11px; cursor:pointer;
}
.scm-copy:hover{ border-color:#9dc0ee; color:#0a529d; }

.scm-sw{ font-size:12.5px; color:#41506a; }

/* Git · SVN — 글자만으로는 표에서 잘 안 잡혀 색으로 가른다 */
.cfg-st.scm-st-GIT,
.cfg-st.scm-st-SVN{
    color:#fff; font-weight:700; padding:2px 9px; border-radius:10px; white-space:nowrap;
}
.cfg-st.scm-st-GIT{ background:#b5432b; }
.cfg-st.scm-st-SVN{ background:#2f6f9e; }

/* ── 모달 ───────────────────────────────────────────────── */

.scm-modal .modal__dim{ position:absolute; inset:0; background:rgba(16,32,56,.45); }
.scm-modal .modal__box{
    position:relative; width:min(720px, calc(100% - 32px));
    margin:4vh auto; display:flex; flex-direction:column;
    background:#fff; border-radius:10px; overflow:hidden;
}
/* 상자 높이를 고정해 두 탭이 같은 칸을 쓰게 한다 (장비관리와 같은 이유) */
.scm-modal .modal__box{ height:min(720px, 92vh); }
.scm-modal .modal__body{ flex:1 1 auto; min-height:0; overflow-y:auto; }

.scm-sub{ font-style:normal; font-weight:400; color:#8b95a6; font-size:12px; margin-left:4px; }
.scm-ta{ height:90px; padding:9px 12px; resize:vertical; line-height:1.6; }

/* 구분 고르기 */
.scm-types{ display:flex; gap:6px; }
.scm-type{
    display:inline-flex; align-items:center;
    padding:7px 16px; border:1px solid #dfe5ee; border-radius:16px;
    background:#fff; cursor:pointer; font-size:13px; color:#41506a;
}
.scm-type input{ position:absolute; opacity:0; width:0; height:0; }
.scm-type b{ font-weight:600; }
.scm-type.scm-t-GIT{ color:#b5432b; }
.scm-type.scm-t-SVN{ color:#2f6f9e; }
.scm-type:has(input:checked){
    border-color:currentColor; font-weight:700; box-shadow:inset 0 0 0 1px currentColor;
}

/* ── 소프트웨어 버전 ────────────────────────────────────── */

.scm-sws{ display:flex; flex-direction:column; }

.scm-shead{ margin-bottom:8px; }
.scm-shead h4{ margin:0; font-size:14px; font-weight:700; color:#1b2b46; }
/* 적는 칸과 쌓인 목록 사이를 끊는다 */
.scm-shead--list{ margin-top:18px; padding-top:14px; border-top:1px solid #e6eaf1; }
.scm-n{
    display:inline-block; min-width:20px; margin-left:4px; padding:1px 7px;
    background:#eef3fa; color:#0a529d; border-radius:10px; font-size:12px; font-weight:700;
}

.scm-sform{
    display:grid; grid-template-columns:minmax(0, 1fr) 150px auto; gap:6px; align-items:center;
}
.scm-sform .form-control{ height:38px; font-size:13.5px; }
.scm-sform .btn{ height:38px; width:auto; padding:0 16px; white-space:nowrap; }
.scm-smemo{ height:38px; margin-top:6px; font-size:13.5px; }

.scm-slist{ display:flex; flex-direction:column; gap:5px; margin-top:10px; }
.scm-sempty{ padding:14px 0; text-align:center; font-size:13px; color:#8a94a6; }

.scm-srow{
    display:flex; align-items:center; gap:10px;
    padding:9px 11px; border:1px solid #eef1f6; border-radius:6px; font-size:13px;
}
.scm-snm { flex:0 0 150px; color:#1b2b46; font-weight:700; }
.scm-sver{
    flex:0 0 auto; padding:2px 10px; border-radius:10px;
    background:#eef3fa; color:#0a529d; font-weight:700;
    font-family:Consolas, 'Courier New', monospace; font-size:12.5px;
}
.scm-sver i{ font-style:normal; font-weight:400; color:#a9b2c1; font-family:inherit; }
.scm-smemo__v{
    flex:1 1 auto; min-width:0; color:#8a94a6; font-size:12.5px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.scm-swho{ flex:0 0 70px; color:#6b7688; font-size:12px; text-align:right; }
.scm-sdel{
    flex:0 0 auto; border:0; background:none;
    color:#c9313d; font-size:16px; line-height:1; cursor:pointer; padding:0 2px;
}

/* ── 좁은 화면 ──────────────────────────────────────────── */

@media (max-width: 1024px){
    .scm-scroll{ max-height:none; }
    .scm-search{ width:100% !important; }
    .scm-modal .modal__box{ height:100%; }
    .scm-sform{ grid-template-columns:1fr 1fr; }
    .scm-sform .btn{ grid-column:1 / -1; }
    .scm-srow{ flex-wrap:wrap; }
    .scm-snm{ flex:0 0 auto; }
    .scm-swho{ text-align:left; }
}
