.entry-title {
  display: none !important;
}

.agq-dashboard {
  margin: 20px 0;
}

.agq-search-box {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

.agq-search-box input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
  width: 250px;
  height: 40px;
}

.agq-dashboard-btn,
.agq-btn-search {
  padding: 8px 15px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  height: 40px;
}

.agq-dashboard-btn {
  border-radius: 4px;
}

.agq-btn-search:hover,
.agq-dashboard-btn:hover {
  background: #045cb4;
  border-color: #045cb4;
  color: white;
}

.agq-btn-clear {
  margin-left: 10px;
  text-decoration: none;
  font-size: 14px;
  color: #666;
  align-self: center;
}

.agq-table-wrapper {
  position: relative;
}

/* Overlay Transparan */
.agq-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease-in;
  display: none; /* Default tersembunyi */
  opacity: 1;
}

/* Animasi Spinner */
.agq-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  animation: agq-spin 1s linear infinite;
}

.agq-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.agq-table th,
.agq-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.agq-table th {
  background-color: #f8f9fa;
}

.action-col {
  width: 10.2rem;
}

.action-container {
  display: flex;
  gap: 10px;
}

.agq-count {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.agq-btn {
  cursor: pointer;
  background: #2196f3;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  min-width: 110px;
  height: 40px;
  white-space: nowrap;
}

.agq-btn:hover {
  background: #1976d2;
  color: white;
}

.delete-btn,
.delete-btn:focus {
  background-color: red;
}

.delete-btn:hover,
.delete-btn:active {
  background-color: rgb(185, 1, 1);
}

.success-btn,
.success-btn:focus {
  background-color: #2e7d32;
  color: white;
}

.success-btn:hover,
.success-btn:active {
  background-color: #246428;
}

.review-btn,
.review-btn:focus {
  background-color: #0073aa;
}

.review-btn:hover,
.review-btn:active {
  background-color: #016694;
}

.outline-btn,
.outline-btn:focus,
.outline-btn:hover,
.outline-btn:active {
  background-color: transparent;
  box-shadow: none;
  min-width: fit-content;
}

button:disabled,
button:disabled:hover {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.6;
}

.agq-pagination-wrapper {
  padding: 0;
}

.agq-pagination-flex {
  display: flex;
  justify-content: space-between; /* Teks di kiri, tombol di kanan */
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Info Teks (Page 1 of 1) */
.agq-pagination-info {
  font-size: 14px;
  color: #555;
  background: #f9f9f9;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
}

/* Navigasi Tombol */
.agq-pagination-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.agq-pagination-container ul.page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.agq-pagination-container .page-numbers li a,
.agq-pagination-container .page-numbers li span {
  padding: 6px 12px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #0073aa;
  border-radius: 4px;
  min-width: 35px;
  text-align: center;
  display: inline-block;
}

.agq-pagination-container .page-numbers li span {
  height: 40px;
}

.agq-pagination-container .page-numbers li span.current {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.agq-pagination-container .page-numbers li a:hover {
  background: #0073aa;
  color: white;
}

.agq-no-results {
  padding: 50px 20px !important;
  text-align: center;
  background-color: #fafafa;
}

.agq-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.agq-icon-info {
  font-size: 30px;
  margin-bottom: 5px;
}

.agq-empty-state p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.agq-empty-state strong {
  color: #e74c3c;
}

.agq-btn-reset-small {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none !important;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}

.agq-btn-reset-small:hover {
  background-color: #005177;
  color: #fff;
}

.agq-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.agq-limit-selector {
  font-size: 14px;
  color: #666;
}

.agq-limit-selector select {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 5px;
  cursor: pointer;
  height: 40px;
}

.agq-sort-link {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.agq-sort-link:hover {
  color: #0073aa;
}

/* Opsional: Berikan warna berbeda pada kolom yang sedang aktif */
th a.agq-sort-link {
  position: relative;
}

.agq-btn:has(.agq-dashboard-icon) {
  min-width: 45px;
  padding: 5px;
}

.agq-dashboard-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.aq-dashboard-list {
  width: 100%;
  overflow: auto;
}

.agq-error {
  text-align: center;
  font-size: 28px;
}

@keyframes agq-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.swal2-confirm {
  background-color: #d33 !important;
}

.swal2-confirm:hover {
  background-color: rgb(173, 35, 35) !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-confirm:hover,
.swal2-cancel:hover {
  color: white !important;
}

/* Styling for mobile */
@media (max-width: 480px) {
  .aq-dashboard-list .agq-table {
    width: calc(100% + 200px);
  }

  .action-col {
    min-width: 170px;
  }

  .agq-search-box input[type="text"] {
    width: 242px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .action-col {
    width: 23%;
  }
}

/* Styling for Tablet (iPad Air, iPad Mini, Pro 11-inch) */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .action-col {
    width: 17%;
  }
}
