/* Elevel Coffee — admin da operação. Mesma identidade da loja, mais densa. */
body[data-vista="admin"] .topo-eventos { display: none; }
.adm { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.adm .vista-cabeca { margin-bottom: 4px; }
.adm .vista-cabeca h1 { font-size: clamp(30px, 8vw, 44px); text-wrap: balance; }
.adm .titulo-linha { margin: 14px 4px 0; }
.adm .titulo-linha .pilula-escura { height: 32px; }
.adm-entrada { text-decoration: none; color: var(--cafe); }

.adm-abas { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.adm-abas::-webkit-scrollbar { display: none; }
.adm-abas button { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--branco); box-shadow: var(--leve); color: var(--sec); font-weight: 800; font-size: 13.5px; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.adm-abas button svg { width: 17px; height: 17px; }
.adm-abas button[aria-current] { background: var(--cafe); color: #fff; }

.adm-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adm-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 0; border-radius: 22px; background: var(--branco); box-shadow: var(--leve); text-align: left; color: var(--cafe); font-size: 12.5px; cursor: pointer; min-width: 0; }
.adm-card.estatico, div.adm-card { cursor: default; }
.adm-card > span:not(.adm-rotulo) { color: var(--sec); line-height: 1.35; }
.adm-card.largo { grid-column: 1 / -1; }
.adm-card.escuro { background: var(--cafe); color: #fff; box-shadow: 0 14px 30px rgba(43,30,22,.22); }
.adm-card.escuro > span:not(.adm-rotulo) { color: rgba(255,255,255,.72); }
.adm-card.escuro .adm-rotulo { color: var(--ouro1); }
.adm-card.escuro .progresso { width: 100%; background: rgba(255,255,255,.16); margin: 6px 0 2px; }
.adm-card .linha-valor { width: 100%; }
.adm-rotulo { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--caramelo); }
.adm-rotulo svg { width: 15px; height: 15px; }
.adm-grande { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm-medio { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.positivo { color: var(--verde); }
.negativo { color: var(--erro); }
.adm-card.escuro .positivo { color: #9BD3A8; }

.adm-resumo-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; font-size: 14px; color: var(--sec); }
.adm-resumo-linha b { color: var(--cafe); font-variant-numeric: tabular-nums; }
.adm-filtros { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.adm-filtros::-webkit-scrollbar { display: none; }
.adm-filtros .ass-chip { height: 38px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.adm-filtros .ass-chip[aria-pressed="true"] { background: var(--cafe); color: #fff; }

.adm-lista { display: flex; flex-direction: column; gap: 6px; }
.adm-linha { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 12px 10px 14px; border: 0; border-radius: 16px; background: var(--branco); box-shadow: var(--leve); text-align: left; color: var(--cafe); font-size: 14px; cursor: pointer; }
div.adm-linha { cursor: default; }
.adm-linha.mov { min-height: 50px; }
.adm-linha > b { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-linha .progresso { width: 56px; flex-shrink: 0; }
.adm-linha.baixo { box-shadow: inset 0 0 0 1.5px rgba(154,59,36,.35), var(--leve); }
.adm-linha.baixo > b { color: var(--erro); }
.adm-linha.baixo .progresso::after { background: var(--erro); }
.adm-linha-texto { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adm-linha-texto strong { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.adm-linha-texto > span { font-size: 12.5px; color: var(--sec); line-height: 1.35; }
.adm-linha .pilula-escura { height: 38px; }
.adm-vazio { margin: 4px; font-size: 13px; color: var(--sec); }
.adm-verde { color: var(--caramelo) !important; font-weight: 700; }
.adm-linha.torra.ok { opacity: .7; }

.adm-linha.item { flex-wrap: wrap; row-gap: 8px; }
.adm-linha.item .adm-linha-texto { flex-basis: 140px; }
.adm-linha.item.saiu { background: var(--bloco); box-shadow: inset 0 0 0 1.5px var(--fio); }
.adm-linha.item.saiu strong { text-decoration: line-through; text-decoration-color: rgba(43,30,22,.35); }
.adm-check { width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--fio); color: #fff; }
.saiu .adm-check { background: var(--verde); box-shadow: none; }
.adm-check svg { width: 15px; height: 15px; stroke-width: 2.6; }
em.falta { font-style: normal; color: var(--erro); font-weight: 700; }
.adm-desfazer { border: 0; background: none; padding: 8px 4px; font-size: 12.5px; font-weight: 800; color: var(--sec); text-decoration: underline; cursor: pointer; }
.adm-x { width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--poco); color: var(--sec); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.adm-x svg { width: 16px; height: 16px; }

.adm-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--poco); flex-shrink: 0; }
.adm-stepper button { width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--branco); box-shadow: var(--leve); color: var(--cafe); display: grid; place-items: center; cursor: pointer; }
.adm-stepper button svg { width: 15px; height: 15px; }
.adm-stepper b { min-width: 54px; text-align: center; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-stepper.pequeno button { width: 30px; height: 30px; }
.adm-stepper.pequeno b { min-width: 48px; font-size: 12.5px; }
.adm-stepper.grande { align-self: center; padding: 5px; margin: 6px auto; }
.adm-stepper.grande button { width: 46px; height: 46px; }
.adm-stepper.grande span { min-width: 120px; text-align: center; font-family: var(--serif); font-size: 26px; font-weight: 600; }

.adm-duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adm-duas.topo { margin-top: 2px; }
.adm-duas .botao { height: 48px; padding: 0 12px; }
.adm-orc { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 18px; background: var(--branco); box-shadow: var(--leve); }
.adm-msg { font-style: italic; margin-top: 4px; }
.adm-evento { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 10px; border: 0; border-radius: 18px; background: var(--branco); box-shadow: var(--leve); text-align: left; color: var(--cafe); cursor: pointer; }
.adm-evento-data { width: 48px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--poco); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.adm-evento-data b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.adm-evento-data small { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--sec); margin-top: 2px; }
.selo-status.alerta { background: #F6E1DA; color: var(--erro); }
.selo-status.meio { background: var(--cafe); color: #fff; }
.adm-chips-info { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-chips-info > span:not(.selo-status) { padding: 5px 10px; border-radius: 999px; background: var(--branco); box-shadow: var(--leve); font-size: 12px; font-weight: 700; color: var(--sec); }
.adm-etapa { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--poco); font-size: 13px; color: var(--sec); margin-top: 6px; }
.adm-etapa strong { font-size: 16px; font-weight: 800; color: var(--cafe); }
.adm-ok { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--verde-fundo); color: var(--verde); font-size: 13px; font-weight: 700; }
.adm-ok svg { flex-shrink: 0; }
.adm-add { margin-top: 4px; }

.adm-form { display: flex; flex-direction: column; gap: 10px; }
.adm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--sec); min-width: 0; }
.adm-form input:not([type="checkbox"]), .adm-form select { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--branco); box-shadow: var(--leve); font-size: 15px; font-weight: 600; color: var(--cafe); }
.folha .adm-form input:not([type="checkbox"]), .folha .adm-form select { background: var(--poco); box-shadow: none; }
.adm-form .adm-check-linha { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--cafe); }
.adm-formatos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adm-formatos .ass-plano span { font-size: 11.5px; }

.adm-folha-sub { margin: 2px 0 10px; font-size: 13px; color: var(--sec); }
.adm-saldo { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; border-radius: 16px; background: var(--poco); font-size: 14px; color: var(--sec); }
.adm-saldo b { font-size: 20px; color: var(--cafe); font-variant-numeric: tabular-nums; }
.ass-chips.centro { justify-content: center; margin: 4px 0 12px; }
.adm-torra-conta { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.adm-torra-conta > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--sec); }
.adm-torra-conta .resultado { padding-top: 10px; border-top: 1px solid var(--fio); }
.adm-torra-conta .resultado b { font-family: var(--serif); font-size: 24px; color: var(--cafe); }
.adm-alerta { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #F6E1DA; color: var(--erro); font-size: 13px; font-weight: 700; }
.adm-escolher { max-height: 60vh; overflow-y: auto; }

.adm-barras { gap: 12px; }
.adm-barra { width: 100%; display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--sec); }
.adm-barra i { height: 10px; border-radius: 999px; background: var(--preench); position: relative; overflow: hidden; }
.adm-barra i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--f) * 100%); border-radius: inherit; background: var(--verde); }
.adm-barras.saida .adm-barra i::after { background: var(--caramelo); }
.adm-barra b { color: var(--cafe); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .adm-barra { grid-template-columns: 80px 1fr auto; } .adm-formatos { grid-template-columns: 1fr; } }
.adm-grade .adm-card:not(.escuro) .adm-grande { font-size: 24px; white-space: nowrap; }
.adm-linha.item .adm-linha-texto { flex: 1 1 calc(100% - 40px); }
.adm-linha.item .adm-linha-texto + .adm-stepper { margin-left: auto; }
.adm-linha.item.saiu .adm-linha-texto { flex: 1 1 auto; }

/* ---------- cafés: ficha, preço e cadastro ---------- */
.adm-explica { padding: 12px 16px; border-radius: 16px; background: var(--poco); font-size: 13px; color: var(--sec); line-height: 1.5; }
.adm-explica summary { cursor: pointer; font-weight: 800; color: var(--cafe); font-size: 14px; }
.adm-explica p { margin: 8px 0 0; }
.adm-explica b { color: var(--cafe); }
.adm-cafe { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 14px 16px; border: 0; border-radius: 20px; background: var(--branco); box-shadow: var(--leve); text-align: left; color: var(--cafe); cursor: pointer; }
.adm-cafe-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.adm-cafe-topo strong { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.adm-pontos { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--poco); font-size: 12px; font-weight: 800; color: var(--caramelo); }
.adm-cafe-sub { font-size: 12.5px; color: var(--sec); }
.adm-cafe-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-top: 1px solid var(--fio); border-bottom: 1px solid var(--fio); }
.adm-cafe-numeros > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-cafe-numeros small { font-size: 11px; color: var(--sec); font-weight: 700; }
.adm-cafe-numeros b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-cafe-rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--sec); }
.adm-notas { margin: 0 4px; font-size: 13.5px; color: var(--sec); font-style: italic; }
.adm-card.escuro .adm-medio { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.5; color: #fff; }

.adm-tabela { border-radius: 18px; background: var(--branco); box-shadow: var(--leve); overflow-x: auto; }
.adm-tabela > div { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr 1.1fr; gap: 6px; align-items: center; min-width: 330px; padding: 11px 14px; border-top: 1px solid var(--fio); font-size: 13px; font-variant-numeric: tabular-nums; }
.adm-tabela > div:first-child { border-top: 0; }
.adm-tabela > div > span { display: flex; flex-direction: column; min-width: 0; }
.adm-tabela > div > span:first-child { font-weight: 800; }
.adm-tabela small { font-size: 11px; color: var(--sec); font-weight: 700; }
.adm-tabela small.positivo { color: var(--verde); }
.adm-tabela small.negativo { color: var(--erro); }
.adm-tabela-cab { font-size: 11px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--sec); background: var(--poco); }
.botao[disabled] { opacity: .55; cursor: default; }

.adm-secao { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.adm-secao-num { width: 34px; height: 34px; border-radius: 999px; background: var(--cafe); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.adm-secao > div { display: flex; flex-direction: column; }
.adm-secao strong { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.adm-secao span:not(.adm-secao-num) { font-size: 13px; color: var(--sec); }
.adm-card.escuro .linha-valor { color: rgba(255,255,255,.75); }
.adm-card.escuro .linha-valor b, .adm-card.escuro .linha-valor.total { color: #fff; }
.adm-card.escuro .linha-valor.total { border-top-color: rgba(255,255,255,.2); font-size: 15px; }

.adm-select-cafe { max-width: 100%; height: 36px; padding: 0 30px 0 10px; border: 0; border-radius: 10px; background: var(--poco); font: inherit; font-size: 13.5px; font-weight: 800; color: var(--cafe); }
.adm-formatos.dois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-linha-texto b.positivo, .adm-linha-texto b.negativo { font-weight: 800; }

/* ---------- telas vazias e primeiros passos ---------- */
.adm-vazio-bloco { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; border-radius: 22px; background: var(--bloco); box-shadow: inset 0 0 0 1.5px var(--fio); text-align: center; color: var(--sec); font-size: 13.5px; line-height: 1.45; }
.adm-vazio-bloco strong { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--cafe); letter-spacing: -.02em; }
.adm-vazio-bloco > span:not(.adm-vazio-icone) { max-width: 32ch; }
.adm-vazio-bloco .botao { margin-top: 8px; height: 46px; }
.adm-vazio-icone { width: 54px; height: 54px; border-radius: 999px; display: grid; place-items: center; background: var(--branco); box-shadow: var(--leve); color: var(--caramelo); }
.adm-comeco { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 24px; background: var(--cafe); color: #fff; box-shadow: 0 14px 30px rgba(43,30,22,.22); }
.adm-comeco > strong { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.adm-comeco .adm-rotulo { color: var(--ouro1); }
.adm-passo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; background: rgba(255,255,255,.08); color: #fff; text-align: left; cursor: pointer; }
.adm-passo .adm-linha-texto > span { color: rgba(255,255,255,.7); }
.adm-passo .adm-secao-num { background: #fff; color: var(--cafe); }
.adm-passo.feito { opacity: .6; cursor: default; }
.adm-passo.feito .adm-secao-num { background: var(--verde); color: #fff; }
.adm-passo > svg { color: rgba(255,255,255,.6); flex-shrink: 0; }
.adm-comuns .adm-lista { margin-top: 10px; }
.adm-comuns .pilula-clara { height: 32px; }
