.app-grid-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.app-grid {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
}

.app-grid th,
.app-grid td {
  vertical-align: middle;
}

.app-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

.app-grid tbody tr:nth-of-type(even) {
  background-color: #fcfcfd;
}

.app-grid tbody tr:hover {
  background-color: #f3f8ff;
}

.app-grid tbody tr.app-row-selected,
.app-grid tbody tr.app-row-selected:hover {
  background-color: #dceeff !important;
  box-shadow: inset 3px 0 0 #0d6efd;
}

.app-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  color: #495057;
}

.app-grid-meta {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #4f5863;
}

.app-pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .75rem;
  padding: .6rem .75rem;
  background: #dfe4ea;
  border: 1px solid #cfd5dc;
  border-radius: 0;
}

.app-pagination-wrap .pagination {
  margin-bottom: 0;
  gap: .25rem;
}

.app-grid-pagination .page-link {
  min-width: 40px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .2rem .55rem;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  color: #343a40;
  border: 1px solid #c3c9d1;
  border-radius: .2rem;
  background: #f5f7fa;
}

.app-grid-pagination .page-link:hover {
  color: #1f2328;
  background: #e7ebf0;
  border-color: #b8bec7;
}

.app-grid-pagination .page-item.disabled .page-link {
  background: #eef1f4;
  color: #8a929a;
  border-color: #d5dbe2;
  opacity: 1;
}

.app-grid-pagination .page-item.active .page-link {
  background: #cfd6df;
  color: #2f353b;
  border-color: #bcc4ce;
}

.date-clear-wrap {
  position: relative;
}

.date-clear-wrap > input[type="date"],
.date-clear-wrap > input[type="datetime-local"] {
  padding-right: 2.3rem;
}

.btn-date-clear {
  position: absolute;
  right: .45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 117, 125, 0.12);
  color: #6c757d;
  transition: all .18s ease-in-out;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.btn-date-clear:hover {
  background: #dc3545;
  color: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 2px 6px rgba(220,53,69,.35);
}

.btn-date-clear:disabled {
  opacity: .35;
  cursor: not-allowed;
}
