/* Admin custom styles */
.admin-detail-content {
  max-width: 720px;
}
.admin-detail-content.admin-detail-with-remarks {
  max-width: 1100px;
}

.details-tab-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .details-tab-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .details-tab-main {
    flex: 1;
    min-width: 0;
  }
  .details-tab-remarks {
    flex-shrink: 0;
    width: 320px;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(112, 112, 112, 0.1);
  }
}
.listing-remarks-list {
  max-height: 500px;
  overflow-y: auto;
}

.detail-label-log-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-label-log-card {
  min-width: 200px;
  padding: 1rem;
  border: 1px solid rgba(112, 112, 112, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.detail-label-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid #d6e5ff;
  color: #23406f;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 600;
}

.detail-label-pill-score {
  color: #5f7397;
  font-size: 0.75rem;
  font-weight: 500;
}

.google-vision-table tbody td {
  min-height: 140px;
  padding: 1rem 0.75rem;
  vertical-align: middle;
}
.google-vision-thumb {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}
.google-vision-json {
  max-height: 180px;
  min-width: 420px;
  overflow: auto;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.admin-shell {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  width: 100%;
}
.admin-sidebar {
  flex-shrink: 0;
  width: 220px;
  min-width: 220px;
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid #edf0f8;
  box-shadow: 0 0 0 1px rgba(0,0,0,.03);
}
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
  background: radial-gradient(circle at 12% -10%, #fff 0, #f5f8ff 40%, #f4f6fb 100%);
  min-height: 100vh;
}
.admin-nav {
  padding: 1rem;
}
.admin-nav .nav-link {
  border-radius: 12px;
  color: var(--muted, #6c757d);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}
.admin-nav .nav-link:hover {
  background: #f4f6fb;
  color: var(--text, #1d212c);
}
.admin-nav .nav-link.active {
  background: linear-gradient(145deg, #2e6bff, #4a83ff);
  color: #fff;
}
@media (max-width: 767px) {
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #edf0f8;
  }
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal[hidden] {
  display: none !important;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.admin-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
}
.admin-modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
}
.admin-modal-close-btn:hover {
  color: #1d212c;
}
.admin-modal-body.loading {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}
.admin-status-modal-body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.admin-status-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
}
body.modal-open {
  overflow: hidden;
}

.admin-actions .ph {
  font-size: 1.1rem;
}

.admin-audit-modal-content {
  max-width: 520px;
}
.audit-log-popup-title { font-size: 1.1rem; margin: 0 0 1rem; }
.audit-log-list-title { font-size: 0.95rem; margin: 0 0 0.5rem; }
.audit-log-entries { max-height: 280px; overflow-y: auto; }
.audit-log-changes { font-size: 0.85rem; }

.admin-pending-edit-changes-modal-content {
  max-width: 680px;
}
.pending-edit-changes-image-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.pending-edit-changes-image-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.pending-edit-changes-image-cell img {
  height: 120px;
  width: 150px;
  object-fit: cover;
  border-radius: 0.375rem;
}
.pending-edit-changes-arrow {
  font-size: 1.25rem;
}

.admin-transfer-slip-modal-content {
  max-width: 560px;
}
.transfer-slip-popup-title { font-size: 1.1rem; margin: 0 0 1rem; }
.transfer-slip-popup-image {
  max-height: 70vh;
  overflow: auto;
}
.transfer-slip-popup-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.component-tabs {
  width: 100%;
}
.component-tabs .tab-navs-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  width: 100%;
  overflow-x: auto;
  padding: 1rem 0 0 0;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(112, 112, 112, 0.1);
}
.component-tabs .tab-navs-container .tab-nav {
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  white-space: nowrap;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  border: 2px solid rgba(112, 112, 112, 0.1);
  background: #f8f9fa;
  text-decoration: none;
}
.component-tabs .tab-navs-container .tab-nav:hover {
  background: #eef3ff;
  color: #2e6bff;
}
.component-tabs .tab-navs-container .tab-nav.active {
  background: #fff;
  color: #2e6bff;
  border-bottom-color: #fff;
  font-weight: 600;
}
.component-tabs .tabs .tab {
  display: none;
  visibility: hidden;
  padding: 1.5rem 0 0 0;
  width: 100%;
}
.component-tabs .tabs .tab.active {
  display: block;
  visibility: visible;
}

.admin-settings-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #1d212c);
}
.admin-settings-form .form-control,
.admin-settings-form .form-select {
  border-radius: 8px;
  border: 1px solid #dce4f5;
  padding: 0.5rem 0.75rem;
}
.admin-settings-form .form-control:focus,
.admin-settings-form .form-select:focus {
  border-color: #2e6bff;
  box-shadow: 0 0 0 2px rgba(46, 107, 255, 0.15);
  outline: none;
}
.admin-settings-form .btn-primary {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}
