/* ============================================================
   TradeRail Field Portal — PR373 Mobile Offline Mode
   Offline banner, back-online toast, photo capture modal.
   Brand: #FF6B00 / #1A1A2E. No emoji anywhere in UI.
   ============================================================ */

#tr-offline-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #1A1A2E;
  color: #ffffff;
  border-left: 4px solid #FF6B00;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

#tr-online-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: #1A1A2E;
  color: #ffffff;
  border-left: 4px solid #FF6B00;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ----- Photo capture modal ----- */
.tr-photo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.tr-photo-card {
  background: #ffffff;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.tr-photo-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 1rem;
}

.tr-photo-input {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.tr-photo-preview {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.tr-photo-message {
  color: #b00020;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tr-photo-attach {
  background: #FF6B00;
  color: #ffffff;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.tr-photo-attach:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tr-photo-cancel {
  background: transparent;
  border: 1px solid #ccc;
  color: #1A1A2E;
  width: 100%;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.5rem;
  cursor: pointer;
}
