/* ==============================
   BASE CSS
============================== */

:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    --white: #fff;
    --black: #4e4e4e;
    --main-blue: #3182F6;
    --shadow:0 4px 4px 0px rgba(0,0,0,.08);
    --transition: all 0.3s linear;

    --font-size-xl: 18px;
    --font-size-lg: 16px;
    --font-size-md: 14px;
    --font-size-sm: 13px;

    --bd-gray:#E2E6EC;
    --bg-danger:#DB655F;

    /*btn, select 높이*/
    --h-lg: 40px;
    --h-md: 36px;/*default*/
    --h-sm: 30px;

}
/* 베이지 테이블 테마 */
.beige-theme {
    --table-bd: #EAE6E1;
    --table-head-bg: #FBFAF9;
    --table-hover-bg: #fafafa;
    --table-th-text: #4a4743;
    --table-td-text: #575757;

    --scroll-thumb: #c1b7ae;/*스크롤*/
    --scroll-thumb-hover: #a6958b;
}

body {
    font-family: "Noto Sans KR", system-ui, sans-serif;
    background-color: var(--white);
    color: var(--black);
}

/* 기본 이미지 규칙 */
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-box{
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-box-col{
    flex-flow: column;
    gap: 12px;
}
.btn-box-row{
    flex-flow: row;
    gap: 8px;
}
.btn-box-row .base-btn.primary{
    /*min-width: 100px;*/
}
/*=========== 공통 버튼 =============*/
.base-btn {
    min-width: 55px;
    width: fit-content;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #B2BAC3;
}
.base-btn:focus {
    outline: none;
}
.base-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transition: none;
}

/*=========== 버튼 색 =============*/
.base-btn.primary {/*primary*/
    background-color: var(--main-blue);
    color: #fff;
}
.base-btn.primary:hover {
    background-color: #1B64DA;
}

.base-btn.secondary {/*secondary*/
    background-color: #F2F4F6;
    color: #4E5968;
}
.base-btn.secondary:hover {
    background-color: #D1D6DB;
}

.base-btn.outline {/*outline*/
    background-color: #fff;
    border-color: var(--bd-gray);
    color: #6A6E77;
}
.base-btn.outline:hover {
    background-color: #F6F7FA;
}

.base-btn.tertiary{/*배경색 없음*/
    background-color: transparent;
    color: #8B9299;
}
.base-btn.tertiary:hover {
    background-color: #F2F4F6;
}

.base-btn.danger:hover{/*레드*/
    color: var(--bg-danger);
}

.base-btn.success {/*그린*/
    background-color: #fff;
    border-color: #107C41;
    color: #107C41;
}
.base-btn.success:hover {
    background-color: #F8FCF9;
}
.base-btn.group-add-btn {/*그룹추가*/
    background-color: #E9F1FE;
    color: #3D70F6;
}
.base-btn.group-add-btn:hover {
    background-color: #CFE1FF;
}

.base-btn.icon-only {/* 온리아이콘 버튼 */
    min-width: 0;
    aspect-ratio: 1/1;
}
.base-btn.icon-only:hover {
    background-color: #F2F4F6;
}

/*=========== 버튼 크기 =============*/
.base-btn.lg{
    height: var(--h-lg);
    font-size: var(--font-size-lg);
    padding: 0 16px;
    font-weight:  600;
}
.base-btn.md{
    height: var(--h-md);
    font-size: var(--font-size-md);
    padding: 0 16px;
    font-weight:  600;
}
.base-btn.sm{
    /*min-width: fit-content;*/
    height: var(--h-sm);
    font-size: var(--font-size-sm);
    padding: 0 10px;
    font-weight: 500
}

.base-btn.icon-only.close{/*닫기버튼*/
    font-size: var(--font-size-xl); !important;
}

.base-btn.reset i.fa-rotate-right{/*초기화버튼*/
    transform: rotate(308deg);
}
.base-btn.reset-minus {/*초기화 마이너스 버튼*/
    color: #dbdbdb;
}