:root {
  /* main */
  --bg-color: #f0f2f5;
  --text-color: #000000;

  /* sidebar */
  --sidebar-text-color: #ffffff;
  --sidebar-bg-color: #0B3857;
  --sidebar-bg-active-color: #03253c;
  --sidebar-hover-bg-color: #03253c;

  /* userprofile */
  --userprofile-text-color: #333;
  --userprofile-auth-bg-color: #666;
  --userprofile-auth-text-color: #fff;
  --userprofile-honorific-color: rgba(0, 0, 0, 0.5);

  /* userdd */
  --userdd-bg-color: #eee;
  --userdd-caret-color: #333;

  /* footer */
  --footer-bg-color: #f8f9fa;
  --footer-border-top-color: #ddd;

  /* button */
  --button-border-color: #cccccc;
  --button-text-color: #ffffff;

  /* navbar */
  --navbar-bg-color: #ffffff;
  --navbar-text-color: #000000;

  /* panel */
  --panel-bg-color: #ffffff;
  --panel-border-color: #e4e6eb;
  --panel-heading-bg-color: #ffffff;
  --panel-heading-text-color: #000000;

  /* table */
  --table-bg-color: #ffffff;
  --table-border-color: #e4e6eb;
  --table-header-bg-color: #1a3b61;
  --table-header-text-color: #ffffff;
  --table-hover-bg-color: rgba(229, 231, 233, 0.73);

  /* link */
  --link-color: #1a73e8;
  --link-hover-color: #0c47a1;

  /* 추가 색상 */
  --serviceblock-text-color: #607d8b;
  --serviceblock-heading-color: #000000;
  --services-bg-color: #ffffff;
  --featurette-bg-color: #ffffff;
  --featurette-divider-color: #ffffff;
  --featurette-heading-color: #000000;
  --contactform-bg-color: #ffffff;
  --contactform-text-color: #ffffff;
  --contactform-heading-color: #ffffff;
  --contactform-address-color: #ffffff;
  --footer-text-color: #000000;
  --well-bg-color: #ffffff;
  --well-border-color: #cbdde6;
  --loader-bg-color: rgba(242, 243, 244, 0.9);
  --loader-color: #566b75;
  --rate-color: #FFC107;

  /* 공통 변수 정의 */
  --primary-color: #0b3857;
  --accent-color: #0b3857;
  --background-color: #edf0f5;
  --card-background: #ffffff;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --info-color: #3498db;
  --danger-color: #e74c3c;
}

.dark-theme {
  --bg-color: #5a5a5a;
  --text-color: #e0e0e0;

  /* sidebar */
  --sidebar-text-color: #e0e0e0;
  --sidebar-bg-color: #2b2b2b;
  --sidebar-bg-active-color: #474747;
  --sidebar-hover-bg-color: #474747;

  /* userprofile */
  --userprofile-text-color: #e0e0e0;
  --userprofile-auth-bg-color: #e8e8e8;
  --userprofile-auth-text-color: #101010;
  --userprofile-honorific-color: rgba(255, 255, 255, 0.5);

  /* userdd */
  --userdd-bg-color: #21262B;
  --userdd-caret-color: #e0e0e0;

  /* footer */
  --footer-bg-color: #101010;
  --footer-border-top-color: #202020;

  /* button */
  --button-border-color: #444444;
  --button-text-color: #e0e0e0;

  --navbar-bg-color: #333333;
  --navbar-text-color: #e0e0e0;

  --panel-bg-color: #333333;
  --panel-border-color: #444444;
  --panel-heading-bg-color: #444444;
  --panel-heading-text-color: #e0e0e0;

  --link-color: #b180ea;
  --link-hover-color: #624d93;

  --serviceblock-text-color: #b0bec5;
  --serviceblock-heading-color: #e0e0e0;
  --services-bg-color: #333333;
  --featurette-bg-color: #333333;
  --featurette-divider-color: #444444;
  --featurette-heading-color: #e0e0e0;
  --contactform-bg-color: #333333;
  --contactform-text-color: #e0e0e0;
  --contactform-heading-color: #e0e0e0;
  --contactform-address-color: #e0e0e0;
  --footer-text-color: #e0e0e0;
  --well-bg-color: #333333;
  --well-border-color: #444444;
  --loader-bg-color: rgba(18, 18, 18, 0.9);
  --loader-color: #b0bec5;
  --rate-color: #FFD700;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Noto Sans KR', sans-serif;
}

a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover-color);
}

#wrapper {
  min-width: 1480px;
}

.content {
  margin: 0 auto;
}

.full-wrap {
  padding-bottom: 1rem
}

.full-wrap .content {
  max-width: 1600px !important;
}


.navbar-header {
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.navbar-header img {
  max-width: 150px;
}

.navbar-header .navbar-brand {
  font-weight: bold;
}

.navbar-right {
  float: right;
}

.navbar-toggle {
  display: block;
  float: left;
  border: 0;
  margin: 0;
  padding: 2rem;
  height: 60px;
  width: 60px;
  text-align: center;
}

.sidebar {
  background: var(--sidebar-bg-color);
  color: var(--sidebar-text-color);
  border: none;
  z-index: 99;
  position: fixed;
  width: 250px;
  margin-top: 0px;
  height: 100%;
  overflow: auto;
  top: 0;
  left: 0;
  transition: all ease 0.5s;
  -moz-transition: all ease 0.5s;
  -webkit-transition: all ease 0.5s;
  -ms-transition: all ease 0.5s;
  scrollbar-gutter: stable;
}

.sidebar a {
  color: var(--sidebar-text-color);
}

/* 웹킷 기반 브라우저용 스크롤바 스타일링 */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Firefox용 스크롤바 스타일링 */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* 사이드바 내부 요소들의 너비 고정 */
.sidebar .sidebar-nav {
  width: 100%;
  padding-right: 6px; /* 스크롤바 공간 확보 */
  box-sizing: border-box;
}

.sidebar ul.nav {
  width: 100%;
  box-sizing: border-box;
}

.sidebar ul.nav li {
  width: 100%;
  box-sizing: border-box;
}

.sidebar ul.nav li a {
  width: 100%;
  box-sizing: border-box;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar a .fa {
  margin-right: .5rem;
}

.sidebar ul li a.active {
  background-color: var(--sidebar-hover-bg-color);
  color: var(--sidebar-text-color);
  font-weight: 500;
  border-radius: 0.5rem;
}

/* header */
.userprofile {
  display: flex;
  gap: 1rem;
  color: var(--userprofile-text-color);
}

.userprofile .userpic {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 40px;
}

.userprofile .userpic img {
  width: 100%;
  height: 100%;
}

.userprofile .textcontainer {
  display: flex;
  align-items: center;
}

.userprofile .textcontainer .username {
  font-size: 1.5rem;
  font-weight: 700;
}

.userprofile .textcontainer .username span {
  letter-spacing: 0.03rem;
}

.userprofile .user-auth {
  font-size: .8rem;
  padding: .4rem;
  background: var(--userprofile-auth-bg-color);
  color: var(--userprofile-auth-text-color);
  border-radius: .25rem;
  margin-top: .3rem;
}

.userprofile .user-auth span {
  flex-direction: row;
  align-items: flex-end;
}

.honorific {
  font-size: 1.20rem;
  font-weight: normal;
  color: var(--userprofile-honorific-color); /* 예: '님' 색상 표시 */
}

.userdd {
  display: flex !important;
  padding: .5rem !important;
  align-items: center;
  gap: 0.5rem;
}

.userdd:hover {
  background: var(--userdd-bg-color) !important;
}

.userdd .caret {
  color: var(--userdd-caret-color);
}

/* page header */
.header-wrapper .header-btn-wrapper {
  display: flex;
  gap: 10px;
}

/* common */
#page-wrapper {
  position: inherit;
  margin: 0 40px 0 290px;
  /*padding: 20px 30px;*/
  min-height: 100dvh;
  transition: all ease 0.5s;
  -moz-transition: all ease 0.5s;
  -webkit-transition: all ease 0.5s;
  -ms-transition: all ease 0.5s;
  background-color: var(--background-color);
}

.contents-button-wrap {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
}

footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--footer-bg-color);
  padding: 13px;
  text-align: center;
  border-top: 1px solid var(--footer-border-top-color);
}

#footer {
  color: #666
}

.btn {
  border-radius: 0.5rem;
  line-height: 1.25rem;
  padding: 0.75rem 1.2rem;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
}

.btn .button-icon {
  margin-right: .25rem;
}

.btn.red {
  background: #F44336;
  color: #fff;
}

/* nav */
.sidebar .nav-second-level {
  display: none;
  padding-left: 20px;
}

.sidebar .has-submenu > a {
  cursor: pointer;
}

.sidebar .fa-arrow {
  float: right;
  transition: transform 0.3s;
}

.sidebar .nav-second-level.open {
  display: block;
}

.sidebar .fa-rotate-90 {
  transform: rotate(90deg);
}

.has-submenu .caret-right {
  font-size: 1em;
  white-space: nowrap;
  float: right;
}

/* 사이드바 펼치기/숨기기 영역*/
.nav-collapse-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-collapse-btn i { font-size: 18px; opacity: .9; }
.nav-collapse-btn:focus { outline: none; }

.sidebar.is-collapsed { width: 72px; }
#page-wrapper.nav-collapsed { margin: 0 10px 0 110px; }

.sidebar.is-collapsed .navbar-title { display: none; }
.sidebar.is-collapsed .navbar-header { padding: 1.5rem 0; }
.sidebar.is-collapsed .navbar-header img { display: none; } /* 로고 숨김 */
.sidebar.is-collapsed .navbar-footer { display: none; } /* 푸터 숨김 */
.sidebar.is-collapsed .sidebar-nav.navbar-collapse { padding-left: 6px; } /* 축소 시 좌측 패딩 */

.sidebar.is-collapsed ul.nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  padding: 10px 0;
  font-size: 0; /* 텍스트 숨김 */
}

.sidebar.is-collapsed a .fa {
  margin-right: 0;
  font-size: 18px;
}

.sidebar.is-collapsed .nav-second-level { display: none !important; }
.sidebar.is-collapsed .has-submenu > a .caret-right { display: none; }

/* datepicker */
.ui-datepicker {
  padding: 1rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 0 10px rgba(0 0 0 / 0.05);
}

/* table */
.dtfh-floatingparent {
  display: none;
}

.table {
  width: 100% !important;
}

.dataTables_wrapper .top {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dataTables_wrapper .top .dataTables_info {
  font-size: 1.3rem;
}

.dataTables_wrapper .top .dataTables_info span {
  font-weight: 700;
  color: #4287f5;
}

.dataTables_wrapper .top .dataTables_length label {
  font-weight: normal;
}

.dataTables_wrapper .top .dataTables_length select {
  padding: 0.5rem;
  margin-right: 0.5rem;
  border: transparent;
  border-radius: 0;
  border-bottom: 2px solid #666;

}

.dataTables_wrapper .dataTables_paginate {
  text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.active a {
  background: #333;
  border-color: #333;
}

table.dataTable td input[type="checkbox"] {
  float: left;
  margin: 0 auto;
  width: 100%;
}

.line-table.dataTable.DTFC_Cloned td:last-child {
  border-right: 1px dashed #C1C3D1;
}

.line-table-info {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.line-table-info .total {
  font-size: 1.75rem;
}

.line-table-info .total .bold {
  font-weight: 700;
}

.line-table-info .view-cnt {

}

.line-table-info .view-cnt select {
  padding: .5rem;
  margin-right: .5rem;
  border: transparent;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
  border-bottom: 2px solid #666;
}

.line-table {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.line-table th {
  padding: 1rem;
  background: #fff;
  text-align: center;
  border-top: 2px solid #666;
  border-bottom: 1px solid #666;
  vertical-align: middle;
  white-space: nowrap;
}

.line-table td {
  padding: 0.5rem;
  height: 45px;
  text-align: center;
  border-right: 1px dashed #C1C3D1;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
  white-space: nowrap;
}

.line-table td:last-child {
  border-right: 0;
}

.line-table tbody tr {
  background: #fff;
}

.line-table tbody tr:hover {
  background: #f8f8f8;
}

.line-pagination {
  text-align: center;
}

.line-pagination .pagination > .active > a {
  background: #666;
}

/* input common*/
.label-input {
  margin-bottom: 1.5rem;
}

.label-input label {
  margin-bottom: .5rem;
  display: block;
  color: #555;
}

.label-input input {
  padding: .375rem .5rem;
  border: 0;
  border-radius: .25rem;
  box-shadow: inset 0 0 0 0px #fff, 0 0 #0000, inset 0 0 0 calc(1px + 0px) rgb(209 213 219/ 1), 0 0 #0000, 0 1px 2px 0 rgba(0, 0, 0, .05);
  width: 100%;
  line-height: 1.5rem;
}

.search-input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.search-input-form-control {
  width: 30%;
}

.search-input-group select {
  margin-right: .5rem;
  width: 40%;
}

.search-input-group input {
  width: calc(70% - .5rem);
  padding-right: 40px;
}

.search-input-group button {
  position: absolute !important;
  border: 1px solid #ccc;
  right: 0;
  padding: 6px 12px;
}

.search-input {
  display: flex;
  align-items: center;
}

.search-input .form-control {
  width: calc(100% - 38px);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-input .btn {
  padding: 6px 12px;
  width: 38px;
}

.table-input {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.table-input + .table-input {
  margin-top: -1px;
}

.table-input .title,
.table-input .content {
  display: table-cell;
  padding: 1rem;
  border: 1px solid #ccc;
}

.table-input .contents-wrap {
  display: flex;
  padding: 1rem;
  border: 1px solid #ccc;
}

.id-checkBtn {
  padding: 0 !important;
  height: 34px;
  width: 150px;
}


.table-input .title {
  width: 210px;
  background-color: #f5f5f5;
  color: #000;
  font-weight: 700;
  vertical-align: middle;
}

.table-input .content {
  width: calc(100% - 200px);
}

.form-control.error {
  border-color: #dc3545;
}

.input-error-info {
  margin-top: .5rem;
  color: #dc3545;
}

.input-error {
  border: 2px solid #dc3545;
}

.input-radio-box {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.input-radio-box input {
  margin: 0;
}

.question-list .CUE1 .input-radio-box {
  gap: 0;
}
.question-box .question .con .input-radio-box input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-right: 6px;
  transform: scale(1.2);
  accent-color: var(--primary-color);
}

.question-box .question .con .input-radio-box label {
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-color);
  user-select: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.question-box .question .con .input-radio-box label:hover {
  background-color: rgba(11, 56, 87, 0.1);
  color: var(--primary-color);
}

.question-box .question .con .input-radio-box input[type="radio"]:checked + label {
  font-weight: 600;
}

.question-box .question .con .input-radio-box {
  margin: 2px 0;
}

.question-box .question .con {
  padding: 0.8rem;
  overflow: hidden;
}

.question-list .PREMISE_ALIGNMENT .input-radio-box {
  gap: 0;
  margin: 0;
}

.question-box .question .con.PREMISE_ALIGNMENT {
  padding: 0.5rem;
  display: flex;
  gap: 0.2rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.question-box .question .con.PREMISE_ALIGNMENT .input-radio-box input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-right: 2px;
  transform: scale(1);
  accent-color: var(--primary-color);
}

.question-box .question .con.PREMISE_ALIGNMENT .input-radio-box label {
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-color);
  user-select: none;
  padding: 1px 4px;
  border-radius: 2px;
  transition: all 0.2s ease;
  min-width: 20px;
  text-align: center;
  white-space: nowrap;
}

.question-box .question .con.PREMISE_ALIGNMENT .input-radio-box label:hover {
  background-color: rgba(11, 56, 87, 0.1);
  color: var(--primary-color);
}

.question-box .question .con.PREMISE_ALIGNMENT .input-radio-box input[type="radio"]:checked + label {
  font-weight: 600;
}


/* 공통 모달 */
#ccModal .modal-dialog {
  width: 550px;
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 30px 0;
}

#ccModal .modal-content {
  width: 100%;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cc-modal {
  background: var(--panel-bg-color, #fff);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.cc-modal__accent {
  height: 4px;
  width: 100%;
}

.cc-modal__header {
  padding: 28px 28px 0;
  text-align: center;
}

.cc-modal__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cc-modal__icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  opacity: 0.15;
}

.cc-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.3);
  font-size: 20px;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 1;
}

.cc-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.6);
}

.cc-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color, #000);
  margin: 0 0 4px;
}

.cc-modal__body {
  padding: 20px 28px 24px;
  text-align: center;
}

.cc-modal__message {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.6;
  margin: 0;
}

.cc-modal__divider {
  height: 1px;
  background: var(--panel-border-color, #e4e6eb);
  margin: 0 28px;
}

.cc-modal__footer {
  padding: 16px 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cc-modal__btn {
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 88px;
}

.cc-modal__btn:active {
  transform: scale(0.97);
}

.cc-modal__btn--cancel {
  background: #fff;
  border-color: var(--button-border-color, #ccc);
  color: rgba(0, 0, 0, 0.6);
}

.cc-modal__btn--cancel:hover {
  background: #f5f5f5;
}

/* -- Type: error / delete -- */
.cc-modal--error .cc-modal__accent,
.cc-modal--delete .cc-modal__accent { background: var(--danger-color, #e74c3c); }
.cc-modal--error .cc-modal__icon,
.cc-modal--delete .cc-modal__icon { background: var(--danger-color, #e74c3c); }
.cc-modal--error .cc-modal__icon::after,
.cc-modal--delete .cc-modal__icon::after { background: var(--danger-color, #e74c3c); }

/* -- Type: success -- */
.cc-modal--success .cc-modal__accent { background: var(--success-color, #27ae60); }
.cc-modal--success .cc-modal__icon { background: var(--success-color, #27ae60); }
.cc-modal--success .cc-modal__icon::after { background: var(--success-color, #27ae60); }

/* -- Type: warning -- */
.cc-modal--warning .cc-modal__accent { background: var(--warning-color, #f39c12); }
.cc-modal--warning .cc-modal__icon { background: var(--warning-color, #f39c12); }
.cc-modal--warning .cc-modal__icon::after { background: var(--warning-color, #f39c12); }

/* -- 모달 유형: confirm -- */
.cc-modal--confirm .cc-modal__accent { background: var(--primary-color, #0b3857); }
.cc-modal--confirm .cc-modal__icon { background: var(--primary-color, #0b3857); }
.cc-modal--confirm .cc-modal__icon::after { background: var(--primary-color, #0b3857); }

/* -- 모달 유형: info -- */
.cc-modal--info .cc-modal__accent { background: var(--info-color, #3498db); }
.cc-modal--info .cc-modal__icon { background: var(--info-color, #3498db); }
.cc-modal--info .cc-modal__icon::after { background: var(--info-color, #3498db); }

.cc-modal__btn--error,
.cc-modal__btn--delete { background: var(--danger-color, #e74c3c); color: #fff; }
.cc-modal__btn--error:hover,
.cc-modal__btn--delete:hover { opacity: 0.88; }

.cc-modal__btn--success { background: var(--success-color, #27ae60); color: #fff; }
.cc-modal__btn--success:hover { opacity: 0.88; }

.cc-modal__btn--warning { background: var(--warning-color, #f39c12); color: #fff; }
.cc-modal__btn--warning:hover { opacity: 0.88; }

.cc-modal__btn--confirm { background: var(--primary-color, #0b3857); color: #fff; }
.cc-modal__btn--confirm:hover { opacity: 0.88; }

.cc-modal__btn--info { background: var(--info-color, #3498db); color: #fff; }
.cc-modal__btn--info:hover { opacity: 0.88; }

/* -- 다크 테마 대응용 -- */
.dark-theme .cc-modal { background: var(--panel-bg-color); }
.dark-theme .cc-modal__title { color: var(--text-color); }
.dark-theme .cc-modal__message { color: rgba(255, 255, 255, 0.55); }
.dark-theme .cc-modal__close { color: rgba(255, 255, 255, 0.3); }
.dark-theme .cc-modal__close:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.dark-theme .cc-modal__divider { background: var(--panel-border-color); }
.dark-theme .cc-modal__btn--cancel { background: rgba(255, 255, 255, 0.06); border-color: var(--button-border-color); color: rgba(255, 255, 255, 0.6); }
.dark-theme .cc-modal__btn--cancel:hover { background: rgba(255, 255, 255, 0.12); }

/* API 상세보기 모달 스타일 */
.json-container {
  position: relative;
}

.json-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  padding: 4px 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  color: #666;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.json-copy-btn:hover {
  background-color: #f8f9fa;
  border-color: #007bff;
  color: #007bff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.json-copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.json-copy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.json-display {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 12px;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #495057;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
}

.api-uri-display {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: #0969da;
  background-color: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
}

.requester-display {
  font-weight: 500;
  color: #24292f;
}

.datetime-display {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: #656d76;
}

.status-display .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.error-display {
  color: #d1242f;
  font-style: italic;
}

.error-display:empty:before {
  content: '-';
  color: #8b949e;
  font-style: normal;
}

#errorConfirmModal {
  z-index: 1060;
}


/* form-content-box */
.form-content-box .panel-heading {
  line-height: 2.5rem;
  font-size: 1.2rem;
  font-weight: 800;
}

/* main */
.main.panel {
  background: var(--primary-color);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.main.panel:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.main.panel.selected {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
  border: 2px solid #fff;
}

.panel-blue {
  background: #03A9F4;
}

.panel-green {
  background: #8BC34A;
}

.panel-yellow {
  background: #FFC107;
}

.panel-total {
  background: #1a3b61 !important;
}

.panel-wait {
  background: #3498db !important;
}

.panel-inprogress {
  background: #f39c12 !important;
}

.panel-complete {
  background: #27ae60 !important;
}

.panel .huge {
  font-size: 4rem;
  font-weight: 300;
  margin-top: 10px;
}

.panel .panel-heading {
  line-height: 3rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.panel .panel-heading.space-between {
  display: flex;
  justify-content: space-between;
}

.panel .panel-total-title {
  letter-spacing: 0.1rem;
}

.panel-heading-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.panel-title {
  flex: 1;
  margin: 0;
}

.panel-title b {
  display: flex;
  align-items: center;
  font-size: 22px;
  margin: 0;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.panel-actions .btn {
  margin: 0;
  white-space: nowrap;
}

.panel-title-icon {
  margin: 2px 10px 0 0;
  color: var(--primary-color);
  font-size: 16px;
  opacity: 0.95;
}

/* 반응형: 모바일에서는 세로 배치 */
@media (max-width: 768px) {
  .panel-heading-with-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .panel-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .panel-title b {
    font-size: 18px;
  }
}


/* login 로그인 */
.loginpages {
  background: #f0f3f5;
}

.loginpages .content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
}

.loginpages .login {
  background: #fff;
  border-radius: .5rem;
  padding: 2rem;
  width: calc(100% - 2rem);
  max-width: 360px;
}

.loginpages .login .title {
  margin-bottom: 1rem;
  font-weight: bold;
  text-align: center;
}

.login .title img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.loginpages .login .userpic {
  margin: 0 auto;
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
}

.loginpages .login .userpic img {
  width: 100%;
}

.loginpages .login .body {
  margin-top: 1.5rem;
}

.login-wrap .content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
}

.login-wrap .login {
  width: calc(100% - 2rem);
  max-width: 380px;
}

.login-wrap .top {
  text-align: center;
}

.login-wrap .top .title {
  font-size: 3rem;
  font-weight: 900;
  color: #337ab7;
}

.login-wrap .top .con {
  margin-top: 1rem;
  font-weight: 700;
}

.login-wrap .body {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.login-wrap2 {
  background: #f0f3f5;
  height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-wrap2 .content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(11, 56, 87, 0.1);
}

.login-wrap2 .image {
  position: relative;
  width: 460px;
  height: 600px;
  overflow: hidden;
}

.login-wrap2 .image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-wrap2 .login {
  display: flex;
  justify-content: center;
  align-items: center;
  /*width: 380px;*/
  height: 600px;
  padding: 4rem 3rem;
  background: #fff;
  position: relative;
}

.login-wrap2 .login form {
  width: 100%;
}

.login-wrap2 .top {
  text-align: center;
  margin-bottom: 2rem;
}

.login-wrap2 .top img {
  max-width: 200px;
  margin-bottom: 1rem;
}

.login-wrap2 .top .title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.login-wrap2 .body {
  margin-top: 2rem;
}

/* mailpreview */
.mailpreview {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
  background: #fff;
  padding: 1rem;
  border-radius: .5rem;
}

.mailpreview:hover {
  text-decoration: none;
}

.mailpreview .imgpic {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mailpreview .imgpic .textmail {
  text-align: left;
}

.mailpreview .imgpic .textmail p {
  color: #999;
  padding-top: .25rem;
}

.mailpreview .imgpic .icon {
  background: red;
  border-radius: 100rem;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

/* template registration */
.CodeMirror {
  height: 80vh !important;
}

.CodeMirror.sms-codemirror {
  height: 500px !important;
}

.feedback {
  position: fixed;
  right: 1rem;
  top: 5rem;
  z-index: 99999;
}

.feedback .feedbackbtn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reserve {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  z-index: 5555;
  width: 450px;
}

.reserve .title {

}

.reserve .content {
  font-size: 1rem;
  font-weight: 500;
}

.tab-tit {
  display: flex;
  justify-content: space-between;
}

.template-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-preview {
  overflow: scroll;
  width: 100%;
  height: 80vh;
}

.template-write {
  width: 100%;
  height: 80vh !important;
}

.template-box.sms {
  height: 500px;
  overflow: auto;
  background: #f8f8f8;
}

.train-box {
  position: fixed;
  right: 1rem;
  top: 9rem;
  z-index: 5554;
}

.train-box .feedbackbtn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.train-box .malware {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  z-index: 5555;
  width: 450px;
}

.sms-img {
  position: relative;
  border-radius: 10px;
  width: 350px;
  height: 350px;
  overflow: hidden;
  color: #fff;
  padding: 1rem;
  margin: 2rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sms-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.sms-balloon {
  margin: 2rem;
  position: relative;
  background: #09a9d9;
  min-height: 50px;
  max-width: 350px;
  color: #fff;
  padding: 1rem;
  border-radius: .4em;
  line-height: 1.3rem;
  white-space: break-spaces;
  overflow-wrap: break-word;
}

.sms-balloon:after {
  content: '';
  position: absolute;
  left: 0;
  /* top: 50%; */
  bottom: 13px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-right-color: #09a9d9;
  border-left: 0;
  margin-top: -12px;
  margin-left: -12px;
}

/* 이미지 업로드 */
.image-upload {

}

.image-upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-upload .title {
  font-weight: 700;
}

.image-upload .content {
  margin-top: 1rem;
}

.image-upload .list {
  max-height: 350px;
  overflow-y: auto;
  background: #f5f5f5;
  border-radius: .5rem;
  text-align: center;
  margin: 1rem 0;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.image-upload .list .none {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-upload .dropablezone {
  cursor: pointer;
  padding: 2.2rem 3rem;
  background: #f5f5f5;
  border-radius: .5rem;
  text-align: center;
}

.overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 10011;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.overlay::after {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.overlay .overlay-content {
  text-align: right;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.overlay .close-btn {
  font-size: 2rem;
}

.overlay img {
  width: 100%;
}

/* */
.question-box {
  background: #fff;
  border: 1px solid #ddd;
}

.question-box + .question-box {
  margin-top: .5rem;
}

.question-box .question.header {
  background: #f5f5f5;
  text-align: center;
  font-weight: bold;
}

.question-box .question.header .tit {
  justify-content: center;
}

.question-box .question {
  display: flex;
  align-items: stretch;
  border-bottom: 1px dashed #ccc;
}

.question-box .question:last-child {
  border-bottom: 0;
}

.question-box .question .id {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
}

.question-box .question .tit {
  padding: 1rem 0.5rem;
  align-content: center;
  width: calc(100% - 170px - 40px);
  border-left: 1px dashed #ccc;
  border-right: 1px dashed #ccc;
  word-break: keep-all;
  line-height: 1.5;
}

.question-box .question .tit span {
  display: inline;
}

.required {
  color: #e74c3c;
  font-size: 0.95em;
  margin-left: 2px;
  display: inline;
}

.question-box .question .tit.PREMISE_ALIGNMENT {
  padding: 0.75rem;
  width: calc(100% - 240px - 60px);
  border-left: 1px dashed #ccc;
  border-right: 1px dashed #ccc;
  word-break: keep-all;
  line-height: 1.5;
}

.question-box .question .con {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  width: 170px;
}

.question-box .question .con.PREMISE_ALIGNMENT {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  width: 240px;
}

.question-box .question .con.PREMISE_ALIGNMENT .premise-alignment-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

/*  */
.pa-score {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: .5rem;
  background: #fff;
  border: 1px solid #ddd;
}

.pa-score .pa-score-box.header {
  background: #f5f5f5;
  text-align: center !important;
  font-weight: bold;
}

.pa-score .pa-score-box {
  display: table-row;
  border-bottom: 1px solid #ddd;
}

.pa-score .pa-score-box :last-child {
  border-bottom: none;
}

.pa-score .pa-score-box .score,
.pa-score .pa-score-box .tit {
  display: table-cell;
  padding: 1rem;
}

.pa-score .pa-score-box .score {
  text-align: center;
  width: 100px;
  border-right: 1px dashed #ccc;
}

.pa-score .pa-score-box .tit {
  width: calc(100% - 100px);
}

/* btn-toggle */
.btn-toggle {
  margin: 0 4rem;
  padding: 0;
  position: relative;
  border: none;
  height: 1.5rem;
  width: 3rem;
  border-radius: 1.5rem;
  color: #6b7381;
  background: #bdc1c8;
}

.btn-toggle:focus,
.btn-toggle.focus,
.btn-toggle:focus.active,
.btn-toggle.focus.active {
  outline: none;
}

.btn-toggle:before,
.btn-toggle:after {
  line-height: 1.5rem;
  width: 4rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: absolute;
  bottom: 0;
  transition: opacity 0.25s;
}

.btn-toggle:before {
  content: '아니오';
  left: -4rem;
}

.btn-toggle:after {
  content: '예';
  right: -4rem;
  opacity: 0.5;
}

.btn-toggle > .handle {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 1.125rem;
  background: #fff;
  transition: left 0.25s;
}

.btn-toggle.active {
  transition: background-color 0.25s;
}

.btn-toggle.active > .handle {
  left: 1.6875rem;
  transition: left 0.25s;
}

.btn-toggle.active:before {
  opacity: 0.5;
}

.btn-toggle.active:after {
  opacity: 1;
}

.btn-toggle.btn-sm:before,
.btn-toggle.btn-sm:after {
  line-height: -0.5rem;
  color: #fff;
  letter-spacing: 0.75px;
  left: 0.4125rem;
  width: 2.325rem;
}

.btn-toggle.btn-sm:before {
  text-align: right;
}

.btn-toggle.btn-sm:after {
  text-align: left;
  opacity: 0;
}

.btn-toggle.btn-sm.active:before {
  opacity: 0;
}

.btn-toggle.btn-sm.active:after {
  opacity: 1;
}

.btn-toggle.btn-xs:before,
.btn-toggle.btn-xs:after {
  display: none;
}

.btn-toggle:before,
.btn-toggle:after {
  color: #6b7381;
}

.btn-toggle.active {
  background-color: var(--primary-color);
}

.btn-toggle.btn-lg {
  margin: 0 5rem;
  padding: 0;
  position: relative;
  border: none;
  height: 2.5rem;
  width: 5rem;
  border-radius: 2.5rem;
}

.btn-toggle.btn-lg:focus,
.btn-toggle.btn-lg.focus,
.btn-toggle.btn-lg:focus.active,
.btn-toggle.btn-lg.focus.active {
  outline: none;
}

.btn-toggle.btn-lg:before,
.btn-toggle.btn-lg:after {
  line-height: 2.5rem;
  width: 5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: absolute;
  bottom: 0;
  transition: opacity 0.25s;
}

.btn-toggle.btn-lg:before {
  content: '아니오';
  left: -5rem;
}

.btn-toggle.btn-lg:after {
  content: '예';
  right: -5rem;
  opacity: 0.5;
}

.btn-toggle.btn-lg > .handle {
  position: absolute;
  top: 0.3125rem;
  left: 0.3125rem;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 1.875rem;
  background: #fff;
  transition: left 0.25s;
}

.btn-toggle.btn-lg.active {
  transition: background-color 0.25s;
}

.btn-toggle.btn-lg.active > .handle {
  left: 2.8125rem;
  transition: left 0.25s;
}

.btn-toggle.btn-lg.active:before {
  opacity: 0.5;
}

.btn-toggle.btn-lg.active:after {
  opacity: 1;
}

.btn-toggle.btn-lg.btn-sm:before,
.btn-toggle.btn-lg.btn-sm:after {
  line-height: 0.5rem;
  color: #fff;
  letter-spacing: 0.75px;
  left: 0.6875rem;
  width: 3.875rem;
}

.btn-toggle.btn-lg.btn-sm:before {
  text-align: right;
}

.btn-toggle.btn-lg.btn-sm:after {
  text-align: left;
  opacity: 0;
}

.btn-toggle.btn-lg.btn-sm.active:before {
  opacity: 0;
}

.btn-toggle.btn-lg.btn-sm.active:after {
  opacity: 1;
}

.btn-toggle.btn-lg.btn-xs:before,
.btn-toggle.btn-lg.btn-xs:after {
  display: none;
}

.btn-toggle.btn-secondary {
  color: #6b7381;
  background: #bdc1c8;
}

.btn-toggle.btn-secondary:before,
.btn-toggle.btn-secondary:after {
  color: #6b7381;
}

.btn-toggle.btn-secondary.active {
  background-color: #ff8300;
}

/*====== loader CSS ======*/
.loader-wrapper {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: transparent;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  z-index: 9999;
  position: fixed;
  top: 50%;
  left: 50%;
}

.loader::before,
.loader::after {
  content: "";
  grid-area: 1/1;
  --c: no-repeat radial-gradient(farthest-side, #25b09b 92%, #0000);
  background: var(--c) 50% 0,
  var(--c) 50% 100%,
  var(--c) 100% 50%,
  var(--c) 0 50%;
  background-size: 12px 12px;
  animation: l12 1s infinite;
}

.loader::before {
  margin: 4px;
  filter: hue-rotate(45deg);
  background-size: 8px 8px;
  animation-timing-function: linear
}

@keyframes l12 {
  100% {
    transform: rotate(.5turn)
  }
}

/*====== loader CSS ======*/


/* logo */
.logoPreviewContainer {
}

#logoPreview {
  display: flex;
  justify-content: center;
}

.logoPreview {
  width: 38mm;
  height: 42mm;
  display: block;
}

/* license */
#licenseInfoBox {
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.licenseInfoLine {
  display: flex;
  gap: 8px;
}

/* 기존 제품정보 스타일 */
.product-info-row {
  display: flex;
  align-items: center;
}

.product-info-row .col-xs-2 {
  display: flex;
  justify-content: center;
}

.product-info-row img {
  width: 150px;
  height: 160px;
  object-fit: contain;
}

/* 제품정보 - 로고영역 */
#introduceInfoBox {
  padding: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 10px
}

.introduceInfoLine {
  display: flex;
  font-size: 130%;
  gap: 15px;
  margin-left: 10px;
}

.introduceInfoLine dt {
  width: 120px;
  font-weight: bold;
  flex-shrink: 0;
}

.introduceInfoLine dd {
  margin: 0;
}

/* 제품정보 - 저작권 영역 */
.eula-section {

}

.section-title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.eula-box {
  background-color: var(--panel-bg-color);
  border-radius: 8px;
  padding: 2rem;
  /*max-height: 50vh;*/
  overflow-y: auto;
}

.eula-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.eula-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 1rem;
  color: var(--text-color);
}

.eula-content strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}

.eula-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.eula-content ul li {
  margin-bottom: 0.5rem;
}

/* 제품 정보 패널 개선 */
.enhanced-product-panel {
  box-shadow: 0 4px 12px rgba(11, 56, 87, 0.1);
  border: 1px solid rgba(11, 56, 87, 0.1);
}

.enhanced-product-panel .product-info-row img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* 제품명 강조 */
.product-name {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1em;
}

.version-badge-simple {
  background-color: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-block;
}

/* EULA 패널 개선 */
.enhanced-eula-panel {
  box-shadow: 0 4px 12px rgba(11, 56, 87, 0.1);
  border: 1px solid rgba(11, 56, 87, 0.1);
}

/* EULA 제목 개선 */
.eula-title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

/* EULA 인트로 */
.eula-intro {
  background: rgba(11, 56, 87, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
}

.eula-intro p {
  margin: 0;
  font-style: italic;
  color: #555;
}

/* EULA 섹션 아이템 */
.eula-section-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.eula-section-item strong {
  color: var(--primary-color);
  font-size: 1.05em;
}

/* 금지 행위 목록 개선 */
.enhanced-prohibition-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.enhanced-prohibition-list li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  border-bottom: 1px solid #eee;
}

.enhanced-prohibition-list li:last-child {
  border-bottom: none;
}

.enhanced-prohibition-list li:before {
  content: "❌";
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-size: 1rem;
}

/* 반응형 개선 */
@media (max-width: 768px) {
  .enhanced-product-panel,
  .enhanced-eula-panel {
    margin: 0 -15px;
    border-radius: 0;
  }

  .eula-section-item {
    padding: 1rem;
  }

  .enhanced-prohibition-list li {
    padding: 0.5rem 0 0.5rem 2rem;
  }
}

/*시나리오 TAB NAV */
.template-nav .nav-tabs {
  display: flex;
}

.template-nav .nav-tabs > li {
  text-align: center;
}

.template-nav .nav-tabs > li > a {
  display: block;
  min-width: 120px;
  padding: 12px 20px;
  font-size: 16px;
  color: #555;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
}

.template-nav .nav-tabs > li > a:hover {
  background-color: #e0e0e0;
  color: #222;
}

/* 활성 탭 */
.template-nav .nav-tabs > li.active > a,
.template-nav .nav-tabs > li.active > a:focus,
.template-nav .nav-tabs > li.active > a:hover {
  background-color: #444;
  color: #fff;
  border: 1px solid #444;
  font-weight: bold;
}

/* 시나리오 TAB */
.tab-pane { }
.tab-pane .panel-heading {
  background-color: #f5f5f5;
  font-weight: normal;
}

.tab-pane .panel {
  border: 1px solid #ddd;
}

.tab-pane.active .panel-heading {
  background-color: #eaeaea;
  font-weight: bold;
}

.tab-pane.active .panel {
  border: 2px solid #ddd;
}

.email-prefix {
  margin-right: 10px;
}

.cursor-pointer {
  cursor: pointer;
}

.required {
  color: #e74c3c;
  font-size: 0.95em;
  margin-left: 4px;
  vertical-align: middle;
}

/* 페이지 래퍼 */
#page-wrapper {
  background-color: var(--background-color);
  /*padding: 20px 30px;*/
}

/* 헤더 스타일 */
.header-wrapper {
  margin-top: 16px;
  margin-bottom: 16px;
}

.page-header {
  color: var(--primary-color);
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  border: none;
}

/* 페이징 헤더 (개선본) */
.cc-page-header .cc-page-title {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--panel-bg-color);
  border: 1px solid var(--panel-border-color);
  border-radius: 14px;
  box-shadow: 0 3px 5px rgba(11, 56, 87, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.cc-page-header .cc-page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--primary-color);
}

.cc-page-header .cc-page-title::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(11, 56, 87, 0.22), rgba(11, 56, 87, 0));
}

.cc-page-header .cc-page-title__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cc-page-header .cc-page-title__eyebrow {
  font-size: 12px;
  font-weight: 650;
  color: rgba(0, 0, 0, 0.58);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-page-header .cc-page-title__eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(11, 56, 87, 0.35);
  flex: 0 0 auto;
}

.cc-page-header .cc-page-title__heading {
  margin: 0;
  padding: 0;
  border: none;
  color: var(--primary-color);
  font-size: 33px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

@media (max-width: 920px) {
  .cc-page-header .cc-page-title {
    padding: 16px;
  }

  .cc-page-header .cc-page-title__heading {
    font-size: 30px;
  }
}

/* 페이징 헤더 - 특수 케이스: 타이틀 + 우측 액션(버튼) */
.cc-page-header.cc-page-header--with-actions .cc-page-title {
  justify-content: space-between;
  gap: 16px;
}

.cc-page-header.cc-page-header--with-actions .cc-page-title__text {
  flex: 1 1 auto;
}

.cc-page-header.cc-page-header--with-actions .cc-page-title__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cc-page-header.cc-page-header--with-actions .cc-page-title__actions .btn {
  white-space: nowrap;
}

@media (max-width: 920px) {
  .cc-page-header.cc-page-header--with-actions .cc-page-title {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .cc-page-header.cc-page-header--with-actions .cc-page-title__actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 4px;
  }
}

/* 패널 스타일 */
.panel {
  background: var(--panel-bg-color);
  border: 1px solid var(--panel-border-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.panel-heading {
  background: var(--panel-heading-bg-color);
  border-bottom: 1px solid var(--panel-border-color);
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
}

.panel-total .panel-heading {
  background: var(--primary-color);
  color: white;
}

.panel-wait .panel-heading {
  background: var(--info-color);
  color: white;
}

.panel-inprogress .panel-heading {
  background: var(--warning-color);
  color: white;
}

.panel-complete .panel-heading {
  background: var(--success-color);
  color: white;
}

.huge {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 5px;
}

.panel-total-title {
  font-size: 16px;
  font-weight: 500;
}

.fa {
  opacity: 0.9;
}

/*훈련 관리 summary 영역 */
.summary-cards {
  margin-top: 8px;
  margin-bottom: 18px;
}

.summary-cards .main.panel {
  /* 기존 .main.panel(컬러 배경/스케일) 무효화 */
  background: var(--panel-bg-color) !important;
  border: 1px solid var(--panel-border-color);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(11, 56, 87, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  transform: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.summary-cards .panel-total {
  --summary-accent: var(--primary-color);
  --summary-tint: rgba(11, 56, 87, 0.10);
  --summary-selected-bg: rgba(11, 56, 87, 0.06);
  --summary-outline: rgba(11, 56, 87, 0.35);
}

.summary-cards .panel-wait {
  --summary-accent: var(--info-color);
  --summary-tint: rgba(52, 152, 219, 0.12);
  --summary-selected-bg: rgba(52, 152, 219, 0.07);
  --summary-outline: rgba(52, 152, 219, 0.35);
}

.summary-cards .panel-inprogress {
  --summary-accent: var(--warning-color);
  --summary-tint: rgba(243, 156, 18, 0.14);
  --summary-selected-bg: rgba(243, 156, 18, 0.08);
  --summary-outline: rgba(243, 156, 18, 0.35);
}

.summary-cards .panel-complete {
  --summary-accent: var(--success-color);
  --summary-tint: rgba(39, 174, 96, 0.14);
  --summary-selected-bg: rgba(39, 174, 96, 0.08);
  --summary-outline: rgba(39, 174, 96, 0.35);
}

.summary-cards .main.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--summary-accent, var(--primary-color));
}

/* 기존 panel heading 컬러 덮어쓰기 */
.summary-cards .panel-total .panel-heading,
.summary-cards .panel-wait .panel-heading,
.summary-cards .panel-inprogress .panel-heading,
.summary-cards .panel-complete .panel-heading {
  background: transparent !important;
  color: inherit !important;
}

.summary-cards .main.panel .panel-heading {
  border: 0;
  padding: 18px 18px;
  border-radius: 14px;
}

/* 아이콘 배지 */
.summary-cards .main.panel i.fa {
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--summary-tint, rgba(11, 56, 87, 0.10));
  color: var(--summary-accent, var(--primary-color));
  font-size: 18px !important;
}

/* 타이포 정리 */
.summary-cards .huge,
.summary-cards .panel .huge {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 6px 0;
  letter-spacing: -0.6px;
  color: #0b0f14;
}

.summary-cards .panel-total-title,
.summary-cards .panel .panel-total-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  color: rgba(0, 0, 0, 0.62);
}

.summary-cards .main.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(11, 56, 87, 0.10), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.summary-cards .main.panel.selected {
  transform: none;
  border-color: var(--summary-accent, var(--primary-color));
  box-shadow: 0 0 0 2px var(--summary-outline, rgba(11, 56, 87, 0.35)), 0 10px 18px rgba(11, 56, 87, 0.10);
}

.summary-cards .main.panel.selected .panel-heading {
  background: var(--summary-selected-bg, rgba(11, 56, 87, 0.06));
}

.summary-cards .main.panel:focus {
  outline: none;
}

.summary-cards .main.panel:focus-visible {
  box-shadow: 0 0 0 3px var(--summary-outline, rgba(11, 56, 87, 0.35)), 0 10px 18px rgba(11, 56, 87, 0.10);
}

/* 테이블 스타일 */
.line-table {
  background: var(--table-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%;
  border: 1px solid var(--table-border-color);
}

.line-table thead th {
  background: var(--table-header-bg-color);
  color: var(--table-header-text-color);
  padding: 15px;
  font-weight: 500;
  border: none;
  text-align: center;
}

.line-table tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--table-border-color);
  color: var(--text-color);
  text-align: center;
  background-color: var(--table-bg-color);
}

.line-table tbody tr:last-child td {
  border-bottom: none;
}

.line-table tbody tr:hover {
  background-color: var(--table-hover-bg-color);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .col-xs-3 {
    width: 50%;
    margin-bottom: 15px;
  }

  .line-table {
    overflow-x: auto;
    display: block;
  }
}

/* 로그인 페이지 스타일 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

.login-card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 25px rgba(11, 56, 87, 0.1);
  border: 1px solid rgba(11, 56, 87, 0.08);
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header img {
  max-width: 200px;
  margin-bottom: 20px;
}

.login-header h1 {
  color: var(--primary-color);
  font-size: 24px;
  margin: 0;
  font-weight: 500;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(11, 56, 87, 0.1);
  background: #ffffff;
  border-radius: 8px;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(11, 56, 87, 0.1);
}

.login-button {
  width: 100%;
  padding: 14px;
  background: var(--accent-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  background: #0d4369;
  transform: translateY(-2px);
}

.error-message {
  background: rgba(231, 76, 60, 0.1);
  border-left: 4px solid var(--danger-color);
  color: var(--danger-color);
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

.security-icons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
}

.security-icon {
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
}

/* [뒤로가기], [상단으로 이동 버튼] */
.fixed-action-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.fixed-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 56, 87, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.fixed-btn:hover {
  background: #0d4369;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(11, 56, 87, 0.4);
}

.fixed-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(11, 56, 87, 0.3);
}

.fixed-btn:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(11, 56, 87, 0.3), 0 0 0 3px rgba(11, 56, 87, 0.2);
}

.fixed-btn i {
  pointer-events: none;
  font-size: 16px;
}

/* 개별 버튼 스타일 */
.back-btn {
  background: var(--info-color);
}

.back-btn:hover {
  background: #2980b9;
}

.top-btn {
  background: var(--success-color);
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.top-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.top-btn:hover {
  background: #219a52;
}

.top-btn.active:hover {
  background: #219a52;
  transform: translateY(-2px) scale(1.05);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .fixed-action-buttons {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }

  .fixed-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .fixed-btn i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .fixed-action-buttons {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .fixed-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .fixed-btn i {
    font-size: 12px;
  }
}

/* 로그인 페이지에서 고정 버튼 숨기기 */
.login-page .fixed-action-buttons {
  display: none !important;
}


/* 검색바 (날짜 포함) */
.search-toolbar {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.search-date-group, .search-general-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-control {
  height: 36px;
}

.search-select {
  width: 150px;
}

.search-date-input .input-group-addon {
  background: #FFFFFF;
  height: 36px;
}

.search-date-btn {
  height: 36px;
}

.search-btn {
  border-radius: 0.5rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  border: none;
  background: var(--primary-color);
  color: white;
  width: 90px;
}
.search-btn:hover {
  background: #0d4369;
}

.search-date-input input#searchPeriod {
  width: 225px;
}

#searchValue.search-control {
  width: 300px;
}

/* tags input (category) */
.tags-input-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.tags-input-chips {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tags-input-editor {
  border: none;
  outline: none;
  min-width: 120px;
  height: 24px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f1f4f9;
  color: #2b3a4a;
  border: 1px solid #d8dde6;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
}

.tag-chip-remove {
  border: none;
  background: #c4cbd6;
  color: #fff;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.tag-chip-remove:hover {
  background: #aeb6c2;
}

@media (max-width: 991px) {
  .search-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .search-date-group, .search-general-group {
    width: 100%;
  }
  .search-date-input,
  .search-date-input input#searchPeriod,
  #searchValue.search-control {
    min-width: 100%;
    width: 100%;
  }
}

/* Date Range Picker theme overrides */
.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

.daterangepicker .ranges li.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}
