/* ================================================
   스킬 추가 건의 페이지
   팔레트: #3C3744, #B4C5E4, #FBFFF1
   ================================================ */

.sr-container { max-width: 1000px; margin: 0 auto; padding: 24px 20px 60px; }

.sr-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.sr-title { font-size: 26px; color: #3C3744; }
.sr-desc { color: #777; font-size: 14px; margin-top: 4px; max-width: 640px; }
.sr-desc b { color: #6a7fb0; }
.sr-create-btn {
    flex-shrink: 0;
    padding: 11px 20px;
    background: #3C3744;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.sr-create-btn:hover { background: #2c2833; }

/* ─── 상태 탭 ─── */
.sr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 2px solid #eee; }
.sr-tab {
    padding: 9px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.sr-tab:hover { color: #3C3744; }
.sr-tab.active { color: #3C3744; border-bottom-color: #3C3744; }
.sr-tab-count {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    margin-left: 3px;
    font-size: 11px;
    background: #eee;
    border-radius: 10px;
    color: #888;
}
.sr-tab.active .sr-tab-count { background: #B4C5E4; color: #29303f; }

/* ─── 필터 ─── */
.sr-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.sr-select {
    padding: 9px 12px;
    border: 1px solid #d5d2dc;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: #3C3744;
    background: #fff;
    cursor: pointer;
}
.sr-search { display: flex; gap: 6px; margin-left: auto; }
.sr-search input {
    padding: 9px 12px;
    border: 1px solid #d5d2dc;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    min-width: 180px;
}
.sr-search button {
    padding: 9px 16px;
    background: #6a7fb0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* ─── 목록 ─── */
.sr-list { display: flex; flex-direction: column; gap: 10px; }
.sr-loading, .sr-empty { text-align: center; color: #999; padding: 40px 0; font-size: 14px; }

.sr-card {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2dfe8;
    border-radius: 12px;
    padding: 14px 16px;
    align-items: flex-start;
}
.sr-card.status-done { opacity: 0.85; }
.sr-card.status-rejected { opacity: 0.7; }

/* 추천 버튼 */
.sr-reco {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 52px;
    padding: 8px 0;
    background: #f7f6fa;
    border: 1px solid #e2dfe8;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.sr-reco:hover { border-color: #B4C5E4; background: #f0f3fb; }
.sr-reco.on { background: #3C3744; border-color: #3C3744; }
.sr-reco-arrow { font-size: 11px; color: #b0aec0; line-height: 1; }
.sr-reco.on .sr-reco-arrow { color: #B4C5E4; }
.sr-reco-num { font-size: 16px; font-weight: 800; color: #3C3744; }
.sr-reco.on .sr-reco-num { color: #fff; }

.sr-card-body { flex: 1; min-width: 0; }
.sr-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-job {
    font-size: 12px;
    font-weight: 700;
    color: #6a7fb0;
    background: #eef1f9;
    padding: 2px 9px;
    border-radius: 10px;
}
.sr-skill { font-size: 16px; font-weight: 700; color: #3C3744; }
.sr-status {
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 10px;
    margin-left: auto;
}
.sr-status-pending     { background: #fff4e0; color: #c98a2b; }
.sr-status-in_progress { background: #e3f0ff; color: #2f77d6; }
.sr-status-done        { background: #e3f7ec; color: #2a9d5f; }
.sr-status-rejected    { background: #f2f2f2; color: #999; }

.sr-card-desc { font-size: 13.5px; color: #555; margin-top: 7px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.sr-admin-note {
    font-size: 12.5px;
    color: #7a6a3a;
    background: #fdf7e8;
    border-left: 3px solid #e0c56a;
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 8px;
}
.sr-admin-note b { color: #c98a2b; margin-right: 4px; }
.sr-card-meta { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 12px; color: #999; }
.sr-del-link { background: none; border: none; color: #bbb; cursor: pointer; font-size: 12px; font-family: inherit; padding: 0; }
.sr-del-link:hover { color: #d64545; text-decoration: underline; }

/* 관리자 전용 바 (관리자일 때만 표시) */
.sr-admin-bar { display: none; gap: 5px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eee; }
body.sr-is-admin .sr-admin-bar { display: flex; }
.sr-admin-status, .sr-admin-note-btn {
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid #d5d2dc;
    background: #fff;
    color: #777;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}
.sr-admin-status:hover, .sr-admin-note-btn:hover { border-color: #B4C5E4; }
.sr-admin-status.cur { background: #3C3744; border-color: #3C3744; color: #fff; }
.sr-admin-note-btn { margin-left: auto; color: #c98a2b; border-color: #ecd9a8; }

/* ─── 페이지네이션 ─── */
.sr-pagination { display: flex; justify-content: center; gap: 5px; margin-top: 22px; flex-wrap: wrap; }
.sr-page {
    min-width: 34px;
    padding: 7px 10px;
    border: 1px solid #d5d2dc;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: #555;
}
.sr-page:hover:not(:disabled) { border-color: #B4C5E4; }
.sr-page.cur { background: #3C3744; border-color: #3C3744; color: #fff; }
.sr-page:disabled { cursor: default; }
.sr-page-dots { padding: 7px 4px; color: #bbb; }

/* ─── 모달 ─── */
.sr-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(30, 27, 38, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; padding: 20px;
}
.sr-modal-overlay[hidden] { display: none; }
.sr-modal {
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.sr-modal-sm { max-width: 360px; }
.sr-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 26px; line-height: 1;
    color: #bbb; cursor: pointer;
}
.sr-modal-close:hover { color: #666; }
.sr-modal-title { font-size: 19px; color: #3C3744; margin-bottom: 18px; }

.sr-field { margin-bottom: 14px; }
.sr-field label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 6px; }
.sr-optional { color: #aaa; font-weight: 400; font-size: 12px; }
.sr-field input, .sr-field textarea, .sr-full {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d2dc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #3C3744;
    box-sizing: border-box;
}
.sr-field input:focus, .sr-field textarea:focus, .sr-full:focus {
    outline: none; border-color: #B4C5E4; box-shadow: 0 0 0 3px rgba(180, 197, 228, 0.25);
}
.sr-field textarea { resize: vertical; }
.sr-field-row { display: flex; gap: 12px; }
.sr-field-row .sr-field { flex: 1; }

.sr-dup-warn {
    margin-top: 8px;
    font-size: 12.5px;
    color: #c98a2b;
    background: #fdf7e8;
    border: 1px solid #ecd9a8;
    border-radius: 8px;
    padding: 9px 11px;
    line-height: 1.5;
}
.sr-dup-warn b { color: #a56d1c; }
.sr-dup-reco, .sr-del-text { font-family: inherit; }
.sr-dup-reco {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    background: #6a7fb0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.sr-del-text { font-size: 13.5px; color: #666; margin-bottom: 12px; }
.sr-modal-sm input { width: 100%; padding: 10px 12px; border: 1px solid #d5d2dc; border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; }

.sr-anon-note { font-size: 12px; color: #aaa; margin-top: 4px; }
.sr-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.sr-btn-cancel, .sr-btn-submit, .sr-btn-danger {
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    border: none;
}
.sr-btn-cancel { background: #f0eef5; color: #666; }
.sr-btn-submit { background: #3C3744; color: #fff; }
.sr-btn-danger { background: #d64545; color: #fff; }

@media (max-width: 600px) {
    .sr-container { padding: 16px 12px 40px; }
    .sr-search { margin-left: 0; width: 100%; }
    .sr-search input { flex: 1; min-width: 0; }
    .sr-field-row { flex-direction: column; gap: 0; }
    .sr-status { margin-left: 0; }
}
