/* ============================================================
   RECEITUÁRIO · Painel (02/out/2026)
   Handoff v2: palco claro #F1EBE0, cartão branco, Mirante no título,
   rótulo pequeno em caixa alta, dourado só no detalhe. Duas colunas:
   escrever à esquerda, a receita montada à direita.
   ============================================================ */
.rx-ov { position: fixed; inset: 0; z-index: 99990; background: rgba(33,29,24,.45); display: flex; align-items: stretch; justify-content: center; padding: 18px; }
.rx { background: #F1EBE0; border-radius: 18px; width: 100%; max-width: 1480px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(20,15,10,.35); }
.rx-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 24px 14px; background: #FFFFFF; border-bottom: 1px solid rgba(46,42,38,.08); }
.rx-kicker { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #8A6E38; font-weight: 700; margin-bottom: 10px; }
.rx-tipos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rx-tipos button { font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(46,42,38,.16); background: #FFFFFF; color: #2E2A26; cursor: pointer; }
.rx-tipos button.on { background: #211D18; color: #F6F2EE; border-color: #211D18; }
.rx-motivo { font-size: 11.5px; color: #8A6E38; }
.rx-x { background: transparent; border: 0; font-size: 28px; line-height: 1; color: #8D7B6A; cursor: pointer; }
.rx-meio { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.rx-esq { overflow-y: auto; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.rx-dir { overflow-y: auto; padding: 18px 22px; border-left: 1px solid rgba(46,42,38,.08); background: #E9E3DA; }

.rx-caixa-wrap { position: relative; }
.rx-caixa { width: 100%; font-family: inherit; font-size: 16px; color: #1E1915; background: #FFFFFF; border: 1.5px solid rgba(46,42,38,.18); border-radius: 14px; padding: 15px 18px; outline: none; box-shadow: 0 2px 10px rgba(30,25,21,.05); }
.rx-caixa:focus { border-color: #8A6E38; }
.rx-ia { position: absolute; right: 16px; top: 16px; font-size: 12px; color: #8A6E38; }
.rx-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 3; background: #FFFFFF; border: 1px solid rgba(46,42,38,.12); border-radius: 14px; box-shadow: 0 18px 40px rgba(30,25,21,.16); padding: 6px; }
.rx-sug button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-family: inherit; }
.rx-sug button.on, .rx-sug button:hover { background: #F7F1E8; }
.rx-sug img, .rx-sug-f { width: 36px; height: 36px; object-fit: contain; flex: none; border-radius: 8px; background: #F2EADF; }
.rx-sug b { display: block; font-size: 14px; color: #1E1915; }
.rx-sug i { display: block; font-style: normal; font-size: 11.5px; color: #8D7B6A; }
.rx-sug-dica { font-size: 11px; color: #A89A8A; padding: 6px 10px 4px; }

.rx-plano { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rx-plano > span { font-size: 11.5px; color: #8D7B6A; margin-right: 4px; }
.rx-plano button { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12px; color: #2E2A26; background: #FFFFFF; border: 1px solid rgba(46,42,38,.12); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; }
.rx-plano button:hover { border-color: #8A6E38; }
.rx-plano img { width: 22px; height: 22px; object-fit: contain; }

.rx-lista { display: flex; flex-direction: column; gap: 10px; }
.rx-vazio { font-size: 13px; color: #8D7B6A; background: rgba(255,255,255,.55); border: 1px dashed rgba(46,42,38,.18); border-radius: 14px; padding: 22px; text-align: center; }
.rx-card { background: #FFFFFF; border: 1px solid rgba(46,42,38,.1); border-radius: 14px; padding: 12px 14px; }
.rx-card-top { display: flex; align-items: center; gap: 8px; }
.rx-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #F2EADF; color: #8A6E38; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rx-nome { flex: 1; min-width: 0; font-family: inherit; font-size: 15px; font-weight: 600; color: #1E1915; border: 0; border-bottom: 1px solid transparent; padding: 4px 2px; background: transparent; outline: none; }
.rx-nome:focus, .rx-conc:focus { border-bottom-color: #8A6E38; }
.rx-conc { width: 130px; font-family: inherit; font-size: 13px; color: #2E2A26; border: 0; border-bottom: 1px solid rgba(46,42,38,.14); padding: 4px 2px; background: transparent; outline: none; }
.rx-mini { display: flex; gap: 2px; }
.rx-mini button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: #8D7B6A; cursor: pointer; font-size: 15px; }
.rx-mini button:hover:not([disabled]) { background: #F7F1E8; color: #1E1915; }
.rx-mini button[disabled] { opacity: .3; cursor: default; }
.rx-cls { margin: 8px 0 0 32px; font-size: 11.5px; padding: 5px 10px; border-radius: 8px; background: rgba(138,110,56,.1); color: #6E5528; }
.rx-cls.notificacao { background: rgba(154,74,58,.1); color: #8A3E30; }
.rx-poso { display: block; width: calc(100% - 32px); margin: 8px 0 0 32px; font-family: inherit; font-size: 14px; line-height: 1.5; color: #1E1915; background: #FDFBF7; border: 1px solid rgba(46,42,38,.12); border-radius: 10px; padding: 8px 10px; resize: vertical; outline: none; }
.rx-poso:focus { border-color: #8A6E38; }
.rx-atalhos { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 0 32px; }
.rx-atalhos button { font-family: inherit; font-size: 11.5px; color: #5E554B; background: #F7F1E8; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.rx-atalhos button:hover { background: #EDE3D4; color: #1E1915; }
.rx-linha { display: grid; grid-template-columns: 1fr 180px; gap: 10px; margin: 10px 0 0 32px; }
.rx-linha label, .rx-obs, .rx-cab-g label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8D7B6A; font-weight: 600; }
.rx-linha input, .rx-linha select, .rx-obs textarea, .rx-cab-g input { font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; color: #1E1915; background: #FDFBF7; border: 1px solid rgba(46,42,38,.14); border-radius: 9px; padding: 8px 10px; outline: none; }
.rx-linha input:focus, .rx-linha select:focus, .rx-obs textarea:focus, .rx-cab-g input:focus { border-color: #8A6E38; }
.rx-obs textarea { resize: vertical; }

.rx-cab { background: #FFFFFF; border: 1px solid rgba(46,42,38,.1); border-radius: 14px; padding: 12px 16px; }
.rx-cab summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: #2E2A26; list-style: none; }
.rx-cab summary::-webkit-details-marker { display: none; }
.rx-cab summary em { font-style: normal; color: #9A4A3A; font-weight: 500; }
.rx-cab-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.rx-cab-g .largo { grid-column: span 2; }
.rx-cab-s { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.rx-cab-s span { font-size: 11.5px; color: #4E5A40; font-weight: 600; }

.rx-hist { display: flex; flex-direction: column; gap: 6px; }
.rx-hist > span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8D7B6A; font-weight: 700; }
.rx-hist button { text-align: left; font-family: inherit; font-size: 12.5px; color: #2E2A26; background: #FFFFFF; border: 1px solid rgba(46,42,38,.1); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.rx-hist button:hover { border-color: #8A6E38; }
.rx-hist em { font-style: normal; color: #8A6E38; font-weight: 600; margin-left: 6px; }

.rx-papel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8D7B6A; font-weight: 700; }
.rx-papel-h em { font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 500; }
.rx-papel { display: flex; gap: 4px; }
.rx-papel button { font-family: inherit; font-size: 11.5px; font-weight: 600; border: 1px solid rgba(46,42,38,.16); background: #FFFFFF; color: #2E2A26; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.rx-papel button.on { background: #211D18; color: #F6F2EE; border-color: #211D18; }
.rx-prev { position: relative; overflow: hidden; }
.rx-prev iframe { position: absolute; left: 4px; top: 4px; border: 0; transform-origin: 0 0; background: #FFFFFF; box-shadow: 0 10px 30px rgba(30,25,21,.14); }

.rx-rodape { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 24px; background: #FFFFFF; border-top: 1px solid rgba(46,42,38,.08); }
.rx-check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #2E2A26; cursor: pointer; }
.rx-check input { accent-color: #8A6E38; }
.rx-btn { font-family: inherit; font-size: 12px; font-weight: 600; border-radius: 9px; padding: 8px 14px; cursor: pointer; border: 1px solid rgba(46,42,38,.18); background: #FFFFFF; color: #1E1915; }
.rx-btn.escuro { background: #211D18; color: #F6F2EE; border-color: #211D18; padding: 12px 24px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.rx-btn[disabled] { opacity: .45; cursor: default; }

@media (max-width: 980px) {
  .rx-ov { padding: 0; }
  .rx { border-radius: 0; }
  .rx-meio { grid-template-columns: 1fr; overflow-y: auto; }
  .rx-esq, .rx-dir { overflow: visible; }
  .rx-dir { border-left: 0; border-top: 1px solid rgba(46,42,38,.08); }
  .rx-linha { grid-template-columns: 1fr; }
  .rx-cab-g { grid-template-columns: 1fr 1fr; }
}
