/* ============================================================
   FRASCOS MULTIDOSE · Painel (23/out/2026)
   Usa os tokens do shell v2 (--v2-*) e o esqueleto .inj-modal.
   Prefixo frx-. Sem painel de ansiedade: frases calmas, uma barra
   de quanto sobrou, nada de contagem regressiva.
   ============================================================ */

/* ── chip na linha/card do estoque ── */
.frx-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; max-width: 100%; font-family: inherit; font-size: 10.5px; font-weight: 600; color: #5A5049; background: #F8F3EA; border: 1px solid rgba(202,169,103,.38); border-radius: 999px; padding: 2px 9px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.6; }
.frx-chip:hover { border-color: var(--v2-gold); color: var(--v2-ink); }
.frx-chip .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--v2-gold); }
.frx-chip.vazio { background: #FFFFFF; color: var(--v2-sub); font-weight: 500; border-style: dashed; }
.frx-chip.passou .dot { background: var(--v2-terracota); }

/* ── modal ── */
.frx-modal { max-width: 720px; }
.frx-modal .inj-modal-sub .frx-link { font-size: inherit; }
.frx-resumo { font-size: 13px; color: #5A5049; line-height: 1.7; margin: 0 0 6px; }
.frx-resumo b { color: var(--v2-ink); font-weight: 600; }
.frx-nota { font-size: 11.5px; color: var(--v2-sub); line-height: 1.55; margin-top: 6px; }
.frx-bula { font-size: 10.5px; color: var(--v2-ter); line-height: 1.5; margin-top: 6px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.frx-bula a, .frx-calc .expl a { color: var(--v2-link, #8A6B26); font-weight: 600; text-decoration: none; white-space: nowrap; }
.frx-bula a:hover, .frx-calc .expl a:hover { text-decoration: underline; }
.frx-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 2px; }
.frx-sec { font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-sub); font-weight: 700; margin: 22px 0 10px; }
.frx-vazio { padding: 18px 16px; border: 1px dashed var(--v2-line-strong); border-radius: 14px; background: #FDFBF7; font-size: 12.5px; color: var(--v2-sub); line-height: 1.6; text-align: center; }
.frx-vazio b { color: var(--v2-ink); }
.frx-link { background: none; border: none; padding: 0; color: var(--v2-link); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.frx-link:hover { color: #7A5F2F; }

/* ── frasco aberto ── */
.frx-frasco { background: #FFFFFF; border: 1px solid var(--v2-line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--v2-shadow); margin-bottom: 10px; }
.frx-frasco.passou { border-color: rgba(165,101,78,.32); }
.frx-frasco-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.frx-frasco-tit { font-family: 'Mirante', 'Helvetica Neue', serif; font-size: 15px; font-weight: 600; color: var(--v2-ink); line-height: 1.3; }
.frx-quem { font-family: inherit; font-size: 12px; font-weight: 400; color: var(--v2-sub); }
.frx-frasco-dil { font-size: 11.5px; color: var(--v2-sub); margin-top: 3px; line-height: 1.45; }
.frx-conc { flex: none; text-align: right; }
.frx-conc b { display: block; font-family: 'Mirante', 'Helvetica Neue', serif; font-size: 20px; font-weight: 600; color: var(--v2-ink); line-height: 1.05; }
.frx-conc span { font-size: 10px; color: var(--v2-ter); }
.frx-barra { height: 6px; border-radius: 999px; background: #EFE8DC; margin: 12px 0 6px; overflow: hidden; }
.frx-barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #D7BC82, #CAA967); }
.frx-linha { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #5A5049; }
.frx-linha b { color: var(--v2-ink); font-weight: 600; }
.frx-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--v2-sub); margin-top: 8px; }
.frx-meta .passou { color: var(--v2-terracota); font-weight: 600; }
.frx-frasco-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(46,42,38,.06); }
.frx-frasco-acoes .inj-row-btn { margin-left: 0; }

/* ── baixas ── */
.frx-usos { display: flex; flex-direction: column; }
.frx-uso { display: grid; grid-template-columns: 46px minmax(0,1.2fr) minmax(0,1.4fr) minmax(0,1fr) auto; gap: 10px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid rgba(46,42,38,.06); font-size: 12px; color: #5A5049; }
.frx-uso:last-child { border-bottom: none; }
.frx-uso .d { color: var(--v2-sub); font-variant-numeric: tabular-nums; }
.frx-uso .p { color: var(--v2-ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frx-uso .q b { color: var(--v2-ink); font-weight: 600; }
.frx-uso .r { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frx-uso small { font-size: 10.5px; color: var(--v2-ter); }
.frx-uso .a { text-align: right; }
.frx-uso.desfeito .d, .frx-uso.desfeito .p, .frx-uso.desfeito .q, .frx-uso.desfeito .r { opacity: .45; text-decoration: line-through; }
.frx-enc summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--v2-sub); margin-top: 20px; }
.frx-enc-linha { font-size: 11.5px; color: #5A5049; line-height: 1.55; padding: 7px 0; border-bottom: 1px solid rgba(46,42,38,.06); }

/* ── formulários ── */
.frx-calc { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FBF7EF; border: 1px solid rgba(202,169,103,.35); font-size: 12.5px; color: var(--v2-ink); line-height: 1.6; }
.frx-calc.vazio { background: #FDFBF7; border-style: dashed; color: var(--v2-sub); }
.frx-calc.aviso { background: #FBF2EC; border-color: rgba(165,101,78,.35); }
.frx-calc .grande { font-family: 'Mirante', 'Helvetica Neue', serif; font-size: 17px; font-weight: 600; color: var(--v2-ink); }
.frx-calc .expl { font-size: 11px; color: var(--v2-sub); margin-top: 6px; line-height: 1.5; }
.frx-tag { display: inline-flex; vertical-align: middle; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--v2-r-chip); background: rgba(202,169,103,.16); color: #8A6B26; margin-right: 4px; }
.frx-tag.seca { background: rgba(165,101,78,.12); color: #8A4F3B; }
.frx-tag.molhada { background: rgba(95,107,78,.13); color: #4E5A40; }
.frx-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.frx-pill { border: 1px solid rgba(46,42,38,.16); background: #FFFFFF; border-radius: 999px; padding: 5px 11px; font-family: inherit; font-size: 11.5px; color: #5A5049; cursor: pointer; line-height: 1.4; }
.frx-pill:hover { border-color: var(--v2-gold); color: var(--v2-ink); }
.frx-pill.on { border-color: var(--v2-gold); background: rgba(202,169,103,.15); color: var(--v2-ink); font-weight: 600; }
.frx-seg { display: inline-flex; flex-wrap: wrap; background: #EDE7DE; border-radius: var(--v2-r-pill); padding: 3px; gap: 2px; }
.frx-seg button { border: none; background: transparent; padding: 6px 13px; border-radius: 9px; font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--v2-sub); cursor: pointer; white-space: nowrap; }
.frx-seg button.on { background: #FFFFFF; color: var(--v2-ink); box-shadow: 0 1px 2px rgba(46,42,38,.06); }
.frx-qtd-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.frx-qtd-linha input { flex: 1 1 140px; min-width: 120px; font-size: 16px !important; font-weight: 600; }
.frx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--v2-ink); cursor: pointer; line-height: 1.45; }
.frx-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.frx-dil-row { display: grid; grid-template-columns: 90px 1fr 34px; gap: 8px; margin-top: 6px; align-items: center; }
.frx-dil-row .inj-row-btn { margin-left: 0; padding: 6px 0; }

/* ── paciente ── */
.frx-pac-lista { margin-top: 6px; border: 1px solid var(--v2-line-strong); border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.frx-pac-lista button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: none; border-bottom: 1px solid rgba(46,42,38,.05); background: #FFFFFF; font-family: inherit; font-size: 12.5px; color: var(--v2-ink); cursor: pointer; }
.frx-pac-lista button:last-child { border-bottom: none; }
.frx-pac-lista button:hover { background: #FBF7EF; }
.frx-pac-nada { padding: 8px 12px; font-size: 12px; color: var(--v2-sub); }
.frx-pac-sel { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(202,169,103,.15); font-size: 13px; font-weight: 600; color: var(--v2-ink); }

/* ── novo item a partir de produto ── */
.frx-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.frx-preset { text-align: left; border: 1px solid var(--v2-line-strong); background: #FFFFFF; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-family: inherit; min-width: 0; }
.frx-preset:hover { border-color: var(--v2-gold); }
.frx-preset b { display: block; font-size: 12.5px; font-weight: 600; color: var(--v2-ink); line-height: 1.35; }
.frx-preset span { display: block; font-size: 10.5px; color: var(--v2-sub); margin-top: 2px; }
.frx-preset.on { border-color: var(--v2-gold); box-shadow: 0 0 0 2px rgba(202,169,103,.3); }

@media (max-width: 600px) {
  .frx-uso { grid-template-columns: 42px minmax(0,1fr) auto; }
  .frx-uso .r, .frx-uso .a { grid-column: 2 / -1; text-align: left; }
  .frx-conc b { font-size: 17px; }
  .frx-dil-row { grid-template-columns: 76px 1fr 34px; }
}
