/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* An order's conversation on the owner side: shows a hint until the first message. */
.order-thread:empty::before { content: "No messages yet."; color: var(--muted, #6b7280); font-size: 0.9rem; }

/* Unread: a small pill beside a count, a row, or a message. */
.unread-badge { display: inline-block; padding: 0 0.45em; border-radius: 999px; background: #2563eb; color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }

/* Progress photos on the owner's order page. */
.photo-thumb { display: block; width: 100%; max-width: 280px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.photo-inline img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.order-thread .photo-thumb { max-width: 240px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.photo-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; }
.photo-card a { display: block; }

/* A DNS record to add: type, name, and value, stacked so long values wrap on a phone. */
.dns-record { display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--border, #3a403c); border-radius: 6px; }
.dns-record dl { display: grid; gap: 8px; margin: 0; }
.dns-record dd { margin: 0; overflow-wrap: anywhere; }
