/* R35: ordens de serviço */
.wo-page { font-size: 1rem; }
.wo-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.wo-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid currentColor; font-size: 1rem; text-decoration: none; color: inherit; }
.wo-chip.is-on { background: #1f2937; color: #fff; border-color: #1f2937; }
.wo-status { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: 1rem; font-weight: 700; border: 1.5px solid; white-space: nowrap; }
.wo-status.s-aberta { color: #1e3a8a; background: #dbeafe; border-color: #1d4ed8; }
.wo-status.s-em_andamento { color: #92400e; background: #fef3c7; border-color: #d97706; }
.wo-status.s-concluida { color: #14532d; background: #dcfce7; border-color: #16a34a; }
.wo-status.s-cancelada { color: #7f1d1d; background: #fee2e2; border-color: #dc2626; }
.wo-status-form fieldset { border: 0; padding: 0; margin: 0; }
.wo-status-form legend { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.wo-status-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.wo-status-buttons .btn, .wo-page .btn { min-height: 44px; font-size: 1rem; }
.wo-toggle { display: flex; align-items: center; gap: .6rem; min-height: 44px; font-size: 1rem; cursor: pointer; }
.wo-toggle input { width: 24px; height: 24px; }
.wo-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.wo-check-btn { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 48px; padding: .5rem .75rem; font: inherit; font-size: 1rem; text-align: left; background: transparent; border: 1.5px solid rgba(0,0,0,.18); border-radius: 12px; cursor: pointer; color: inherit; }
.wo-check-btn.is-done > span:last-child { text-decoration: line-through; opacity: .8; }
.wo-box { flex: 0 0 26px; height: 26px; border: 2px solid currentColor; border-radius: 6px; display: inline-grid; place-items: center; font-weight: 800; }
.wo-check-btn.is-done .wo-box { background: #16a34a; border-color: #16a34a; color: #fff; }
.wo-total { font-size: 1.05rem; margin-top: 1rem; }
.wo-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; width: 100%; font-size: 1.05rem; }
.wo-page .wo-page section, .wo-page > form, .wo-page > section { margin-bottom: 1rem; }
@media (max-width: 420px) { .wo-status-buttons .btn { flex: 1 1 45%; } }
.wo-page .kicker, .wo-page .hint, .wo-page .hint a, .wo-page .field label, .wo-page .clients-meta, .wo-page .kicker a, .wo-panel p, .wo-panel a { font-size: 1rem; }
.wo-panel { margin-bottom: 1rem; }
.wo-panel p a { display: inline-flex; align-items: center; min-height: 44px; }

/* R36: recibos */
.rec-panel { margin-bottom: 1rem; }
.rec-panel p, .rec-panel a, .rec-page .hint, .rec-page .kicker, .rec-page .kicker a, .rec-page .field label, .rec-page legend, .rec-page .clients-meta, .rec-sum dt, .rec-sum dd { font-size: 1rem; }
.rec-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem 1rem; margin: 0 0 1rem; }
.rec-sum div { min-width: 0; }
.rec-sum dt { opacity: .8; }
.rec-sum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rec-detail { grid-template-columns: 1fr; }
.rec-panel p a, .rec-mini a { display: inline-flex; align-items: center; min-height: 44px; }
.rec-mini { list-style: none; padding: 0; margin: .25rem 0; }
.rec-cta { min-height: 44px; }
.rec-choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rec-choices legend { font-weight: 600; margin-bottom: .25rem; width: 100%; }
.rec-choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border: 1px solid rgba(0,0,0,.18); border-radius: 999px; font-size: 1rem; cursor: pointer; }
.rec-choice input { width: 20px; height: 20px; margin: 0; }
.rec-choice:has(input:checked) { border-color: currentColor; font-weight: 700; }
.rec-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; border: 2px solid #b42318; color: #b42318; font-size: 1rem; font-weight: 700; vertical-align: middle; }

/* R36/QA35: 320px no Pro — logo + chip + Criar + ☰ passavam 20px da borda. A logo encolhe; nada sai da tela. */
@media (max-width: 374px) {
  .site-nav .nav-glass { min-width: 0; gap: 8px; }
  .site-nav .brand { flex: 0 1 auto; min-width: 0; }
  .site-nav .brand-logo { width: auto; max-width: 100%; height: auto; max-height: 32px; object-fit: contain; }
  .site-nav .nav-cta { flex: 0 0 auto; gap: 6px; }
}

/* R36/QA35: atalhos do Início (só onde a navegação vira ☰). */
.home-shortcuts { display: none; }
@media (max-width: 760px) {
  .home-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1rem; max-width: 100%; }
  .home-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.16); background: rgba(255,255,255,.7); font-size: 1rem; font-weight: 600; text-decoration: none; color: inherit; }
}

/* R37 */
.rec-warn { font-size: 1rem; border-left: 4px solid #b54708; }
.rec-warn a { display: flex; width: fit-content; align-items: center; min-height: 44px; font-weight: 700; }
.btn-sm { min-height: 44px; }
a.brand, a.due-soon-num, a.sheet-number { display: inline-flex; align-items: center; min-height: 44px; }
input[type=file] { min-height: 44px; }

/* R38: alvos de toque ≥44px ("Ver todos", links da OS e a caixa "Mostrar valores no PDF"). */
a.r38-tap { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; vertical-align: middle; }
.wo-toggle { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.wo-toggle input { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; }
.nav-links > a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-start; }
