/*!
 * Minimal Bootstrap 3 class aliases for Bootstrap 5 pages.
 * Used while shared layout (menu/footer/location) still uses BS3 class names.
 */

.pull-left { float: left !important; }
.pull-right { float: right !important; }
.hidden { display: none !important; }

/* BS3 tabs: li.active > a. BS5 moves .active onto the link after a click. */
.nav-tabs {
  border-bottom: 1px solid #ddd;
}
.nav-tabs > li {
  float: left;
  margin-bottom: -1px;
}
.nav-tabs > li > a {
  display: block;
  padding: 10px 15px;
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  color: #337ab7;
}
.nav-tabs > li > a:hover {
  border-color: #eee #eee #ddd;
  background-color: #eee;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs > li > a.active,
.nav-tabs > li > a.active:hover,
.nav-tabs > li > a.active:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}

/* BS3 .btn-default: white button. BS5 has no equivalent (btn-secondary is a filled gray). */
.btn-default {
  --bs-btn-color: #333;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #ccc;
  --bs-btn-hover-color: #333;
  --bs-btn-hover-bg: #e6e6e6;
  --bs-btn-hover-border-color: #adadad;
  --bs-btn-focus-shadow-rgb: 173, 173, 173;
  --bs-btn-active-color: #333;
  --bs-btn-active-bg: #e6e6e6;
  --bs-btn-active-border-color: #adadad;
  --bs-btn-disabled-color: #333;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #ccc;
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.show > .btn-default.dropdown-toggle {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

/* BS3 float grid. !important 금지 — jQuery .hide() 가 #xxx_List.row 에 무시되던 원인 */
.row {
  display: block;
  margin-right: -15px;
  margin-left: -15px;
  margin-top: 0;
}
.row::before,
.row::after {
  display: table;
  content: " ";
}
.row::after { clear: both; }
.row > * {
  flex-shrink: unset;
  width: auto;
  max-width: none;
  margin-top: 0;
  padding-right: 15px;
  padding-left: 15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  width: auto !important;
  float: none;
}
.col-12, .col-xs-12 { width: 100% !important; float: left !important; }
.col-11, .col-xs-11 { width: 91.66666667% !important; float: left !important; }
.col-10, .col-xs-10 { width: 83.33333333% !important; float: left !important; }
.col-9, .col-xs-9 { width: 75% !important; float: left !important; }
.col-8, .col-xs-8 { width: 66.66666667% !important; float: left !important; }
.col-7, .col-xs-7 { width: 58.33333333% !important; float: left !important; }
.col-6, .col-xs-6 { width: 50% !important; float: left !important; }
.col-5, .col-xs-5 { width: 41.66666667% !important; float: left !important; }
.col-4, .col-xs-4 { width: 33.33333333% !important; float: left !important; }
.col-3, .col-xs-3 { width: 25% !important; float: left !important; }
.col-2, .col-xs-2 { width: 16.66666667% !important; float: left !important; }
.col-1, .col-xs-1 { width: 8.33333333% !important; float: left !important; }

@media (min-width: 768px) {
  .col-sm-12 { width: 100% !important; float: left !important; }
  .col-sm-11 { width: 91.66666667% !important; float: left !important; }
  .col-sm-10 { width: 83.33333333% !important; float: left !important; }
  .col-sm-9 { width: 75% !important; float: left !important; }
  .col-sm-8 { width: 66.66666667% !important; float: left !important; }
  .col-sm-7 { width: 58.33333333% !important; float: left !important; }
  .col-sm-6 { width: 50% !important; float: left !important; }
  .col-sm-5 { width: 41.66666667% !important; float: left !important; }
  .col-sm-4 { width: 33.33333333% !important; float: left !important; }
  .col-sm-3 { width: 25% !important; float: left !important; }
  .col-sm-2 { width: 16.66666667% !important; float: left !important; }
  .col-sm-1 { width: 8.33333333% !important; float: left !important; }
}
@media (min-width: 992px) {
  .col-md-12 { width: 100% !important; float: left !important; }
  .col-md-11 { width: 91.66666667% !important; float: left !important; }
  .col-md-10 { width: 83.33333333% !important; float: left !important; }
  .col-md-9 { width: 75% !important; float: left !important; }
  .col-md-8 { width: 66.66666667% !important; float: left !important; }
  .col-md-7 { width: 58.33333333% !important; float: left !important; }
  .col-md-6 { width: 50% !important; float: left !important; }
  .col-md-5 { width: 41.66666667% !important; float: left !important; }
  .col-md-4 { width: 33.33333333% !important; float: left !important; }
  .col-md-3 { width: 25% !important; float: left !important; }
  .col-md-2 { width: 16.66666667% !important; float: left !important; }
  .col-md-1 { width: 8.33333333% !important; float: left !important; }
  .container { max-width: 970px; }
}
@media (min-width: 1200px) {
  .col-lg-12 { width: 100% !important; float: left !important; }
  .col-lg-11 { width: 91.66666667% !important; float: left !important; }
  .col-lg-10 { width: 83.33333333% !important; float: left !important; }
  .col-lg-9 { width: 75% !important; float: left !important; }
  .col-lg-8 { width: 66.66666667% !important; float: left !important; }
  .col-lg-7 { width: 58.33333333% !important; float: left !important; }
  .col-lg-6 { width: 50% !important; float: left !important; }
  .col-lg-5 { width: 41.66666667% !important; float: left !important; }
  .col-lg-4 { width: 33.33333333% !important; float: left !important; }
  .col-lg-3 { width: 25% !important; float: left !important; }
  .col-lg-2 { width: 16.66666667% !important; float: left !important; }
  .col-lg-1 { width: 8.33333333% !important; float: left !important; }
  .container { max-width: 1170px; }
}

.btn-block {
  display: block;
  width: 100%;
}

/* BS3 equal-width button row used by content tabs */
.btn-group-justified {
  display: table !important;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
}
.btn-group-justified > .btn,
.btn-group-justified > .btn-group {
  display: table-cell !important;
  float: none;
  width: 1%;
}
.btn-group-justified > .btn-group > .btn {
  width: 100%;
}

/* Visibility helpers (approximate BS3 behavior) */
@media (max-width: 767.98px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
}
@media (min-width: 768px) {
  .visible-xs { display: none !important; }
}

@media (max-width: 991.98px) {
  .hidden-sm { display: none !important; }
}
@media (max-width: 1199.98px) {
  .hidden-md { display: none !important; }
}
.hidden-lg { }
@media (min-width: 1200px) {
  .hidden-lg { display: none !important; }
}

/* BS3 pagination markup: ul.pagination > li > a */
.pagination {
  display: inline-flex;
  padding-left: 0;
  margin: 0;
  list-style: none;
  vertical-align: middle;
}
.pagination > li > a,
.pagination > li > span {
  position: relative;
  display: block;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
  z-index: 2;
  color: #23527c;
  background-color: #eee;
  border-color: #ddd;
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
  z-index: 3;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}

/* ---- forms / inputs (BS3 markup) ---- */
.form-group {
  margin-bottom: 15px;
}
.control-label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 700;
}
.help-block {
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}
/* BS3 input-group: table-cell (flex 쓰면 라벨이 입력창 위에 겹침) */
.input-group {
  position: relative;
  display: table;
  border-collapse: separate;
  width: 100%;
}
.input-group .form-control:not(.chosen-select),
.input-group-addon,
.input-group-btn {
  display: table-cell !important;
  float: none !important;
  vertical-align: middle;
}
.input-group .form-control:not(.chosen-select) {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-bottom: 0;
}
/* Chosen: 원본 select 숨김 — input-group table-cell !important 때문에 둘 다 보이던 문제 */
.input-group select.chosen-select,
select.chosen-select {
  display: none !important;
}
.input-group .chosen-container {
  display: table-cell !important;
  vertical-align: middle;
  width: 100% !important;
  float: none !important;
}
.chosen-container {
  width: 100% !important;
  max-width: 100%;
}
.input-group-addon,
.input-group-btn {
  width: 1%;
  white-space: nowrap;
}
.input-group-addon {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #555;
  text-align: center;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.input-group-addon input[type="checkbox"],
.input-group-addon input[type="radio"] {
  margin: 0;
  vertical-align: middle;
}
.input-group .input-group-addon:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}
.input-group .input-group-addon:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}
.input-group .form-control:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.input-group .form-control:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
/* panel-body 안에 col-* 직접 배치된 폼 정리 */
.panel-body::after,
.card-body::after {
  display: block;
  clear: both;
  content: "";
}
.panel-body > [class*="col-"],
.card-body > [class*="col-"] {
  float: left;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}
.form-horizontal .control-label {
  padding-top: 7px;
  margin-bottom: 0;
  text-align: right;
}

/* ---- navbar (SB Admin / BS3) ---- */
.navbar-toggle {
  display: none;
  float: right;
  padding: 9px 10px;
  margin: 8px 15px 8px 0;
  background-color: transparent;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #888;
  margin: 4px 0;
}
@media (max-width: 767.98px) {
  .navbar-toggle { display: block; }
  .navbar-collapse.collapse:not(.show) { display: none !important; }
}
.navbar .dropdown-menu {
  position: absolute;
}
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

/* ---- close / modal BS3 class names ---- */
.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  background: transparent;
  border: 0;
}
.close:hover { opacity: 0.75; }
.modal-header .close { margin: -0.5rem -0.5rem -0.5rem auto; padding: 0.5rem; }

/* ---- misc BS3 ---- */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
.thumbnail {
  display: block;
  padding: 4px;
  margin-bottom: 20px;
  line-height: 1.42857143;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.label:not(.form-label):not(.control-label) {
  display: inline;
  padding: 0.2em 0.6em 0.3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25em;
  background-color: #777;
}
.label-primary { background-color: #337ab7; }
.label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; }
.label-danger { background-color: #d9534f; }
.badge {
  display: inline-block;
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-color: #777;
  border-radius: 10px;
}
.center-block {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.checkbox, .radio {
  position: relative;
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}
.checkbox label, .radio label {
  min-height: 20px;
  padding-left: 20px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}
.list-inline {
  padding-left: 0;
  list-style: none;
  margin-left: -5px;
}
.list-inline > li {
  display: inline-block;
  padding-right: 5px;
  padding-left: 5px;
}

/* panel aliases (admin dual-class already present; keep visual) */
.panel { margin-bottom: 20px; background: #fff; border: 1px solid transparent; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.panel-default { border-color: #ddd; }
.panel-default > .panel-heading,
.panel-default > .card-header { color: #333; background-color: #f5f5f5; border-color: #ddd; }

/* offset helpers still used on login */
.col-md-offset-1 { margin-left: 8.33333333%; }
.col-md-offset-2 { margin-left: 16.66666667%; }
.col-md-offset-3 { margin-left: 25%; }
.col-md-offset-4 { margin-left: 33.33333333%; }
.col-sm-offset-1 { margin-left: 8.33333333%; }
.col-sm-offset-2 { margin-left: 16.66666667%; }
.col-sm-offset-3 { margin-left: 25%; }
.col-sm-offset-4 { margin-left: 33.33333333%; }
.offset-1 { margin-left: 8.33333333%; }
.offset-2 { margin-left: 16.66666667%; }
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.33333333%; }
@media (max-width: 767.98px) {
  .col-md-offset-1, .col-md-offset-2, .col-md-offset-3, .col-md-offset-4,
  .col-sm-offset-1, .col-sm-offset-2, .col-sm-offset-3, .col-sm-offset-4 {
    margin-left: 0;
  }
}
