/**
 * Previous records to users - Table css
 */
.wn-lesi-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.wn-lesi-table th,
.wn-lesi-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}
.wn-lesi-table th {
  color: #fff;
}

div.dt-container div.dt-layout-row div.dt-layout-cell.dt-layout-start {
  flex: 1;
}

.dt-search {
  display: flex;
}

#wn-lesi-table_wrapper .dt-length {
  display: flex;
  gap: 5px;
  align-items: center;
  flex: 1;
}

#wn-lesi-table_wrapper .dt-layout-row .dt-length select {
  width: 70px !important;
}

#wn-lesi-table_wrapper .wn-lesi-table thead th .dt-column-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center;
  gap: 4px;
}

.wn-lesi-table thead {
  background-color: #f5f5f5;
  font-weight: bold;
}
.wn-lesi-table table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
  text-align: left !important;
}

.wn-lesi-table table.dataTable th.dt-type-numeric div.dt-column-header,
table.dataTable th.dt-type-numeric div.dt-column-footer,
table.dataTable th.dt-type-date div.dt-column-header,
table.dataTable th.dt-type-date div.dt-column-footer,
table.dataTable td.dt-type-numeric div.dt-column-header,
table.dataTable td.dt-type-numeric div.dt-column-footer,
table.dataTable td.dt-type-date div.dt-column-header,
table.dataTable td.dt-type-date div.dt-column-footer {
  flex-direction: row !important;
}
table.dataTable th.dt-type-numeric div.dt-column-header {
  flex-direction: row !important;
}
table.dataTable thead > tr > th div.dt-column-header span.dt-column-title {
  flex-grow: 0 !important;
}

.wn-lesi-table table.dataTable th.dt-type-numeric {
  text-align: left !important;
}
.wn-lesi-table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

.wn-lesi-table tbody tr:nth-child(even) {
  background-color: #f0f8ff;
}

.wn-lesi-table tbody tr:hover {
  background-color: #e6f7ff;
}

#wn-retake-form button {
  padding: 15px 30px !important;
}

.wn-btn-primary {
  background: #074b79;
  border: none;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  border-radius: 5px;
  padding: 5px 15px;
  transition: 0.3s;
  box-shadow: none !important;
  margin: 10px 0 0;
  cursor: pointer;
}

.wn-btn-primary:hover {
  opacity: 0.9;
}

/* ==============================
   WN LESI TABLE STYLING
   ============================== */
.wn-lesi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* Table Header */
.wn-lesi-table thead {
  background-color: #074b79;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.wn-lesi-table thead th {
  padding: 12px 15px;
  border: none;
  text-align: left;
}

/* Table Rows */
.wn-lesi-table tbody tr {
  border-bottom: 1px solid #e8e8e8;
  transition: background 0.2s ease;
}

.wn-lesi-table tbody tr:hover {
  background: rgba(7, 75, 121, 0.05);
}

.wn-lesi-table tbody td {
  padding: 12px 15px;
}
div.dt-container .dt-paging .dt-paging-button:hover {
  background: #074b79 !important;
  border-color: #074b79 !important;
}
