/* Plain CSS for Safari 10 (iPad 4): flexbox with -webkit- prefixes, no grid, no CSS vars. */
* { -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0,0,0,0); }
html, body { margin: 0; padding: 0; }
body { font-family: Georgia, "Times New Roman", serif; background: #f6efe3; color: #2b1d14; -webkit-text-size-adjust: 100%; }
.topo { background: #8e1b1b; color: #fff8ec; padding: 18px 24px; text-align: center; border-bottom: 6px solid #1f5a3a; }
.topo h1 { margin: 0; font-size: 34px; letter-spacing: 1px; }
.topo p { margin: 4px 0 0; font-size: 17px; color: #f3d9a4; font-style: italic; }
.barra { padding: 14px 24px; background: #fff8ec; border-bottom: 1px solid #e4d5bb; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.barra input { -webkit-flex: 1; flex: 1; font-size: 20px; padding: 12px 14px; border: 2px solid #c9b48f; border-radius: 10px; background: #fff; -webkit-appearance: none; font-family: inherit; }
.contador { margin-left: 16px; font-size: 16px; color: #1f5a3a; white-space: nowrap; }
.lista { padding: 16px 18px 40px; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.card { width: 31.33%; margin: 1%; background: #fff; border-radius: 14px; border: 2px solid #e4d5bb; padding: 14px; cursor: pointer; position: relative; min-height: 132px; }
.card:active { background: #fff3dc; }
.card .num { position: absolute; top: 10px; right: 12px; background: #1f5a3a; color: #fff; border-radius: 20px; padding: 3px 11px; font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: bold; }
.card .nome { font-size: 20px; font-weight: bold; margin: 2px 60px 8px 0; line-height: 1.2; }
.card .info { font-size: 15px; color: #6b5444; font-family: Helvetica, Arial, sans-serif; line-height: 1.5; }
.card.tomada { background: #efe7da; border-color: #e0d3bd; color: #9c8c7c; cursor: default; }
.card.tomada .num { background: #b5a691; }
.selo { display: inline-block; margin-top: 8px; font-size: 14px; background: #8e1b1b; color: #fff; padding: 3px 10px; border-radius: 6px; font-family: Helvetica, Arial, sans-serif; }
.tomada .selo { background: #b5a691; }
.vazio { width: 100%; text-align: center; padding: 50px; font-size: 20px; color: #6b5444; }
.fundo { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(43,29,20,0.6); display: none; z-index: 10; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fundo.aberto { display: block; }
.janela { background: #fff8ec; width: 620px; max-width: 94%; margin: 20px auto; border-radius: 16px; padding: 20px; border-top: 8px solid #8e1b1b; }
.janela h2 { margin: 0 0 6px; font-size: 26px; color: #8e1b1b; }
.janela .sub { margin: 0 0 18px; font-size: 16px; color: #6b5444; font-family: Helvetica, Arial, sans-serif; }
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 16px; margin-bottom: 5px; font-weight: bold; }
.campo input { width: 100%; font-size: 20px; padding: 12px; border: 2px solid #c9b48f; border-radius: 10px; background: #fff; -webkit-appearance: none; font-family: Helvetica, Arial, sans-serif; }
.erro { color: #b00020; font-size: 16px; min-height: 22px; margin: 4px 0 10px; font-family: Helvetica, Arial, sans-serif; }
.botoes { display: -webkit-flex; display: flex; }
.btn { -webkit-flex: 1; flex: 1; font-size: 20px; padding: 14px; border: 0; border-radius: 10px; font-family: inherit; font-weight: bold; -webkit-appearance: none; cursor: pointer; }
.btn + .btn { margin-left: 12px; }
.btn-sim { background: #1f5a3a; color: #fff; }
.btn-nao { background: #e4d5bb; color: #2b1d14; }
.btn[disabled] { opacity: 0.6; }
.ok { text-align: center; }
.ok .grande { font-size: 60px; color: #1f5a3a; line-height: 1; }
/* admin */
.adm { padding: 18px; }
.adm table { width: 100%; border-collapse: collapse; background: #fff; font-family: Helvetica, Arial, sans-serif; font-size: 14px; }
.adm th, .adm td { border-bottom: 1px solid #e4d5bb; padding: 8px 6px; text-align: left; vertical-align: top; }
.adm th { background: #1f5a3a; color: #fff; position: -webkit-sticky; position: sticky; top: 0; }
.adm tr.sim td { background: #f1f8f3; }
.mini { font-size: 13px; padding: 6px 10px; border: 0; border-radius: 6px; background: #8e1b1b; color: #fff; cursor: pointer; -webkit-appearance: none; }
.filtros { margin-bottom: 12px; font-family: Helvetica, Arial, sans-serif; }
.filtros button { font-size: 15px; padding: 8px 12px; margin: 0 6px 6px 0; border: 2px solid #1f5a3a; background: #fff; color: #1f5a3a; border-radius: 8px; -webkit-appearance: none; }
.filtros button.ativo { background: #1f5a3a; color: #fff; }
.login { width: 380px; max-width: 94%; margin: 60px auto; background: #fff8ec; padding: 24px; border-radius: 14px; border-top: 8px solid #8e1b1b; }
@media (max-width: 800px) { .card { width: 48%; } }
@media (max-width: 520px) { .card { width: 98%; } .topo h1 { font-size: 26px; } }

/* ===== Identidade "Natal para a cidade" (red Social): vermelho natalino + dourado ===== */
body { background: #6e0a0a; background-image: -webkit-linear-gradient(top, #b3100f 0%, #7a0b0b 45%, #4f0606 100%); background-image: linear-gradient(to bottom, #b3100f 0%, #7a0b0b 45%, #4f0606 100%); background-attachment: fixed; color: #3a1208; font-family: "Avenir Next", Avenir, Helvetica, Arial, sans-serif; }
.topo { background: #a60d0d; background-image: -webkit-radial-gradient(50% 30%, circle, #c8140f 0%, #8a0a0a 75%); background-image: radial-gradient(circle at 50% 30%, #c8140f 0%, #8a0a0a 75%); padding: 0 0 16px; border-bottom: 2px solid #e2a873; }
.topo-img { display: block; width: 520px; max-width: 80%; margin: 0 auto; }
.topo p { color: #f6d2a8; font-style: normal; padding-bottom: 4px; }
.chamada { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; color: #fff; font-size: 19px; line-height: 1.3; margin-top: -6px; }
.chamada-a { text-align: right; padding-right: 22px; border-right: 1px solid #e2a873; }
.chamada-b { padding-left: 22px; }
.barra { background: rgba(60,4,4,0.55); border-bottom: 1px solid rgba(226,168,115,0.5); }
.barra input { border: 2px solid #e2a873; background: #fff9f1; color: #3a1208; }
.contador { color: #f6d2a8; }
.card { background: #fff9f1; border: 2px solid #e2a873; -webkit-box-shadow: 0 6px 16px rgba(0,0,0,0.25); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.card:active { background: #fdebd3; }
.card .num { background: #b3100f; border: 2px solid #e2a873; }
.card .nome { font-family: Georgia, serif; color: #7a0b0b; }
.card .info { color: #6b3a24; }
.selo { background: -webkit-linear-gradient(left, #c98a4f, #f1c08a); background: linear-gradient(to right, #c98a4f, #f1c08a); color: #4f0606; font-weight: bold; }
.card.tomada { background: rgba(255,249,241,0.35); border-color: rgba(226,168,115,0.35); color: #f3d6c0; -webkit-box-shadow: none; box-shadow: none; }
.card.tomada .nome, .card.tomada .info { color: #f3d6c0; }
.card.tomada .num { background: rgba(0,0,0,0.25); border-color: rgba(226,168,115,0.4); }
.tomada .selo { background: rgba(0,0,0,0.25); color: #f6d2a8; }
.vazio { color: #f6d2a8; }
.rodape { overflow: hidden; height: 200px; }
.rodape img { display: block; width: 100%; -webkit-mask-image: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%); mask-image: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%); mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%); }
.fundo { background: rgba(40,2,2,0.75); }
.janela { background: #fff9f1; border-top: 0; border: 3px solid #e2a873; }
.janela h2 { color: #a60d0d; font-family: Georgia, serif; }
.janela .sub { color: #6b3a24; }
.campo input { border-color: #e2a873; }
.btn-sim { background: #b3100f; background-image: -webkit-linear-gradient(top, #c8140f, #8a0a0a); background-image: linear-gradient(to bottom, #c8140f, #8a0a0a); color: #fff; }
.btn-nao { background: #f3dcc0; color: #4f0606; }
.ok .grande { color: #c98a4f; }
.login { background: #fff9f1; border-top: 0; border: 3px solid #e2a873; }
.adm p { color: #fff; }
.adm th { background: #8a0a0a; color: #f6d2a8; }
.adm tr.sim td { background: #fdf1e2; }
.mini { background: #8a0a0a; }
.filtros button { border-color: #e2a873; color: #8a0a0a; background: #fff9f1; }
.filtros button.ativo { background: #e2a873; color: #4f0606; }
@media (max-width: 520px) { .chamada { font-size: 15px; } }
.topo-img { display: block; width: 400px; max-width: 84%; margin: 0 auto; }
.topo-logo { position: absolute; top: 8px; left: 50%; width: 124px; margin-left: -62px; z-index: 4; }
.mini-img { width: 320px; max-width: 78%; }
.topo-adm .topo-logo { width: 100px; margin-left: -50px; top: 6px; }
.topo { position: relative; }
.engrenagem { position: absolute; top: 10px; right: 14px; z-index: 5; display: block; width: 44px; height: 44px; line-height: 44px; text-align: center; font-size: 26px; color: #f6d2a8; text-decoration: none; opacity: 0.45; border-radius: 22px; font-family: "Apple Symbols", "Segoe UI Symbol", sans-serif; }
.engrenagem:active { opacity: 1; background: rgba(0,0,0,0.2); }

/* Tela de sucesso: area destacada para copiar a mensagem (Safari 10 / iOS 10) */
.copiar-box { background: #fff3dc; border: 2px dashed #c98a4f; border-radius: 12px; padding: 12px 12px 10px; margin: 10px 0 8px; text-align: left; }
.copiar-titulo { font-family: Georgia, serif; font-size: 19px; font-weight: bold; color: #7a0b0b; text-align: center; margin-bottom: 10px; }
.copiar-texto { display: block; width: 100%; height: 320px; max-height: 46vh; font-size: 16px; line-height: 1.4; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: #3a1208; background: #fffdf8; border: 1px solid #e2a873; border-radius: 8px; padding: 12px; -webkit-appearance: none; resize: none; white-space: pre-wrap; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.copiar-dica { font-size: 14px; color: #6b3a24; text-align: center; margin-top: 8px; font-family: Helvetica, Arial, sans-serif; }
.btn-copiar { background: #1f5a3a; background-image: -webkit-linear-gradient(top, #2c7a52, #164229); background-image: linear-gradient(to bottom, #2c7a52, #164229); color: #fff; }
.adm td.chk { text-align: center; }
.adm td.chk input { width: 26px; height: 26px; }
