/* 숫자 */
@font-face {
    font-family: 'SUIT-Regular';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 숫자 외 */
@font-face {
    font-family: 'Pretendard-Regular';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Pretendard-Regular', serif;
    background: #F2F2F2;
    min-height: 100vh;
}

button.green {
    background: #99D027;
}

button.orange {
    background: #FF8C3A;
}

button.round-corner, input.round-corner {
    border-radius: 10px;
}

nav {
    height: 50px;
    background-color: #99D027;
}

.navbar {
    padding: 0 50px 0 50px;
}

.navbar-nav .nav-link {
    color: white;
}

.navbar-nav .nav-link.active {
    color: white;
}

.nav-logo {
    max-width: 45px;
    max-height: 45px;
}

.dropdown-menu.show {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.dropdown-item:active {
    background-color: #C0C0C0;
    color: white;
}

.dropdown-item:hover {
    background-color: #D9D9D9;
    color: white;
}

section:not(.web-view-section) {
    background-color: white;
    margin: 30px;
    padding: 30px;
    min-height: calc(100vh - 150px);
}

footer {
    background-color: #99D027;
    height: 50px;
    text-align: center;
    box-sizing: border-box; /* 전체 높이 잡는데 border 포함 */
}

a {
    color: black;
    text-decoration: none;
}

a:hover, a:active, a:focus {
    color: #FF8C3A;
    text-decoration: none;
}

.warning {
    color: #FF8C3A;
}

button:not(.toastui-editor-toolbar button) {
    margin: 3px;
    font-size: 0.8em;
    height: 30px;
    min-width: 50px;
    width: auto;
    padding: 0 10px;
}

.size-1 {
    min-width: 60px;
    width: 60px;
}

.size-2 {
    min-width: 80px;
    width: 80px;
}

.size-3 {
    min-width: 100px;
    width: 100px;
}

.size-4 {
    min-width: 120px;
    width: 120px;
}

.size-5 {
    min-width: 140px;
    width: 140px;
}

.size-6 {
    min-width: 160px;
    width: 160px;
}

.size-100percent {
    width: 100%;
}

.max-size-100percent {
    max-width: 100%;
}

/* 확인 버튼 */

button:not(.btn-close):not(.se-btn):not(.se-btn-list) {
    background-color: #74AA1B;
    color: white;
    border: none;
    border-radius: 10px;
}

button:hover:not(.btn-close) {
    background-color: #99D027 !important;
    color: white;
    border: none;
}

button:active, button:focus, button:focus-visible {
    color: white;
    border: none;
}

/* 취소 버튼 */

button.btn-cancel {
    background-color: #CC672E !important;
    color: white;
    border: none;
    border-radius: 10px;
}

button.btn-cancel:hover {
    background-color: #FF8C3A !important;
    color: white;
    border: none;
}

button.btn-cancel:active, button.btn-cancel:focus, button.btn-cancel:focus-visible {
    color: white;
    border: none;
}

/* 비활성화 버튼 */

button:disabled {
    background-color: #C0C0C0;
    color: white;
}

button:disabled:hover {
    background-color: #C0C0C0;
    color: white;
}

/* 페이지네이션 */
.pagination {
    justify-content: center;
    padding: 30px 0;
}

.pagination ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

a.page-link {
    color: black;
    border: none;
    font-size: 0.9em;
}

a.page-link:hover {
    color: #FF8C3A;
    outline: none;
    border: none;
    background-color: transparent;
}

a.page-link:visited, a.page-link:focus, a.page-link:focus-visible {
    outline: none;
    border: none;
    background-color: transparent;
}

.pagination a {
    text-decoration: none;
    display: inline-block;
    padding: 10px 18px;
    color: #222;
}


.p2 .is-active li {
    font-weight: bold;
    border-bottom: 3px solid #FF8C3A;
}

div.result-info {
    margin: 15px;
}

/* input */

input, textarea {
    border: 1px solid #C0C0C0;
    padding: 5px 10px;
    margin: 5px 0 5px 0;
    height: 30px;
}

/* table */

.table-area {
    flex: 1;
    flex-direction: column;
    justify-content: center; /* 수직 중앙 정렬 */
    align-items: center; /* 수평 중앙 정렬 */
    box-sizing: border-box; /* 패딩과 보더를 포함 */
}

.table {
    background: #fff;
}

.table thead.thead-primary {
    background: #C0C0C0;
}

.table thead.thead-light-grey {
    background: #eee;
}

.table thead th {
    text-align: center;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
}

.table thead.thead-light-grey th {
    color: #000;
}

.table tbody tr {
    margin-bottom: 10px;
    text-align: center;
}

.table tbody tr:hover {
    background-color: #F2F2F2;
}

.table tbody th, .table tbody td {
    border: none;
    padding: 10px 20px;
    border-bottom: 3px solid #f8f9fd;
    font-size: 14px;
    word-break: break-all;
}

select {
    height: 35px;
    margin: 5px 0 5px 0;
}

/* to-direction-parent */
.direction-parent {
    display:inline;
}

.to-left {
    float: left;
}

.to-right {
    float: right;
}

.direction-clear {
    clear: both;
}

/* modal size */

.modal-size-1 {
    --bs-modal-width: 400px;
}

.modal-size-2 {
    --bs-modal-width: 500px;
}

.modal-size-3 {
    --bs-modal-width: 600px;
}

.modal-size-4 {
    --bs-modal-width: 700px;
}

.modal-size-5 {
    --bs-modal-width: 800px;
}

.modal-size-6 {
    --bs-modal-width: 900px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 20px;
}

.required::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #FF8C3A; /* 주황색 */
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px; /* 텍스트 높이의 정중앙에 오도록 조정 */
}

.form-check-input:checked {
    background-color: #FF8C3A;
    border: 1px solid #FF8C3A;
}

.toastui-editor-toolbar {
    zoom: 0.7;
}

.license {
    font-size: x-small;
    font-color: #C0C0C0;
}

body.web-view-body {
    font-family: 'Pretendard-Regular', serif;
    background: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.47px;
}

section.web-view-section {
    margin: 20px;
    background: white;
    min-height: unset;
}

/* 에디터 관련 CSS */

.se-btn {
    all: unset;
}

.sun-editor .se-btn-select {
    padding: 0px 4px;
}

.web-view-section.sun-editor-editable {
    padding: 20px !important;
    margin: 0 !important;
}