/* 기본 설정 */
#dbhb-erp-content {
    min-width: 0;
}

#jnl-lst {
    --jnl-primary: #2c6732;
    --jnl-primary-dark: #235429;
    --jnl-border: #e3e9e5;
    --jnl-text: #24332b;
    --jnl-muted: #66756d;

    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 24px;
    color: var(--jnl-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

#jnl-lst,
#jnl-lst *,
#jnl-lst *::before,
#jnl-lst *::after {
    box-sizing: border-box;
}

#jnl-lst > * {
    min-width: 0;
    margin: 0;
}

#jnl-lst h2,
#jnl-lst h3,
#jnl-lst h4,
#jnl-lst p,
#jnl-lst form,
#jnl-lst dl,
#jnl-lst dd {
    margin: 0;
}

#jnl-lst button,
#jnl-lst input,
#jnl-lst select {
    font-family: inherit;
}

/* 페이지 제목 */
#jnl-lst .jnl-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#jnl-lst .jnl-eyebrow {
    margin-bottom: 7px;
    color: var(--jnl-primary);
    font-size: 13px;
    font-weight: 700;
}

#jnl-lst .jnl-heading h2 {
    color: #1d2d22;
    font-size: 27px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.045em;
}

#jnl-lst .jnl-description {
    margin-top: 8px;
    color: var(--jnl-muted);
    font-size: 14px;
    line-height: 1.7;
}

#jnl-lst .jnl-sample-label {
    padding: 6px 11px;
    border: 1px solid var(--jnl-border);
    border-radius: 7px;
    background: #fff;
    color: var(--jnl-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* 안내 */
#jnl-lst .jnl-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    border: 1px solid #dbe8dd;
    border-radius: 10px;
    background: #edf5ee;
    color: #496650;
    font-size: 13px;
    line-height: 1.7;
}

#jnl-lst .jnl-notice-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border: 1px solid #789d7f;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* 패널 및 검색 */
#jnl-lst .jnl-panel {
    width: 100%;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--jnl-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 6px rgb(24 49 32 / 2%);
}

#jnl-lst .jnl-search-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 0.8fr)
        minmax(0, 1.7fr);
    gap: 20px;
}

#jnl-lst .jnl-search-grid > div {
    min-width: 0;
}

#jnl-lst .jnl-label {
    display: block;
    margin-bottom: 9px;
    color: #405347;
    font-size: 13px;
    font-weight: 650;
}

#jnl-lst .jnl-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #dce4de;
    border-radius: 8px;
    background-color: #fff;
    color: #293c30;
    font-size: 14px;
    line-height: normal;
    box-shadow: none;
}

#jnl-lst .jnl-input:hover {
    border-color: #b6c9ba;
}

#jnl-lst .jnl-input:focus {
    border-color: #608f67;
    outline: none;
    box-shadow: 0 0 0 3px rgb(44 103 50 / 10%);
}

#jnl-lst .jnl-input::placeholder {
    color: #758178;
    font-size: 13px;
    opacity: 1;
}

#jnl-lst input[type="date"] {
    color-scheme: light;
}

#jnl-lst select.jnl-input {
    padding-right: 34px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366756d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 16px;
    cursor: pointer;
}

#jnl-lst .jnl-search-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf1ee;
}

#jnl-lst .jnl-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    margin-left: auto;
}

#jnl-lst .jnl-error {
    flex: 1 1 240px;
    color: #b43e3e;
    font-size: 13px;
}

#jnl-lst .jnl-error:empty {
    display: none;
}

/* 버튼 */
#jnl-lst .jnl-button {
    display: inline-flex;
    min-width: 86px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #dce4de;
    border-radius: 8px;
    background: #fff;
    color: #4d6153;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

#jnl-lst .jnl-button:hover {
    border-color: #b8cdbd;
    background: #f5f9f6;
    color: var(--jnl-primary);
}

#jnl-lst .jnl-button-primary {
    min-width: 108px;
    border-color: var(--jnl-primary);
    background: var(--jnl-primary);
    color: #fff;
}

#jnl-lst .jnl-button-primary:hover {
    border-color: var(--jnl-primary-dark);
    background: var(--jnl-primary-dark);
    color: #fff;
}

#jnl-lst button:focus-visible,
#jnl-lst [tabindex]:focus-visible {
    outline: 3px solid #477b4e;
    outline-offset: 3px;
}

/* 목록 */
#jnl-lst .jnl-list-panel {
    padding: 0;
}

#jnl-lst .jnl-list-heading,
#jnl-lst .jnl-list-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 21px 24px;
}

#jnl-lst .jnl-list-title,
#jnl-lst .jnl-list-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

#jnl-lst .jnl-list-title h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

#jnl-lst .jnl-list-title span,
#jnl-lst .jnl-list-options label {
    color: var(--jnl-muted);
    font-size: 13px;
    white-space: nowrap;
}

#jnl-lst #jnl-result-count {
    color: var(--jnl-primary);
}

#jnl-lst #jnl-page-size {
    width: 106px;
    height: 40px;
    font-size: 13px;
}

#jnl-lst .jnl-table-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #bfcfc3 #f3f6f4;
}

#jnl-lst .jnl-table {
    width: 100%;
    min-width: 1100px;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    text-align: left;
}

#jnl-lst .jnl-table th {
    padding: 15px 20px;
    border-top: 1px solid var(--jnl-border);
    border-bottom: 1px solid var(--jnl-border);
    background: #f5f8f6;
    color: #607166;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
    white-space: nowrap;
}

#jnl-lst .jnl-table td {
    padding: 20px;
    border-bottom: 1px solid #edf1ee;
    vertical-align: middle;
}

#jnl-lst .jnl-table th:first-child,
#jnl-lst .jnl-table td:first-child {
    padding-left: 24px;
}

#jnl-lst .jnl-table th:last-child,
#jnl-lst .jnl-table td:last-child {
    padding-right: 24px;
    text-align: right;
}

#jnl-lst .jnl-table tbody tr:last-child td {
    border-bottom: 0;
}

#jnl-lst .jnl-table tbody tr:hover {
    background: #f9fcf9;
}

#jnl-lst .jnl-cell-title {
    display: block;
    color: #2a3c30;
    font-weight: 600;
    white-space: nowrap;
}

#jnl-lst .jnl-cell-sub {
    display: block;
    margin-top: 5px;
    color: #718077;
    font-size: 12px;
    white-space: nowrap;
}

#jnl-lst .jnl-table td:first-child .jnl-cell-sub {
    color: var(--jnl-primary);
}

#jnl-lst .jnl-preview {
    display: block;
    width: 240px;
    overflow: hidden;
    color: #5b6d61;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#jnl-lst .jnl-table .jnl-button {
    min-width: 78px;
    min-height: 40px;
    padding: 8px 12px;
    color: #44684b;
    font-size: 12px;
}

#jnl-lst .jnl-table .jnl-empty {
    height: 220px;
    color: #718077;
    text-align: center;
}

/* 페이지 */
#jnl-lst .jnl-list-footer {
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid var(--jnl-border);
}

#jnl-lst #jnl-page-info {
    color: #718077;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

#jnl-lst #jnl-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#jnl-lst .jnl-page-button {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #e1e8e3;
    border-radius: 7px;
    background: #fff;
    color: #617067;
    font-size: 13px;
    cursor: pointer;
}

#jnl-lst .jnl-page-button:hover:not(:disabled) {
    background: #f2f7f3;
}

#jnl-lst .jnl-page-button[aria-current="page"] {
    border-color: var(--jnl-primary);
    background: var(--jnl-primary);
    color: #fff;
}

#jnl-lst .jnl-page-button:disabled {
    background: #fafcfb;
    color: #89968e;
    cursor: default;
}

/* 상세 모달 */
#jnl-lst .jnl-dialog {
    position: fixed;
    inset: 0;
    width: min(780px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 1px solid #e1e8e3;
    border-radius: 16px;
    background: #fff;
    color: var(--jnl-text);
    box-shadow: 0 24px 80px rgb(18 39 25 / 20%);
}

#jnl-lst .jnl-dialog:not([open]) {
    display: none;
}

#jnl-lst .jnl-dialog::backdrop {
    background: rgb(20 35 26 / 44%);
}

#jnl-lst .jnl-dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--jnl-border);
    background: #f8fbf8;
}

#jnl-lst .jnl-dialog-heading h3 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

#jnl-lst .jnl-dialog-heading .jnl-description {
    margin-top: 5px;
    font-size: 12px;
}

#jnl-lst .jnl-dialog-body {
    padding: 24px;
}

#jnl-lst .jnl-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--jnl-border);
    border-radius: 10px;
    background: #fafcfb;
}

#jnl-lst .jnl-info-grid > div {
    min-width: 0;
}

#jnl-lst .jnl-info-grid dt {
    margin-bottom: 6px;
    color: #718077;
    font-size: 12px;
}

#jnl-lst .jnl-info-grid dd {
    color: #2a3c30;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#jnl-lst .jnl-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 28px 0 16px;
}

#jnl-lst .jnl-section-heading h4 {
    font-size: 15px;
    font-weight: 700;
}

#jnl-lst .jnl-badge {
    padding: 6px 10px;
    border-radius: 6px;
    background: #edf5ee;
    color: var(--jnl-primary);
    font-size: 12px;
    font-weight: 600;
}

#jnl-lst .jnl-records {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#jnl-lst .jnl-record {
    border: 1px solid var(--jnl-border);
    border-radius: 10px;
    background: #fff;
}

#jnl-lst .jnl-record-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1ee;
    border-radius: 10px 10px 0 0;
    background: #f7faf7;
}

#jnl-lst .jnl-record-time {
    color: var(--jnl-primary);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#jnl-lst .jnl-record-duration {
    color: #718077;
    font-size: 12px;
}

#jnl-lst .jnl-record-content {
    padding: 20px 18px;
    color: #405347;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#jnl-lst .jnl-record-meta {
    padding: 0 18px 16px;
    color: #718077;
    font-size: 11px;
}

#jnl-lst .jnl-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    border-top: 1px solid var(--jnl-border);
    background: #fafcfb;
}

#jnl-lst .jnl-dialog-footer p {
    color: #718077;
    font-size: 12px;
}

#jnl-lst .jnl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* 반응형 */
@media (max-width: 1280px) {
    #jnl-lst .jnl-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #jnl-lst {
        gap: 18px;
    }

    #jnl-lst .jnl-heading h2 {
        font-size: 23px;
    }

    #jnl-lst .jnl-panel,
    #jnl-lst .jnl-dialog-heading,
    #jnl-lst .jnl-dialog-body {
        padding: 18px;
    }

    #jnl-lst .jnl-list-panel {
        padding: 0;
    }

    #jnl-lst .jnl-search-grid,
    #jnl-lst .jnl-info-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #jnl-lst .jnl-actions {
        width: 100%;
    }

    #jnl-lst .jnl-actions .jnl-button {
        flex: 1;
    }

    #jnl-lst .jnl-list-heading,
    #jnl-lst .jnl-list-footer,
    #jnl-lst .jnl-dialog-footer {
        padding: 18px;
    }

    #jnl-lst .jnl-list-options label {
        display: none;
    }

    #jnl-lst .jnl-list-footer {
        flex-direction: column;
    }

    #jnl-lst .jnl-notice {
        padding: 14px 16px;
    }

    #jnl-lst .jnl-dialog-heading h3 {
        font-size: 20px;
    }
}
