/* INDEX ERP shared DataTables actions. Scoped to the existing Buttons toolbar. */
.dt-buttons:has(.erp-dt-action){display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:0 0 12px}
/* The legacy DataTables toolbar uses a 1/8/3 Bootstrap split, which places
   the buttons left of the report centre. Balance the side columns without
   changing the table, search, or page-specific controls. */
@media(min-width:992px){
  .dataTables_wrapper .row:has(> .col-sm-8 > .dt-buttons .erp-dt-action) > .col-sm-1{width:16%}
  .dataTables_wrapper .row:has(> .col-sm-8 > .dt-buttons .erp-dt-action) > .col-sm-8{width:68%}
  .dataTables_wrapper .row:has(> .col-sm-8 > .dt-buttons .erp-dt-action) > .col-sm-3{width:16%}
}
.dt-buttons .erp-dt-action{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:36px;margin:0;padding:7px 6px;border:1px solid #d7def0;
  border-radius:9px;background:#fff;color:#263652;font-size:12px;font-weight:700;
  line-height:1.2;text-decoration:none;white-space:nowrap;
  box-shadow:0 1px 3px rgba(28,42,78,.06);transition:background .15s,border-color .15s,box-shadow .15s,color .15s;
}
.dt-buttons .erp-dt-action > span{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.2}
.dt-buttons .erp-dt-action .fa{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;font-size:14px;line-height:1}
.dt-buttons .erp-dt-csv .fa{color:#07815d}
.dt-buttons .erp-dt-excel .fa{color:#16803b}
.dt-buttons .erp-dt-pdf .fa{color:#cf334a}
.dt-buttons .erp-dt-print .fa,
.dt-buttons .erp-dt-colvis .fa{color:#4d3bc9}
.dt-buttons .erp-dt-action:hover,
.dt-buttons .erp-dt-action:focus{
  border-color:#8575e5;background:#f6f4ff;color:#34248c;
  box-shadow:0 0 0 3px rgba(91,68,211,.12);outline:0;
}
.dt-buttons .erp-dt-action:active,
.dt-buttons .erp-dt-action.active{background:#ece9ff;border-color:#6551d1}
.dt-buttons .erp-dt-action.disabled,
.dt-buttons .erp-dt-action:disabled{opacity:.5;box-shadow:none;cursor:not-allowed}
.dt-button-collection .buttons-columnVisibility{display:flex;align-items:center;gap:8px;min-height:30px;padding:6px 10px;border-radius:6px}
.dt-button-collection .buttons-columnVisibility:hover,
.dt-button-collection .buttons-columnVisibility:focus{background:#f1efff;color:#3525a1}
.dt-button-collection .buttons-columnVisibility.active:before{content:'\2713';color:#1b8a61;font-weight:800}
@media(max-width:767px){
  .dt-buttons:has(.erp-dt-action){width:100%;justify-content:center;gap:6px}
  .dt-buttons .erp-dt-action{min-height:38px;padding:8px 10px}
}
