﻿body {
    padding-top: 0;
    padding-bottom: 0;
}

a, button {
    outline: none !important;
}

.container-fluid {
    width: 100%;
}

.body-content {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

/* Legacy pages: keep readable defaults; admin-theme overrides max-width */
input,
select,
textarea {
    max-width: none;
}

/* Sticky header trong scroll container — bỏ sticky global gây lệch với DT */
.table thead tr th {
    text-align: center;
    vertical-align: middle;
}

fieldset {
    margin-bottom: 15px;
}

    fieldset legend {
        padding: 5px 0 15px;
        font-size: 14pt;
    }

.dt-processing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 9999;
    background: #20a0ff;
    color: #fff;
}
/* Mobile responsive cho DataTable */
@media (max-width: 768px) {
    #tblLicense_wrapper .dt-length {
        padding: 5px;
    }

        #tblLicense_wrapper .dt-length label {
            width: 100%;
            display: flex;
            white-space: nowrap;
            gap: 7px;
            align-items: center;
        }

    #tblLicense_wrapper .dt-search {
        padding: 5px;
        display: flex;
        white-space: nowrap;
        gap: 7px;
        align-items: center;
    }
    /* Wrapper scroll ngang */
    .dataTables_wrapper {
        width: 100%;
    }

    table.dataTable {
        width: 100% !important;
        font-size: 13px;
    }

        table.dataTable th,
        table.dataTable td {
            padding: 8px 10px;
            vertical-align: middle;
        }

    /* Search box full width */
    .dataTables_filter {
        width: 100%;
        margin-bottom: 10px;
        text-align: left !important;
    }

        .dataTables_filter input {
            width: 100% !important;
            margin-left: 0 !important;
        }

    /* Length select full width */
    .dataTables_length {
        width: 100%;
        margin-bottom: 10px;
        text-align: left !important;
    }

        .dataTables_length select {
            width: 100%;
        }

    /* Info + Pagination xuống dòng */
    .dataTables_info,
    .dataTables_paginate {
        width: 100%;
        text-align: center !important;
        margin-top: 10px;
    }

        .dataTables_paginate .paginate_button {
            padding: 4px 8px !important;
            margin: 2px;
            font-size: 13px;
        }

    /* Khoảng cách control top */
    .dataTables_wrapper .top,
    .dataTables_wrapper .bottom {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    ul#licenseTabs.nav > li > a {
        padding: 7px 5px;
        font-size: 13px;
    }
}
