@charset "utf-8";
/* 서버일정 스킨 (2026-11-28 디자인 정리) - 모든 규칙을 스킨 영역으로 한정 */

.ss-list ul, .ss-write ul, .ss-view ul, #ss_popup ul { list-style: none; margin: 0; padding: 0; }

/* ---------- 글쓰기 ---------- */
.ss-write ul.colors li { padding: 1rem; margin-bottom: 0.5rem; }
.ss-write ul.icons { display: flex; align-items: center; }
.ss-write ul.icons li { margin-right: 1rem; }

/* ---------- 보기 ---------- */
.ss-view { border: 1px solid #ddd; padding: 1rem; }
.ss-view .view-btn { border-top: 1px solid #ddd; }
.ss-view .ss-rainbow { padding: 1rem; }
.ss-view dl dt { margin-bottom: 0.5rem; }
.ss-view dl dd { margin-left: 1rem; margin-bottom: 1rem; }
@media (min-width: 768px) {
    .ss-view dl:after { clear: both; content: ''; display: block; }
    .ss-view dl dt { clear: both; float: left; width: 100px; margin-bottom: 1rem; }
    .ss-view dl dd { float: left; }
}

/* ---------- 목록 ---------- */
.ss-list { margin-top: 12px; font-size: 13px; color: #333; }

.ss-list .ss-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; padding: 10px 12px; margin-bottom: 8px;
    background: #f7f9fb; border: 1px solid #dfe5eb; border-radius: 4px;
}
.ss-list .ss-month { display: flex; align-items: center; gap: 10px; }
.ss-list .ss-month strong { font-size: 18px; color: #1d2b3a; letter-spacing: -0.5px; min-width: 110px; text-align: center; }
.ss-list .ss-nav {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: 1px solid #cfd8e1; border-radius: 50%;
    background: #fff; color: #1d8ad7; font-size: 11px; text-decoration: none;
}
.ss-list .ss-nav:hover { background: #1d8ad7; border-color: #1d8ad7; color: #fff; }
.ss-list .ss-count { color: #6b7785; margin-left: 4px; }
.ss-list .ss-count b { color: #e8380d; }

.ss-list .ss-tools { display: flex; align-items: center; gap: 6px; }
.ss-list .ss-search { display: flex; align-items: center; gap: 4px; margin: 0; }
.ss-list .ss-search .form-control { display: inline-block; width: auto; height: 30px; padding: 2px 6px; }
.ss-list .ss-tools .btn { height: 30px; line-height: 20px; }

.ss-list .ss-legend { display: flex; justify-content: flex-end; gap: 14px; margin: 0 2px 6px; color: #6b7785; font-size: 12px; }
.ss-list .ss-legend span { display: inline-flex; align-items: center; gap: 4px; }

/* 표 : 가로/세로 라인 통일 */
.ss-list .ss-table { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid #d5dde5; background: #fff; }
.ss-list .ss-table col.col-date { width: 96px; }
.ss-list .ss-table th {
    height: 36px; padding: 0 10px; background: #1d8ad7; border: 1px solid #1d8ad7;
    color: #fff; font-weight: 700; text-align: center; vertical-align: middle;
}
.ss-list .ss-table td { border: 1px solid #e3e8ed; vertical-align: middle; }
.ss-list .ss-table tbody tr:hover td { background: #f8fbfe; }
.ss-list .ss-table tr.today td { background: #fffbe0; }
.ss-list .ss-table tr.today td.ss-date { box-shadow: inset 3px 0 0 #f5a623; }

.ss-list td.ss-date { height: 40px; padding: 6px 4px; text-align: center; line-height: 1.2; background: #fafbfc; }
.ss-list td.ss-date .ss-day { display: block; font-size: 16px; font-weight: 700; color: #222; }
.ss-list td.ss-date .ss-week { display: block; font-size: 11px; color: #8a96a3; }
.ss-list td.ss-date .ss-today {
    display: inline-block; margin-top: 3px; padding: 1px 6px; border-radius: 8px;
    background: #f5a623; color: #fff; font-size: 10px; font-weight: 700;
}
.ss-list td.week-0 .ss-day, .ss-list td.week-0 .ss-week { color: #e03131; }
.ss-list td.week-6 .ss-day, .ss-list td.week-6 .ss-week { color: #1c64d6; }

.ss-list td.ss-items { padding: 6px; text-align: left; }
.ss-list tr.empty td.ss-items { padding: 0 12px; }
.ss-list .ss-none { color: #c9d1d9; }

/* 하루에 여러 서버 : 같은 크기 카드로 줄 맞춤 */
.ss-list .ss-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ss-list .ss-grid li { position: relative; min-width: 0; }
.ss-list .ss-grid .card {
    display: flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 8px; margin: 0;
    border: 1px solid #d5dde5; border-radius: 3px;
    font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; overflow: hidden;
    cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.ss-list .ss-grid .card:hover { border-color: #1d8ad7; box-shadow: 0 1px 4px rgba(29,138,215,.35); }
.ss-list .ss-grid .ss-name { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.ss-list .ss-grid .ss-subj { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 400; opacity: .75; }

@media (max-width: 1199px) { .ss-list .ss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .ss-list .ss-grid { grid-template-columns: minmax(0, 1fr); }
    .ss-list .ss-table col.col-date { width: 64px; }
    .ss-list .ss-head { flex-direction: column; align-items: stretch; }
    .ss-list .ss-month { justify-content: center; }
    .ss-list .ss-tools { justify-content: center; flex-wrap: wrap; }
    .ss-list .ss-legend { justify-content: center; }
}

/* 서버 타입 뱃지 (신/구/리) */
.ss-type {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 18px; height: 18px; border-radius: 3px;
    font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; color: #fff;
    text-shadow: none;
}
.ss-type-new { background: #e03131; }
.ss-type-old { background: #1c64d6; }
.ss-type-remaster { background: #2f9e44; }
#ss_popup .ss-type { width: auto; height: auto; padding: 2px 8px; font-size: 12px; }

/* 마우스오버 팝업 */
#ss_popup {
    display: none; position: absolute; z-index: 99;
    min-width: 320px; padding: 12px 14px;
    background: #fff; border: 1px solid #c9d3dd; border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
#ss_popup dl { margin: 0; font-size: 13px; display: grid; grid-template-columns: 80px 1fr; row-gap: 8px; column-gap: 12px; align-items: center; }
#ss_popup dt { margin: 0; color: #6b7785; font-weight: 400; text-align: right; }
#ss_popup dd { margin: 0; color: #222; font-weight: 700; word-break: break-all; }
#ss_popup .ss-url { cursor: pointer; color: #1d8ad7; text-decoration: underline; font-weight: 400; }

/* ---------- 글쓰기 화면 디자인 정리 (2026-11-29) ---------- */
.ss-write { max-width: 100%; }
.ss-write .ss-write-head { margin: 4px 0 14px; }
.ss-write .ss-write-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: #1f2937; }
.ss-write .ss-write-head p { margin: 6px 0 0; font-size: 13px; color: #7b8494; }

/* 표를 "이름 칸 + 입력 칸" 두 줄 맞춤 격자로 */
.ss-write .table-responsive { border: 0; margin: 0; overflow: visible; }
.ss-write .div-table, .ss-write .div-table > tbody { display: block; width: 100%; }
.ss-write .div-table { margin: 0; border: 1px solid #e3e6ec; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(20,28,60,.05); }
.ss-write .div-table tr { display: grid; grid-template-columns: 130px minmax(0, 1fr); border-bottom: 1px solid #eef0f4; }
.ss-write .div-table tr:last-child { border-bottom: 0; }
.ss-write .div-table td { display: block; min-width: 0; padding: 12px 16px !important; border: 0 !important; background: transparent; }
.ss-write .div-table td.sub-title { display: flex; align-items: center; background: #f6f7fb; font-size: 13.5px; font-weight: 700; color: #374151; white-space: nowrap; }
.ss-write .div-table td.sub-title .req { color: #e11d48; font-style: normal; margin-left: 2px; }

/* 입력칸 : 높이·모서리 통일, 폭은 칸에 꽉 차게 */
.ss-write .form-control { width: 100%; max-width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d9dde6; border-radius: 8px; background: #fafbfd; font-size: 14px; box-shadow: none; }
.ss-write .form-control:focus { border-color: #2753a2; background: #fff; box-shadow: 0 0 0 3px rgba(39,83,162,.14); }

/* 배경색 : 같은 크기의 선택 칩 */
.ss-write ul.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-write ul.colors li { margin: 0 !important; padding: 0 !important; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.ss-write ul.colors li label { display: flex; align-items: center; gap: 8px; min-width: 96px; margin: 0; padding: 9px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.ss-write ul.colors li:has(input:checked) { box-shadow: 0 0 0 3px #2753a2; }
.ss-write ul.colors li input { margin: 0; }
.ss-write ul.colors li.ss-rainbow-white { background: #fff; color: #333 !important; animation: none; }

/* 아이콘 : 같은 크기의 선택 카드 (큰 시각 이미지는 높이를 맞춰 줄임) */
.ss-write ul.icons { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.ss-write ul.icons li { margin: 0 !important; }
.ss-write ul.icons li label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 76px; height: 76px; margin: 0; padding: 8px 10px; border: 1px solid #e3e6ec; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .12s, background .12s; }
.ss-write ul.icons li label:hover { border-color: #9db4e0; }
.ss-write ul.icons li label:has(input:checked) { border-color: #2753a2; background: #eef4ff; box-shadow: 0 0 0 2px rgba(39,83,162,.18); }
.ss-write ul.icons li img { max-width: 70px; max-height: 38px; width: auto; height: auto; object-fit: contain; }
.ss-write ul.icons li input { margin: 0; }

/* 버튼 */
.ss-write .write-btn { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ss-write .write-btn .btn { height: 44px; padding: 0 26px; border-radius: 10px; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 600px) {
    .ss-write .div-table tr { grid-template-columns: 1fr; }
    .ss-write .div-table td.sub-title { padding-bottom: 4px !important; background: transparent; }
    .ss-write .write-btn .btn { flex: 1; justify-content: center; }
}

/* 버튼 색 : 작성완료는 눈에 띄게, 취소는 보조 모양 */
.ss-write .write-btn #btn_submit { background: #2753a2; border-color: #2753a2; color: #fff; }
.ss-write .write-btn #btn_submit:hover { background: #1f4488; border-color: #1f4488; }
.ss-write .write-btn a.btn { background: #fff; border: 1px solid #d9dde6; color: #4b5563; }
.ss-write .write-btn a.btn:hover { background: #f3f4f8; color: #1f2937; }

/* 오픈시간 : 시간 이미지 4개를 같은 크기 카드로 */
.ss-write ul.icons.times li label { min-width: 96px; height: 84px; }
.ss-write ul.icons.times li img { max-width: 78px; max-height: 34px; }
.ss-write ul.icons.times .time-label { font-size: 12px; font-weight: 700; color: #4b5563; line-height: 1; }

/* ---------- 목록의 수정 버튼 (2026-11-29) ---------- */
.ss-list .ss-row .card { position: relative; }
.ss-list .ss-row .ss-edit {
    position: absolute; top: 50%; right: 8px; margin-top: -12px; z-index: 120; /* 마우스를 올리면 뜨는 팝업(z-index 99)보다 위 */
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
    border-radius: 50%; background: rgba(255,255,255,.94); color: #2753a2 !important; font-size: 12px; line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.28); text-decoration: none; opacity: .9; transition: transform .12s, opacity .12s;
}
.ss-list .ss-row .ss-edit:hover { opacity: 1; transform: scale(1.12); background: #2753a2; color: #fff !important; }
.ss-list .ss-row .card .ss-subj { padding-right: 28px; }

/* ---------- 보기 화면 디자인 정리 (2026-11-29) ---------- */
.ss-view { padding: 0; border: 1px solid #e3e6ec; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(20,28,60,.06); }
.ss-view .ss-view-head { position: relative; padding: 26px 26px 22px; text-align: center; }
.ss-view .ss-view-head.ss-rainbow-white { background: #f6f7fb; color: #1f2937 !important; animation: none; border-bottom: 1px solid #e3e6ec; }
.ss-view .ss-view-head h2 { margin: 10px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: inherit; }
.ss-view .ss-view-head p { margin: 8px 0 0; font-size: 14.5px; opacity: .92; color: inherit; }
.ss-view .ss-view-head .ss-type { display: inline-block; width: auto; height: auto; padding: 3px 12px; font-size: 12.5px; border-radius: 12px; }

/* 이름 칸 + 내용 칸 격자 (쓰기 화면과 같은 느낌) */
.ss-view dl.ss-info { display: grid; grid-template-columns: 130px minmax(0, 1fr); margin: 0; }
.ss-view dl.ss-info dt, .ss-view dl.ss-info dd { float: none !important; width: auto !important; margin: 0 !important; padding: 14px 18px; border-bottom: 1px solid #eef0f4; clear: none; }
.ss-view dl.ss-info dt { background: #f6f7fb; font-size: 13.5px; font-weight: 700; color: #374151; display: flex; align-items: center; }
.ss-view dl.ss-info dd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14.5px; color: #1f2937; }
.ss-view dl.ss-info dd b { font-size: 16px; }
.ss-view .ss-dday { padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 800; }
.ss-view .ss-dday.soon { background: #e8f0ff; color: #2753a2; }
.ss-view .ss-dday.today { background: #ffe6ea; color: #d4263b; }
.ss-view .ss-dday.past { background: #eef0f4; color: #6b7280; }
.ss-view .ss-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; background: #2753a2; color: #fff !important; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.ss-view .ss-go:hover { background: #1f4488; }
.ss-view .ss-url-text { font-size: 12.5px; color: #7b8494; word-break: break-all; }
.ss-view .ss-none { color: #9aa3b2; font-size: 13.5px; }
.ss-view .ss-icons { gap: 10px; }
.ss-view .ss-time { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border: 1px solid #e3e6ec; border-radius: 10px; background: #fff; }
.ss-view .ss-time img { max-height: 30px; width: auto; }
.ss-view .ss-time em { font-style: normal; font-size: 12px; font-weight: 700; color: #4b5563; }
.ss-view .ss-ico { max-height: 36px; width: auto; }
.ss-view .ss-chip { display: inline-block; min-width: 90px; padding: 7px 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 8px; font-size: 13px; font-weight: 700; text-align: center; }
.ss-view .ss-chip.ss-rainbow-white { background: #fff; color: #333 !important; animation: none; }

/* 하단 버튼 줄 */
.ss-view .view-btn { padding: 14px 18px; border-top: 0; background: #fafbfd; }
.ss-view .view-btn .btn-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ss-view .view-btn .btn-group .btn { float: none; border-radius: 8px !important; margin: 0; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; }

@media (max-width: 600px) {
    .ss-view dl.ss-info { grid-template-columns: 1fr; }
    .ss-view dl.ss-info dt { padding: 10px 16px 6px; background: #fff; border-bottom: 0; color: #6b7280; }
    .ss-view dl.ss-info dd { padding: 0 16px 14px; }
    .ss-view .ss-view-head h2 { font-size: 22px; }
}
.ss-view .view-btn .btn-group .btn { background: #fff; border: 1px solid #d9dde6; color: #374151; }
.ss-view .view-btn .btn-group .btn:hover { background: #f3f4f8; color: #1f2937; }
.ss-view .view-btn .btn-group .btn.btn-primary, .ss-view .view-btn .btn-group a[class*="btn-color"], .ss-view .view-btn .btn-group a:last-child { border-color: #2753a2; }
