/* Contagem física: celular primeiro (campos grandes, botões largos) */
.ct-lista { display: flex; flex-direction: column; gap: 10px; }
.ct-cartao { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; text-align: left; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; border: 1px solid var(--line); width: 100%; }
.ct-cartao:hover { background: var(--green-50); }
.ct-cartao small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
.ct-num { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; }
.ct-st-aberta { color: var(--amber); }
.ct-st-cancelada { color: var(--ink-4); }
.ct-busca { padding: 14px 16px; margin-bottom: 14px; position: sticky; top: 8px; z-index: 5; }
.ct-busca .search-field { display: flex; flex-direction: row; align-items: center; }
.ct-busca .search-field input { flex: 1; font-size: 16px; height: 46px; }
.ct-res { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 50vh; overflow: auto; }
.ct-op { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); font: inherit; color: inherit; cursor: pointer; flex-shrink: 0; }
.ct-op:hover, .ct-op:focus { background: var(--green-50); }
.ct-op small { color: var(--ink-3); font-size: 12px; }
.ct-form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.ct-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.ct-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ink-3); }
.ct-grid input { height: 46px; font-size: 16px; }
.ct-grid small { font-size: 11.5px; color: var(--ink-4); }
.ct-salvar { width: 100%; height: 48px; margin-top: 12px; justify-content: center; font-size: 15px; }
.ct-itens { list-style: none; margin: 0; padding: 0 0 6px; }
.ct-itens li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); }
.ct-itens li small { display: block; color: var(--ink-3); font-size: 12px; }
.ct-total { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-total small { font-weight: 400; }
.ct-acoes { display: flex; gap: 2px; }
.ct-acoes .icon-btn { width: 34px; height: 34px; color: var(--ink-3); }
.ct-rodape { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 24px; }
.ct-rodape .btn-primary { height: 46px; }
.ct-resumo { padding: 14px 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.ct-resumo ul, .ct-pend ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.ct-resumo-txt { margin: 0 0 10px; }
.ct-pend { background: var(--amber-50, #fff7e6); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 13px; }
.ct-tab-wrap { overflow-x: auto; }
.ct-tab td small { display: block; color: var(--ink-3); font-size: 11.5px; }
.ct-tab td { white-space: normal; }
.ct-linha-pend td { background: var(--amber-50, #fff7e6); }
@media (max-width: 600px) {
  .ct-itens li { padding: 10px 14px; }
  .ct-rodape .btn-primary { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 760px) { .ct-rodape { margin-bottom: 96px; } }
.ct-tab th, .ct-tab td { display: table-cell !important; }
@media (max-width: 600px) { .ct-tab { font-size: 12.5px; } .ct-tab th, .ct-tab td { padding: 8px 6px; } .ct-tab td:first-child { min-width: 110px; } }
.ct-linha-busca { display: flex; gap: 8px; align-items: center; }
.ct-linha-busca .search-field { flex: 1; }
.ct-dica { margin: 6px 2px 0; font-size: 12px; color: var(--ink-3); }
.ct-linha-busca .search-field { min-width: 0; }
.ct-linha-busca .op-mini { flex-shrink: 0; height: 46px; }
.ct-endereco { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.ct-endereco select { height: 44px; font-size: 15px; color: var(--ink-1, inherit); }
.ct-grupo-end { display: flex !important; align-items: center; gap: 6px; padding: 8px 20px !important; background: var(--green-50); font-size: 12px; font-weight: 600; color: var(--green); }
.ct-grupo-end svg { width: 14px; height: 14px; }
