/* DataTables Bootstrap 5 custom tweaks for controls to match the custom header look */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    color: #0d6efd;
    margin-bottom: 0;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 2px rgba(13,110,253,0.04);
    border: 1px solid #b6d4fe;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_wrapper .dataTables_length select.form-select,
.dataTables_wrapper .dataTables_filter input.form-control {
    border-radius: 0.5rem;
    border: 1px solid #b6d4fe;
    padding: 0.25rem 0.75rem;
    font-size: 0.95rem;
    background: #fff;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select.form-select {
    width: auto;
    display: inline-block;
}

.dataTables_wrapper .dataTables_filter input.form-control {
    width: 180px;
    display: inline-block;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.5rem !important;
    margin: 0 2px;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: #0d6efd !important;
        color: #fff !important;
        border: none !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #e2e6ea !important;
        color: #0d6efd !important;
    }

/* Column width tweaks for Invoice table */
#invoiceTable {
    table-layout: auto; /* default; can switch to fixed if needed */
}

#invoiceTable th.dt-col-doc-number,
#invoiceTable td.dt-col-doc-number {
    width: 12%;
}

#invoiceTable th.dt-col-url,
#invoiceTable td.dt-col-url {
    width: 38%;
}
