/* shared/core.css — 장기요양 시스템 공통 디자인 토큰 */

/* 전역: number input 증감(스피너) 버튼 제거 + 중앙정렬 — 프로젝트 표준 */
input[type=number]{-moz-appearance:textfield!important;appearance:textfield!important;text-align:center;}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none!important;appearance:none!important;margin:0!important;display:none!important;}

/* 전역: 드롭다운 선택값·목록 항목 중앙정렬 — 프로젝트 기본값 */
select,
select:focus{
  text-align:center!important;
  text-align-last:center!important;
}
select option,
select optgroup{
  text-align:center!important;
}

/* 전역 액션 버튼 (.btn-act) — label·button 높이 일원화 */
.btn-act{font-size:10px;cursor:pointer;border-radius:2px;padding:2px 8px;flex-shrink:0;height:20px;line-height:16px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;}
.btn-act:focus-visible{outline:2px solid var(--acc);outline-offset:1px;}
.pb-btn,.btn-act{transition:background .15s,color .15s,border-color .15s;}
.pb-btn:hover,.btn-act:hover{transform:none!important;}
.pb-btn:active,.btn-act:active{transform:none!important;}

:root {
    --color-primary: #4a6cf7;
    --color-primary-dark: #3451b2;
    --color-secondary: #6c757d;
    --color-success: #28a745;
    --color-danger: #ff4d4f;
    --color-warning: #ffc107;
    --text-main: #2b3674;
    --border-radius: 8px;
    --tag-radius: 3px;
    --font-main: 'Pretendard', 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* 전역 태그/배지 기본값: 알약형 대신 작은 사각 태그 */
.bdg,
.badge,
.tag,
.chip,
.pill,
.src,
.pi-tag,
.wg-tag,
.cld-badge,
.rec-tpl,
.plan-status,
.rm-root,
.rm-badge,
.badge2,
.rm-tg,
.rm-snum {
    border-radius: var(--tag-radius) !important;
}

/* 페이지 헤더 공통 */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 2px solid #1A3654;
}
.page-header img,
.page-header svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.page-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1A3654;
    border: none;
    padding: 0;
}
.page-header .subtitle {
    color: #8494A7;
    font-size: 13px;
    margin-left: auto;
}
html.is-mobile .page-header {
    margin-top: 0;
}

/* 토스트 팝업 */
.toast-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.toast-popup.show {
    opacity: 1;
}

/* 로딩 오버레이 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--color-primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-msg {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    white-space: pre-line;
}

/* 개인정보 안내 문구 */
.privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11.5px;
    color: #999;
    margin-top: 10px;
    line-height: 1.4;
}

.privacy-notice i {
    color: #66bb6a;
    font-size: 13px;
    flex-shrink: 0;
}

@media print {
    .privacy-notice { display: none; }
}

/* 연도 네비게이터 (< 2026년 >) — 중앙데이터 전사 표준 일체형 버튼 그룹 */
.year-nav {
  display: inline-flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  height: 26px !important;
  background: var(--w, #fff) !important;
  border: 1px solid var(--bds, #c4b5a5) !important;
  border-radius: 3px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(44, 24, 16, 0.05) !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}
.year-nav-btn {
  height: 100% !important;
  width: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: var(--g1, #f3efe9) !important;
  color: var(--navy, #1a3654) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  transition: background 0.15s, color 0.15s !important;
  box-sizing: border-box !important;
  user-select: none !important;
}
.year-nav-btn:hover:not(:disabled) {
  background: var(--navy, #1a3654) !important;
  color: #fff !important;
}
.year-nav-btn:active:not(:disabled) {
  background: #112338 !important;
  color: #fff !important;
}
.year-nav-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}
.year-nav-display,
.seg-nav-year-display,
.pm-year-display {
  position: relative !important;
  height: 100% !important;
  min-width: 68px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  border-left: 1px solid var(--bds, #c4b5a5) !important;
  border-right: 1px solid var(--bds, #c4b5a5) !important;
  background: var(--w, #fff) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: none !important;
  box-sizing: border-box !important;
}
.year-nav-display:hover,
.seg-nav-year-display:hover {
  background: var(--g1, #f3efe9) !important;
}
.year-nav-label,
.year-nav-display .year-label,
.seg-nav-year-display b,
.seg-nav-year-display .ylbl {
  font-family: var(--f, 'Pretendard', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--navy, #1a3654) !important;
  letter-spacing: -0.2px !important;
  line-height: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
  white-space: nowrap !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}
.year-nav-native-select,
.seg-nav-year-select {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  font-size: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  z-index: 2 !important;
  text-align: center !important;
  text-align-last: center !important;
}

/* ===== 통일된 노란색 툴팁 (일정한 1px 테두리 두께 및 따뜻한 노란색 배경) ===== */
.iosoros-hover-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120000;
  max-width: 420px;
  padding: 6px 10px;
  box-sizing: border-box;
  border: 1px solid #ca8a04;
  border-radius: 4px;
  background: #fef08a;
  color: #1c1917;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  font-family: Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transform: none;
  transition: opacity 0.03s ease;
}
.iosoros-hover-tooltip.show {
  opacity: 1;
}
