.table-container {
    width: 100%;
    overflow-x: auto; 
    &::-webkit-scrollbar {
        height: 6px;
    }
    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    &::-webkit-scrollbar-thumb {
        background: #D3D3D3;
        border-radius: 3px;
    }
    &::-webkit-scrollbar-thumb:hover {
        background: #C0C0C0;
    } 
    scrollbar-width: thin;
    scrollbar-color: #D3D3D3 #f1f1f1;
}
 
 
.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody {
    &::-webkit-scrollbar {
        height: 6px;
    }
    &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    &::-webkit-scrollbar-thumb {
        background: #D3D3D3;
        border-radius: 3px;
    }
    &::-webkit-scrollbar-thumb:hover {
        background: #C0C0C0;
    }
    scrollbar-width: thin;
    scrollbar-color: #D3D3D3 #f1f1f1;
}
 
.dataTables_scrollBody::-webkit-scrollbar {
    display: none;
}

.dataTables_scrollBody {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
 

#myTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
}

#myTable th, #myTable td {
    padding: 0px 5px !important;
    border: none;
    white-space: nowrap !important; 
    overflow: hidden !important; 
    text-overflow: ellipsis !important;
    width: 120px !important;
} 
#myTable td{
    padding: 8px 0px 0px 10px !important;
    font-size: 12px;
}

#myTable th {
    background-color: #f2f2f2;
    font-weight: bold;
}
 
#myTable tbody tr:nth-child(even) {
    background-color: #d2e7ffa5;
}
 
#myTable tbody tr:hover {
    background-color: #71abeebe;
}
 
#myTable thead th {
    border-bottom: 2px solid #ddd;
}

.dt-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
 
#myTable thead th {
    cursor: move;
}
 
#myTable tfoot input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box; 
}
 
.filters th {
    padding: 5px;
    background-color: #96c7ff73;  
}

.filters input { 
    padding: 4px 8px;
    box-sizing: border-box;
    background-color: #fff;  
    color: rgb(4, 4, 4);  
    border: 1px solid rgb(234, 234, 234);
    outline:none;
    border-radius: 3px; 
    width: 100% !important;
}

.filters input::placeholder {
    color: rgba(47, 47, 47, 0.7);  
}
 
.add-column-btn, .excel-btn {
    padding: 5px 10px !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    margin: 5px !important;
    position: relative;
    overflow: hidden;
}

.add-column-btn {
    background-color: #63acff !important;
    color: white !important;
}

.excel-btn {
    background-color: #27ae60 !important;
    color: white !important;
    transition: all 0.3s ease !important; 
}

.add-column-btn:hover, .excel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15) !important;
}

.add-column-btn:active, .excel-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.add-column-btn i, .excel-btn i { 
    font-size: 16px;
}

.add-column-btn span, .excel-btn span {
    font-weight: 500;
}
 
.add-column-btn::before, .excel-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all .2s ease;
}

.add-column-btn:hover::before, .excel-btn:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 50px;
    background: rgba(255,255,255,0.2); 
    transition: all .2s ease;
    padding: 20px;
    margin: 20px;
}   
 
.dt-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
 
.excel-btn {
    background-color: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 20px;
    padding: 5px 10px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important; 
}

.excel-btn:hover {
    background-color: #45a049 !important; 
} 
 
table.dataTable thead td {
  padding: 0px !important;
  border-bottom: 1px solid #111;
}
 

.edit-btn{
    background: none;
    border: none;
    cursor: pointer; 
    margin-right: 5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.edit-btn {
    color: #4f7bc0;
}
 

.edit-btn:hover, .delete-btn:hover {
    opacity: 0.7;
}
 
#myTable th:first-child,
#myTable td:first-child {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    border:none !important;
}

.dt-button-collection button.dt-button{
    background: #fff !important;
    border: none !important;
    outline: none !important;
    color: #000 !important;
    font-size: 14px !important;
}
div.dt-button-collection {
    padding: 5px !important;
    margin: 0px !important;
    border: none !important;
    background: #fff !important;

}

button.dt-button:focus:not(.disabled), div.dt-button:focus:not(.disabled), a.dt-button:focus:not(.disabled), input.dt-button:focus:not(.disabled){
    border: none !important;
    outline: none !important;   
    background: #000 !important;
}
 
.dt-button-collection {
    position: absolute;
    top: 100%; /* Position the dropdown below the button */
    left: 0;
    z-index: 1100;
    display: none;
    float: left;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}
 
.dt-button-collection button.dt-button {
    display: block;
    width: 100%;
    padding: 8px 20px;
    text-align: left;
    border: none;
    background-color: transparent;
    color: #333;
    transition: all 0.3s ease;
}
 
.dt-button-collection button.dt-button:hover {
    background-color: #f0f0f0;
    color: #000;
}
 
.dt-button-collection button.dt-button:active,
.dt-button-collection button.dt-button.active {
    background-color: #e8eefc !important;
    color: #143d8d !important;
}
 
.dt-button-collection button.dt-button:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #4a90e2;
}
  
.dt-button-collection button.dt-button.active {
    font-weight: bold;
    background-color: #e8eefc !important;
    color: #143d8d !important;
}
 
.dt-button-collection button.dt-button i {
    margin-right: 8px;
    color: #666;
}
 
.dt-button-collection button.dt-button:hover i {
    color: #333;
}
 
.dt-button-collection {
    padding: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border: none !important;
    background-color: #f8f9fa !important;
    min-width: 200px !important;
}
 
.dt-button-collection button.dt-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px !important;
    margin: 5px 0 !important;
    text-align: left;
    border: none !important;
    background-color: transparent !important;
    color: #495057 !important;
    transition: all 0.3s ease;
    border-radius: 6px !important;
    font-weight: 500 !important;
}
 
.dt-button-collection button.dt-button:hover {
    background-color: #e9ecef !important;
    color: #212529 !important;
    transform: translateX(5px);
}
 
.dt-button-collection button.dt-button:active,
.dt-button-collection button.dt-button.active {
    background-color: #e8eefc !important;
    color: #143d8d !important;
    border-radius: 0px !important;
}
 
.dt-button-collection button.dt-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}
 
.dt-button-collection button.dt-button.active {
    font-weight: bold;
    background-color: #e8eefc !important;
    color: #143d8d !important;
    border-radius: 10px !important;
}

/* Buton içindeki ikonlar için stil (varsa) */
.dt-button-collection button.dt-button i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}
 
.dt-button-collection button.dt-button:hover i {
    color: #4a90e2;
}
 
.dt-button-collection button.dt-button.active i {
    color: #ffffff;
}
 
.dt-button-collection button.dt-button:not(:last-child) {
    border-bottom: 1px solid #dee2e6 !important;
}
 
.dt-button-collection button.dt-button span {
    flex-grow: 1;
}
 
.dt-button-collection button.dt-button:not(.active) {
    opacity: 0.7;
}
 
.dt-button-collection button.dt-button:not(.active):hover {
    opacity: 1;
}
 
.dataTables_filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
 
.dataTables_filter label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
}
 
.dataTables_filter input[type="search"] { 
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100% !important;
    outline: none;
}
 
.dataTables_filter input[type="search"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}
 
.dataTables_filter label::before {
    content: "\f002";  
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #666;
}
 
.dataTables_filter input[type="search"]::placeholder {
    color: #999;
}
 
.dataTables_filter input[type="search"]:hover {
    border-color: #b3b3b3;
}

button.dt-button.active:focus:not(.disabled), div.dt-button.active:focus:not(.disabled), a.dt-button.active:focus:not(.disabled), input.dt-button.active:focus:not(.disabled){
    background: #037df7 !important;
}

tbody td{ 
    text-align: start !important; 
    padding-left: 30px !important;
}

#columnToggle {
    margin-bottom: 15px;
}
#columnToggle label {
    margin-right: 10px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}
.modal-contentx {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 400px; 
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px; 
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer; 
}

.modal h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    padding-right: 40px; /* Make space for close button */
}

.modal input[type="text"],
.modal select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal input[type="text"]:focus,
.modal select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.modal .button {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal .button:hover {
    background-color: #3a7bc8;
}

.cb-dropdown-wrap {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    z-index: 5050; /* Ensure it overlays correctly */
}

.cb-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1100; /* Higher z-index to ensure it appears above other elements */
    display: none;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    padding: 0px 0px ;
    margin: 5px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    box-shadow: 0px 0px 4px #e3e3e3;
    transition: all 0.3s ease;
}

.cb-dropdown li {
    padding: 8px 15px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.cb-dropdown li label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    margin: 0;
    padding: 5px;
}

.cb-dropdown li input[type="checkbox"] {
    /* display: none; */ /* Bu satırı kaldırın veya yorum satırı yapın */
    margin-right: 5px;
    vertical-align: middle;
}

.cb-dropdown li .custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cb-dropdown li .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cb-dropdown li input[type="checkbox"]:checked + label .custom-checkbox {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.cb-dropdown li input[type="checkbox"]:checked + label .custom-checkbox::after {
    opacity: 1;
}

.cb-dropdown li:hover {
    background-color: #f8f9fa;
}

.cb-dropdown li.active {
    background-color: #e2efff;
    margin: 5px;
    font-weight: 600;
}

.filter-icon {
    cursor: pointer;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #5b5b5b;
    transition: color 0.3s ease;
}

.filter-icon:hover {
    color: #a5a5a5;
}

.add-column-btn {
    position: relative;
    display: inline-block;
}

.add-column-btn::after {
    content: '\f0d7'; /* FontAwesome down arrow */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 5px;
    color: #fff;
}

.add-column-btn:hover::after {
    color: #ccc;
}

.custom-table.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: white !important;
}

.table-striped {--bs-table-striped-bg: #ffffff;}


#saveLayout, #loadLayout{
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 5px;
    position: relative;
    overflow: hidden;
    background-color: #ebf1ff;
    color: #143d8d;
}     
#saveLayout:hover, #loadLayout:hover{ 
    box-shadow: 0 6px 8px rgba(0,0,0,0.15) !important;
}
#saveLayout:active, #loadLayout:active{ 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}   
#saveLayout:before, #loadLayout:before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all .2s ease;
}

#saveLayout:hover:before, #loadLayout:hover:before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 50px;
    background: rgba(255,255,255,0.2); 
    transition: all .2s ease;
    border-radius: 50%;
    padding: 20px;
    margin: 20px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }

    .modal h2 {
        font-size: 20px;
    }

    .modal input[type="text"],
    .modal select,
    .modal button {
        font-size: 14px;
    }
}

/* Mevcut CSS kodunuzun sonuna bu stilleri ekleyin veya güncelleyin */

.table-controls {
    background-color: #ecf4ff;
    padding: 10px; 
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px; 
    margin:0px 0px 0px 0px;
}

.table-controls .btn {
    white-space: nowrap;
}

.table-controls .dataTables_filter {
    margin-bottom: 0;
}

.table-controls .dt-buttons {
    margin-bottom: 0;
}

@media (max-width: 635px) {
    .table-controls { 
        align-items: center !important;
        gap: 10px;
    }

    .table-controls > div {
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .table-controls .dataTables_filter {
        text-align: center;
    }

    .table-controls .dataTables_filter label {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .table-controls .dataTables_filter input[type="search"] {
        width: 100% !important;
        max-width: none;
    }

    .table-controls .dt-buttons {
        justify-content: center;
    }
    .template-dropdown { 
        left: -170px !important; 
    }
    
}

.dataTables_filter label::before {
    content: '';
}
 ;
@media (max-width: 600px) {
    .table-controls .btn,
    .table-controls .dt-button {
        width: 100%;
        margin-bottom: 5px;
    }

    .table-controls .dataTables_filter {
        width: 100%;
    }

    .table-controls .dataTables_filter label {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .table-controls .dataTables_filter input[type="search"] {
        width: 100% !important;
        margin-top: 5px;
    }

}

.table>:not(caption)>*>*{
    padding: 2px !important;
}


.xl{
    width: 100% !important;
    background: red;
    padding: 200px;
}

/* Sticky header için gerekli stiller */
.dataTables_scrollHead {
    position: sticky !important;
    top: 0;
    z-index: 999;
    background: #ecf4ff;
}

.dataTables_scrollHead thead tr:first-child th {
    position: sticky !important;
    top: 0;
    z-index: 1001;
    background: #beddff;
    color: #5b5b5b;
    font-weight: 700;
}
.dataTables_scrollHeadInner{
    padding: 0px !important;
}

.dataTables_scrollHead thead tr.filters th {
    position: sticky !important;
    top: 37px;  
    z-index: 1001;
    background: #beddff;
}

/* Gölgelendirme efekti için */
.dataTables_scrollHead::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 5px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

/* Scroll bar stilleri için ince ayar */
.dataTables_scrollBody {
    min-height: 74vh;
    overflow-y: scroll !important;
    border-bottom: 1px solid #ddd;
}

/* Table container yükseklik ayarı */
.table-container {
    /* height: calc(100vh - 200px); Üst menü yüksekliğine göre ayarlayın */
    overflow: hidden;
}

/* Mobil uyumluluk için */
@media (max-width: 768px) {
    .dataTables_scrollHead thead tr.filters th {
        top: 33px; /* Mobil görünümde header yüksekliğine göre ayarlayın */
    }
    
    .table-container {
        height: calc(100vh - 150px);
    }
}

/* Template menu styles */
.template-menu {
    position: relative;
}

.template-toggle {   
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    transition: color 0.3s ease; 
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #63acff;
}

.template-toggle:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15) !important;
}

.template-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    min-width: 220px;
    padding: 8px 14px 8px 8px;
}

.template-dropdown.show {
    display: block;
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px 10px;
    border: none;
    background: #ebf1ff;
    color: #143d8d;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 5px;
    white-space: nowrap;
    font-weight: 500;
}

.template-item i {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #143d8d;
}

.template-item:hover {
    background-color: #e6eeff;
    color: #143d8d;
    transform: translateX(5px);
}

.template-item:active {
    background-color: #d1e0ff;
    transform: translateX(5px) scale(0.98);
}

/* Tüm template itemlar için ortak hover ve active stilleri */
.template-item:hover {
    background-color: #e6eeff;
    color: #143d8d;
    transform: translateX(5px);
}

.template-item:active {
    background-color: #d1e0ff;
    transform: translateX(5px) scale(0.98);
}

/* Separator çizgisi */
.template-item {
    border-bottom: 1px solid #eee;
}

.template-item:last-child {
    border-bottom: none;
}

/* Hover efektinde ikon animasyonu */
.template-item:hover i {
    transform: scale(1.1);
    color: #143d8d;
}

/* Aktif durum */
.template-item:active i {
    transform: scale(0.95);
}

/* Eski farklı stilleri kaldır */
#saveLayout.template-item,
#loadLayout.template-item,
#excelExport.template-item {
    font-weight: 500; 
    border-bottom: 1px solid #dadada;
}

#saveLayout.template-item:hover,
#loadLayout.template-item:hover,
#excelExport.template-item:hover {
    background-color: #e6eeff;
    color: #143d8d;
}


.d-nonee {
    display: none !important;
}
 

/* Modal backdrop'ı gizle */
.modal-backdrop {
    display: none !important;
}

/* Modal için opsiyonel stil - backdrop olmadığında daha belirgin olması için */
.modal {
    background: rgba(0,0,0,0.1);
}

/* DataTables button collection dropdown pozisyonu düzeltmesi */
.dt-button-collection {
    left: auto !important;
    right: 0 !important; /* Sağdan hizalama */
    transform: translate(-30px, 10px) !important; /* Sola kaydırma */
}

/* Dropdown içeriğinin taşmasını önlemek için */
.dt-button-collection .dropdown-menu {
    left: auto !important;
    right: 0 !important;
} 