:root {
    --primary: black;
}

/* 다크 모드 스타일 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: white;
    }
}

[data-tooltip] {
    border-bottom: none !important;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    margin: 0;
    padding: 0;
}

.hotpink{
    color: hotpink;
}
nav.menu {
    /*background-color: #333333;*/
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.75);
}

/* 마우스 오버 시 반전 효과 */
nav.menu li>a {
    cursor: pointer;
    /*color: #000000;*/
}

nav.menu li>a:hover {
    color: hotpink; /* 글자색 */
    text-decoration: none;
}

nav.menu li>a:visited {
    color: hotpink; /* 글자색 */
}

main {
    margin: 0;
    padding: 0;
}

.content {
    width: 100%;
    flex-grow: 1;
    padding: 20px;
}

.search_section {
    border-bottom: 0;
}

.overflow-auto {
    width: 100%;
    overflow-x: auto;

}

.overflow-auto table {
    width: auto;
    border-collapse: collapse;
}

.overflow-auto table th, td {
    border: 1px solid #ddd;
    white-space: nowrap;
    text-align: left;
    padding: 8px;
}

.overflow-auto table thead th {
    position: sticky;
    top: 0;
    text-align: center;
    background-color: #f9f9f9;
    z-index: 10;
}

.overflow-auto table tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

table {
    font-size: 14px;
}

th {
    text-align: center;
}

th a {
    text-decoration: none;
    color: inherit;
}

th .sort-data {
    cursor: pointer;
    text-decoration: underline;
}


th .sort-indicator {
    font-size: 0.8em;
}

td {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    /*white-space: ellipsis;*/
}

td.center {
    text-align: center;
}

td.right {
    text-align: right;
}

td.cancel {
    /*text-decoration: line-through;*/
    color: red;
}

tfoot td {
    border-bottom: 1px solid;
}

.light-theme {
    background-color: #fff;
    color: #333;
}

.text-payment {
    color: hotpink;
}

.grid.button {
    display: flex;
    justify-content: space-between; /* 양쪽 끝에 요소를 정렬 */
    align-items: center; /* 세로축 가운데 정렬 */
}

.right-align {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.outline.red {
    color: red; /* Red text */
    border-color: red; /* Red border */
}

.outline.red:hover {
    background-color: red; /* Green background on hover */
    color: #fff; /* White text on hover */
}

.outline.green {
    color: #4CAF50; /* Green text */
    border-color: #4CAF50; /* Green border */
}

.outline.green:hover {
    background-color: #4CAF50; /* Green background on hover */
    color: #fff; /* White text on hover */
}

.outline.blue {
    color: #2196F3; /* Blue text */
    border-color: #2196F3; /* Blue border */
}

.outline.blue:hover {
    background-color: #2196F3; /* Blue background on hover */
    color: #fff; /* White text on hover */
}

/* page navigation */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
    gap: 0.5rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #eee;
}

.pagination .active {
    background-color: hotpink;
    color: white;
}

.pointer {
    cursor: pointer;
}

/* 전체 화면의 모달 배경 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* 모달 컨텐츠 박스 */
.modal-content {
    /*background-color: #fefefe;*/
    margin: 0;
    padding: 20px;
    border: 1px solid #888;
    width: 32em;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal table th {
    width:30%;
}

/* custom-input */
.custom-input-h30 {
    height: 30px !important;
}

.custom-input-h40 {
    height: 40px !important;
}

.custom-input-h50 {
    height: 50px !important;
}

.bold {
    font-weight: bold;
}

.toggleCols
{
    font-size: 15px;
}

.toggleCols input[type=checkbox] {
    width:1em;
    height:1em;
}

/* 작은 화면 (모바일) - 600px 이하 */
@media only screen and (max-width: 600px) {
    .toggleCols {
        font-size: 10px;
    }

    .toggleCols input[type=checkbox] {
        width: 0.9em;
        height: 0.9em;
    }
}

/* 중간 화면 (태블릿) - 601px ~ 1024px */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    .box {
        font-size: 15px;
    }

    .toggleCols input[type=checkbox] {
        width: 1em;
        height: 1em;
    }
}

/* 큰 화면 (데스크탑) - 1025px 이상 */
@media only screen and (min-width: 1025px) {
    .box {
        font-size: 15px;
    }

    .toggleCols input[type=checkbox] {
        width: 1.2em;
        height: 1.2em;
    }
}