/* Small additions on top of the EliteAdmin template (assets/css/main.css). Keep this file short. */

.header-place { color: var(--muted-color); font-size: 0.875rem; }
.d-contents { display: contents; }

/* Sign out button inside the template's user menu */
.user-menu-footer form { margin: 0; }

/* Table helpers */
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .row-actions { text-align: right; white-space: nowrap; }
.table .row-actions form { display: inline; }
.table .empty-cell { text-align: center; color: var(--muted-color); padding: 2.5rem 1rem; }

/* Floor chips on the unit lists */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--surface-color); color: var(--default-color); text-decoration: none; font-size: 0.875rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.chip:hover { border-color: var(--accent-color); color: var(--accent-color); }
.chip.active { background: var(--accent-color); border-color: var(--accent-color); color: var(--contrast-color); }

/* Key and value list on detail pages */
.detail-list { display: grid; grid-template-columns: 220px 1fr; margin: 0; }
.detail-list dt, .detail-list dd { padding: 0.65rem 0; margin: 0; border-bottom: 1px solid var(--border-color); }
.detail-list dt { color: var(--muted-color); font-weight: 500; font-size: 0.875rem; }
.detail-list dt:nth-last-of-type(1), .detail-list dd:last-of-type { border-bottom: 0; }

/* Home tiles */
.tile-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.tile-link .card { height: 100%; transition: border-color var(--transition-fast); }
.tile-link:hover .card { border-color: var(--accent-color); }

/* Document thumbnails on the tenant documents page */
.doc-thumb { max-height: 200px; max-width: 100%; object-fit: contain; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.doc-photo { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius-full); border: 1px solid var(--border-color); }

/* Form sections on the tenant form */
.form-section-title { font-size: 1rem; font-weight: 600; margin: 0; }
.subtle-panel { background: var(--table-header-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1rem; }

@media (max-width: 767px) {
  .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { border-bottom: 0; padding-bottom: 0; }
  .header-search { display: none; }
}

/* Print: the list pages print without the app shell */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .header, .sidebar, .sidebar-overlay, .footer, .no-print, .mobile-header-menu { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .main-content { padding: 0 !important; }
  .card { border: 0 !important; box-shadow: none !important; }
  body { background: #fff !important; }
}
