/* ===============================
   DATATABLES CUSTOM BUTTON STYLE
   =============================== */

/* Wrapper atas (button + search) */
.dataTables_wrapper .dt-buttons {
  float: left;
  margin-bottom: 0;
}

/* Bikin sejajar dengan search */
.dataTables_wrapper .dataTables_filter {
  float: right;
  text-align: right;
}

/* Target spesifik tombol export */
.dataTables_wrapper .dt-buttons .btn,
.dataTables_wrapper .dt-buttons .btn-secondary {
  color: #fff;
    background-color: #0c450d;
    border-color: #077553;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 600;
  box-shadow: none !important;
  line-height: 1.5;
}

/* Hover */
.dataTables_wrapper .dt-buttons .btn:hover,
.dataTables_wrapper .dt-buttons .btn-secondary:hover {
  background-color: #f2f2f2 !important;
  color: #000 !important;
}

/* Focus / active (hilangkan biru Bootstrap) */
.dataTables_wrapper .dt-buttons .btn:focus,
.dataTables_wrapper .dt-buttons .btn-secondary:focus,
.dataTables_wrapper .dt-buttons .btn:active {
  outline: none !important;
  box-shadow: none !important;
}
/* Hover effect */
.dataTables_wrapper .dt-button:hover {
  background: #f1f1f1 !important;
  color: #000 !important;
}

/* Hilangkan background merah bawaan */
.dataTables_wrapper .dt-button.btn-secondary {
  background: #fff !important;
}

/* Input search */
.dataTables_wrapper .dataTables_filter input {
  height: 28px;
  font-size: 12px;
  padding: 4px 8px;
  margin-left: 6px;
}
/* ===============================
   CUSTOM DATATABLES HEADER
   =============================== */

.table thead.thead-dark th,
.table.dataTable thead.thead-dark th,
.dataTables_wrapper .table thead.thead-dark th {
    color: #fff !important;
    background-color: #156300 !important;
    border-color: #034303 !important;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===============================
   FORCE STRIPED DATATABLES
   =============================== */

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.05) !important;
}
table.dataTable tbody tr:hover {
    background-color: rgba(21, 99, 0, 0.25) !important;
}


/* Responsive di mobile */
@media (max-width: 576px) {
  .dataTables_wrapper .dt-buttons,
  .dataTables_wrapper .dataTables_filter {
    float: none;
    text-align: left;
    margin-bottom: 10px;
  }
}