/* ===== Popup ===== */

.ui-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.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;
}

/* ===== 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: 10px;
    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-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;
  font-size: 0.95rem;
  cursor: pointer;
}

.ui-selectmenu-menu li:hover {
  background: #f5f5f5;
}

.ui-selectmenu-menu li.ui-state-active {
  background: #0078d7;
  color: #fff;
}