.jgrid {
    width: 100%;
    font-family: 'Pretendard', sans-serif;
    transition: opacity 0.2s ease-in-out;
}

.jgrid.is-fading {
    opacity: 0;
}

.jgrid A:link, .jgrid A:visited, .jgrid A:active {
    color: #0d6efd;
    text-decoration: none;
}
.jgrid A:hover {
    text-decoration: underline;
}

.jgrid .jgrid_table {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border-spacing: 0;
}
.jgrid .jgrid_table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin: 0;
    padding: 0;
}

.jgrid .jgrid_table div[jgrid-panel$='-header'] {
    overflow: hidden;
    background-color: #f8f9fa;
}
.jgrid .jgrid_table div[jgrid-panel$='-header'] table tr:first-child {
    height: 0;
}
.jgrid .jgrid_table div[jgrid-panel$='-header'] table tr:first-child th {
    padding: 0;
    border: 0;
    height: 0;
}
.jgrid .jgrid_table div[jgrid-panel$='-header'] table tr:not(:first-child) th {
    height: auto;
    padding: 0.75rem 1rem;
    color: #495057;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.4;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #e9ecef;
    position: relative;
}
.jgrid .jgrid_table div[jgrid-panel$='-header'] table th:last-child {
    border-right: none;
}

.jgrid .jgrid_table div[jgrid-panel$='-body'] {
    overflow: auto !important;
    cursor: default;
}

.jgrid .jgrid_table div[jgrid-panel='right-body'] {
    scrollbar-color: #ced4da #f8f9fa;
    scrollbar-width: auto;
}
.jgrid .jgrid_table div[jgrid-panel='right-body']::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.jgrid .jgrid_table div[jgrid-panel='right-body']::-webkit-scrollbar-track {
    background-color: #f8f9fa;
}
.jgrid .jgrid_table div[jgrid-panel='right-body']::-webkit-scrollbar-thumb {
    background-color: #ced4da;
    border-radius: 5px;
    border: 2px solid #f8f9fa;
}
.jgrid .jgrid_table div[jgrid-panel='right-body']::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

.jgrid .jgrid_table div[jgrid-panel='left-body'] {
    overflow: hidden !important;
    border-right: 1px solid #e9ecef;
}

.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr {
    height: auto !important;
    transition: background-color 0.15s ease-in-out;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table td {
    height: auto;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #4f5b69;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    text-align: center;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr:first-child td {
    border-top: 1px solid #dee2e6;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table td:last-child {
    border-right: none;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr:last-child td {
    border-bottom: none;
}

.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr:nth-child(even) {
    background-color: #f8f9fa;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr:nth-child(odd) {
    background-color: #ffffff;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr.hover td,
.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr:hover td {
    background-color: #f0f8ff !important;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr.on td {
    background-color: #4A6CFF !important;
    color: #ffffff !important;
    font-weight: 500;
}
.jgrid .jgrid_table div[jgrid-panel$='-body'] table tr.on td a {
    color: #ffffff !important;
}

.jgrid .jgrid_table table thead th.pointer {
    cursor: pointer;
}
.jgrid .jgrid_table table thead th.pointer:hover {
    background-color: #e9ecef;
}
.jgrid .jgrid_table table thead th.asc::after,
.jgrid .jgrid_table table thead th.desc::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    color: #4A6CFF;
}
.jgrid .jgrid_table table thead th.asc::after {
    content: "\f0de";
}
.jgrid .jgrid_table table thead th.desc::after {
    content: "\f0dd";
}

.jgrid .page_move {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    gap: 0.35rem;
}
.jgrid .page_move table {
    margin: 0;
}
.jgrid .page_move td {
    padding: 0;
}
.jgrid .page_move a, .jgrid .page_move b {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    text-decoration: none;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.2s ease;
}
.jgrid .page_move a:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}
.jgrid .page_move b {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important;
    font-weight: 600;
}
.jgrid .page_move input[type=button] {
    display: none;
}

.jgrid div.jgrid_table button,
.jgrid div.jgrid_table .axi-search3 {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid #000000;
    cursor: pointer;
    background-color: #000000;
    color: #fff;
    line-height: 1.5;
    height: auto;
    width: auto;
    transition: all 0.2s ease;
}
.jgrid div.jgrid_table button:hover,
.jgrid div.jgrid_table .axi-search3:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
.jgrid div.jgrid_table .axi-search3::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f002";
}