/* ============================================================
   FSJ TRANSPORTES — Cadastro Mesa Frete
   styles.css
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #04100a;
  --surface:   #071510;
  --surface2:  #0c1e15;
  --border:    #163324;
  --accent:    #57841c;
  --accent2:   #4a7018;
  --accent3:   #3d5e14;
  --green:     #7ab02e;
  --red:       #f87171;
  --yellow:    #f59e0b;
  --text:      #dff0e8;
  --muted:     #4d7a5e;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body & Background ───────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(87,132,28,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(74,112,24,0.07) 0%, transparent 50%),
    repeating-linear-gradient(0deg,  transparent, transparent 39px, rgba(87,132,28,0.025) 39px, rgba(87,132,28,0.025) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(87,132,28,0.025) 39px, rgba(87,132,28,0.025) 40px);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  position: relative;
  z-index: 1;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(4,16,10,0.92);
  backdrop-filter: blur(12px);
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(87,132,28,0.35);
}

.logo-letters {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  letter-spacing: 1px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--accent);
}

.logo-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ── Main layout ─────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  z-index: 1;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(87,132,28,0.09),
    inset 0 1px 0 rgba(87,132,28,0.06);
}

.card-header {
  padding: 32px 36px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
}

.card-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 2px;
  color: var(--text);
  margin-bottom: 6px;
}

.card-title span { color: var(--accent); }

.card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.card-body { padding: 32px 36px; }

/* ── Screens ─────────────────────────────────────────────── */
.screen { display: none; }
.screen.active { display: block; }

/* ── Phone / CPF visual ──────────────────────────────────── */
.phone-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.phone-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(87,132,28,0.12), rgba(87,132,28,0.03));
  border: 1px solid rgba(87,132,28,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Form elements ───────────────────────────────────────── */
label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(87,132,28,0.12);
}

select option { background: var(--surface2); }
textarea { resize: vertical; min-height: 70px; }

/* ── Phone input ─────────────────────────────────────────── */
.phone-input-wrap { position: relative; }
.phone-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
}
.phone-input-wrap input { padding-left: 44px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #57841c 0%, #4a7018 60%, #3d5e14 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(87,132,28,0.25), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-top: 10px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Status screen ───────────────────────────────────────── */
.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.status-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(87,132,28,0.2), rgba(87,132,28,0.05));
  border: 1px solid rgba(87,132,28,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
}

.status-name  { font-weight: 600; font-size: 16px; }
.status-phone { font-size: 12px; color: var(--muted); margin-top: 2px; }

.status-items { display: flex; flex-direction: column; gap: 10px; }

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.status-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
}

.status-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-approved  { background: rgba(122,176,46,0.15); color: var(--green); border: 1px solid rgba(122,176,46,0.3); }
.badge-pending   { background: rgba(248,113,113,0.15); color: var(--red);   border: 1px solid rgba(248,113,113,0.3); }
.badge-analyzing { background: rgba(59,130,246,0.15); color: #60a5fa;       border: 1px solid rgba(59,130,246,0.35); }

/* ── Form grid ───────────────────────────────────────────── */
.form-grid { display: flex; flex-direction: column; gap: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { display: flex; flex-direction: column; }

/* ── File upload ─────────────────────────────────────────── */
.file-upload { position: relative; cursor: pointer; }

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-display {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.2s, background 0.2s;
  min-height: 44px;
}

.file-upload:hover .file-upload-display {
  border-color: var(--accent);
  background: rgba(87,132,28,0.04);
}

.file-upload-display.has-file {
  border-color: rgba(122,176,46,0.45);
  background: rgba(122,176,46,0.05);
}

.file-upload-display svg { flex-shrink: 0; }

.file-upload-text {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-upload-display.has-file .file-upload-text { color: var(--green); }

/* ── Helpers ─────────────────────────────────────────────── */
.required { color: var(--accent); }
.optional  { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0.5px; text-transform: none; }

.section-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 2px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Loading overlay ─────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,16,10,0.92);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.active { display: flex; }

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(74,112,24,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 13px; color: var(--muted); letter-spacing: 1px; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13.5px;
  color: var(--text);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}

.toast.show    { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(122,176,46,0.4); color: var(--green); }
.toast.error   { border-color: rgba(248,113,113,0.4); color: var(--red); }

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.alert-info {
  background: rgba(87,132,28,0.08);
  border: 1px solid rgba(87,132,28,0.22);
  color: rgba(122,176,46,0.9);
}

/* ── Scrollable form body ────────────────────────────────── */
#screen-form .card-body {
  max-height: 78vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ── Overall status ──────────────────────────────────────── */
.overall-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
}

.overall-ok       { background: rgba(122,176,46,0.08); border: 1px solid rgba(122,176,46,0.2); color: var(--green); }
.overall-pending  { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: var(--red); }
.overall-analyzing { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); color: var(--yellow); }

/* ── Status banner ───────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-banner-icon { font-size: 18px; }
.banner-all-ok    { background: rgba(122,176,46,0.1);  border: 1px solid rgba(122,176,46,0.3);  color: var(--green); }
.banner-all-pend  { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: var(--red); }
.banner-partial   { background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.3);  color: var(--yellow); }
.banner-analyzing { background: rgba(37,99,235,0.12);  border: 1px solid rgba(59,130,246,0.4);  color: #60a5fa; }

/* ── Resend button ───────────────────────────────────────── */
.btn-resend {
  background: transparent;
  border: 1px solid rgba(251,191,36,0.4);
  color: var(--yellow);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.18s;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-resend:hover { background: rgba(251,191,36,0.12); border-color: var(--yellow); }

/* ── Resend modal ────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4,16,10,0.92);
  backdrop-filter: blur(4px);
  z-index: 150;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 6px;
}

.modal-desc       { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.modal-doc-label  { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }

/* ── Contact card ────────────────────────────────────────── */
.contact-section { margin-top: 20px; }
.contact-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-cards { display: flex; flex-direction: column; gap: 8px; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 10px;
}

.contact-info { display: flex; align-items: center; gap: 10px; }

.contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  flex-shrink: 0;
}

.contact-avatar-green { background: rgba(87,132,28,0.15); border: 1px solid rgba(87,132,28,0.3); color: var(--accent); }
.contact-avatar-red   { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.3); color: var(--red); }
.contact-name { font-size: 13px; font-weight: 600; color: var(--text); }
.contact-role { font-size: 11px; color: var(--muted); margin-top: 1px; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-whatsapp:hover { background: #1db954; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
.btn-whatsapp svg   { width: 14px; height: 14px; }

/* ── Form locked state ───────────────────────────────────── */
.form-locked-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(122,176,46,0.06);
  border: 1px solid rgba(122,176,46,0.2);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--green);
  line-height: 1.5;
}
.form-locked-banner svg { flex-shrink: 0; }

/* ── Radio toggle ────────────────────────────────────────── */
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }

.radio-option { flex: 1; min-width: 90px; }
.radio-option input[type="radio"] { display: none; }

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.18s;
  margin: 0;
}

.radio-option input[type="radio"]:checked + label {
  border-color: var(--accent);
  background: rgba(87,132,28,0.1);
  color: var(--accent);
  box-shadow: 0 0 0 2px rgba(87,132,28,0.15);
}

.radio-option label:hover { border-color: rgba(87,132,28,0.5); color: var(--text); }

/* ── Conditional sections ────────────────────────────────── */
.cond-section { display: none; }
.cond-section.visible { display: block; }

.screen.active .form-grid > * {
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Fotos do veículo ────────────────────────────────────── */
.fotos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.foto-item { display: flex; flex-direction: column; gap: 6px; }
.foto-item-full { grid-column: 1 / -1; }
.foto-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }

.foto-upload {
  background: var(--surface2);
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  position: relative;
}
.foto-upload:hover { border-color: var(--accent); background: rgba(87,132,28,0.04); }
.foto-upload.has-photo { border-style: solid; border-color: rgba(87,132,28,0.4); }

.foto-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  padding: 16px;
  text-align: center;
}
.foto-upload.has-photo .foto-preview { display: none; }

.foto-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: none;
  border-radius: 9px;
}
.foto-upload.has-photo .foto-thumb { display: block; }

.foto-actions { display: flex; gap: 6px; }

.foto-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  user-select: none;
}

.foto-btn-camera { background: rgba(87,132,28,0.1); border: 1px solid rgba(87,132,28,0.3); color: var(--accent); }
.foto-btn-camera:hover { background: rgba(87,132,28,0.2); }
.foto-btn-file { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); }
.foto-btn-file:hover { border-color: var(--accent); color: var(--text); }

/* ── Operação checkboxes ─────────────────────────────────── */
.operacao-checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.check-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.18s;
  user-select: none;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
}

.check-option:hover { border-color: var(--accent); color: var(--text); background: rgba(87,132,28,0.04); }
.check-option input[type="checkbox"] { display: none; }
.check-option:has(input:checked) { border-color: var(--accent); background: rgba(87,132,28,0.12); color: var(--accent); box-shadow: 0 0 0 2px rgba(87,132,28,0.12); }
.check-option:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; right: 6px; font-size: 9px; color: var(--accent); font-weight: 700; }
.check-option-todos { grid-column: 1 / -1; border-style: dashed; }
.check-option-todos:has(input:checked) { border-style: solid; }

/* ── Sim / Não toggle ────────────────────────────────────── */
.sim-nao-group { display: flex; gap: 10px; margin-top: 4px; }
.sim-nao-option { cursor: pointer; }
.sim-nao-option input[type="radio"] { display: none; }

.sim-nao-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 2px solid var(--border);
  background: var(--surface2);
  color: var(--muted);
  transition: all 0.18s;
  cursor: pointer;
  user-select: none;
  min-width: 100px;
}

.sim-nao-option input[type="radio"]:checked + .sim-nao-sim { border-color: var(--accent); background: rgba(87,132,28,0.12); color: var(--accent); }
.sim-nao-option input[type="radio"]:checked + .sim-nao-nao { border-color: #e05050; background: rgba(224,80,80,0.08); color: #e05050; }
.sim-nao-option:hover .sim-nao-label { border-color: rgba(87,132,28,0.4); color: var(--text); }

/* ── Proprietário / ANTT section badges ──────────────────── */
.prop-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(87,132,28,0.1);
  border: 1px solid rgba(87,132,28,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.prop-section-badge::before { content: "●"; font-size: 8px; }
.prop-section-badge-2 { background: rgba(224,80,80,0.08); border-color: rgba(224,80,80,0.3); color: #e05050; }
.prop-section-badge-2::before { color: #e05050; }

/* ── Status groups ───────────────────────────────────────── */
.status-group { margin-bottom: 16px; }
.status-group:last-child { margin-bottom: 0; }
.status-group-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.status-group .status-items { display: flex; flex-direction: column; gap: 8px; }

/* ── Protocolo badge ─────────────────────────────────────── */
.protocolo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(87,132,28,0.07);
  border: 1px solid rgba(87,132,28,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.protocolo-badge strong { color: var(--accent); font-family: monospace; font-size: 13px; letter-spacing: 1px; }

/* ── Modal Gestor ────────────────────────────────────────── */
.modal-gestor-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 160;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-gestor-overlay.active { display: flex; }

.modal-gestor-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 32px 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
}

.modal-gestor-icon  { display: flex; justify-content: center; margin-bottom: 16px; font-size: 36px; }
.modal-gestor-title { font-family: var(--font-display); font-size: 22px; letter-spacing: 2px; color: var(--text); text-align: center; margin-bottom: 6px; }
.modal-gestor-title span { color: var(--accent); }
.modal-gestor-desc  { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 24px; line-height: 1.5; }

.gestor-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.gestor-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.18s;
  text-align: left;
}
.gestor-btn:hover   { border-color: var(--accent); background: rgba(87,132,28,0.07); color: var(--accent); transform: translateX(3px); }
.gestor-btn.selected { border-color: var(--accent); background: rgba(87,132,28,0.13); color: var(--accent); box-shadow: 0 0 0 2px rgba(87,132,28,0.15); }

.gestor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(87,132,28,0.14);
  border: 1.5px solid rgba(87,132,28,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.gestor-btn.selected .gestor-avatar { background: rgba(87,132,28,0.25); }

/* ── Observação box ──────────────────────────────────────── */
.obs-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.28);
  border-left: 3px solid var(--yellow);
  border-radius: 10px;
}
.obs-box-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.obs-box-text {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
  .card-header, .card-body { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  main { padding: 20px 10px; }
  .fotos-grid { grid-template-columns: 1fr; }
  .foto-item-full { grid-column: 1; }
  .operacao-checks { grid-template-columns: repeat(2, 1fr); }
}
