/* ===== mini jQuery Mobile compatible CSS ===== */

/* 기본 레이아웃 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans KR", sans-serif;
}

[data-role="page"],
.ui-page {
  position: relative;
  min-height: 100vh;
}

/* 헤더/푸터 대체 스타일 (data-role="header"/"footer" 사용 시) */
[data-role="header"],
.ui-header {
    background: none !important;
    border: 0;
    margin: 0;
    position: relative;
    text-align: center;
    height: 36px;
}

.btn2type .btn {
    position: absolute;
    top: 17px;
    z-index: 1;
}

.btn2type .btn.left {
    left: 17px;
}

.btn2type .btn .menu {
	background: url(../images/common/menu-m.png) center center no-repeat;
    background-size: 20px auto !important;
}

.btn2type .btn a {
    display: inline-block;
    z-index: 1;
	width: 20px;
    height: 20px;
    line-height: 999px;
    overflow: hidden;
}

.panel-head .panel-msg {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;	
}

[data-role="footer"],
.ui-footer {
	position: relative;
	margin-top: 15px;
	padding: 15px 0;
	border-top: 1px solid #dfdfdf;
    border-color: #ddd;
    color: #333;
    text-shadow: 0 1px 0 #eee;
    font-weight: 700;
}

[data-role="footer"] .inFooter ul {
    text-align: center;
}

[data-role="footer"] .inFooter ul li a {
    font-size: 12px;
    color: #111 !important;
    font-weight: normal;
    text-shadow: 0 0 0 !important;
}

[data-role="footer"] .inFooter ul li.first {
    background: none;
    padding: 0;
    margin: 0;
}

[data-role="footer"] .inFooter ul li {
    display: inline;
    background: url(../images/footer/bg_footer.gif) 0 1px no-repeat;
    background-size: 1px 10px;
    padding: 0 0 0 7px;
}

[data-role="footer"] .inFooter p {
    font-size: 12px;
    color: #111;
    font-weight: normal;
    text-shadow: 0 0 0;
    text-align: center;
}

[data-role="footer"] .inFooter p a {
    font-size: 12px;
    color: #111;
    font-weight: normal;
}

/* ===== Popup ===== */

.ui-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #f9f9f9;
  opacity: .5;
  z-index: 1000;
}

[data-role="popup"],
.ui-popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 250px;
  max-width: 90%;
  background: transparent;
  border-radius: 8px;
  padding: 1rem;
  z-index: 1001;
  box-sizing: border-box;
}

.ui-popup-active {
  display: block;
}

.ui-popup-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ui-popup-close-btn {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  cursor: pointer;
}

/* ===== Panel (좌/우 슬라이드 메뉴) ===== */

[data-role="panel"],
.ui-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 70%;
  background: #fff;
  z-index: 900;
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;
  overflow-y: auto;
  overflow: hidden;
}

.ui-panel-open {
  box-shadow: 5px 0 5px rgba(0, 0, 0, .15);
}

/* 열린 패널 상태 */
.ui-panel-open {
  transform: translateX(0) !important;
}

/* 오른쪽 패널 */
[data-role="panel"][data-position="right"],
.ui-panel-position-right {
  right: 0;
  left: auto;
  transform: translateX(100%);
}


/* 패널 오버레이 */
.ui-panel-overlay {
  display: none;
  position: fixed;
  background: #fff;
  opacity: .5;  
  inset: 0;
  z-index: 800;
}

/* 패널 안쪽 내용 여백 */
.ui-panel-inner {
  padding: 1rem;
}

/* 간단한 리스트 스타일 */
.ui-listview {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ui-listview li {
  border-bottom: 1px solid #eee;
}

.ui-listview a {
  display: block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: #333;
}

.ui-listview a:hover {
  background: #f5f5f5;
}

/* ===== Selectmenu (mini jQM-style) ===== */

.ui-selectmenu {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ui-selectmenu .ui-btn {
    height: 28px;
    line-height: 28px;
    border-radius: 0;
    padding: 0 1.7em 0 .2em;
}

.ui-selectmenu select {
    top: 0;
    left: 0;
    width: 100%;
    min-height: 1.5em;
    min-height: 100%;
    height: 3em;
    max-height: 100%;
    outline: 0;
    -webkit-border-radius: inherit;
    border-radius: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    filter: Alpha(Opacity=0);
	display: block !important;
    z-index: 2;
}

.ui-selectmenu-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 1.5em;
    min-height: 100%;
    height: 3em;
    max-height: 100%;
    outline: 0;
    -webkit-border-radius: inherit;
    border-radius: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    z-index: 2;
    background-color: #fff;
    outline: none;
    border: 1px solid #ddd;	
    text-align: left;
    padding-left: 10px;	
}

.ui-selectmenu-button:focus {
  outline: none;
  border-color: #0078d7;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.25);
}

.ui-selectmenu-button::after {
  content: "▼";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  opacity: 0.6;
}

.ui-selectmenu li {
    font-size: 12px;
}

/* 드롭다운 메뉴 */
.ui-selectmenu-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 0.2rem;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1100;
  list-style: none;
  padding: 0;
  box-sizing: border-box;
}

.ui-selectmenu-menu li {
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.ui-selectmenu-menu li:hover {
  background: #f5f5f5;
}

.ui-selectmenu-menu li.ui-state-active {
  background: #0078d7;
  color: #fff;
}

.ui-input-text > input {
    min-height: 2.2em;
    text-align: left;
    border: 0;
    -webkit-appearance: none;
    -webkit-border-radius: inherit;
    border-radius: inherit;
}


.ui-checkbox {
    display: inline-block;
    position: relative;
    margin: 0.2em;
    vertical-align: middle;
}

.ui-checkbox-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.5em;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
}

.ui-checkbox-on .ui-checkbox-icon {
    color: #007bff;
}

.ui-checkbox-off .ui-checkbox-icon {
    color: #333;
}

.ui-checkbox-mini {
    font-size: 14px;
}

.ui-checkbox-mini .ui-checkbox-icon {
    width: 16px;
    height: 16px;
}

.ui-checkbox-mini .ui-icon-checkbox-off:before,
.ui-checkbox-mini .ui-icon-checkbox-on:before {
    width: 16px;
    height: 16px;
}

.ui-checkbox label {
    cursor: pointer;
    user-select: none;
}