/* =============================
   Rise LMS Custom Theme
   Main Color: Dark Purple (#25203e)
   ============================= */
/* 기본 텍스트 컬러 변수 */
:root {
    --color-text: #595b65;

    /* Rise Brand Colors */
    --rise-pink:        #ec008c;
    --rise-yellow:      #fcc00d;
    --rise-sky:         #1bb5d9;
    --rise-blue:        #3b82f6;
    --rise-voca:        #6f42c1;
    --rise-purple:      #40398f;
    --rise-dark-purple: #25203e;
    --rise-primary:     var(--rise-dark-purple);

    /* Purple surfaces — mixed from --rise-purple (panels, side nav, chips) */
    --rise-light-bg:    #f7f6fa;
    --rise-purple-tint: #ebe8f4;
    --rise-purple-soft: #d9d4ea;
    --rise-purple-border: #b3acd0;
    --rise-green:       #7ac143;
    --rise-offwhite:    #f3f2f1;
    --rise-border:      #e2e8f0;
    --rise-grey:        #2f3030;

    /* 상태 색상 추가 */
    --status-active:    #29C203;
    --status-inactive:  #797979;
}

/* Sync surface tokens with --rise-purple when color-mix is available */
@supports (color: color-mix(in srgb, #000, #fff)) {
    :root {
        --rise-light-bg: color-mix(in srgb, var(--rise-purple) 5%, #ffffff);
        --rise-purple-tint: color-mix(in srgb, var(--rise-purple) 12%, #ffffff);
        --rise-purple-soft: color-mix(in srgb, var(--rise-purple) 22%, #ffffff);
        --rise-purple-border: color-mix(in srgb, var(--rise-purple) 40%, #ffffff);
    }
}

.rise-pink{color:var(--rise-pink);}
.rise-yellow{color:var(--rise-yellow);}
.rise-sky{color:var(--rise-sky);}
.rise-blue{color:var(--rise-blue);}
.rise-voca{color:var(--rise-voca);}
.rise-purple{color:var(--rise-purple);}
.rise-dark-purple{color:var(--rise-dark-purple);}
.rise-primary{color:var(--rise-primary);}
.bg-rise-primary{
    background-color:var(--rise-primary)!important;
    color:#fff!important;
}
.bg-rise-primary-subtle{
    background-color:rgba(37,32,62,.1)!important;
    color:var(--rise-primary)!important;
}
.border-rise-dark-purple{
    border-color:var(--rise-dark-purple)!important;
}
.bg-rise-dark-purple-subtle{
    background-color:rgba(37,32,62,.08);
}
.border-rise-dark-purple{
    border-color:var(--rise-dark-purple)!important;
}
.btn-outline-rise-purple{
    --bs-btn-color:var(--rise-dark-purple);
    --bs-btn-border-color:var(--rise-dark-purple);
    --bs-btn-hover-color:#fff;
    --bs-btn-hover-bg:var(--rise-dark-purple);
    --bs-btn-hover-border-color:var(--rise-dark-purple);
    --bs-btn-focus-shadow-rgb:64,57,143;
    --bs-btn-active-color:#fff;
    --bs-btn-active-bg:var(--rise-dark-purple);
    --bs-btn-active-border-color:var(--rise-dark-purple);
}
.bg-rise-light { background-color: var(--rise-light-bg) !important; }
.bg-rise-tint  { background-color: var(--rise-purple-tint) !important; }
.bg-rise-soft  { background-color: var(--rise-purple-soft) !important; }
.border-rise-soft   { border-color: var(--rise-purple-soft) !important; }
.border-rise-tint   { border-color: var(--rise-purple-tint) !important; }
.border-rise-purple { border-color: var(--rise-purple-border) !important; }
.text-rise-muted    { color: #6b6489 !important; }
.rise-green{color:var(--rise-green);}
.rise-offwhite{color:var(--rise-offwhite);}
.rise-grey{color:var(--rise-grey);}
.text-rise-guide {
    color: var(--rise-grey) !important;
    opacity: 0.9;
}

/* 요일 동그라미 배지 */
.badge-weekday {
    border-radius: 50%;              /* 완전 동그라미 */
    width: 1.3rem;                   /* 가로 세로 동일 */
    height: 1.3rem;
    padding: 0;                      /* 안쪽 여백 제거 */
    display: inline-flex;            /* 가운데 정렬 */
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;              /* 글자 조금 줄이기 */
    line-height: 1;                  /* 줄간격 타이트하게 */
}

/* 전체 레이아웃 본문 배경을 흰색으로 강제 고정 */
.content-wrapper,
body,
.bg-body-tertiary {
    --bs-bg-opacity: 1;
    background-color: #ffffff !important;
}

/* -----------------------------
   Rise Color Badges
   ----------------------------- */
.badge-rise-pink {
    background-color: var(--rise-pink) !important;
    color: #fff !important;
}

.badge-rise-yellow {
    background-color: var(--rise-yellow) !important;
    color: #fff !important;
}

.badge-rise-sky {
    background-color: var(--rise-sky) !important;
    color: #fff !important;
}
.badge-rise-blue {
    background-color: var(--rise-blue) !important;
    color: #fff !important;
}
.badge-rise-purple {
    background-color: var(--rise-purple) !important;
    color: #fff !important;
}

.badge-rise-dark-purple {
    background-color: var(--rise-dark-purple) !important;
    color: #fff !important;
}

.badge-rise-green {
    background-color: var(--rise-green) !important;
    color: #fff !important;
}

.badge-rise-offwhite {
    background-color: var(--rise-offwhite) !important;
    color: var(--rise-dark-purple) !important;
}

.badge-rise-grey {
    background-color: var(--rise-grey) !important;
    color: #fff !important;
}

/* Student group (MK, AK, QSD, EK) — muted badges used across LMS tables */
.badge-student-group {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0;
    border: 1px solid transparent;
    text-transform: none;
}

.badge-student-group--mk {
    background-color: #e8f1f7;
    color: #4a7394;
    border-color: #cddfea;
}

.badge-student-group--ak {
    background-color: #eaf4ea;
    color: #4a7c4a;
    border-color: #c8dfc8;
}

.badge-student-group--qsd {
    background-color: #faf3e8;
    color: #8a6d3b;
    border-color: #ecd9b8;
}

.badge-student-group--ek {
    background-color: #f1f3f5;
    color: #5c6370;
    border-color: #dde1e6;
}

/* Compact (matches btn-xs) for list cells / dense UI */
.badge-student-group--xs {
    min-width: 2.25rem;
    padding: 1px 5px;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
    font-weight: 600;
}

/* Class list — MK/AK/QSD/EK quick filters (btn-xs + badge-student-group palette) */
.class-group-quick-filter--mk {
    border: 1px solid #cddfea;
    color: #4a7394;
    background-color: #e8f1f7;
}
.class-group-quick-filter--mk:hover,
.class-group-quick-filter--mk:focus {
    border-color: #b0cfdf;
    color: #4a7394;
    background-color: #d6e7f1;
}
.class-group-quick-filter--mk.active {
    border-color: #4a7394;
    color: #ffffff;
    background-color: #4a7394;
}

.class-group-quick-filter--ak {
    border: 1px solid #c8dfc8;
    color: #4a7c4a;
    background-color: #eaf4ea;
}
.class-group-quick-filter--ak:hover,
.class-group-quick-filter--ak:focus {
    border-color: #a8cfa8;
    color: #4a7c4a;
    background-color: #d7ebd7;
}
.class-group-quick-filter--ak.active {
    border-color: #4a7c4a;
    color: #ffffff;
    background-color: #4a7c4a;
}

.class-group-quick-filter--qsd {
    border: 1px solid #ecd9b8;
    color: #8a6d3b;
    background-color: #faf3e8;
}
.class-group-quick-filter--qsd:hover,
.class-group-quick-filter--qsd:focus {
    border-color: #e0c89a;
    color: #8a6d3b;
    background-color: #f3e6d0;
}
.class-group-quick-filter--qsd.active {
    border-color: #8a6d3b;
    color: #ffffff;
    background-color: #8a6d3b;
}

.class-group-quick-filter--ek {
    border: 1px solid #dde1e6;
    color: #5c6370;
    background-color: #f1f3f5;
}
.class-group-quick-filter--ek:hover,
.class-group-quick-filter--ek:focus {
    border-color: #c7ccd3;
    color: #5c6370;
    background-color: #e4e7eb;
}
.class-group-quick-filter--ek.active {
    border-color: #5c6370;
    color: #ffffff;
    background-color: #5c6370;
}

.btn-xs {
    padding: 1px 5px;
    font-size: 0.75rem; /* 보통 btn-sm은 0.875rem */
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* 전체 기본 글자색 */
body {
    color: var(--color-text);
    font-size: .95rem;
}

html, body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.5;
  letter-spacing: -0.01em; /* 과하면 0으로 */
}

/* 셀 기본 텍스트만 */
.table > :not(caption) > tr > th,
.table > :not(caption) > tr > td,
.table > :not(caption) > thead > tr > th,
.table > :not(caption) > tbody > tr > td {
  color: var(--color-text);
}

/* 테이블 안 일반 링크만 */
.table td a,
.table th a {
  color: var(--rise-dark-purple);
  text-decoration: none;
}

.table td a:hover,
.table td a:focus,
.table th a:hover,
.table th a:focus {
  color: var(--rise-purple);
  text-decoration: underline; /* 가독성/접근성↑ (원치 않으면 제거) */
}

/* -----------------------------
   버튼 색상
   ----------------------------- */
.btn-primary {
  background-color:  var(--rise-dark-purple) !important;
  border-color:  var(--rise-dark-purple) !important;
}
.btn-primary:hover {
  background-color: var(--rise-purple) !important;
  border-color: var(--rise-purple) !important;
}

/* Member list status tabs (staff / student / HQ) */
.tab-container .nav-tabs .nav-link.active {
  color: var(--rise-purple) !important;
}

/* -----------------------------
   카드 헤더
   ----------------------------- */
.card-header {
  background-color: var(--rise-dark-purple) !important;
  color: #fff !important;
  font-weight: 600;
}

/* 정렬 아이콘(화살표) 위치 및 강조 */
.sort-th::after {
    content: ' ↕';
    font-size: 0.7rem;
    opacity: 0.5;
    margin-left: 4px;
}

/* -----------------------------
   Language Block (하단 고정)
   ----------------------------- */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sidebar-wrapper nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-lang {
  margin-top: auto;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-lang .form-label {
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.sidebar-lang .form-select {
  background-color: #2f3030;
  color: #fff;
  border: 1px solid #444;
}
.sidebar-lang .form-select:focus {
  border-color: #666;
  box-shadow: none;
}

.impersonate-alert {
    border-radius: .25rem;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 1031; /* navbar보다 살짝 위 */
}

/*-------------------------------------------------------------------------*/
/* 올바른 CSS 선택자 */
.tooltip .tooltip-inner {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(0, 0, 0, 0.9) !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(0, 0, 0, 0.9) !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(0, 0, 0, 0.9) !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(0, 0, 0, 0.9) !important;
}

.tooltip-left .tooltip-inner {
    text-align: left !important;
    max-width: 320px;
    line-height: 1.45;
    white-space: normal;
}

/* 툴팁 크기 커스텀 */
.tooltip-max .tooltip-inner {
    max-width: 100% !important;
}
/*-------------------------------------------------------------------------*/

/* LMS 날짜 스타일 */
.lms-datetime {
    font-family: 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 400;
    color: #495057;
    letter-spacing: -0.01em;
}

.lms-daterange {
    font-family: 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 400;
    color: #495057;
    letter-spacing: -0.01em;
}

/* 숫자 가독성 최적화 */
.lms-datetime,
.lms-daterange {
    font-variant-numeric: lining-nums; /* 일관된 숫자 높이 */
    -webkit-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
}

/* 테이블 내에서 더 작게 */
.table .lms-datetime,
.table .lms-daterange {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 작은 사이즈 */
.datetime-sm {
    font-size: 0.8rem;
}

.datetime-xs {
    font-size: 0.75rem;
}

/* 강조된 날짜 */
.datetime-emphasis {
    font-weight: 500;
    color: #2c3e50;
}

/* 중요한 날짜 (마감일, 시작일 등) */
.datetime-important {
    font-weight: 600;
    color: #dc3545;
}

/* 미래 날짜 */
.datetime-future {
    color: #0d6efd;
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 768px) {
    .lms-datetime,
    .lms-daterange {
        white-space: normal;
        word-break: keep-all;
        font-size: 0.8rem;
    }
}

/* 2. 헤더 글자 줄바꿈 방지 및 최소 폭 보장 */
.table thead th {
    white-space: nowrap;
    vertical-align: middle;
    font-size: 0.85rem;
}

/* 숫자 최적화를 위한 시스템 폰트 스택 대안 */
.lms-datetime.optimized-digits {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
}

/* 모노스페이스 숫자 (정렬이 중요한 경우) */
.lms-datetime.monospace-digits {
    font-family: 'SF Mono', 'Monaco', 'Consolas', 'Roboto Mono', monospace;
    font-size: 0.82rem;
}

/* 리스트 테이블용 전화번호 공통 스타일 */
.lms-phone {
  white-space: nowrap;
  color: #585454;
  font-weight: 600;
  letter-spacing: 0.3px;
}
/* 테이블에서 줄바꿈 되면 안 되는 텍스트 공통 */
.lms-nowrap {
    white-space: nowrap;
}

/* 필요하면: 너무 길면 ... 으로 잘라내기 */
.lms-nowrap-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

/* 캠퍼스 계정일 때 컬럼 숨김 처리 */
.is-campus .lms-col-campus-type,
.is-campus .lms-col-campus-name,
.is-campus .lms-col-idx,
.is-campus .lms-col-phone-direct,
.is-campus .lms-col-email {
    display: none !important;
}

.is-campus:not(.staff-show-retire) .lms-col-retire-check {
    display: none !important;
}

/* 캠퍼스 직원 목록 — 행 클릭 수정 */
.staff-list-table tbody tr[data-edit-url] {
    cursor: pointer;
}
.staff-list-table tbody tr[data-edit-url]:hover {
    background-color: rgba(0, 69, 147, 0.04);
}

/* 학생 목록 — 행 클릭 수정 */
.student-list-table tbody tr[data-edit-url] {
    cursor: pointer;
}
.student-list-table tbody tr[data-edit-url]:hover {
    background-color: rgba(0, 69, 147, 0.04);
}

.staff-impersonate-icon {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    line-height: 1;
    vertical-align: baseline;
    text-decoration: none;
    cursor: pointer;
}
.staff-impersonate-icon:hover,
.staff-impersonate-icon:focus {
    color: inherit;
    opacity: 0.72;
}
.staff-impersonate-icon .bi {
    font-size: calc(1em + 1pt);
}
.staff-impersonate-dropdown .dropdown-menu {
    min-width: 11rem;
}
.staff-impersonate-riseon-logo {
    object-fit: contain;
    vertical-align: -2px;
    width: calc(1em + 1pt);
    height: calc(1em + 1pt);
}

/* 학생 목록 — ID + 대리 로그인 아이콘 한 줄 */
.student-list-table .student-list-id-col {
    min-width: 12rem;
    width: 12rem;
    white-space: nowrap;
}

.staff-list-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
    background: transparent;
}
.staff-list-avatar--placeholder {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.staff-lms-name--active {
    font-weight: 600;
    background-color: rgba(0, 69, 147, 0.06);
}

/* 본사 직원 목록 — 직책(팀장/팀원) 뱃지 */
.hq-role-badge {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35em 0.55em;
    min-width: 2.75rem;
}
.hq-role-badge--leader {
    background-color: #004593;
    color: #fff;
}
.hq-role-badge--staff {
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}
.hq-role-badge--super {
    background-color: #212529;
    color: #fff;
}

/* HQ 직원 목록 — 팀(부서) 빠른 필터 */
.hq-dept-quick-filter {
    --hq-dept-color: #6c757d;
    border: 1px solid var(--hq-dept-color);
    color: var(--hq-dept-color);
    background-color: #fff;
}
.hq-dept-quick-filter:hover,
.hq-dept-quick-filter:focus {
    border-color: var(--hq-dept-color);
    color: #fff;
    background-color: var(--hq-dept-color);
}
.hq-dept-quick-filter.active {
    border-color: var(--hq-dept-color);
    color: #fff;
    background-color: var(--hq-dept-color);
}

.staff-list-table .btn-class-count {
    box-sizing: border-box;
    width: 3.25rem;
    min-width: 3.25rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

/* 캠퍼스 직원 목록 — 직책 뱃지 색상 빠른 필터 (크기는 btn-xs 공통) */
.campus-role-quick-filter--native {
    border: 1px solid #bae6fd;
    color: #0369a1;
    background-color: #e0f2fe;
}
.campus-role-quick-filter--native:hover,
.campus-role-quick-filter--native:focus {
    border-color: #7dd3fc;
    color: #0369a1;
    background-color: #bae6fd;
}
.campus-role-quick-filter--native.active {
    border-color: #0369a1;
    color: #ffffff;
    background-color: #0369a1;
}
.campus-role-quick-filter--prof {
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    background-color: #dbeafe;
}
.campus-role-quick-filter--prof:hover,
.campus-role-quick-filter--prof:focus {
    border-color: #93c5fd;
    color: #1d4ed8;
    background-color: #bfdbfe;
}
.campus-role-quick-filter--prof.active {
    border-color: #1d4ed8;
    color: #ffffff;
    background-color: #1d4ed8;
}

/* [직책 뱃지] 한글은 짧게 고정, 영어는 내용에 맞게 확장 */
.campus-role-badge {
    display: inline-block !important;
    box-sizing: border-box !important;
    min-width: 68px !important;
    max-width: 11rem !important;
    width: auto !important;
    padding: 0.35em 0.45em !important;
    font-size: 0.78em !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    vertical-align: middle !important;
    border-radius: 4px !important;
    border: none !important;
}

.staff-list-table .lms-col-role {
    width: 6.75rem;
    min-width: 6.75rem;
    max-width: 11rem;
    vertical-align: middle;
}

/* 개별 색상 사양 지정 */
.campus-role-badge--master { background-color: #1e293b; color: #ffffff; }
.campus-role-badge--vice-master { background-color: #475569; color: #ffffff; }
.campus-role-badge--native { background-color: #e0f2fe; color: #0369a1; }
.campus-role-badge--admin { background-color: #dcfce7; color: #15803d; }
.campus-role-badge--prof { background-color: #dbeafe; color: #1d4ed8; }

/* 캠퍼스 타입 공통 폭 */
.lms-col-campus-type {
    width: 45px;
    min-width: 45px;
    max-width: 45px;
    text-align:center;
    white-space: nowrap;
}
/* 캠퍼스 타입 공통 폭 */
.lms-col-campus-name {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    text-align:center;
    white-space: nowrap;
}
.lms-col-status{
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    text-align:center;
    white-space: nowrap;
}
/* list footer per-page  */
.lms-per-page{
  padding: .17rem .6rem;
  font-size: .8rem;
  line-height: 1.2;
}
.page-list-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
}
.page-list-footer__nav {
  grid-column: 2;
  justify-self: center;
}
.page-list-footer__nav:empty {
  display: none;
}
.page-list-footer__controls {
  grid-column: 3;
  justify-self: end;
}
@media (max-width: 767.98px) {
  .page-list-footer {
    grid-template-columns: 1fr;
  }
  .page-list-footer__nav {
    grid-column: 1;
  }
  .page-list-footer__controls {
    grid-column: 1;
    justify-self: end;
  }
}
.req{
  color:#dc3545;
  font-weight:700;
}

.col-5-custom {
    flex: 0 0 20%;
    max-width: 20%;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.carousel-item {transition: transform .25s ease-in-out;}

/* 헤더 우측 액션 (알림·프로필) */
.app-header-actions {
    gap: 0.35rem;
}

.app-header-actions .dropdown-menu {
    z-index: 1060;
}

.app-header-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--rise-border);
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    font-size: 1rem;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.app-header-icon-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--rise-dark-purple);
}

.app-header-icon-btn.has-unread {
    color: #b45309;
    border-color: rgba(251, 191, 36, .5);
    background: rgba(255, 251, 235, .95);
}

.riseon-header-btn,
.app-header-icon-btn.riseon-header-btn {
    color: #fff;
    background: var(--rise-purple);
    border-color: var(--rise-purple);
    box-shadow: none;
}

.riseon-header-btn:not(:disabled):hover,
.riseon-header-btn:not(:disabled):focus,
.app-header-icon-btn.riseon-header-btn:not(:disabled):hover,
.app-header-icon-btn.riseon-header-btn:not(:disabled):focus {
    color: #fff;
    background: var(--rise-purple);
    border-color: var(--rise-purple);
    box-shadow: 0 0 0 0.2rem rgba(64, 57, 143, .25);
}

.external-apps-header-btn {
    color: var(--rise-purple);
    background: var(--rise-light-bg);
    border-color: var(--rise-purple-soft);
    line-height: 0;
}

.external-apps-header-btn:hover,
.external-apps-header-btn:focus,
.external-apps-header-btn.show {
    color: #fff;
    background: var(--rise-purple);
    border-color: var(--rise-purple);
    box-shadow: 0 0 0 0.2rem rgba(64, 57, 143, .25);
}

.riseon-header-btn:disabled {
    opacity: .85;
    cursor: default;
}

.riseon-header-btn .riseon-header-logo {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    object-fit: contain;
    object-position: center;
}

.external-apps-header-btn .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 1rem;
    line-height: 1;
    transform: translateY(1px);
}

.external-apps-menu {
    min-width: 11rem;
    margin-top: 0.2rem;
}

.external-apps-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.45rem;
    left: 0;
    right: 0;
    height: 0.45rem;
}

.external-apps-menu-divider {
    margin: 0.45rem 0.65rem;
    border: 0;
    border-top: 1px dotted var(--rise-purple-border, #b3acd0);
    opacity: 1;
    background: transparent;
    height: 0;
}

.external-apps-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.external-apps-menu-item .bi {
    font-size: 1rem;
    opacity: .75;
}

.app-header-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.2rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    line-height: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-header-actions-divider {
    width: 1px;
    height: 1.5rem;
    margin: 0 0.15rem;
    background: var(--rise-border);
    align-self: center;
}

.app-header-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.2rem 0.55rem 0.2rem 0.2rem;
    border: 1px solid var(--rise-border);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.app-header-user-btn:hover,
.app-header-user-btn.show,
.app-header-user-btn:focus-visible {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.app-header-user-btn::after {
    margin-left: 0.1rem;
    font-size: 0.625rem;
    opacity: .55;
    vertical-align: middle;
}

.app-header-user-avatar {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--rise-dark-purple) 0%, var(--rise-purple) 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-header-user-avatar--photo {
    padding: 0;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.app-header-user-avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-header-user-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    max-width: 7.5rem;
}

.app-header-user-name {
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.15;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.app-header-user-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 0.6875rem;
    line-height: 1.15;
    color: #94a3b8;
}

.app-header-user-sub > span {
    white-space: nowrap;
    min-width: 0;
}

.app-header-user-org {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: #64748b;
}

.app-header-user-role {
    flex: 0 0 auto;
    text-align: right;
    color: inherit;
}

.app-header-user-menu {
    min-width: 11.5rem;
    margin-top: 0.45rem !important;
    padding: 0.35rem 0;
    border: 1px solid var(--rise-border);
    border-radius: 0.65rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
    overflow: hidden;
}

.app-header-user-menu .dropdown-item-text {
    padding: 0.7rem 1rem 0.75rem;
}

.app-header-user-menu-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
}

.app-header-user-menu-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    line-height: 1.15;
}

.app-header-user-menu-org {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header-user-menu-role {
    flex: 0 0 auto;
    text-align: right;
    color: #94a3b8;
    white-space: nowrap;
}

.app-header-user-menu-last-login {
    font-size: 0.6875rem;
    color: #94a3b8;
    letter-spacing: -0.01em;
    text-align: center;
}

.app-header-user-menu-footer {
    padding: 0.5rem 1rem 0.65rem !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #f8fafc;
}

.app-header-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
}

.app-header-user-menu .dropdown-item i {
    width: 1rem;
    font-size: 1rem;
    opacity: .8;
}

@media (max-width: 767.98px) {
    .app-header-user-btn {
        padding-right: 0.35rem;
    }
}

/* 알림 얼럿창 애니메이션 */
.alarmGlow {animation: alarmGlowBtn 2s ease-in-out infinite;}
@keyframes alarmGlowBtn {
    0% {box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);}
    50% {box-shadow: 0 0 0 4px rgba(251, 191, 36, .22);}
    100% {box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);}
}
@keyframes alarmToastShow {
    from {opacity: 0;transform: translateY(20px) scale(.97);}
    to {opacity: 1;transform: translateY(0) scale(1);}
}
@keyframes alarmGlow {
    0% {box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 0 0 0 rgba(255,193,7,.15);}
    50% {box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 0 18px 4px rgba(255,193,7,.28);}
    100% {box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 0 0 0 rgba(255,193,7,.15);}
}

/* 알림 리스트 (헤더 벨 → 레이어 모달) */
.alarm-panel {
    --alarm-all-fg: #4338ca;
    --alarm-all-bg: #e0e7ff;
    --alarm-all-bd: #c7d2fe;
    --alarm-all-solid: #4338ca;
    --alarm-notice-fg: #1e40af;
    --alarm-notice-bg: #dbeafe;
    --alarm-notice-bd: #bfdbfe;
    --alarm-notice-solid: #2563eb;
    --alarm-qna-fg: #9a3412;
    --alarm-qna-bg: #ffedd5;
    --alarm-qna-bd: #fed7aa;
    --alarm-qna-solid: #ea580c;
}
.alarm-panel--embed {
    margin: -4px 0 0;
}
.alarm-panel__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 0;
    margin: 0;
}
.alarm-panel__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 0.75rem;
}
.alarm-panel__mark-all {
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.35rem 0.7rem;
    white-space: nowrap;
}
.alarm-panel__mark-all:hover {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #9ca3af;
}
.alarm-panel__tab {
    padding: 0.35rem 0.85rem;
    border-radius: 999px !important;
    border: 1px solid #e5e7eb !important;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    background: #fff;
}
.alarm-panel__tab:hover {
    color: #374151;
    background: #f9fafb;
    border-color: #d1d5db !important;
}
.alarm-panel__tab--all {
    color: var(--alarm-all-fg);
    background: var(--alarm-all-bg);
    border-color: var(--alarm-all-bd) !important;
}
.alarm-panel__tab--all:hover {
    color: var(--alarm-all-fg);
    background: #c7d2fe;
    border-color: #a5b4fc !important;
}
.alarm-panel__tab--all.active {
    color: #fff !important;
    background: var(--alarm-all-solid) !important;
    border-color: var(--alarm-all-solid) !important;
}
.alarm-panel__tab--notice {
    color: var(--alarm-notice-fg);
    background: var(--alarm-notice-bg);
    border-color: var(--alarm-notice-bd) !important;
}
.alarm-panel__tab--notice:hover {
    color: var(--alarm-notice-fg);
    background: #bfdbfe;
    border-color: #93c5fd !important;
}
.alarm-panel__tab--notice.active {
    color: #fff !important;
    background: var(--alarm-notice-solid) !important;
    border-color: var(--alarm-notice-solid) !important;
}
.alarm-panel__tab--qna {
    color: var(--alarm-qna-fg);
    background: var(--alarm-qna-bg);
    border-color: var(--alarm-qna-bd) !important;
}
.alarm-panel__tab--qna:hover {
    color: var(--alarm-qna-fg);
    background: #fed7aa;
    border-color: #fdba74 !important;
}
.alarm-panel__tab--qna.active {
    color: #fff !important;
    background: var(--alarm-qna-solid) !important;
    border-color: var(--alarm-qna-solid) !important;
}
.alarm-panel__tab.active {
    font-weight: 600;
}
.alarm-panel__list {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.alarm-panel__item {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 8px;
    border-bottom: 1px solid #f0f1f3;
    border-left: 3px solid transparent;
    transition: background 0.15s ease;
    cursor: pointer;
}
.alarm-panel__item:last-child {
    border-bottom: 0;
}
.alarm-panel__item.is-unread {
    background: #fafbff;
    border-left-color: var(--rise-purple, #40398f);
}
.alarm-panel__item.is-read {
    background: #fff;
}
.alarm-panel__item.is-read .alarm-panel__dot {
    display: none;
}
.alarm-panel__item.is-read .alarm-panel__title {
    font-weight: 500;
    color: #6b7280;
}
.alarm-panel__item:hover {
    background: #f5f6f8;
}
.alarm-panel__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.alarm-panel__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}
.alarm-panel__rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    flex: 0 0 7.5rem;
    width: 7.5rem;
    gap: 8px;
    text-align: right;
}
.alarm-panel__rail-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}
.alarm-panel__time {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    line-height: 1.2;
}
.alarm-panel__writer {
    display: block;
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.alarm-panel__item.is-read .alarm-panel__writer {
    color: #9ca3af;
}
.alarm-panel__open {
    align-self: flex-end;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
}
.alarm-panel__open:hover {
    background: var(--rise-purple, #40398f);
    border-color: var(--rise-purple, #40398f);
    color: #fff;
}
.alarm-panel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}
.alarm-panel__type {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.alarm-panel__type--notice {
    color: var(--alarm-notice-fg);
    background: var(--alarm-notice-bg);
    border-color: var(--alarm-notice-bd);
}
.alarm-panel__type--qna {
    color: var(--alarm-qna-fg);
    background: var(--alarm-qna-bg);
    border-color: var(--alarm-qna-bd);
}
.alarm-panel__type--other {
    color: var(--alarm-all-fg);
    background: var(--alarm-all-bg);
    border-color: var(--alarm-all-bd);
}
.alarm-panel__item.is-read .alarm-panel__type {
    opacity: 0.85;
}
.alarm-panel__new {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: #dc2626;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    line-height: 1.2;
}
.alarm-panel__item.is-read .alarm-panel__new {
    display: none;
}
.alarm-panel__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.alarm-panel__empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #9ca3af;
}
.alarm-panel__empty .bi {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.alarm-panel__empty p {
    margin: 0;
    font-size: 0.875rem;
}
@media (max-width: 576px) {
    .alarm-panel__item {
        padding: 10px 14px 6px;
    }
}

.table-fixed {table-layout: fixed;}

/* 학생 정보 수정 */
.student-edit-wrap {
    max-width: 960px;
}
.student-edit-wrap.student-edit-has-sticky {
    padding-bottom: 72px;
}
.student-edit-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
}
.student-edit-sticky-inner {
    max-width: 960px;
    margin: 0 auto;
}
.student-edit-table > tbody > tr > th {
    background-color: #f8f8f8;
    color: #2d2d2d;
    font-weight: 600;
    vertical-align: middle;
    font-size: 0.875rem;
}
.student-edit-table > tbody > tr > th.student-avatar-cell {
    vertical-align: top;
    padding-top: 0.75rem;
}
.student-edit-table > tbody > tr > td {
    vertical-align: middle;
}
.student-edit-section > th {
    background-color: #eef1f5 !important;
    font-size: 0.8125rem !important;
    letter-spacing: 0.01em;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.student-edit-section-note {
    font-weight: 400;
    color: #64748b;
    font-size: 0.75rem;
}
/* label radio checkbox 사용시 커서 설정 */
label:has(input[type="radio"]), label:has(input[type="checkbox"]), label input, .pointer {cursor: pointer;}

/* 전체화면 가리는 로딩 */
.wrap-loading{position: fixed;left:0;right:0;top:0;bottom:0;background: rgba(0,0,0,0.2);z-index: 99999;}
.wrap-loading div{position: fixed;top:50%;}
.wrap-loading .spinner-border{left:50%;margin-left: -21px;margin-top: -21px;}
.wrap-loading .spinner-text {width: 200px;left: calc(50% - 100px);margin-left: -5px;margin-top: 15px;text-align: center;}
/* 특정영역 가리는 로딩 */
.area-loading{position: absolute;left:0;right:0;top:0;bottom:0;background: rgba(0,0,0,0.2);z-index: 9999;}
.area-loading div{position: absolute;top:50%;}
.area-loading .spinner-border{left:50%;margin-left: -21px;margin-top: -21px;}
.area-loading.hidden {display: none;}

/* 캠퍼스 구분 변경 후 이전 페이지에서 캠퍼스 선택 방지 */
select.campus-filter-loading {
    pointer-events: none;
    opacity: 0.65;
}

/* 위로 가기 버튼 기본 스타일 */
.scroll-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1030;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(90, 92, 105, 0.6);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}
.scroll-to-top i.bi-chevron-up {font-size: 1.1rem;-webkit-text-stroke: 1.5px;stroke-width: 1.5px; }
.scroll-to-top.show {opacity: 1;visibility: visible;pointer-events: auto;}
.scroll-to-top:hover {background: rgba(90, 92, 105, 0.8);color: #fff;transform: translateY(-3px);}

/* Student Portfolio — hide LMS chrome (parent-facing counseling view; body only) */
body.student-portfolio-screen {
    overflow: hidden;
}

body.student-portfolio-screen .app-wrapper {
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
}

body.student-portfolio-screen .app-sidebar,
body.student-portfolio-screen .app-header,
body.student-portfolio-screen .app-footer,
body.student-portfolio-screen .lms-page-header,
body.student-portfolio-screen .scroll-to-top {
    display: none !important;
}

body.student-portfolio-screen .app-main,
body.student-portfolio-screen.sidebar-expand-lg .app-main {
    margin-inline-start: 0 !important;
    padding-inline-start: 0 !important;
    margin-top: 0 !important;
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: visible;
    overflow-y: auto;
    padding: calc(10px * 2 / 3) 1.35rem 10px 1rem;
    box-sizing: border-box;
}

body.student-portfolio-screen .app-main > .container-fluid {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
}

/* 알파벳 원형 아이콘 베이스 */
.bi-text-circle {
    display: inline-flex;
    justify-content: center;
    width: 1.25em; 
    height: 1.25em; 
    font-size: 0.85rem;
    font-weight: 500;
    font-family: sans-serif;
    line-height: 1;
    border: 1px solid #e87b3a;
    border-radius: 50%;
    background-color: #e87b3a;
    color: white;
    vertical-align: -.125em; 
    cursor: pointer;
}
.bi-text-circle::before {
    content: "";
    display: block;
}