:root {
  --admin-bg: #f5f6f8;
  --admin-card-bg: #ffffff;
  --admin-sidebar-bg: #0b1e36;
  --admin-sidebar-hover: #163255;
  --admin-sidebar-active: #1d416f;
  --admin-primary: #0f2a4a;
  --admin-accent: #c59b27;
  --admin-accent-hover: #b0891d;
  --admin-text-main: #1c2530;
  --admin-text-muted: #5e6b7c;
  --admin-border: #e2e6ea;
  --admin-success: #198754;
  --admin-warning: #b78103;
  --admin-danger: #dc3545;
  --admin-shadow: 0 4px 16px rgba(11, 30, 54, 0.06);
  --admin-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  line-height: 1.5;
  min-height: 100vh;
}

/* Layout */
.admin-app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar-bg);
  color: #f1f4f8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  background: var(--admin-accent);
  color: #0b1e36;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-brand-logo {
  width: 64px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 3px;
  border-radius: 4px;
  background: #fff;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #9cb2cb;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #c4d3e5;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background-color: var(--admin-sidebar-hover);
  color: #ffffff;
}

.nav-item.active {
  background-color: var(--admin-sidebar-active);
  color: #ffffff;
  font-weight: 600;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--admin-accent);
  color: #0b1e36;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
}

/* Lucide Icons */
.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-item .lucide {
  width: 18px;
  height: 18px;
  color: #c4d3e5;
}

.nav-item:hover .lucide,
.nav-item.active .lucide {
  color: #ffffff;
}

.stat-icon .lucide {
  width: 24px;
  height: 24px;
  color: var(--admin-primary);
}

.btn .lucide {
  width: 15px;
  height: 15px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: #9cb2cb;
}

/* Main Area */
.admin-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--admin-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content-body {
  padding: 28px;
  flex: 1;
}

/* Section Views */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Cards & Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 20px;
  box-shadow: var(--admin-shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eef3f9;
  color: var(--admin-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--admin-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.content-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow);
  margin-bottom: 24px;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--admin-primary);
}

.card-body {
  padding: 24px;
}

/* Forms & Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-group { min-width: 0; }
.modal-box > form { display: flex; flex-direction: column; min-height: 0; }
.modal-header { flex-shrink: 0; }

@media (max-width: 1100px) {
  .form-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .content-body { padding: 16px; }
  .admin-topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .topbar-left { min-width: 0; gap: 10px; }
  .page-title { font-size: 17px; overflow-wrap: anywhere; }
  .mobile-toggle { width: 44px; height: 44px; flex-shrink: 0; }
  .card-header { padding: 16px; flex-wrap: wrap; gap: 12px; }
  .card-body { padding: 16px; }
  .form-grid--three, .form-grid--two { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  body .modal-overlay { padding: 10px; }
  .modal-overlay .modal-box { max-height: calc(100dvh - 20px); }
  .modal-box .modal-header, .modal-box .modal-body, .modal-box .modal-footer { padding: 16px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; min-height: 44px; }
  .document-grid .document-card { flex-wrap: wrap; padding: 16px; }
  .document-card .document-actions { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .image-uploader-actions .btn { min-height: 44px; }
  .login-screen .login-card { padding: 24px 20px; }
  .toast { max-width: calc(100vw - 32px); }
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--admin-text-main);
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--admin-text-main);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.1);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--admin-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: #173d69;
}

.btn-accent {
  background-color: var(--admin-accent);
  color: #0b1e36;
  font-weight: 600;
}
.btn-accent:hover {
  background-color: var(--admin-accent-hover);
}

.btn-secondary {
  background-color: #fff;
  border-color: var(--admin-border);
  color: var(--admin-text-main);
}
.btn-secondary:hover {
  background-color: #f8f9fa;
  border-color: #ced4da;
}

.btn-danger {
  background-color: var(--admin-danger);
  color: #fff;
}
.btn-danger:hover {
  background-color: #bb2d3b;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.table-responsive .admin-table { min-width: 680px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background-color: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--admin-text-muted);
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #fbfcfe;
}

/* Badges */
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-available {
  background-color: #e7f6ec;
  color: #0f6831;
}

.status-under-offer {
  background-color: #fef5e7;
  color: #925805;
}

.status-sold {
  background-color: #f0f2f5;
  color: #555f6d;
}

.status-new {
  background-color: #e2f0fd;
  color: #0c5bb5;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 54, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: var(--admin-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--admin-text-muted);
}

.modal-body {
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: #fafbfc;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: #ffffff;
  color: var(--admin-text-main);
  padding: 12px 18px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--admin-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.2s ease forwards;
}

.toast.toast-success {
  border-left-color: var(--admin-success);
}

.toast.toast-error {
  border-left-color: var(--admin-danger);
}

/* =======================================
   IMAGE UPLOADER WIDGET
   ======================================= */
.image-uploader {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 2px dashed var(--admin-border);
  border-radius: var(--admin-radius);
  background: #fafbfc;
  transition: border-color 180ms ease, background 180ms ease;
}

.image-uploader:hover {
  border-color: #b9c4d2;
  background: #f6f8fb;
}

.image-uploader:focus-within {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.08);
}

#tab-images.active .form-group {
  animation: media-enter 260ms ease-out both;
}

#tab-images.active .form-group:nth-child(2) { animation-delay: 40ms; }
#tab-images.active .form-group:nth-child(3) { animation-delay: 80ms; }
#tab-images.active .form-group:nth-child(4) { animation-delay: 120ms; }

@keyframes media-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #tab-images.active .form-group { animation: none; }
  #tab-images .image-uploader,
  #tab-images .btn { transition: none; }
}

.image-uploader.is-dragging {
  border-color: var(--admin-primary);
  background: rgba(15, 42, 74, 0.04);
}

.image-uploader__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 8px;
  color: var(--admin-text-muted);
  font-size: 0.88rem;
  text-align: center;
  min-height: 140px;
  border: 1px dashed #c9d1db;
  border-radius: 6px;
  background: #fff;
}

.image-uploader__empty svg {
  width: 28px;
  height: 28px;
  opacity: 0.55;
}

.image-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #eef1f5;
  background-image: linear-gradient(
      45deg,
      #e1e6ed 25%,
      transparent 25%,
      transparent 75%,
      #e1e6ed 75%
    ),
    linear-gradient(45deg, #e1e6ed 25%, transparent 25%, transparent 75%, #e1e6ed 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  border: 1px solid #dde3eb;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.image-preview.is-empty::after {
  content: "No image selected";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #95a2b3;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background-color: rgba(250, 251, 252, 0.85);
}

.image-preview.has-image.is-empty::after {
  content: "";
  display: none;
}

.image-uploader[data-key="siteLogo"] .image-preview {
  background-size: contain;
  background-color: #fff;
}

.image-uploader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-uploader--modal .image-preview {
  aspect-ratio: 16 / 9;
  min-height: 160px;
}

.hint {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Image thumbnail in tables */
.admin-thumb {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #eef1f5;
  border: 1px solid var(--admin-border);
  vertical-align: middle;
  margin-right: 10px;
  flex-shrink: 0;
}

.admin-thumb--empty {
  display: inline-grid;
  place-items: center;
  color: #b0bccb;
  background: #f0f2f5;
}

.admin-thumb--empty svg {
  width: 18px;
  height: 18px;
}

.title-with-thumb {
  display: flex;
  align-items: center;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Login Card (when logged out) */
.login-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, #173d69, #0b1e36);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--admin-primary);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  margin-bottom: 24px;
}

.login-notice {
  background: #fdf8e8;
  border: 1px solid #fae69e;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #785203;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: block;
  }
}

/* ================================
   SPIN KEYFRAME (used by loader icons)
   ================================ */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader,
.lucide-loader,
.lucide-loader-circle,
.lucide-loader-2,
.spinner,
.is-loading [data-loading-spinner] {
  animation: spin 0.8s linear infinite;
  transform-origin: center;
}

/* ================================
   DOCUMENTS TAB GRID & CARDS
   ================================ */

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .document-grid {
    grid-template-columns: 1fr;
  }
}

.document-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.document-card:hover {
  border-color: #f07a27;
  box-shadow: 0 10px 24px rgba(19, 39, 68, 0.08);
  transform: translateY(-2px);
}

.document-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  background: #fff6ee;
  color: #f07a27;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.document-icon svg,
.document-icon i {
  width: 26px !important;
  height: 26px !important;
  stroke-width: 2;
}

.document-meta {
  flex: 1;
  min-width: 0;
}

.document-meta h4 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.document-meta p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.document-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.document-actions .btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.document-actions .btn-link,
a.btn-link {
  background: transparent;
  color: #1d4ed8;
  text-decoration: none;
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 160ms ease;
}

.document-actions .btn-link:hover,
a.btn-link:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

.document-actions .btn-download,
a.btn-download {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 160ms ease;
}

.document-actions .btn-download:hover,
a.btn-download:hover {
  background: #1e293b;
}

/* ================================
   PDF UPLOADER WIDGET (Team modal)
   ================================ */

.pdf-uploader {
  margin-top: 8px;
}

.pdf-uploader-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.pdf-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}

.pdf-preview:hover {
  background: #fff6ee;
  border-color: #f07a27;
}

.pdf-preview svg,
.pdf-preview i {
  width: 22px !important;
  height: 22px !important;
  color: #94a3b8;
  flex-shrink: 0;
}

.pdf-preview [data-pdf-name] {
  flex: 1;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-uploader-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pdf-uploader-actions .btn-secondary,
.pdf-uploader-actions .btn-outline {
  padding: 6px 12px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-outline {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 160ms ease;
}

.btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.pdf-or-divider {
  display: flex;
  align-items: center;
  margin: 10px 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdf-or-divider::before,
.pdf-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.pdf-or-divider::before {
  margin-right: 10px;
}

.pdf-or-divider::after {
  margin-left: 10px;
}

/* ================================
   TEAM PDF ASSIGNMENT TABLE
   ================================ */

.team-doc-assign-table {
  width: 100%;
  border-collapse: collapse;
}

.team-doc-assign-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-doc-assign-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #334155;
  vertical-align: middle;
}

.team-doc-assign-table tr:last-child td {
  border-bottom: none;
}

.pdf-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.pdf-status-pill.has-pdf {
  background: #dcfce7;
  color: #166534;
}

.pdf-status-pill.no-pdf {
  background: #f1f5f9;
  color: #94a3b8;
}

.img-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.img-status-pill.has-img {
  background: #e0ecff;
  color: #1d4ed8;
}

.img-status-pill.no-img {
  background: #f1f5f9;
  color: #94a3b8;
}

/* ================================
   EMPTY STATE INLINE
   ================================ */

.empty-state-inline {
  padding: 28px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
}

.empty-state-inline svg,
.empty-state-inline i {
  width: 32px !important;
  height: 32px !important;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.empty-state-inline h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.empty-state-inline p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 420px;
}

/* ================================
   ADMIN SECTION HEADER SMALL PRINT
   ================================ */

.card-header-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}

.helper-note {
  padding: 10px 14px;
  background: #fff6ee;
  border: 1px solid #fbd0ad;
  color: #8a410d;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

.helper-note strong {
  color: #5a2a08;
}
