﻿/* =========================
   DATATABLE MODERN DESIGN
   ========================= */

table.dataTable {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-size: 14px;
}

    /* HEADER */
    table.dataTable thead th {
        background: linear-gradient(135deg, #1e88e5, #1565c0);
        color: #fff;
        padding: 14px 16px;
        font-weight: 600;
        border-bottom: none;
        position: relative;
        cursor: pointer;
        white-space: nowrap;
    }

        /* SORT ICONS (NO IMAGE) */
        table.dataTable thead th.sorting:after,
        table.dataTable thead th.sorting_asc:after,
        table.dataTable thead th.sorting_desc:after {
            position: absolute;
            right: 10px;
            font-size: 11px;
            opacity: 0.7;
        }

        table.dataTable thead th.sorting:after {
            content: "⇅";
        }

        table.dataTable thead th.sorting_asc:after {
            content: "↑";
        }

        table.dataTable thead th.sorting_desc:after {
            content: "↓";
        }

    /* BODY */
    table.dataTable tbody td {
        padding: 12px 16px;
        border-bottom: 1px solid #f1f1f1;
        color: #333;
    }

    table.dataTable tbody tr:nth-child(even) {
        background-color: #fafafa;
    }

    table.dataTable tbody tr:hover {
        background-color: #e3f2fd;
        transition: 0.2s;
    }

    /* FOOTER */
    table.dataTable tfoot {
        background: #f5f5f5;
        font-weight: 600;
    }

/* SEARCH BOX */
.dataTables_filter {
    float: right;
    margin-bottom: 12px;
}

    .dataTables_filter input {
        padding: 8px 14px;
        border-radius: 20px;
        border: 1px solid #ddd;
        outline: none;
        transition: 0.3s;
    }

        .dataTables_filter input:focus {
            border-color: #1e88e5;
            box-shadow: 0 0 0 3px rgba(30,136,229,0.15);
        }

/* PAGINATION */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
    text-align: right;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 6px 14px;
        margin: 0 3px;
        border-radius: 20px;
        border: none;
        background: #e3f2fd;
        color: #1565c0 !important;
        font-weight: 500;
        cursor: pointer;
        transition: 0.3s;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
            background: #1e88e5;
            color: #fff !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current {
            background: #1565c0;
            color: #fff !important;
        }

        .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
            background: #f1f1f1;
            color: #aaa !important;
            cursor: not-allowed;
        }

/* INFO TEXT */
.dataTables_info {
    margin-top: 12px;
    color: #555;
}

/* ALIGN HELPERS */
.text_align_right {
    text-align: right;
}

.text_align_center {
    text-align: center;
}

.text_align_left {
    text-align: left;
}

.Display_None {
    display: none;
}
