/* ============================================================
   LandlordEzy — Owner Portal stylesheet (self-contained)

   The portal views were written in Tailwind-utility vocabulary, but the
   compiled landlordezy-app.css is PURGED against the /user views — classes
   used only in owner_portal/** never made the build, so the live portal
   rendered as unstyled serif text. This file hand-defines exactly the
   utilities the portal uses (plus the op-* components), so the portal is
   styled deterministically with NO build step and NO dependence on the
   purged bundle. Loaded only by owner_portal/layout.blade.php.
   ============================================================ */

:root {
  --op-brand: #2563eb;
  --op-brand-dark: #1d4ed8;
  --op-brand-soft: #eff6ff;
  --op-ink: #0f172a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--op-ink);
  background: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; }
th, td { text-align: left; }

/* ---- Layout / flex ---- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.shrink-0, .flex-shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1 1 0%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.min-w-full { min-width: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-2 > * + * { margin-top: 8px; }
.divide-y > * + * { border-top: 1px solid #f1f5f9; }
.divide-slate-100 > * + * { border-color: #f1f5f9; }

/* ---- Spacing ---- */
.mb-1 { margin-bottom: 4px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mr-1 { margin-right: 4px; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-10 { padding: 40px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-3\.5 { padding-top: 14px; padding-bottom: 14px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }

/* ---- Typography ---- */
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.03em; }
.tracking-tight { letter-spacing: -0.015em; }
.leading-tight { line-height: 1.25; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-sans { font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

/* ---- Text colours ---- */
.text-white { color: #fff; }
.text-white\/70 { color: rgba(255,255,255,.70); }
.text-white\/85 { color: rgba(255,255,255,.85); }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-brand-ink { color: var(--op-ink); }
.text-brand-link { color: var(--op-brand-dark); }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-rose-600 { color: #e11d48; }
.text-rose-700 { color: #be123c; }
.text-amber-700 { color: #b45309; }

/* ---- Backgrounds ---- */
.bg-white { background-color: #fff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-brand { background-color: var(--op-brand); }
.bg-brand-soft { background-color: var(--op-brand-soft); }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-white\/15 { background-color: rgba(255,255,255,.15); }
.bg-gradient-to-br { background-image: linear-gradient(135deg, var(--op-g1, var(--op-brand)), var(--op-g2, var(--op-brand-dark))); }
.from-brand { --op-g1: var(--op-brand); }
.to-brand-link { --op-g2: var(--op-brand-dark); }

/* ---- Borders / radius / rings ---- */
.border { border: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-100 { border-color: #f1f5f9; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-amber-200 { border-color: #fde68a; }
.rounded-2xl { border-radius: 16px; }
.rounded-xl { border-radius: 12px; }
.rounded-lg { border-radius: 10px; }
.rounded-full { border-radius: 9999px; }
.last\:border-b-0:last-child { border-bottom: 0; }
.ring-1.ring-inset.ring-white\/25 { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* ---- Shadows ---- */
.shadow-soft { box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04); }
.shadow-card { box-shadow: 0 10px 30px rgba(37,99,235,.22); }
.shadow-sm { box-shadow: 0 1px 2px rgba(15,23,42,.05); }

/* ---- Sizing ---- */
.h-9 { height: 36px; }
.w-9 { width: 36px; }

/* ---- Hover states ---- */
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-white\/25:hover { background-color: rgba(255,255,255,.25); }
.hover\:bg-brand-link:hover { background-color: var(--op-brand-dark); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-brand-link:hover { color: var(--op-brand-dark); }
a { text-decoration: none; }

/* ---- Responsive helpers ---- */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
}
@media (min-width: 768px) { .lezy-only-mobile { display: none !important; } }
@media (max-width: 767.98px) { .lezy-only-desktop { display: none !important; } }

/* ============================================================
   op-* components — portal shell (header, nav, chips, tables)
   ============================================================ */
.op-shell { display: flex; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; align-items: flex-start; }
.op-side { width: 240px; flex-shrink: 0; position: sticky; top: 24px; }
.op-main { flex: 1 1 auto; min-width: 0; }

.op-header { background: #fff; border-bottom: 1px solid #e8edf6; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.op-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.op-logo-img { max-height: 44px; max-width: 210px; object-fit: contain; display: block; }
.op-accent { height: 3px; background: linear-gradient(90deg, var(--op-brand), var(--op-brand-dark)); }

.op-nav { display: block; }
.op-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #475569; text-decoration: none; transition: background .15s, color .15s; }
.op-nav a i { width: 18px; text-align: center; color: #94a3b8; }
.op-nav a:hover { background: #f1f5f9; color: #0f172a; }
.op-nav a.active { background: var(--op-brand); color: #fff; }
.op-nav a.active i { color: #fff; }
.op-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }

/* Status chips (tenants / ledger pages) */
.op-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.op-chip-green { background: #d1fae5; color: #047857; }
.op-chip-amber { background: #fef3c7; color: #b45309; }
.op-chip-rose { background: #ffe4e6; color: #be123c; }
.op-chip-slate { background: #f1f5f9; color: #475569; }

/* Simple data table */
.op-table { width: 100%; font-size: 14px; }
.op-table th { padding: 12px 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e8edf6; }
.op-table td { padding: 12px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.op-table tr:last-child td { border-bottom: 0; }
.op-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  /* align-items:flex-start (desktop sticky sidebar) must NOT carry into
     column mode — it stops children stretching, so op-main sized to its
     content (556px on a 375px phone) and the whole page scrolled sideways. */
  .op-shell { flex-direction: column; gap: 14px; align-items: stretch; }
  .op-side { width: 100%; position: static; }
  .op-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .op-nav a { white-space: nowrap; }
  .op-table th, .op-table td { padding: 10px 12px; }
}

/* ── Utilities the portal views already referenced but this file never had ──
   This stylesheet is hand-curated (the purged app bundle never covered these
   views). The access pages used p-8 / h-14 / w-14 / max-w-sm / w-full /
   border-slate-300 / transition and silently got nothing — which is why the
   icon circle on the "signed out" page never appeared. Added here so the
   existing pages render as written, not only the new one.
   Added 2026-10-07 with the owner-portal link fix. */
.p-8 { padding: 32px; }
.h-14 { height: 56px; }
.w-14 { width: 56px; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.border-slate-300 { border-color: #cbd5e1; }
.transition { transition: all .15s ease; }
