
#historyTable_M_wrapper {margin-top:30px;}
#historyTable_M_wrapper .dt-layout-row {max-width:600px;}
/* 기본적으로 스크롤바 숨기기 */
.table-container {
    overflow-x: hidden;
}
th {
    white-space: nowrap; /* 강제로 한 줄로 표시 */
}
/* 화면 크기가 1200px 미만일 때 스크롤바 보이게 설정 */
@media (max-width: 1199px) {
    th {
        white-space: nowrap; /* 강제로 한 줄로 표시 */
    }
    .table-container {
        overflow-x: auto; /* 가로 스크롤 활성화 */
    }

    /* 스크롤바 스타일 변경 */
    .table-container::-webkit-scrollbar {
        height: 8px; /* 스크롤바 높이 */
    }

    .table-container::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* 스크롤바 배경 */
    }

    .table-container::-webkit-scrollbar-thumb {
        background-color: orange; /* 스크롤바 색상 */
        border-radius: 4px; /* 스크롤바의 둥근 모서리 */
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background-color: darkorange; /* 호버 시 색상 */
    }
}

.recent thead th {
    text-align: center;
}

.recent td td:first-child {
    text-align: center;
}
.dt-column-order {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    width: 12px;
}
.history-cell {
    background-color: #f8f9fa !important;
    padding: 0px;
}
.status-badge {
    background-color: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;

    font-size: 12px;
}
.purple-badge {
    background-color: #673AB7;
}
.history-grid {
    display: block;
    text-align: left;
    margin-top: 0px;
}
.history-item {
    text-align: center;
    padding: 4px 0 ;
    min-width:70px;
    max-width:70px;
    font-size:11px;
    display:inline-block;
    background: white;
    border-radius: 4px;
    margin-bottom:4px;
    border: 1px solid #eee;
}
.date { font-weight: bold; letter-spacing: -0.5px; }
.status { color: #666; letter-spacing: -0.2px; }
.sub-status { color: #888; font-size: 11px;  letter-spacing: -0.5px;}

/* Hide default DataTable info */
.dataTables_info { display: none; }

/* Custom pagination style */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 8px;
}
.dt-column-title {width:100%; display:block; text-align:center}

.onid {display:block;}
.onurl {display:inline-block}
.br-datatable {border-right:1px solid rgba(82, 82, 108, 0.1);}
.w-3 {width:3% !important;}
.w-5 {width:5% !important;}
.w-10 {width:10% !important;}
.w-15 {width:15% !important;}
.w-20 {width:20% !important;}
.w-25 {width:25% !important;}
.w-30 {width:30% !important;}
.w-40 {width:40% !important;}
.w-50 {width:50% !important;}
.w-60 {width:60% !important;}
.w-70 {width:70% !important;}

.schedule-cell {
    padding: 0;
    border: 1px solid #ddd;
}
.id-part {float:left;}
.url-part {float:right;}
.time-slots {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 2px;
    padding: 5px;
}

.time-slot {
    text-align: center;
    font-size: 12px;
    padding: 5px;
    border: 1px solid #eee;
}

.time-slot .date {
    font-weight: bold;
}

.time-slot .status {
    color: #666;
    margin-top: 3px;
}

.url-link {
    color: blue;
    text-decoration: underline;
}

/* 페이지네이션 스타일 */
.dataTables_paginate {
    margin-top: 1rem;
}

.dataTables_paginate .paginate_button {
    padding: 0.5rem;
}

.dataTables_paginate .paginate_button.current {
    background: #007bff;
    color: white;
    border-radius: 4px;
}

/* 셀렉트 박스 스타일 */
.dataTables_length select {
    min-width: 80px;
}


 .list-container {
     margin: 20px auto;
 }
.list-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: move;
}
.item-content {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 10px;
}
.original-number {
    color: #666;
}
.current-number {
    color: #007bff;
}
.drag-handle {
    color: #6c757d;
    margin: 0 10px;
    cursor: move;
}
.btn-group {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.btn-up {
    background: #007bff;
    color: white;
}
.btn-down {
    background: #6c757d;
    color: white;
}
.sortable-chosen {
    background: #e9ecef;
    opacity: 0.8;
}
.sortable-ghost {
    opacity: 0.4;
    background: #c8daff;
}    .path-container {
         overflow: hidden;
         white-space: nowrap;
     }

.path-item {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.separator {
    margin: 0 5px;
    color: #6c757d;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


     /* 페이지네이션 버튼 스타일 재정의 */
 .dataTables_wrapper .dataTables_paginate {
     text-align: center;
     margin-top: 10px;
 }

.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: 0.5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 2px;
    background-color: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: #007bff;
    color: white !important;
    border-color: #007bff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    cursor: default;
    color: #666 !important;
    border: 1px solid transparent;
    background: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #e9ecef;
}


#ranktable_wrapper .dt-paging {text-align:right;}
#ranktable_wrapper .dt-paging  .current {    background-color: var(--theme-default);
    color: #fff !important;}
#ranktable_wrapper .dt-paging .previous {}
#ranktable_wrapper .dt-paging .dt-paging-button {border: unset;
    padding: 2px 10px;
    font-size: 14px;
    color: var(--body-font-color);
    margin-right: 12px;
    border-radius: 4px;
}
#ranktable_wrapper  .dt-column-order
{
    display:none !important
}

.auth-section {
    width: 100%;
    max-width: 400px;
}
.phone-input, .verify-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.zinput {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.auth-btn {
    padding: 8px 20px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.timer {
    color: #ff3b30;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.scroll-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.scroll-btn {
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scroll-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.scroll-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 스크롤바 부드럽게 만들기 */
html {
    scroll-behavior: smooth;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .scroll-buttons {
        bottom: 10px;
        right: 10px;
    }

    .scroll-btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}


.category-slider .slick-slide {
    padding: 0 15px;  /* 원하는 간격의 절반 값 */
}

.category-slider .slick-list {
    margin: 0 -15px;  /* 위의 padding 값과 동일하되 마이너스 값으로 */
}


.sidebar-wrapper {
    position: fixed;
    height: 100vh; /* 화면 전체 높이 */
    overflow-y: auto; /* 사이드바 내부에서만 스크롤 */
    background-color: #333;
}

/* 모바일에서 body 스크롤 방지 */
body.sidebar-open {
    overflow: hidden; /* 사이드바가 열릴 때 body 스크롤 차단 */
}


.dataTables_wrapper .dataTables_paginate {
    display: flex !important;
    justify-content: center;
    margin-top: 10px;
}

.paging_full_numbers {text-align:right}
.paging_full_numbers .dt-paging-button{
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
}
.paging_full_numbers .dt-paging-button + .current  {
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #000;
    color: #fff;
    cursor: pointer;
}

.dt-paging-button .paginate_button:hover {
    background-color: #007bff;
    color: white;
}

