/* ------------------------- Styles ------------------------- */
/* Simple shared styles for the Medulla Label website. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #f5f5f5;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1a3c5e;
  color: #fff;
}
.navbar .brand { font-weight: bold; font-size: 18px; }
.navbar nav { display: flex; align-items: center; gap: 16px; }
.navbar a { color: #fff; text-decoration: none; }
.navbar a:hover { text-decoration: underline; }

.content { max-width: 720px; margin: 40px auto; padding: 0 20px; }

.footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 13px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 24px;
}

.form-row { margin-bottom: 12px; }
.form-row label { display: block; margin-bottom: 4px; font-size: 14px; }
.form-row input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

.btn {
  display: inline-block;
  padding: 9px 16px;
  background: #1a3c5e;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #15314d; }

.error { color: #b00020; margin-bottom: 12px; }
.notice { color: #1a6e2e; margin-bottom: 12px; }

/* Red "(*)" marker in front of a required field's label. */
.required { color: #b00020; font-weight: bold; }

/* Inline + block code (API keys, usage examples). */
code {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 3px;
}
.code {
  display: block;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: auto;
}
.token-box {
  font-family: "Courier New", Courier, monospace;
  background: #f0f0f0;
}

.hidden { display: none; }
.switch { margin-top: 14px; font-size: 14px; }
.switch a { color: #1a3c5e; cursor: pointer; }

.content.wide { max-width: 1000px; }

/* Zendesk ticket table */
table.tickets {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
table.tickets th,
table.tickets td {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
table.tickets th { background: #f0f0f0; }
table.tickets th:nth-child(1) { width: 6%; }   /* ID */
table.tickets th:nth-child(2) { width: 14%; }  /* COMPANY */
table.tickets th:nth-child(3) { width: 12%; }  /* ASSIGNEE */
table.tickets th:nth-child(4) { width: 8%; }   /* STATUS */
table.tickets th:nth-child(5) { width: 13%; }  /* UPDATED */
table.tickets th:nth-child(6) { width: 20%; }  /* SUBJECT */
table.tickets th:nth-child(7) { width: 27%; }  /* DESCRIPTION */

/* ------------------------- Identify Plant ------------------------- */
/* Nutrition facts table on the plant identifier */
table.nutrition {
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 13px;
}
table.nutrition td {
  border: 1px solid #ddd;
  padding: 4px 10px;
}
table.nutrition td:last-child {
  text-align: right;
  white-space: nowrap;
}
table.nutrition th {
  border: 1px solid #ddd;
  padding: 4px 10px;
  background: #f0f0f0;
  text-align: left;
}
table.nutrition th:last-child { text-align: right; }

/* ------------------------- Zendesk Ticket Detail ------------------------- */

/* Spinner shown while an async request */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top-color: #1a3c5e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Muted helper text - timestamps, counts, comment meta. */
.muted { color: #777; font-size: 13px; }

/* The conversation thread: one bordered box per comment. */
.comment {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  margin: 6px 0;
}
.comment-head { margin-bottom: 4px; }
.comment-head b { color: #333; }
.comment pre.code { margin: 0; }

/* Attachments / images shown beneath the comment they belong to. */
.attachments {
  margin-top: 6px;
  border-top: 1px dashed #ddd;
  padding-top: 6px;
}
.attachments-head { margin-bottom: 4px; }
.attachment { margin: 4px 0; }
.attachment img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 2px;
}

/* Per-image "Send to Sasha" checkbox shown above each image. */
.img-pick { font-weight: bold; color: #1a3c5e; cursor: pointer; }
.img-pick input { width: 16px; height: 16px; accent-color: #1a3c5e; vertical-align: middle; }

/* ------------------------- Home Improvement ------------------------- */
.hi-title { margin: 4px 0 12px; }

/* At a glance - Difficulty / Time / Cost as equal tiles */
.hi-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hi-tile {
  flex: 1 1 120px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f7f9fb;
  padding: 10px 12px;
}
.hi-tile-label { display: block; font-size: 12px; color: #777; text-transform: uppercase; letter-spacing: .03em; }
.hi-tile-value { display: block; font-size: 17px; font-weight: bold; color: #1a3c5e; margin-top: 2px; }

/* Step-by-step plan as a checklist - each step a checkbox you tick off as you
   go. The checkbox stays top-aligned so long, wrapping steps read cleanly. */
.hi-checks { margin: 6px 0 0; }
.hi-check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; cursor: pointer; }
.hi-check input { width: 16px; height: 16px; accent-color: #1a3c5e; margin-top: 2px; flex-shrink: 0; }
