.api-list-excel-tools {
    margin-bottom: 8px;
    text-align: right;
}

.api-list-excel-tools .btn-box-tool {
    padding: 0;
}

.api-clean-search-table {
    display: grid;
    grid-template-columns: 10% 40% 10% 40%;
    border-top: 1px solid #d6e2ee ;
    border-left: 1px solid #d6e2ee ;
    background: #ffffff;
}

.api-clean-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    border-right: 1px solid #d6e2ee ;
    border-bottom: 1px solid #d6e2ee ;
    background: #eaf1f8;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}

.api-clean-control {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 4px 6px;
    border-right: 1px solid #d6e2ee;
    border-bottom: 1px solid #d6e2ee;
    background: #ffffff;
    box-sizing: border-box;
    min-width: 0;
}

.api-clean-select,
.api-clean-input {
    width: 100% !important;
    height: 35px !important;
    line-height: 35px !important;
    padding: 0 10px !important;
    border: 1px solid #b8cce0 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

.api-clean-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.api-clean-date-row .dp_inline,
.api-clean-date-row .wd_155 {
    width: 155px !important;
}

.api-clean-date-row .input-group {
    width: 100% !important;
}

.api-clean-date-row .input-group.date input {
    height: 35px !important;
    line-height: 35px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #333333 !important;
}

.api-clean-tilde {
    color: #333333;
    font-weight: 700;
}

.api-clean-btn-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 0;
    background: #ffffff;
}

.api-clean-btn-row .btn {
    height: 35px !important;
    min-width: 92px;
    margin: 0 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.api-clean-reset-btn,
.api-clean-search-btn {
    border: 1px solid #c8c8c8 !important;
    background: #ffffff !important;
    color: #666666 !important;
}

/* select2 v3 */
.api-clean-control .select2-container {
    width: 155px !important;
    height: 35px !important;
}

.api-clean-control .select2-container .select2-choice {
    height: 35px !important;
    line-height: 35px !important;
    min-height: 35px !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.api-clean-control .select2-container .select2-choice > .select2-chosen {
    height: 35px !important;
    line-height: 35px !important;
    margin-right: 35px !important;
}

.api-clean-control .select2-container .select2-choice .select2-arrow {
    width: 35px !important;
    height: 33px !important;
    top: 0 !important;
    right: 0 !important;
    border-left: 1px solid #b8cce0 !important;
    background: #f8f8f8 !important;
    border-radius: 0 4px 4px 0 !important;
}

.api-clean-control .select2-container .select2-choice .select2-arrow b {
    margin-top: 4px !important;
}

/* 달력 팝업 글자 크기 복구 */
.datepicker,
.datepicker table,
.datepicker table tr td,
.datepicker table tr th,
.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next {
    font-size: 14px !important;
}

/* ==============================
   공통 폼 폭 보정
   - 회원가입 / 내 정보 수정 공통 사용
   - colspan=3 단독 라인에서 웹 입력칸이 과하게 길어지는 것 방지
   ============================== */
.form-wide-control {
    width: 100% !important;
    max-width: 620px;
}

.form-code-group .form-control {
    min-width: 0;
}

.form-code-group input:first-child {
    flex: 0 0 180px;
    max-width: 180px;
}

.form-code-group input:last-child {
    flex: 1 1 auto;
    max-width: 420px;
}

.form-code-group{
    display:flex;
    align-items:center;
    gap:5px;
}

.code-search-btn{
    flex:0 0 50px;
    height:30px;
    padding:4px 8px;
}

/* ==============================
   API 조회 팝업 테이블 디자인 개선
   ============================== */
#apiLayerPopup .api-popup-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #c7d7e8 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

#apiLayerPopup .api-popup-table th {
    background: #eaf3ff !important;
    color: #18304a !important;
    font-weight: 700 !important;
    border-right: 1px solid #d6e2ef !important;
    border-bottom: 1px solid #d6e2ef !important;
}

#apiLayerPopup .api-popup-table td {
    background: #ffffff !important;
    border-bottom: 1px solid #e1e8f0 !important;
    color: #1f2937 !important;
}

#apiLayerPopup .api-popup-table tr:last-child th,
#apiLayerPopup .api-popup-table tr:last-child td {
    border-bottom: 0 !important;
}

#apiLayerPopup .api-popup-table tr:first-child th:first-child {
    border-top-left-radius: 10px !important;
}

#apiLayerPopup .api-popup-table tr:first-child td:last-child {
    border-top-right-radius: 10px !important;
}

#apiLayerPopup .api-popup-table tr:last-child th:first-child {
    border-bottom-left-radius: 10px !important;
}

#apiLayerPopup .api-popup-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px !important;
}

#apiLayerPopup .api-popup-guide-text {
    color: #4b6077 !important;
    font-size: 13px !important;
}

td.money-cell{
    text-align:right !important;
    padding-right:5px !important;
}


/* ===== Source: 7edcd921-20f2-4e58-966a-4114c246bcdf.css ===== */
.menu-mng-panel {
    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    min-height: 838px;
    padding: 18px;
}

.menu-mng-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #3f506c;
    margin-bottom: 16px;
}

.menu-mng-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.menu-mng-tree-box {
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    padding: 14px;
    min-height: 658px;
    max-height: 658px;
    overflow: auto;
    background: #fafbfd;
}

.menu-tree-level {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.menu-tree-level-2,
.menu-tree-level-3 {
    margin-left: 20px;
    margin-top: 8px;
}

.menu-tree-node {
    margin-bottom: 8px;
}

.menu-tree-node-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #ffffff;
    text-decoration: none;
    color: #3f506c;
}

.menu-tree-node.active .menu-tree-node-link {
    background: #eef4ff;
    border-color: #8fb1ff;
    color: #2f4f7f;
}

.menu-tree-node-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    border-radius: 12px;
    background: #f1f4f9;
    font-size: 12px;
    font-weight: 700;
    color: #5c6d86;
}

.menu-tree-node-name {
    font-size: 14px;
    font-weight: 600;
}

.menu-tree-node-meta {
    margin-left: auto;
    font-size: 12px;
    color: #7b8aa3;
}

.menu-mng-guide {
    font-size: 12px;
    color: #6f7d93;
    margin-top: 6px;
    line-height: 1.5;
}

.menu-mng-form .table th {
    background: #f7f9fc;
}

.menu-mng-form .form-control[readonly] {
    background: #f5f7fa;
}

.menu-mng-footer-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* 모달 애니메이션 보정 */
.modal.show .modal-dialog {
    transform: unset !important;
}

.modal.fade .modal-dialog {
    transition: unset !important;
    transform: unset !important;
}

/* 메뉴 관리 페이지 - 헤더 겹침 보정 */
.menu-mng-page {
    margin: 0;
    padding-top: 0;
}

.menu-mng-page .menu-mng-wrap {
    padding-top: 20px !important;
    padding-bottom: 20px;
}

.menu-mng-page .menu-mng-panel {
    margin-top: 0;
}

/* 메뉴 관리 페이지 - 아이콘셀렉트 */
.menu-icon-setting-wrap .form-control {
    width: 100%;
}

.menu-icon-preview-wrap i {
    color: #4f6483;
}

/* 출하자 관리페이지 */
.ship-btn-area {
    margin-top: 15px;
    text-align: right;
}

.ship-btn-area .btn + .btn {
    margin-left: 6px;
}

.ship-readonly {
    background-color: #f5f5f5;
}

.ship-link {
    font-weight: 600;
    text-decoration: underline;
}

.ship-date-input {
    min-width: 110px;
}

.ship-input-addon-btn {
    padding: 0;
}

/* 기초코드 관리 css */
.basic-code-page,
.basic-code-page .content,
.basic-code-page .box,
.basic-code-page .box-body,
.basic-code-page .basic-code-content,
.content-wrapper.basic-code-page {
    overflow: visible !important;
}

.basic-code-page .basic-code-list-tools {
    margin-top: -2px;
}

.basic-code-search-btn-area {
    margin-top: 10px;
    text-align: right;
}

.basic-code-table th,
.basic-code-table td {
    color: #000000 !important;
}

.basic-code-link {
    color: #000000 !important;
    font-weight: 600;
    text-decoration: none;
}

.basic-code-link:hover,
.basic-code-link:focus {
    color: #000000 !important;
    text-decoration: underline;
}

.basic-code-table_wrapper .dataTables_paginate {
    float: none !important;
    text-align: center !important;
    width: 100%;
    margin-top: 12px;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.basic-code-table_wrapper .pagination {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin: 0;
}

.basic-code-popup-wrap {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.basic-code-popup-wrap.is-open {
    display: block;
}

.basic-code-popup-dim {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
}

.basic-code-popup {
    position: fixed;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #ffffff;
    border: 10px solid #155f92;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    z-index: 100000;
}

.basic-code-popup-header {
    padding: 18px 20px 10px 20px;
    background: #ffffff;
}

.basic-code-popup-title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #1f1f1f;
    letter-spacing: -0.5px;
}

.basic-code-popup-body {
    padding: 0 20px 10px 20px;
    background: #ffffff;
}

.basic-code-popup-table {
    margin-bottom: 0;
}

.basic-code-popup-table th {
    background: #f3f3f3;
    text-align: center;
    vertical-align: middle;
    font-weight: 700;
    color: #000000 !important;
}

.basic-code-popup-table td {
    background: #ffffff;
    vertical-align: middle;
    color: #000000 !important;
}

.basic-code-popup-table .form-control {
    height: 34px;
    border-radius: 4px;
}

.basic-code-popup-footer {
    padding: 12px 20px 18px 20px;
    text-align: right;
    background: #ffffff;
}

.basic-code-popup-footer .btn {
    min-width: 74px;
    margin-left: 4px;
    font-weight: 600;
}

.basic-code-btn-delete {
    background: #2f6f9f;
    border-color: #2f6f9f;
    color: #ffffff;
}

.basic-code-btn-delete:hover,
.basic-code-btn-delete:focus {
    background: #25597f;
    border-color: #25597f;
    color: #ffffff;
}

.basic-code-popup-wide {
    width: 640px;
    max-width: calc(100vw - 40px);
}

/* 전자송품장 공통 레이아웃 */
.ship-doc-form-page .content {
    padding-top: 12px;
}

.ship-doc-form-page .box {
    border: 1px solid #d9e1ea;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.ship-doc-form-page .box-body {
    padding: 20px 20px 18px 20px;
    background: #f8fafc;
}

.ship-doc-master-table > tbody > tr > th,
.ship-doc-master-table > tbody > tr > td {
    border: 0 !important;
    border-right: 1px solid #d6e2ee !important;
    border-bottom: 1px solid #d6e2ee !important;
    vertical-align: middle !important;
    padding: 10px 12px !important;
}

.ship-doc-master-table > tbody > tr:last-child > th,
.ship-doc-master-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.ship-doc-master-table > tbody > tr > th:last-child,
.ship-doc-master-table > tbody > tr > td:last-child {
    border-right: 0 !important;
}

.ship-doc-master-table .form-control {
    height: 36px;
    border: 1px solid #b8cce0;
    border-radius: 8px;
    box-shadow: none;
    font-size: 14px;
    padding: 6px 10px;
}

.ship-doc-master-table .form-control:focus {
    border-color: #6b8ecf;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

.ship-doc-master-table .dt_bgColor_5,
.ship-doc-master-table input[readonly] {
    background: #f8fafc !important;
    color: #475569;
}

.ship-doc-merged-empty-cell {
    background: #ffffff !important;
}

/* 버튼 */
.ship-doc-master-btn-area {
    margin-top: 14px;
    text-align: right;
}

/* 상세 타이틀 */
.ship-doc-detail-title {
    margin: 22px 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1f2d3d;
}

.ship-doc-detail-table > thead > tr > th {
    background: #eaf1f8 !important;
    color: #243444;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #dbe3ec !important;
    vertical-align: middle !important;
    padding: 10px 8px !important;
    white-space: nowrap;
}

.ship-doc-detail-table > tbody > tr > td {
    background: #ffffff;
    border: 1px solid #d6e2ee !important;
    padding: 8px !important;
    vertical-align: middle !important;
}

.ship-doc-detail-table > tbody > tr:nth-child(even) > td {
    background: #fbfcfe;
}

.ship-doc-detail-table .form-control:focus {
    border-color: #6b8ecf;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
}

/* 필수정 표시 */
.ship-doc-form-page .dot_rec,
.ship-doc-form-page .text-red {
    color: #e11d48 !important;
    font-weight: 700;
}

/* 전자송품장 등록버튼 */
.ship-doc-list-btn-wrap {
    margin-top: 8px;
    margin-right: 4px;
}

.ship-doc-list-reg-btn {
    min-width: 72px;
    height: 30px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

/* =========================
   전자송품장 등록 반응형 보정
   ========================= */
.ship-doc-master-scroll,
.ship-doc-detail-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.ship-doc-master-scroll::-webkit-scrollbar,
.ship-doc-detail-scroll::-webkit-scrollbar {
    height: 8px;
}

.ship-doc-master-scroll::-webkit-scrollbar-thumb,
.ship-doc-detail-scroll::-webkit-scrollbar-thumb {
    background: #c9d4e2;
    border-radius: 999px;
}

.ship-doc-master-scroll::-webkit-scrollbar-track,
.ship-doc-detail-scroll::-webkit-scrollbar-track {
    background: #eef3f8;
    border-radius: 999px;
}

.ship-doc-detail-table {
    min-width: 1520px !important;
    table-layout: fixed !important;
}

/* 생산자명 */
.ship-doc-detail-table th:nth-child(1),
.ship-doc-detail-table td:nth-child(1) {
    width: 120px !important;
    min-width: 120px !important;
}

/* 품종코드 - 넓힘 */
.ship-doc-detail-table th:nth-child(2),
.ship-doc-detail-table td:nth-child(2) {
    width: 180px !important;
    min-width: 180px !important;
}

/* 중량 - 줄임 */
.ship-doc-detail-table th:nth-child(3),
.ship-doc-detail-table td:nth-child(3) {
    width: 70px !important;
    min-width: 70px !important;
}

/* 단위코드 - 넓힘 */
.ship-doc-detail-table th:nth-child(4),
.ship-doc-detail-table td:nth-child(4) {
    width: 180px !important;
    min-width: 180px !important;
}

/* 등급코드 */
.ship-doc-detail-table th:nth-child(5),
.ship-doc-detail-table td:nth-child(5) {
    width: 180px !important;
    min-width: 180px !important;
}

/* 과수코드 */
.ship-doc-detail-table th:nth-child(6),
.ship-doc-detail-table td:nth-child(6) {
    width: 180px !important;
    min-width: 180px !important;
}

/* 수량 - 줄임 */
.ship-doc-detail-table th:nth-child(7),
.ship-doc-detail-table td:nth-child(7) {
    width: 70px !important;
    min-width: 70px !important;
}

/* 하역비 */
.ship-doc-detail-table th:nth-child(8),
.ship-doc-detail-table td:nth-child(8) {
    width: 90px !important;
    min-width: 90px !important;
}

/* 운임 */
.ship-doc-detail-table th:nth-child(9),
.ship-doc-detail-table td:nth-child(9) {
    width: 90px !important;
    min-width: 90px !important;
}

/* 친환경코드 */
.ship-doc-detail-table th:nth-child(10),
.ship-doc-detail-table td:nth-child(10) {
    width: 190px !important;
    min-width: 190px !important;
}

/* 비고 */
.ship-doc-detail-table th:nth-child(11),
.ship-doc-detail-table td:nth-child(11) {
    width: 180px !important;
    min-width: 180px !important;
}

/* 삭제 */
.ship-doc-detail-table th:nth-child(12),
.ship-doc-detail-table td:nth-child(12) {
    width: 60px !important;
    min-width: 60px !important;
    text-align: center !important;
}

.ship-doc-detail-popup-line {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
}

.ship-doc-detail-popup-line .popup-code {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.ship-doc-detail-popup-line .ship-doc-code-search-btn {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
}

.ship-doc-detail-table .detail-variety-nm,
.ship-doc-detail-table .detail-unit-nm,
.ship-doc-detail-table .detail-grade-nm,
.ship-doc-detail-table .detail-fruit-nm,
.ship-doc-detail-table .detail-eco-nm {
    margin-top: 4px !important;
}

.ship-doc-master-btn-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ship-doc-action-btn {
    min-width: 96px;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.ship-doc-detail-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.ship-doc-add-row-btn {
    min-width: 84px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.ship-doc-detail-table .form-control {
    width: 100%;
    min-width: 0;
}

.ship-doc-detail-table td {
    min-width: 90px;
}

.ship-doc-detail-table td:nth-child(1) {
    min-width: 140px;
}

.ship-doc-detail-table td:nth-child(2),
.ship-doc-detail-table td:nth-child(4),
.ship-doc-detail-table td:nth-child(5),
.ship-doc-detail-table td:nth-child(6),
.ship-doc-detail-table td:nth-child(10) {
    min-width: 120px;
}

.ship-doc-detail-table td:nth-child(11) {
    min-width: 160px;
}

.ship-doc-detail-table td:last-child {
    min-width: 64px;
    text-align: center;
}

.ship-doc-detail-table .btn-danger.btn-sm {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    line-height: 1;
}

@media (max-width: 991px) {
    .ship-doc-form-page .box-body {
            padding: 16px 14px 16px 14px;
        }
}

@media (max-width: 991px) {
    .ship-doc-detail-title {
            margin-top: 18px;
            margin-bottom: 10px;
        }
}

@media (max-width: 991px) {
    .ship-doc-action-btn {
            height: 38px;
            font-size: 13px;
        }
}

.ship-doc-master-table > tbody > tr > td {
    min-width: 0;
}

.ship-doc-master-table .fl_group .dt_bgColor_5,
.ship-doc-master-table .fl_group input[readonly] {
    flex: 1 1 auto;
}

.ship-doc-master-table > colgroup col:nth-child(1),
.ship-doc-master-table > colgroup col:nth-child(3),
.ship-doc-master-table > colgroup col:nth-child(5) {
    width: 92px !important;
}

/* 법인출하자코드 행 튀어나감 보정 */
.ship-doc-master-table {
    table-layout: fixed;
}

.ship-doc-master-table > tbody > tr > th {
    white-space: normal !important;
    word-break: keep-all;
    line-height: 1.35;
}

.ship-doc-master-table .fl_group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ship-doc-master-table .fl_group .form-control {
    min-width: 0;
}

.ship-doc-master-table .fl_group .popup-code {
    flex: 0 0 100px;
    max-width: 100px;
}

.ship-doc-master-table .fl_group .dt_bgColor_5,
.ship-doc-master-table .fl_group input[readonly]:not(.popup-code) {
    flex: 1 1 auto;
    min-width: 0;
}

/* 출하자관리페이지 css */
.shipper-manage-page .shipper-manage-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.shipper-manage-page .shipper-manage-table {
    min-width: 1180px;
    margin-bottom: 0;
    table-layout: fixed;
}

.shipper-manage-page .shipper-manage-table th,
.shipper-manage-page .shipper-manage-table td {
    vertical-align: middle !important;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.shipper-manage-page .shipper-manage-table thead th {
    text-align: center;
}

.shipper-manage-page .shipper-clickable-row {
    cursor: pointer;
}

.shipper-manage-page .shipper-clickable-row:hover {
    background-color: #f8fbff;
}

.shipper-manage-page .shipper-control-cell {
    min-width: 90px;
}

.shipper-manage-page .shipper-yn-select {
    min-width: 64px;
}

.shipper-manage-page .shipper-date-input {
    min-width: 110px;
    text-align: center;
}

.shipper-manage-page .shipper-save-btn {
    min-width: 72px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
}

.shipper-manage-page .shipper-manage-box-body {
    overflow: hidden;
}

/* =========================
   API 조회 팝업 / 페이지
   ========================= */
.api-search-page-wrap .searchbox_wrap {
    margin-top: 0 !important;
}

.api-layer-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
}

.api-layer-popup.is-open {
    display: block;
}

.api-layer-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.api-layer-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 760px;
    max-width: calc(100vw - 40px);
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    overflow: visible;
}

.api-layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.api-layer-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2d3d;
}

.api-layer-close {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

.api-layer-body {
    padding: 18px 20px 10px 20px;
    overflow: visible;
}

.api-layer-footer {
    padding: 14px 20px 20px 20px;
    text-align: right;
}

.api-layer-footer .btn + .btn {
    margin-left: 6px;
}

.api-popup-table th,
.api-popup-table td {
    vertical-align: middle !important;
}

.api-popup-guide-text {
    color: #5b6777;
    font-size: 13px;
    line-height: 1.5;
}

.datepicker {
    z-index: 10000 !important;
}

/* =========================
   수탁판매대금 집계표 전용
   ========================= */
.sales-summary-select,
.sales-summary-popup-select {
    width: 100% !important;
    min-width: 0;
}

.sales-summary-report-box .box-body {
    overflow-x: auto;
}

.sales-summary-print-body {
    overflow-x: auto;
}

.sales-summary-date-text {
    text-align: center;
}

.sales-summary-print-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sales-summary-print-top-item {
    flex: 1;
    min-width: 180px;
}

.sales-summary-table {
    width: 100% !important;
    table-layout: auto !important;
}

.sales-summary-table th,
.sales-summary-table td {
    padding: 6px 8px;
    min-width: 60px;
}

.sales-summary-table .printThead th {
    text-align: center !important;
    vertical-align: middle !important;
    white-space: normal !important;
    word-break: keep-all;
}

/* ================================
   생산자 지불등록 페이지
   새로 추가
================================ */
.producer-pay-reg-page .producer-pay-reg-section {
    padding-left: 0;
    padding-right: 0;
}

.producer-pay-reg-page .producer-pay-unit-text {
    padding-top: 8px;
    color: #666;
    font-size: 12px;
}

.producer-pay-reg-page .producer-pay-summary-table input[readonly] {
    text-align: right;
    font-weight: 700;
    background: #f8f9fb;
}

.producer-pay-reg-page .producer-pay-grid-wrap {
    width: 100%;
    max-height: 320px;
    overflow: auto;
}

.producer-pay-reg-page .producer-pay-grid {
    white-space: nowrap;
}

.producer-pay-reg-page .producer-pay-grid td.ta_r,
.producer-pay-reg-page .producer-pay-grid th.ta_r {
    text-align: right !important;
}

.producer-pay-reg-page .producer-pay-input,
.producer-pay-reg-page .producer-pay-popup-input {
    min-width: 100px;
}

.producer-pay-reg-page .producer-pay-btn-area {
    margin: 14px 0 18px;
}

.producer-pay-method-btn {
    min-width: 100px;
}

.producer-pay-bank-search-area {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.producer-pay-bank-list-wrap {
    max-height: 280px;
    overflow: auto;
}

.producer-pay-bank-row {
    cursor: pointer;
}

.producer-pay-bank-row:hover {
    background: #f5f8fc;
}

/* 팝업이 헤더보다 위로 뜨도록 */
.modal {
    z-index: 110000 !important;
}

.modal-backdrop {
    z-index: 109990 !important;
}

#layerPopupXl {
    z-index: 110000 !important;
}

body.api-loading {
    overflow: hidden !important;
}

@keyframes apiLoadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================
   공통 가로 스크롤 테이블 영역
   방식 1) wrapper 직접 스크롤
   기존 스타일 수정 아님 / 새로 만든 공통 스타일
   ========================= */
.common-table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.common-table-scroll-wrap .common-scroll-table {
    min-width: 1230px;
    table-layout: fixed;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.common-table-scroll-wrap .common-scroll-table thead th,
.common-table-scroll-wrap .common-scroll-table tbody td {
    vertical-align: middle !important;
}

.common-table-scroll-wrap .common-scroll-table .form-control.input-sm,
.common-table-scroll-wrap .common-scroll-table select.form-control.input-sm {
    min-width: 100%;
    height: 30px;
    padding: 4px 8px;
}

.common-table-scroll-wrap .common-scroll-table .btn {
    white-space: nowrap;
}

.common-table-scroll-wrap .common-scroll-table .text-left {
    text-align: left !important;
}

.common-table-scroll-wrap .common-scroll-table .text-center {
    text-align: center !important;
}

.common-table-scroll-wrap .common-scroll-table tbody tr.common-clickable-row {
    cursor: pointer;
}

.common-table-scroll-wrap .dataTables_wrapper {
    width: 100%;
}

.common-table-scroll-wrap .dataTables_paginate {
    float: none !important;
    text-align: center !important;
    width: 100%;
    margin-top: 12px;
}

.common-table-scroll-wrap .pagination {
    margin: 0;
    white-space: nowrap;
}

/* =========================
   공통 가로 스크롤 테이블 영역
   방식 2) DataTables scrollX 전용
   화면이 min-width 이하로 줄어들 때만
   테이블 하단에 가로 스크롤 생성
   ========================= */
.common-dt-scroll .dataTables_wrapper {
    width: 100%;
}

.common-dt-scroll table.dataTable {
    width: 100% !important;
}

.common-dt-scroll .dataTables_paginate {
    float: none !important;
    text-align: center !important;
    width: 100%;
    margin-top: 12px;
}

.common-dt-scroll .pagination {
    margin: 0;
    white-space: nowrap;
}

/*연필아이콘숨기기*/
.btn-box-tool:has(.fa-pencil-square-o) {
    display: none !important;
}

/*api 기초코드 css*/
.apiCodeSearchPage .search-table th,
.apiCodeSearchPage .search-table td {
    vertical-align: middle !important;
}

.apiCodeSearchPage .search-btn-area {
    margin-top: 15px;
    text-align: right;
}

.apiCodeSearchPage .search-btn-area .btn + .btn {
    margin-left: 6px;
}

.apiCodeSearchPage .common-table-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.apiCodeSearchPage .common-scroll-table {
    min-width: 900px;
    table-layout: fixed;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.apiCodeSearchPage .common-scroll-table thead th,
.apiCodeSearchPage .common-scroll-table tbody td {
    vertical-align: middle !important;
}

.apiCodeSearchPage .common-scroll-table thead th {
    text-align: center;
}

.apiCodeSearchPage #searchKeywordRow input.form-control {
    width: 100%;
}

.apiCodeSearchPage div.dataTables_wrapper div.dataTables_paginate {
    text-align: center !important;
    float: none !important;
}

.apiCodeSearchPage div.dataTables_wrapper div.dataTables_info {
    padding-top: 8px;
}

.m-btn-close {
    border: 0;
    background: none;
    font-size: 14px;
    cursor: pointer;
}

/*.btn-box-tool:has(.fa-print) {
     display: none !important;
 }*/

.api-important-guide-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2d5f9a, #3f7ec7);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(23, 63, 112, 0.22);
}

.api-important-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.api-important-content {
    flex: 1;
    min-width: 0;
}

.api-important-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

.api-important-desc {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

.api-important-action {
    flex-shrink: 0;
}

.api-important-action .api-search-open-btn {
    min-width: 155px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #ffffff !important;
    color: #1f5f9f !important;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.api-important-action .api-search-open-btn:hover,
.api-important-action .api-search-open-btn:focus {
    background: #f4f8ff !important;
    color: #164f88 !important;
}

/* ==============================
   통합 API 조회 페이지
   ============================== */
.api-all-page .api-all-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2d5f9a, #3f7ec7);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(23, 63, 112, 0.22);
}

.api-all-hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.api-all-hero-content {
    flex: 1;
}

.api-all-hero-title {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

.api-all-hero-desc {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

/* 검색조건 박스 */
.api-all-page .searchbox_wrap {
    margin-bottom: 18px;
}

.api-all-page .api-clean-search-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* 통합 API 조회 페이지는 2조건만 있어서 폭 보정 */
.api-all-page .api-clean-search-table {
    display: grid;
    grid-template-columns: 120px 1fr 120px 1fr;
    border-top: 2px solid #2d5f9a;
    border-left: 1px solid #d9e2ec;
}

.api-all-page .api-clean-label,
.api-all-page .api-clean-control {
    min-height: 48px;
    border-right: 1px solid #d9e2ec;
    border-bottom: 1px solid #d9e2ec;
    display: flex;
    align-items: center;
    padding: 8px 10px;
}

.api-all-page .api-clean-label {
    background: #f3f7fc;
    color: #17395c;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
}

.api-all-page .api-clean-control {
    background: #fff;
}

/* select2 */
.api-all-page .api-clean-control .select2-container {
    width: 100% !important;
}

.api-all-page .select2-container--default .select2-selection--single {
    height: 34px !important;
    border: 1px solid #ccd6e2 !important;
    border-radius: 4px !important;
}

.api-all-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 34px !important;
    line-height: 34px !important;
    font-size: 13px !important;
    color: #333 !important;
}

.api-all-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

/* 버튼 */
.api-all-page .api-clean-btn-row {
    margin-top: 18px;
    text-align: center;
}

.api-all-page .api-clean-btn-row .api-clean-reset-btn {
    width: 132px !important;
    min-width: 132px !important;
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.api-all-page .api-clean-btn-row .api-all-run-btn {
    width: 230px !important;
    min-width: 230px !important;
    height: 40px !important;
    padding: 0 18px !important;
    border-radius: 7px !important;
    background: #1f5f9f !important;
    border: 1px solid #1f5f9f !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.api-all-page .api-all-run-btn:hover,
.api-all-page .api-all-run-btn:focus {
    background: #164f88 !important;
    border-color: #164f88 !important;
    color: #fff !important;
}

/* 결과 영역 */
.api-all-card {
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.api-all-result-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.api-all-result-item {
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
}

.api-all-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.api-all-result-title {
    font-size: 14px;
    font-weight: 700;
    color: #263b52;
}

.api-all-status {
    display: inline-block;
    min-width: 72px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-align: center;
    font-weight: 700;
    background: #edf1f5;
    color: #6b7785;
}

.api-all-status.wait {
    background: #edf1f5;
    color: #6b7785;
}

.api-all-status.loading {
    background: #fff4db;
    color: #b36b00;
}

.api-all-status.success {
    background: #e5f6ee;
    color: #16804a;
}

.api-all-status.fail {
    background: #fdeaea;
    color: #c0392b;
}

.api-all-result-msg {
    font-size: 13px;
    color: #667487;
    line-height: 1.5;
    min-height: 20px;
}

/* 로딩 */
.api-full-loading {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.api-full-loading__dim {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.api-full-loading__content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 26px 34px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.api-full-loading__spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    border: 4px solid #d9e2ec;
    border-top-color: #2d5f9a;
    border-radius: 50%;
    animation: apiSpin .8s linear infinite;
}

.api-full-loading__text {
    font-size: 14px;
    font-weight: 600;
    color: #263b52;
}

@keyframes apiSpin {
    to {
        transform: rotate(360deg);
    }
}

.shipper-top-api-quick-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px 0;
    padding: 17px 20px;
    background: linear-gradient(135deg, #1f5f9f, #3f7ec7);
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(23, 63, 112, 0.22);
}

.shipper-top-api-left {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.shipper-top-api-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.shipper-top-api-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.shipper-top-api-desc {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.95;
}

.shipper-top-api-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    background: #ffffff;
    color: #1f5f9f !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
}

.shipper-top-api-btn:hover,
.shipper-top-api-btn:focus {
    background: #f4f8ff;
    color: #164f88 !important;
}


.cmp-pay-summary-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 10px;
}

.cmp-pay-summary-item {
    display: flex;
    align-items: stretch;
    min-height: 46px;
    border: 1px solid #c5d7ea;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cmp-pay-summary-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38%;
    min-width: 120px;
    padding: 0 12px;
    background: #c9daf0;
    color: #1f3554;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-right: 1px solid #c5d7ea;
    word-break: keep-all;
    white-space: nowrap;
}

.cmp-pay-summary-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    padding: 0 14px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    letter-spacing: -0.2px;
}

.cmp-pay-summary-value::after {
    content: " 원";
    margin-left: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.producer-pay-summary-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 10px;
}

.producer-pay-summary-item {
    display: flex;
    align-items: stretch;
    min-height: 46px;
    border: 1px solid #c5d7ea;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.producer-pay-summary-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38%;
    min-width: 120px;
    padding: 0 12px;
    background: #c9daf0;
    color: #1f3554;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border-right: 1px solid #c5d7ea;
    word-break: keep-all;
    white-space: nowrap;
}

.producer-pay-summary-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    padding: 0 14px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    letter-spacing: -0.2px;
}

.producer-pay-summary-value::after {
    content: " 원";
    margin-left: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.api-total-guide-text {
    display: inline-block;
    margin-top: 4px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
}
