/* Diárias, chegada (QR Code), checklist do freelancer, pagamento e ganhos. */

/* lista */
.assignment-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.assignment-card .card-title { font-size: 1.05rem; }
.assignment-card .chips, .earning-card .chips { margin: 6px 0 0; }
.section-title { font-size: 1.05rem; margin: 20px 0 10px; }

/* detalhe */
.assignment-detail, .payment-detail, .arrival { max-width: 720px; }
.assignment-title { font-size: 1.35rem; margin-bottom: 2px; }
.assignment-place { font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.rate-suffix { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.address-lines { display: flex; flex-direction: column; }
.assignment-now { display: flex; flex-direction: column; gap: 10px; }
.assignment-now .notice { margin-bottom: 0; }
.lead-text { font-size: 1.05rem; margin: 0; }
.give-up { color: var(--danger); }
.assignment-chat { margin-bottom: 16px; }
.assignment-chat .btn { width: 100%; }
.adj { align-items: flex-start; }
.adj-actions { margin-left: auto; }
.total-label { font-weight: 700; margin: 10px 0 0; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #1b5e20; }

/* leitor de chegada */
.arrival-panel { display: flex; flex-direction: column; gap: 12px; }
.arrival-reader { display: flex; flex-direction: column; gap: 12px; }
.arrival-reader .qr-camera { margin: 0 auto; }
.qr-camera-slot:empty { display: none; }
.qr-hint { text-align: center; margin: 6px 0 0; }
.qr-status:empty { display: none; }
.qr-status .notice { margin-bottom: 0; }
.qr-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--bg); margin: 0; }
.qr-option h3 { margin-bottom: 6px; }
.qr-option .steps { margin-bottom: 0; }
.qr-option summary { font-weight: 600; margin-bottom: 0; }
.qr-option[open] summary { margin-bottom: 8px; }
.qr-manual { display: flex; flex-direction: column; gap: 6px; }
.qr-manual label { font-weight: 600; font-size: 0.9rem; }
.arrival-go { margin-top: 8px; }
.arrival .card > .btn + .muted { margin-top: 8px; }

/* checklist do freelancer */
.freela-checklist .checklist-item { padding-right: 4px; }
.checklist-progress { font-weight: 600; color: var(--muted); }
.checklist-progress.is-ok { color: var(--success); }
.checklist-item.is-pending { border-left-color: var(--warning); }
.checklist-done.is-pending { border-left-color: var(--danger); }
.checklist-pending.is-pending { border-left-color: var(--border); }
.checklist-actions { margin-top: 8px; }
.checklist-actions .btn { min-height: 44px; }
.checklist-item-head .spinner { margin: 0; }
.thumb-wrap { position: relative; }
.thumb-remove {
  position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.92); color: var(--text);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.thumb-remove:hover { background: var(--danger-soft); color: var(--danger); }

/* ganhos */
.period-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-btn {
  font: inherit; font-size: 0.9rem; padding: 8px 14px; min-height: 38px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.chip-btn:hover { border-color: var(--primary); }
.chip-btn[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); font-weight: 600; }
.period-details { margin-bottom: 12px; }
.period-custom { margin-bottom: 0; }
.earnings-head .job-rate { margin: 4px 0 0; }
.earnings-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.earnings-totals .metric-value { font-size: 1.2rem; }
.metric-paid { border-left-color: var(--success); }
.earnings-group { margin-bottom: 8px; }
.earnings-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 640px) {
  .assignment-list, .earnings-list { grid-template-columns: 1fr; }
  .adj-actions { margin-left: 0; width: 100%; }
  .adj-actions .btn { flex: 1; }
}
@media (max-width: 380px) {
  .earnings-totals { grid-template-columns: 1fr; }
}
