#systemCodeWrap .tbody-scroll {
    max-height: calc(100vh - 570px);
    min-height: 120px;
    overflow-y: auto;
}

#systemCodeTotalTable {
    overflow: hidden;
}

#systemCodeWrap .btn-pagination-group .btn-group.between {
    display: block;
    margin-bottom: 20px;
}

#systemCodeWrap .btn-pagination-group .btn-group.between > div:first-child {
    display: none;
}

#systemCodeWrap .btn-pagination-group .btn-group.between > div:last-child {
    display: flex;
    justify-content: flex-end;
}

#systemCodeWrap .al-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border: 0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

#systemCodeWrap .al-badge--success {
    background: #eaf6ec;
    color: #228738;
}

#systemCodeWrap .al-badge--danger {
    background: #fde8ea;
    color: #e54e57;
}

#systemCodePagination .paging button.al-pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #717171;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s;
}

#systemCodePagination .paging button.al-pagination__page:hover,
#systemCodePagination .paging button.al-pagination__page:focus {
    background-color: #f5f7fa;
    color: #000;
}

#systemCodePagination .paging button.al-pagination__page--active {
    background-color: #000;
    color: #fff;
    font-weight: 700;
}

#systemCodePagination [aria-disabled="true"] {
    pointer-events: none;
}

.system-code-modal .required::after {
    content: '*';
    color: #e54e57;
    margin-left: 4px;
}

.system-code-modal__dialog {
    width: min(1160px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.system-code-modal__dialog--detail {
    width: min(980px, calc(100vw - 32px));
}

.system-code-modal__dialog--small {
    width: min(440px, calc(100vw - 32px));
}

.system-code-modal__panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    margin: 12px 14px;
    padding: 14px 18px;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
}

.system-code-modal .modal-header {
    flex: 0 0 auto;
}

.system-code-modal .modal-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-height: none;
    padding: 0;
    background: #f5f6f8;
    overflow: hidden;
}

.system-code-modal .form-group {
    margin-bottom: 10px;
}

.system-code-modal__body > .system-code-modal__panel {
    flex: 1 1 auto;
}

.system-code-modal__body > .stats--modal:not(.system-code-modal__panel) {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    padding: 12px 14px;
    background: #f5f6f8;
    overflow: hidden;
}

.system-code-modal__body > .stats--modal:not(.system-code-modal__panel) > div {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
}

.system-code-modal__card {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
}

.system-code-modal__card > .form,
.system-code-modal__panel .system-code-form-card {
    flex: 0 0 auto;
}

.system-code-readonly {
    display: inline-flex;
    align-items: center;
    background: #f8f9fb;
}

.system-code-toggle-field {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.system-code-modal__inner {
    grid-template-columns: 1fr;
}

.system-code-modal__table th,
.system-code-modal__table td {
    text-align: center;
    vertical-align: middle;
}

.system-code-modal__table--body tbody tr:last-child td {
    border-bottom: 1px solid #c6c6c6;
}

.system-code-modal__detail-table .system-code-modal__table {
    min-width: 980px;
}

#systemCodeDetailModal .system-code-modal__detail-table .system-code-modal__table {
    min-width: 780px;
}

.system-code-modal__detail-table th:nth-child(5),
.system-code-modal__detail-table td:nth-child(5),
.system-code-modal__detail-table th:nth-child(6),
.system-code-modal__detail-table td:nth-child(6) {
    white-space: nowrap;
}

.system-code-modal__detail-table {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 10px;
    overflow: hidden;
}

#systemCodeDetailModal .system-code-modal__detail-table {
    flex-basis: auto;
    height: auto;
    max-height: none;
}

.system-code-modal__table--head {
    flex: 0 0 auto;
}

.system-code-modal .tbody-scroll {
    flex: 1 1 auto;
    height: calc(100vh - 570px);
    max-height: calc(100vh - 570px);
    min-height: 120px;
}

.system-code-modal .tbody-scroll .system-code-modal__table {
    margin-top: 0;
}

.system-code-modal__footer--end {
    justify-content: flex-end;
}

.system-code-modal .modal-footer__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


.system-code-filter-field {
    flex: 0 0 auto;
}

.system-code-filter-field--use {
    width: 132px;
}

.system-code-filter-field--type {
    width: 112px;
}

.system-code-filter-field .custom-select,
.system-code-filter-field .custom-select__button {
    width: 100%;
}



.system-code-form__toggle-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
}

.system-code-form__toggle-field .al-toggle {
    margin: 0;
}

.system-code-modal .al-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 54px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0;
}

.system-code-modal .al-toggle__track {
    display: block;
    width: 54px;
    height: 28px;
    border-radius: 14px;
    background: #bfc7d1;
    transition: background-color 0.18s ease;
}

.system-code-modal .al-toggle__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease;
}

.system-code-modal .al-toggle[aria-checked="true"] .al-toggle__track {
    background: #047bb6;
}

.system-code-modal .al-toggle[aria-checked="true"] .al-toggle__thumb {
    transform: translateX(26px);
}

.system-code-modal .al-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.system-code-toggle--readonly {
    pointer-events: auto;
    cursor: default;
}

.system-code-table-field {
    width: 100%;
    min-width: 0;
}

.system-code-check {
    display: inline-flex;
    align-items: center;
    position: relative;
    justify-content: center;
    margin: 0;
}

.system-code-check .al-checkbox__input {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0;
}

.system-code-check .al-checkbox__box {
    width: 18px;
    height: 18px;
    border: 1px solid #c6c6c6;
    border-radius: 4px;
    background: #fff;
}

.system-code-check .al-checkbox__input:checked + .al-checkbox__box {
    border-color: #047bb6;
    background: #047bb6;
}

.system-code-check .al-checkbox__input:checked + .al-checkbox__box::after {
    display: block;
    width: 8px;
    height: 4px;
    margin: 5px auto 0;
    border: 2px solid #fff;
    border-top: 0;
    border-right: 0;
    content: "";
    transform: rotate(-45deg);
}

.system-code-modal__detail-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e4e7ee;
    background: #fff;
}

#systemCodeWrap .tbody-scroll table tbody tr {
    cursor: pointer;
}
