﻿/* Overflow: auto */
div::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
    border-radius: 12px;
    margin: 15px;
}

div::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
    background-color: transparent;
}

div::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 12px;
}

/* FORM İŞLEMLERİ */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Tablolar */
table {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}
td, th {
    padding: .1rem .5rem;
}

table input, table select {
    min-width: 200px;
}

    table input[type="checkbox"] {
        min-width: auto;
        margin-right: .5rem;
    }

/* Admin Layout */
.admin-info {
    border-bottom: 1px solid;
    border-color: var(--separator);
}

    .admin-info .language-switch-container button {
        color: #f26522 !important;
        padding: 10px;
    }

    .admin-info .user img {
        width: 100%;
        max-width: 40px;
    }

@media (min-width: 992px) {
    .admin-info {
        margin-top: -1.5rem;
    }
}

.admin info .dropdown-menu {
    padding: 20px 30px 20px 30px;
}

.admin info .notification-button {
    padding: 10px;
    line-height: 9px;
}
/* Sosyal güvenlik ve Ücret bilgiler sayfası ortak */
.tarihler {
    border: 1px solid #f06320;
    border-radius: 1rem;
}

.tarihler-table tr td:nth-child(2) {
    text-align: right;
}

.tarihler-table tr td {
    padding: .5rem;
}

.tarihler-table tr {
    cursor: pointer;
    border-bottom: 1px solid;
    border-color: var(--separator);
}

    .tarihler-table tr:hover {
        color: #1eabe2;
    }
    .tarihler-table tr.selected {
        background-color: var(--separator);
    }
.empty-message {
    text-align: center;
    margin-top: .5rem;
    font-style: italic;
    font-weight: 600;
}
/* Moduller Sayfaları Listeleme Tabloları */
.list-table {
    border-spacing: 0 calc(var(--card-spacing-xs) / 10* 7) !important;
    border-collapse: separate !important;
}
    .list-table tbody tr {
        box-shadow: 0 4px 10px rgba(0, 0, 0, .03) !important;
        border-radius: var(--border-radius-lg);
        padding-bottom: .5rem;
    }
        .list-table tr:hover td {
            border-top-color: rgba(var(--separator-rgb), 1);
            border-bottom-color: rgba(var(--separator-rgb), 1);
        }
            .list-table tr:hover td:first-child {
                border-left-color: rgba(var(--separator-rgb), 1);
            }
            .list-table tr:hover td:last-child {
                border-right-color: rgba(var(--separator-rgb), 1);
            }
    .list-table th {
        padding-left: var(--card-spacing-sm);
        padding-right: var(--card-spacing-sm);
    }
    .list-table td, #PersonelList th {
        height: 42px;
        padding-left: var(--card-spacing-sm);
        padding-right: var(--card-spacing-sm);
        padding-top: .25rem;
        padding-bottom: .25rem;
        border: 1px solid transparent;
        background: var(--foreground);
        vertical-align: middle;
        white-space: nowrap;
    }
    .list-table td:first-child, #PersonelList th:first-child {
        border-top-left-radius: var(--border-radius-lg);
        border-bottom-left-radius: var(--border-radius-lg);
    }
    .list-table td:last-child, #PersonelList td:last-child {
        border-top-right-radius: var(--border-radius-lg);
        border-bottom-right-radius: var(--border-radius-lg);
    }

/* Ucret Artis Tablosu */
.list-table {
    border-spacing: 0 calc(var(--card-spacing-xs) / 10* 7) !important;
    border-collapse: separate !important;
}

    .list-table tbody tr {
        box-shadow: 0 4px 10px rgba(0, 0, 0, .03) !important;
        border-radius: var(--border-radius-lg);
        padding-bottom: .5rem;
    }

    .list-table tr:hover td {
        border-top-color: rgba(var(--separator-rgb), 1);
        border-bottom-color: rgba(var(--separator-rgb), 1);
    }

        .list-table tr:hover td:first-child {
            border-left-color: rgba(var(--separator-rgb), 1);
        }

        .list-table tr:hover td:last-child {
            border-right-color: rgba(var(--separator-rgb), 1);
        }

    .list-table th {
        padding-left: var(--card-spacing-sm);
        padding-right: var(--card-spacing-sm);
    }

    .list-table td, #ucretList th {
        height: 42px;
        padding-left: var(--card-spacing-sm);
        padding-right: var(--card-spacing-sm);
        padding-top: .25rem;
        padding-bottom: .25rem;
        border: 1px solid transparent;
        background: var(--foreground);
        vertical-align: middle;
        white-space: nowrap;
    }

        .list-table td:first-child, #ucretList th:first-child {
            border-top-left-radius: var(--border-radius-lg);
            border-bottom-left-radius: var(--border-radius-lg);
        }

        .list-table td:last-child, #ucretList td:last-child {
            border-top-right-radius: var(--border-radius-lg);
            border-bottom-right-radius: var(--border-radius-lg);
        }
/* Bordro Yönetimi */
.fixed-data {
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 9999;
}
    .fixed-data .veriler-button {
        background-color: #fff;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    }

    .fixed-data .veriler {
        position: absolute;
        width: 300px;
        right: 0;
        bottom: 70px;
    }
        .fixed-data .veriler .card-body {
            box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
        }

@media (min-width: 992px) {
    .fixed-data {
        position: absolute;
        top: 40px;
        right: 0;
        bottom: inherit;
    }
        .fixed-data.position-fixed {
            top: 82px;
            right: 2.5rem;
        }

        .fixed-data .veriler {
            position: relative;
            bottom: inherit;
            top: 0;
        }

    .masraf-alani {
        margin-right: 320px;
    }
}

/* Tablonun genel kaydırma özelliği */
.scrollable-table {
    position: relative;
    border-collapse: collapse;
    width: 100%;
    overflow: auto;
}

    .scrollable-table .sticky {
        position: sticky;
        background-color: #fff;
        z-index: 1;
    }

    .scrollable-table th:nth-child(2), .scrollable-table td:nth-child(3) {
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .scrollable-table th:nth-child(3), .scrollable-table td:nth-child(4) {
        position: sticky;
        left: 110px;
        z-index: 2;
        box-shadow: 7px 0 10px 0 #eee;
    }

    .scrollable-table th:nth-last-child(2), .scrollable-table td:nth-last-child(3) {
        position: sticky;
        right: 122px;
        z-index: 2;
        padding: 0 .5rem;
        box-shadow: -7px 0 10px #eee;
    }

    .scrollable-table th:nth-last-child(1), .scrollable-table td:nth-last-child(2) {
        position: sticky;
        right: 0;
        z-index: 2;
        padding: 0 .5rem;
    }