/* App do Padronista · casca oficial da família iTELES & Patrian (mesmos tokens do App de Pedidos) */
:root {
  --bg-body: #121218; --bg-panel: #1a1a24; --bg-elev: #222230; --bg-table-header: #262636;
  --text-main: #e4e4e9; --text-muted: #9496a8; --border-color: #2e2e42;
  --primary: #009ef7; --primary-hover: #008be1; --primary-rgb: 0,158,247; --primary-escuro: #0b4f7a; --success: #50cd89; --danger: #f1416c;
  --warning: #ffc700; --info: #7239ea; --laranja: #ff6a00; --dourado: #d4af37;
  --ouro: linear-gradient(135deg, #8A5A2C, #C9954F 35%, #F2CF8E 55%, #B07A3A);
  --raio: 12px; --nav-h: 64px; --head-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg-body); }
body { background: var(--bg-body); color: var(--text-main); min-height: 100dvh; font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--primary); }
.num, .preco { font-family: 'Roboto Condensed', 'Roboto', sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- cabeçalho (igual à família) ---------- */
.header { position: sticky; top: 0; z-index: 30; background: var(--bg-panel); border-bottom: 1px solid var(--border-color);
  height: var(--head-h); padding: 0 16px; display: flex; align-items: center; gap: 10px; padding-top: env(safe-area-inset-top, 0); box-sizing: content-box; }
.logo { display: flex; align-items: center; flex: 1; min-width: 0; }
.logo-img { height: 28px; width: auto; display: block; }
.logo .divider { color: var(--border-color); margin: 0 10px; font-weight: 300; font-size: 20px; }
.header .quem { font-size: 12px; color: var(--text-muted); text-align: right; line-height: 1.2; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header .quem b { color: var(--text-main); display: block; font-size: 13px; }
.icon-btn { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; height: 36px; min-width: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.icon-btn:hover { border-color: var(--primary); }
@media (max-width: 420px) { .logo-img { height: 22px; } .logo .divider { margin: 0 6px; } .header .quem { display: none; } }

.app-title { background: var(--bg-panel); border-bottom: 1px solid var(--border-color); padding: 8px 16px 10px; display: flex; align-items: center; gap: 8px; }
.app-title .tag-app { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--ouro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sync-badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 3px 8px; background: var(--bg-body); border-radius: 4px; border: 1px solid var(--border-color); display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.status-dot.online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.busy { background: var(--warning); box-shadow: 0 0 8px var(--warning); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

main { max-width: 860px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
h1 { font-size: 22px; font-weight: 700; margin: 4px 0 14px; }
h2 { font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.over { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- botões (mesma família do App de Pedidos) ---------- */
.btn { padding: 11px 18px; border: none; border-radius: 8px; font-weight: 700; font-size: 14px; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s, background .15s; min-height: 44px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); } .btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-success { background: var(--success); color: #121218; }
.btn-danger { background: var(--danger); }
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover:not(:disabled) { background: var(--border-color); }
.btn-gold { background: var(--ouro); color: #1a1208; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12px; border-radius: 6px; }

/* ---------- formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.input-box, .field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--border-color); background: var(--bg-body); border-radius: 8px; color: var(--text-main); font-size: 16px; outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.input-box:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.grid2 { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.seg { display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.seg button { background: var(--bg-body); border: 0; padding: 10px 16px; font-weight: 700; color: var(--text-muted); }
.seg button.on { background: var(--primary); color: #fff; }

.card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--raio); padding: 16px; margin-bottom: 12px; }
.card.destaque { border-color: rgba(212,175,55,.45); box-shadow: inset 0 0 0 1px rgba(212,175,55,.12); }
details.card > summary { list-style: none; cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '▾'; margin-left: auto; color: var(--text-muted); transition: transform .2s; }
details.card[open] > summary::after { transform: rotate(180deg); }
details.card[open] > summary { margin-bottom: 12px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 500px at 50% -10%, rgba(var(--primary-rgb),.14), transparent 60%), var(--bg-body); }
.login-card { width: min(420px, 100%); background: var(--bg-panel); border: 1px solid var(--border-color); border-top: 3px solid var(--dourado); border-radius: 16px; padding: 26px 22px; }
.login-logos { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.login-logos img { height: 40px; } .login-logos .divider { color: var(--border-color); font-size: 26px; }
.login-card h1 { text-align: center; margin: 6px 0 4px; }
.login-card p.sub { text-align: center; color: var(--text-muted); margin-bottom: 18px; font-size: 13px; }
.senha-wrap { position: relative; } .senha-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-muted); font-size: 13px; padding: 8px; }
.erro-box { background: rgba(241,65,108,.12); border: 1px solid rgba(241,65,108,.4); color: #ffb3c4; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.ok-box { background: rgba(80,205,137,.1); border: 1px solid rgba(80,205,137,.4); color: #b9f3d2; border-radius: 8px; padding: 10px 12px; font-size: 13px; }

/* ---------- início: 4 ações ---------- */
.saud { margin: 2px 0 14px; } .saud b { font-size: 20px; display: block; }
.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acao { position: relative; text-align: left; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px 16px; min-height: 132px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .1s; }
.acao:active { transform: scale(.98); }
.acao:hover { border-color: var(--primary); }
.acao .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: rgba(var(--primary-rgb),.12); }
.acao.novo { background: linear-gradient(160deg, rgba(var(--primary-rgb),.22), var(--bg-panel) 70%); border-color: rgba(var(--primary-rgb),.5); }
.acao.novo .ic { background: var(--primary); }
.acao.docs .ic { background: rgba(212,175,55,.15); } .acao.loja .ic { background: rgba(80,205,137,.13); }
.acao b { font-size: 16px; } .acao small { color: var(--text-muted); font-size: 12px; line-height: 1.3; }
.acao.bloq { opacity: .45; } .acao.bloq::after { content: '🔒'; position: absolute; top: 12px; right: 12px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.acao .badge { position: absolute; top: 12px; right: 12px; }
.resumo-fin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resumo-fin div { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 12px; }
.resumo-fin small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.resumo-fin .v { font-size: 19px; font-weight: 700; }
.pago { color: var(--success); } .pend { color: var(--warning); }

/* ---------- navegação inferior (celular) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bg-panel); border-top: 1px solid var(--border-color);
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); }
.bottom-nav button { background: none; border: 0; color: var(--text-muted); font-size: 10.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; position: relative; }
.bottom-nav button .i { font-size: 21px; line-height: 1; }
.bottom-nav button.on { color: var(--primary); }
.bottom-nav button.on::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.bottom-nav button.novo .i { background: var(--primary); color: #fff; width: 40px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.bottom-nav .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
.bottom-nav button.bloq { opacity: .35; }
@media (min-width: 900px) { .bottom-nav { left: 50%; transform: translateX(-50%); width: 560px; bottom: 14px; border: 1px solid var(--border-color); border-radius: 16px; height: var(--nav-h); padding: 0; } }

/* ---------- listas ---------- */
.busca { position: relative; margin-bottom: 10px; } .busca input { padding-left: 38px; } .busca::before { content: '🔎'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .7; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-panel); color: var(--text-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pedido-item { width: 100%; text-align: left; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--raio); padding: 13px 14px; margin-bottom: 9px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.pedido-item:hover { border-color: var(--primary); }
.pedido-item .n { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; color: var(--primary); font-size: 13px; }
.pedido-item .cli { font-weight: 700; font-size: 15px; grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pedido-item .meta { grid-column: 1 / -1; color: var(--text-muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.pedido-item .lado { grid-row: 1 / 3; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sigla { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--bg-table-header); border: 1px solid var(--border-color); font-size: 11px; font-weight: 800; color: var(--text-main); font-family: 'Roboto Condensed', sans-serif; }
.novas { background: rgba(80,205,137,.15); color: var(--success); border: 1px solid rgba(80,205,137,.4); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.vazio { text-align: center; color: var(--text-muted); padding: 36px 12px; }
.vazio .i { font-size: 40px; display: block; margin-bottom: 6px; }

/* ---------- detalhe do pedido ---------- */
.voltar { background: none; border: 0; color: var(--text-muted); font-weight: 700; padding: 6px 0; margin-bottom: 6px; }
.ped-head { display: flex; gap: 12px; align-items: flex-start; }
.ped-head .n { font-family: 'Roboto Condensed', sans-serif; font-size: 13px; color: var(--primary); font-weight: 700; }
.ped-head h1 { margin: 2px 0 6px; font-size: 20px; }
.recebido { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success); margin-top: 8px; }
.tabs { position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg-body); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--border-color); margin: 6px -16px 14px; padding: 0 8px; }
.tab { background: none; border: 0; padding: 13px 6px 11px; font-size: 13px; font-weight: 700; color: var(--text-muted); border-bottom: 2px solid transparent; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.tab.on { color: var(--primary); border-bottom-color: var(--primary); }

/* conversa estilo WhatsApp */
.chat { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 12px; min-height: 160px; }
.dia { align-self: center; font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--bg-panel); border: 1px solid var(--border-color); padding: 3px 10px; border-radius: 999px; margin: 8px 0 2px; }
.bolha { max-width: 84%; padding: 8px 11px 6px; border-radius: 12px; font-size: 14.5px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.bolha .aut { display: block; font-size: 11.5px; font-weight: 800; color: var(--dourado); margin-bottom: 2px; }
.bolha .h { display: block; text-align: right; font-size: 10.5px; color: rgba(228,228,233,.6); margin-top: 3px; }
.bolha.eu { align-self: flex-end; background: var(--primary-escuro); border-top-right-radius: 3px; }
.bolha.eles { align-self: flex-start; background: var(--bg-table-header); border-top-left-radius: 3px; }
.bolha.pend { opacity: .6; }
.composer { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); display: flex; gap: 8px; align-items: flex-end; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 24px; padding: 6px 6px 6px 14px; }
.composer textarea { flex: 1; background: none; border: 0; outline: none; resize: none; max-height: 140px; min-height: 24px; padding: 8px 0; font-size: 16px; line-height: 1.35; }
.composer button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--success); color: #121218; font-size: 19px; flex: none; }
.composer button:disabled { opacity: .45; }

.timeline { list-style: none; border-left: 2px solid var(--border-color); margin-left: 8px; padding-left: 16px; }
.timeline li { position: relative; padding: 0 0 14px; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-body); border: 2px solid var(--primary); }
.timeline li:first-child::before { background: var(--primary); }
.timeline .d { font-family: 'Roboto Condensed', sans-serif; font-size: 12px; font-weight: 700; color: var(--primary); }
.timeline .t { white-space: pre-wrap; overflow-wrap: anywhere; }

.valores { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.valores div { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--raio); padding: 14px; }
.valores small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.valores .v { font-size: 22px; font-weight: 700; margin-top: 4px; }
.aviso-consulta { font-size: 12px; color: var(--text-muted); margin-top: 10px; display: flex; gap: 6px; }
.dados dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 12px; }
.dados dt { color: var(--text-muted); font-size: 12px; font-weight: 700; } .dados dd { overflow-wrap: anywhere; }

/* ---------- anexos ---------- */
.anexar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.anexar label { cursor: pointer; border: 1.5px dashed var(--border-color); border-radius: 12px; padding: 16px 10px; text-align: center; display: grid; gap: 4px; justify-items: center; font-weight: 700; background: var(--bg-body); }
.anexar label:hover { border-color: var(--primary); }
.anexar label .i { font-size: 28px; }
.anexar label small { color: var(--text-muted); font-weight: 500; font-size: 11px; }
.anexar input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.arquivos { display: grid; gap: 8px; }
.arq { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 10px; padding: 6px; }
.arq .th { width: 48px; height: 48px; border-radius: 7px; background: var(--bg-table-header) center/cover no-repeat; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--danger); }
.arq .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .arq .st { font-size: 11px; color: var(--text-muted); }
.arq .st.ok { color: var(--success); } .arq .st.erro { color: var(--danger); } .arq .st.env { color: var(--warning); }
.arq button { background: none; border: 0; color: var(--text-muted); font-size: 18px; width: 36px; height: 36px; }
.progresso { height: 6px; background: var(--bg-table-header); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.progresso i { display: block; height: 100%; background: var(--primary); transition: width .3s; }
.recibo { text-align: center; padding: 26px 16px; }
.recibo .i { font-size: 56px; } .recibo .n { font-size: 30px; font-weight: 800; color: var(--primary); font-family: 'Roboto Condensed', sans-serif; }

/* ---------- guia de serviços (diagrama expansível) ---------- */
.guia-raiz { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.guia-raiz .no { background: var(--ouro); color: #1a1208; font-weight: 800; padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.guia { border-left: 2px solid rgba(212,175,55,.5); margin-left: 22px; padding-left: 14px; }
.guia details { position: relative; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--raio); margin-bottom: 9px; }
.guia details::before { content: ''; position: absolute; left: -16px; top: 24px; width: 14px; height: 2px; background: rgba(212,175,55,.5); }
.guia summary { list-style: none; cursor: pointer; padding: 13px 14px; display: flex; align-items: center; gap: 10px; }
.guia summary::-webkit-details-marker { display: none; }
.guia summary .nm { flex: 1; font-weight: 700; }
.guia summary::after { content: '▸'; color: var(--text-muted); transition: transform .2s; }
.guia details[open] summary::after { transform: rotate(90deg); }
.guia details[open] { border-color: rgba(212,175,55,.5); }
.guia .corpo { padding: 0 14px 14px; }
.doclist { list-style: none; display: grid; gap: 6px; margin: 4px 0 12px; }
.doclist label { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 8px; padding: 9px 10px; font-size: 14px; }
.doclist input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--success); flex: none; }

/* ---------- loja ---------- */
.fid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.fid .nivel { width: 58px; height: 58px; border-radius: 50%; background: var(--ouro); color: #1a1208; display: grid; place-items: center; font-weight: 900; font-size: 22px; grid-row: 1 / 3; }
.fid .barra { height: 8px; background: var(--bg-table-header); border-radius: 4px; overflow: hidden; } .fid .barra i { display: block; height: 100%; background: var(--ouro); }
.produtos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.prod { position: relative; background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--raio); padding: 14px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.prod.sel { border-color: var(--success); }
.prod .rib { align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 3px 9px; border-radius: 6px; text-transform: uppercase; }
.rib.promo { background: var(--laranja); color: #fff; } .rib.queima { background: var(--danger); color: #fff; }
.prod h3 { } .prod .desc { font-size: 12px; color: var(--text-muted); }
.prod .preco { font-size: 21px; font-weight: 700; } .prod .preco s { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-right: 6px; }
.prod .un { font-size: 12px; color: var(--text-muted); }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; margin-top: auto; }
.stepper button { background: var(--bg-table-header); border: 0; font-size: 20px; font-weight: 700; height: 42px; }
.stepper input { text-align: center; border: 0; background: var(--bg-body); font-size: 17px; font-weight: 700; width: 100%; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.carrinho { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); margin-top: 14px; background: var(--success); color: #121218; border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.carrinho .t { flex: 1; font-weight: 800; line-height: 1.2; } .carrinho .t small { display: block; font-weight: 600; font-size: 12px; }
.carrinho .btn { background: #121218; color: #fff; }
.tipo-aviso { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); background: var(--bg-panel); border: 1px dashed var(--border-color); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.situacao { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.sit-Solicitada { color: var(--primary); } .sit-Em { color: var(--warning); } .sit-Pronta { color: var(--info); filter: brightness(1.5); }
.sit-Concluída { color: var(--success); } .sit-Cancelada { color: var(--danger); }

/* ---------- folha inferior / diálogo ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: 18px 18px 0 0; width: min(560px, 100%); max-height: 88dvh; overflow: auto; padding: 18px 16px calc(18px + var(--safe-b)); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; } }
.linha-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.total-linha { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; padding: 12px 0; }

/* ---------- toasts ---------- */
#toast-container { position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--head-h) + 10px + env(safe-area-inset-top, 0px)); z-index: 90; display: grid; gap: 8px; width: min(94vw, 460px); }
.toast { background: var(--bg-table-header); border: 1px solid var(--border-color); border-left: 4px solid var(--success); border-radius: 8px; padding: 11px 14px; font-size: 14px; display: flex; gap: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.5); transition: opacity .3s; }
.toast.error { border-left-color: var(--danger); } .toast.warning { border-left-color: var(--warning); }

.carregando { display: grid; place-items: center; padding: 50px 0; color: var(--text-muted); gap: 10px; }
.spin { width: 30px; height: 30px; border: 3px solid var(--border-color); border-top-color: var(--primary); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* 4 apps: a Loja some por completo quando desligada */
.bottom-nav button[hidden] { display: none; }
a.acao { text-decoration: none; color: inherit; }
#contatoLogin a { color: var(--primary); }

/* ===== Modo claro (botão ☀️). O escuro continua o padrão. =====
 * A barra do topo e o quadro das logos ficam escuros nos dois modos: as logos oficiais são feitas para fundo escuro. */
:root[data-tema="claro"] {
  --bg-body: #f3f4f8; --bg-panel: #ffffff; --bg-elev: #ffffff; --bg-table-header: #eceef4;
  --text-main: #1b1d29; --text-muted: #5b5f72; --border-color: #d8dbe5;
  --dourado: #9a7419; --warning: #a87c00; --success: #1f9d5c;
}
:root[data-tema="claro"] .header {
  --bg-panel: #1a1a24; --bg-elev: #222230; --bg-table-header: #262636; --bg-body: #121218;
  --text-main: #e4e4e9; --text-muted: #9496a8; --border-color: #2e2e42; color: var(--text-main);
}
:root[data-tema="claro"] .login-logos { background: #1a1a24; border-radius: 12px; padding: 14px; }
:root[data-tema="claro"] .bolha.eu { background: rgba(var(--primary-rgb), .14); }
:root[data-tema="claro"] .bolha .h { color: var(--text-muted); }
:root[data-tema="claro"] .erro-box { color: #b4234a; }
:root[data-tema="claro"] .ok-box { color: #17784a; }
:root[data-tema="claro"] .toast { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
:root[data-tema="claro"] .sheet-bg { background: rgba(0,0,0,.35); }
.login-card { position: relative; }
.login-card .tema-btn { position: absolute; top: 12px; right: 12px; background: var(--bg-table-header); border: 1px solid var(--border-color); border-radius: 50%; width: 36px; height: 36px; font-size: 16px; }
.header .tema-btn { font-size: 16px; }
