/* Daily entry form. Mobile-first (field managers are on phones). */

.entry-header {
  padding: 2rem 1rem 1rem;
}
.entry-header__inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.entry-header__sub { color: var(--text-2); margin: 0; }
.entry-header__meta { display: flex; align-items: center; gap: 0.75rem; }
.clock { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-2); }

.entry-shell { max-width: 960px; margin: 0 auto 3rem; padding: 0 1rem; }
.entry-card { padding: 1.5rem; }

.entry-section { padding: 1rem 0; border-bottom: 1px dashed var(--border); }
.entry-section:last-of-type { border-bottom: none; }
.entry-section__title {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-2);
  font-weight: 600;
}

.autocomplete { position: relative; }

.stores-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.stores-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-2);
  font-size: 0.9rem;
}
.stores-list {
  display: grid; gap: 0.4rem; max-height: 240px; overflow: auto;
}
.store-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.1s ease, transform 0.08s ease;
}
.store-item:hover { background: rgba(52, 211, 153, 0.1); }
.store-item:active { transform: scale(0.995); }
.store-item__name { font-weight: 500; }
.store-item__meta { color: var(--text-2); font-size: 0.85rem; }

.store-item--other {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.04);
}
.store-item--other:hover {
  border-color: var(--brand-2);
  background: rgba(52, 211, 153, 0.08);
}
.store-item--other .store-item__name { color: var(--text-2); }
.badge--other {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.3);
}

.photos-block { display: grid; gap: 0.75rem; }
.photo-drop {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 1.75rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.photo-drop:hover { border-color: var(--brand-2); background: rgba(52, 211, 153, 0.05); color: var(--text-0); }
.photo-drop__icon { font-size: 2rem; line-height: 1; color: var(--brand-2); }
.photo-drop__label { font-weight: 600; }

.photo-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}
.photo-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-preview__status {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: white; font-size: 0.85rem; font-weight: 500;
}
.photo-preview__status--ok { background: rgba(15, 157, 88, 0.7); }
.photo-preview__status--err { background: rgba(220, 38, 38, 0.8); }
.photo-preview__x {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.6); color: white; border: none;
  cursor: pointer; font-weight: bold;
}

.gps-block { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }

.entry-actions {
  display: flex; justify-content: flex-end; gap: 0.75rem;
  padding-top: 1rem;
}

@media (max-width: 640px) {
  .entry-header__inner { flex-direction: column; align-items: flex-start; }
  .entry-actions { flex-direction: column-reverse; }
  .entry-actions .btn { width: 100%; justify-content: center; }
}
