/* Controls that inherit the general form-field height must opt out explicitly. */
.legal-check input[type="checkbox"] {
  box-sizing: border-box;
  align-self: start;
  width: 1.1rem !important;
  height: 1.1rem !important;
  min-height: 1.1rem;
  margin: 0.15rem 0 0;
  padding: 0;
}

/* Aviso de pagamento pendente com atalho para o checkout */
.flash.flash-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}
.flash.flash-action span { flex: 1 1 16rem; line-height: 1.5; }
.flash.flash-action .primary { flex: none; padding: .8rem 1.1rem; background: var(--forest); color: var(--chalk); }
@media (max-width: 520px) { .flash.flash-action .primary { width: 100%; justify-content: center; } }

/* Lista da equipe: coluna de pagamento e filtros */
.pay-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pay-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; color: #4f5953; background: #fff; border: 1px solid #ddd9d0; border-radius: 999px; font: 700 .64rem/1 Manrope, sans-serif; letter-spacing: .02em; text-transform: none; cursor: pointer; }
.pay-filters button span { color: #8a918c; font-weight: 600; }
.pay-filters button.is-active { color: #fcfaf5; background: #17201c; border-color: #17201c; }
.pay-filters button.is-active span { color: #d7c3a6; }
.pay-filters button[hidden] { display: none; }
.admin-project-list .project-row { grid-template-columns: minmax(0,.9fr) minmax(0,1.15fr) minmax(0,1.05fr) minmax(0,1.05fr) 9.5rem 12.5rem 32px; }
.admin-project-list .project-row > span.pay-cell { display: grid; gap: 4px; white-space: normal; overflow: visible; }
.pay-badge { justify-self: start; padding: 5px 10px; border-radius: 999px; font: 700 .6rem/1.2 Manrope, sans-serif; font-style: normal; white-space: nowrap; color: #7a5a1c; background: #f6ecd9; }
.pay-badge[data-pay="paid"] { color: #285f49; background: #e1eee7; }
.pay-badge[data-pay="refunded"] { color: #8b3f36; background: #f4e5e2; }
.pay-badge[data-pay="attention"] { color: #8b3f36; background: #fbeee0; box-shadow: inset 0 0 0 1px #e7c9a2; }
.pay-cell small { color: #7a827d; font-size: .62rem; }
/* Projetos estornados ou cancelados ficam esmaecidos: não precisam ser trabalhados. */
.admin-project-list a.project-row[data-pay="refunded"] > :not(.pay-cell):not(b) { opacity: .55; }
@media (max-width: 1050px) {
  .admin-project-list .project-row { grid-template-columns: minmax(0,.85fr) minmax(0,1.1fr) minmax(0,1fr) 8.8rem 11.8rem 30px; }
  .admin-project-list .status { justify-self: start; }
}
@media (max-width: 640px) {
  .admin-project-list a.project-row { grid-template-columns: 1fr auto; }
  .admin-project-list .project-row > span.pay-cell { grid-template-columns: 5.5rem 1fr; align-items: center; column-gap: 0; row-gap: 4px; }
  .pay-cell small { grid-column: 2; }
}

/* A busca e os filtros marcam linhas com [hidden]; a grade da linha (display:grid) sobrepunha o atributo fora do celular. */
.admin-project-list .project-row[hidden] { display: none !important; }
.admin-project-list a.project-row[data-pay="archived"] > :not(.pay-cell):not(b) { opacity: .55; }
.pay-badge[data-pay="archived"] { color: #5e6862; background: #eceae4; }
.archive-form { margin-top: 10px; }
.archive-form .archive-toggle { width: 100%; justify-content: center; color: #5e6862; background: transparent; border: 1px solid #ddd9d0; }
.archive-form .archive-toggle:hover { color: #17201c; border-color: #b9b3a7; }
.archive-note { margin: 8px 0 0; color: #7a827d; font-size: .68rem; text-align: center; }

/* Controle do projeto: fica no topo da lateral e rola junto com a página (antes, preso, cobria os blocos de baixo). */
.project-command-aside .sticky-control { position: static; top: auto; z-index: auto; }

/* Miniatura da imagem de referência enviada pelo cliente no link público */
.client-note-thumb { display: inline-block; margin-top: 8px; border-radius: 8px; overflow: hidden; border: 1px solid #ddd9d0; }
.client-note-thumb img { display: block; width: 96px; height: 72px; object-fit: cover; }

/* Observações do cliente: encaminhar ao escritório */
.forward-form { margin: 6px 0 0; }
.forward-form .text-action { padding: 0; color: #7a5a1c; background: none; border: 0; font: 700 .7rem Manrope, sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.forwarded-tag { display: inline-block; margin-top: 6px; color: #285f49; font-size: .68rem; font-weight: 800; }
.tour-pending-item.status-rascunho { border-style: dashed; }

/* Proteção do link na página do projeto */
.link-protect { display: grid; gap: 12px; margin: 16px 0; padding: 18px; background: #faf8f3; border: 1px solid #e6e1d7; border-radius: 12px; }
.lp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px; }
.lp-head .kicker { margin: 0 0 4px; }
.lp-head b { font-size: .92rem; }
.lp-head a { color: #17201c; font-size: .72rem; font-weight: 800; }
.lp-release { margin: 0; padding: 10px 12px; border-radius: 9px; background: #e1eee7; color: #285f49; font-size: .76rem; line-height: 1.5; }
.lp-release.is-pending { background: #fdf6ec; color: #7a5a1c; border: 1px solid #efd9b8; }
.link-protect form { margin: 0; }
.link-protect .primary { border-radius: 9px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px; }
.lp-grid > div { display: grid; gap: 4px; align-content: start; padding: 12px; background: #fff; border: 1px solid #e6e1d7; border-radius: 10px; }
.lp-grid small { color: #69716c; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lp-grid b { font-size: .84rem; }
.lp-grid span { color: #69716c; font-size: .7rem; line-height: 1.45; }
.lp-grid .text-action { justify-self: start; padding: 0; color: #7a5a1c; background: none; border: 0; font: 700 .7rem Manrope, sans-serif; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-bad { color: #8b3f36 !important; }
.lp-code { font: 700 1.2rem "IBM Plex Mono", monospace !important; letter-spacing: .18em; }
.lp-devices summary { cursor: pointer; color: #17201c; font-size: .72rem; font-weight: 800; }
.lp-devices ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.lp-devices li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #fff; border: 1px solid #eee9df; border-radius: 8px; font-size: .72rem; }
.lp-devices li span:last-child { color: #69716c; }


/* Selo de status do projeto: a coluna herda text-align:right, mas o texto do selo fica centralizado. */
.project-state span { text-align: center; }
