*, *::before, *::after { border-color: #dde3ea; outline-color: rgba(107,122,141,0.5); }
.hero-gradient { background: linear-gradient(135deg, rgba(196,92,28,0.95), rgba(180,80,20,0.9)), url('/eagerskypro/public/images/hero/hero-bg.svg') center/cover; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.property-card { transition: all 0.3s ease; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn-primary { background: #bd4e05; color: #fff; padding: 0.5rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: all 0.2s; }
.btn-primary:hover { background: #9a3f04; box-shadow: 0 4px 12px rgba(189,78,5,0.35); }
.btn-accent { background: #fb923c; color: #fff; padding: 0.5rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: all 0.2s; }
.btn-accent:hover { background: #ea7c2a; }
.section-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem; color: #1a2b3c; }
@media (max-width: 640px) { .section-title { font-size: 1.25rem; } }
.sidebar-scroll::-webkit-scrollbar { width: 3px; }
.sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; transition: background 0.2s; }
.sidebar-scroll:hover::-webkit-scrollbar-thumb { background: #c4b5a5; }
.sidebar-scroll { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar-scroll:hover { scrollbar-color: #c4b5a5 transparent; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: #bd4e05; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: #e8edf2; border-radius: 3px; }
input[type="range"] { -webkit-appearance: none; width: 100%; background: transparent; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeInUp 0.5s ease-out; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }
.calendar-day:hover { background: #bd4e05; color: #fff; }
.calendar-day.booked { background: #fee2e2; color: #dc2626; }
.calendar-day.available { background: #d1fae5; color: #059669; }
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; }
.toast { padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; animation: slideIn 0.3s ease-out; }
.toast-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.toast-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-content { background: white; border-radius: 1rem; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; }

/* --- Compact data tables (Phase 1) --- */
.table-compact {
  width: 100%;
  table-layout: fixed;
  font-size: 0.75rem;
  line-height: 1.25rem;
}
.table-compact th,
.table-compact td {
  padding: 0.375rem 0.5rem;
  vertical-align: top;
}
.table-compact th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.625rem;
}
.table-compact .badge-compact {
  display: inline-block;
  font-size: 0.625rem;
  line-height: 1rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
}
.table-compact .cell-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.table-compact .icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
}
.table-compact-dark th {
  color: #9ca3af;
}
.table-compact-dark td {
  color: #d1d5db;
}


/* --- Email/phone overlap safeguards --- */
.table-compact td.min-w-0,
.table-compact th[class*="w-["] {
  overflow: hidden;
}
.table-compact .user-cell-stack {
  min-width: 0;
  overflow: hidden;
}
/* --- Compact tables Phase 2-4 --- */
.table-compact tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.table-compact-dark tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}
.table-compact .font-medium,
.table-compact .font-semibold {
  font-size: 0.75rem;
}
.table-compact a.icon-action {
  text-decoration: none;
}
@media (max-width: 640px) {
  .table-compact th,
  .table-compact td {
    padding: 0.25rem 0.375rem;
  }
}


/* --- Portal export bar (finance / owner / vendor) --- */
.portal-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.portal-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  min-height: 40px;
  cursor: pointer;
}
.portal-export-btn:hover { background: #f8fafc; }
.portal-export-btn.is-primary {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}
.portal-export-btn.is-primary:hover { background: #9a3412; }


/* --- Print sheets (Wave C / Phase 23) --- */
@media print {
  body * { visibility: hidden !important; }
  .print-sheet, .print-sheet * { visibility: visible !important; }
  .print-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print,
  aside, nav, header, footer,
  .portal-sidebar, #sidebar, .sidebar,
  .portal-mobile-nav, .mobile-nav,
  button, .btn, [data-nosnippet] {
    display: none !important;
  }
  a[href]::after { content: "" !important; }
  .print-sheet a { text-decoration: none; color: inherit; }
}

.kyc-compact .mb-8 { margin-bottom: 1rem; }
.kyc-compact .p-6 { padding: 1rem; }
@media (max-width: 640px) {
  .kyc-compact h1 { font-size: 1.35rem; line-height: 1.3; }
  .kyc-compact .rounded-xl { border-radius: 0.75rem; }
}

/* --- Wave D / Phase 25 — critical-path mobile --- */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.critical-path-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
@media (max-width: 640px) {
  .critical-path-shell .px-6 { padding-left: 1rem; padding-right: 1rem; }
  .payment-method-grid {
    grid-template-columns: 1fr !important;
  }
  .inbox-critical {
    max-height: calc(100vh - 140px);
    min-height: 360px;
  }
  .staff-pay-row-badges {
    flex-wrap: wrap;
  }
}
