/* 공용 색상 팔레트 + 레이아웃 변수 */
:root {
    --main: #ff6d01;
    --error: #FF5757;
    --success: #10b981;

    --nav-w: 56px;
    --wait-w: 200px;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;

    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


.scroll-no {
    /* 인터넷 익스플로러 스크롤바 삭제 */
    -ms-overflow-style: none;
    /* 파이어폭스 스크롤바 삭제 */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

/* ( 크롬, 사파리, 오페라, 엣지 ) 스크롤바 삭제 */
.scroll-no::-webkit-scrollbar {
    /* 가로 스크롤바 숨기기 */
    width: 0;
    /* 세로 스크롤바 숨기기 */
    height: 0;
    display: none;
}

/* 기본 레이아웃 */
#base_wrap {
    min-height: 100vh;
    background: #FAFBFC;
    color: #222;
    font-family: "Noto Sans KR", sans-serif;
}

main {
    min-height: calc(100dvh - 112px);
}

/* ──────────────────────────────────────────────
   공용 컴포넌트 — 배지 / 증감 / 상태
   (대시보드·목록 등 여러 화면에서 재사용)
   ────────────────────────────────────────────── */

/* 라벨 배지 */
.tag {
    flex: 0 0 auto;
    min-width: 34px;
    height: 20px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag.red {
    background: #fef2f2;
    color: #e53935;
}

.tag.gray {
    background: #eef1f5;
    color: #5c6573;
}

.tag.blue {
    background: #f4f8ff;
    color: #3b82f6;
}

.tag.green {
    background: #ecfdf5;
    color: var(--success);
}

.tag.orange {
    background: #fff7ed;
    color: #f97316;
}

/* 증감 배지 (▲/▼) */
.delta {
    display: inline-flex;
    align-items: center;
    width: 32px;
    height: 16px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    justify-content: center;
}

.delta.up {
    background: #fef2f2;
    color: #e53935;
}

.delta.down {
    background: #eff6ff;
    color: #2563eb;
}

.delta.flat {
    background: #e5e8ec;
    color: #5c6573;
}

/* 상태 배지 (점 + 텍스트) */
.state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.state .pt {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.state.ing {
    background: #dbeafe;
    color: #3b82f6;
}

.state.ing .pt {
    background: #3b82f6;
}

.state.done {
    background: #ecfdf5;
    color: var(--success);
}

.state.done .pt {
    background: var(--success);
}

/* ──────────────────────────────────────────────
   공용 페이지네이션 (home·증상관리 등에서 재사용)
   ────────────────────────────────────────────── */
.edk_paging {
    display: flex;
    gap: 4px;
}

.edk_paging button {
    min-width: 30px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #e5e8ec;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #5c6573;
    cursor: pointer;
}

.edk_paging button.arrow {
    font-size: 18px;
}

.edk_paging button.arrow span {
    display: block;
    transform: translateY(-2px);
}

.edk_paging button:disabled {
    opacity: .4;
    cursor: default;
}

.edk_paging button:not(:disabled, .on):hover {
    border-color: var(--main);
    color: var(--main);
}

.edk_paging button.on {
    background: var(--main);
    border-color: var(--main);
    color: #fff;
    font-weight: 700;
}

.empty_wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.empty_title {
    font-size: 14px;
    font-weight: 500;
    color: #5c6573;
}

.empty_wrap.tbl {
    padding: 150px 0;
}