body {
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

input,
button {
  width: 100%;
  height: 42px;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

input {
  border: 1px solid #ccc;
  padding: 0 10px;
}

button {
  margin-top: 12px;
  border: none;
  background: #2c6bed;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #1f54c7;
}
.logo {
  width: 300px;
  margin-bottom: 20px;
}
.menu-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.menu-btn {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 42px;
  margin-top: 12px;
  border-radius: 6px;
  text-decoration: none;
  background: #2c6bed;
  color: white;
  font-size: 15px;
}

.menu-btn:hover {
  background: #1f54c7;
}

.link-sair {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
}

.link-sair:hover {
  text-decoration: underline;
}
.page-box {
  background: white;
  padding: 26px;
  border-radius: 10px;
  width: 420px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.back-link {
  text-decoration: none;
  color: #2c6bed;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.logo-small {
  width: 70px;
}

.subtitle {
  color: #555;
  font-size: 14px;
  margin-top: -6px;
  margin-bottom: 14px;
}

.suggestions {
  margin-top: 10px;
  text-align: left;
}

.suggestion-item {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-top: 6px;
  cursor: pointer;
}

.suggestion-item:hover {
  background: #f2f6ff;
}

.suggestion-empty {
  padding: 10px;
  color: #666;
  font-size: 14px;
}

.result-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: left;
}

.result-hint {
  color: #777;
  font-size: 14px;
}

.local-list {
  margin-top: 10px;
}

.local-btn {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border-radius: 6px;
  background: #2c6bed;
  color: white;
  text-decoration: none;
  text-align: center;
  line-height: 42px;
  font-size: 15px;
  cursor: pointer;
}

.local-btn:hover {
  background: #1f54c7;
}

.item-line {
  padding: 10px;
  border-bottom: 1px solid #eee;
  margin-top: 8px;
}

.item-click {
  text-decoration: none;
  color: inherit;
  display: block;
}

.item-click .item-line:hover {
  background: #f2f6ff;
  border-radius: 6px;
}
.item-click {
  text-decoration: none;
  color: inherit;
  display: block;
}

.item-click .item-line:hover {
  background: #f2f6ff;
  border-radius: 6px;
}
.item-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.item-link .item-card{
  transition: transform 0.05s ease-in-out;
}

.item-link:active .item-card{
  transform: scale(0.99);
}
/* Cards de itens (Locais / Pesquisa) */
.item-link{
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 12px;
}

.item-card{
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.item-line2{
  font-size: 14px;
  margin-top: 4px;
  color: #333;
}

/* Efeito de clique */
.item-link .item-card{
  transition: transform 0.05s ease-in-out;
}

.item-link:active .item-card{
  transform: scale(0.99);
}
a.secondary-btn,
a.secondary-btn:visited {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  line-height: 42px !important;

  background: #2c6bed !important;
  color: #ffffff !important;

  text-align: center !important;
  text-decoration: none !important;

  border: none !important;
  border-radius: 6px !important;

  margin-top: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;

  cursor: pointer !important;
}

a.secondary-btn:hover {
  background: #1f54c7 !important;
  text-decoration: none !important;
}
select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
  margin-bottom: 12px;
}

select.input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  background: #fff;
}

.topbar {
  width: 100%;
  margin-bottom: 12px;
}

.back-link {
  text-decoration: none;
  color: #2b6cb0;
  font-weight: 500;
}

.back.link {
  display: inline-block;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  background: white;
  padding: 6px 0;
  z-index: 10;
}

.page-box {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  padding: 26px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* título */
#tituloItem {
  text-align: left;
  font-size: 22px;
  margin-bottom: 4px;
}

#codigoItem {
  text-align: left;
  color: #666;
  font-size: 14px;
  margin-bottom: 18px;
}

/* linhas */
.item-line2 {
  text-align: left;
  margin-bottom: 10px;
}

/* seção */
h3 {
  text-align: left;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* inputs */
.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  margin-top: 6px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 15px;
}

/* botões */
.secondary-btn,
.menu-btn {
  width: 100%;
  max-width: 260px;
  margin: 14px auto 0;
  display: block;
}

/* mensagem */
#msgSalvar {
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
}

.local-nome {
  flex: 1;
  font-weight: 600;
}

.local-qtd {
  width: 90px;
  text-align: center;
}

.btn-center {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.btn-voltar {
  margin-top: 18px;
  background: white;
  color: #1e88e5;
  border: 2px solid #1e88e5;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-voltar:hover {
  background: #eaf3ff;
}

.msg-sucesso {
  color: green;
  margin-top: 10px;
  font-weight: 600;
}

.msg-erro {
  color: red;
  margin-top: 10px;
}

.back-btn {
  width: 100%;
  height: 48px;
  margin-top: 18px;
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.back-btn:hover {
  background: #e9f3ff;
}

.back-btn {
  width: 100%;
  height: 48px;
  margin-top: 20px;
  background: #fff;
  color: #1976d2;
  border: 2px solid #1976d2;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.back-btn:hover {
  background: #eaf3ff;
}

.back-btn {
  width: 100%;
  height: 46px;
  margin-top: 20px;
  background: #ffffff;
  color: #1976d2;
  border: 2px solid #1976d2;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.back-btn:hover {
  background: #e9f3ff;
}

/* campos de adicionar local */
#novoLocal,
#novaQtd {
  height: 46px;
  font-size: 15px;
}

/* campo local maior */
#novoLocal {
  flex: 2;
}

/* campo quantidade menor */
#novaQtd {
  flex: 1;
}

/* botão adicionar local com mesmo padrão do voltar */
#btnAdd {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  font-size: 15px;
}

/* espaçamento geral mais bonito */
#detalhesItem {
  margin-top: 10px;
}

.add-row input {
  height: 46px;
  font-size: 15px;
}

.add-row input:first-child {
  flex: 2;
}

.add-row input:last-child {
  flex: 1;
}

.item-header {
  text-align: center;
  margin-bottom: 24px;
}

.locais-title {
  margin-bottom: 10px;
}

.add-row input {
  height: 48px;
  font-size: 15px;
}

.add-row input:first-child {
  flex: 2;
}

.add-row input:last-child {
  flex: 1;
}

.full-btn {
  width: 100%;
}

.local-qtd {
  width: 90px;
  text-align: center;
}

.locais-title {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ===== LOCAL ===== */
#tituloLocal {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 18px;
  color: #111827;
}

/* ===== ITEM DETALHES ===== */
.item-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.item-code {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 18px;
}

.local-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.local-name {
  flex: 1;
  text-align: left;
  font-weight: 500;
}

.local-row input {
  width: 90px;
  text-align: center;
}

.item-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0;
}

.total-label {
  text-align: left;
}

.total-value {
  text-align: right;
}

/* Centraliza telas principais */
.login-box,
.menu-box,
.page-box {
  margin: 40px auto;
}

.page-title {
  text-align:  center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111827;
}

.item-card.clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}

.item-card.clickable:hover {
  background-color: #f5f7fa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.guest-schedule-btn {
  margin-top: 10px;
  background: #fff;
  color: #2c6bed;
  border: 1px solid #2c6bed;
  line-height: 40px;
  box-sizing: border-box;
}

.guest-schedule-btn:hover {
  background: #f2f6ff;
}

/* v2.0 — base responsiva para desktop, tablet e celular */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { min-height: 100vh; overflow-x: hidden; }
.login-box, .menu-box, .page-box { max-width: calc(100vw - 24px); margin: 24px auto; }
.logo { max-width: 100%; height: auto; }
input, select, textarea, button, .menu-btn { min-height: 44px; }
@media (max-width: 600px) {
  .login-box, .menu-box, .page-box { width: calc(100% - 20px); padding: 20px 16px; margin: 10px auto; }
  .logo { width: min(250px, 90%); }
  .topbar { gap: 12px; }
  .logo-small { width: 56px; }
  h1, h2 { overflow-wrap: anywhere; }
  .actions { flex-direction: column; }
  .actions button { width: 100%; }
}

.secondary-public-btn{background:#fff!important;color:#245a48!important;border:1px solid #8fb5a6!important;margin-top:10px}


/* v2.4.2 — identificação institucional e crédito de desenvolvimento */
.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 36px auto 18px;
  padding: 16px 12px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  text-align: center;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer p {
  margin: 3px 0;
}

.site-footer strong {
  color: #344054;
  font-weight: 600;
}

@media (max-width: 600px) {
  .site-footer {
    width: calc(100% - 20px);
    margin-top: 24px;
    padding-inline: 4px;
    font-size: 12px;
  }
}


/* V2.5 — autocomplete e ações administrativas */
.field-hint { display:block; margin:-8px 0 12px; font-size:.82rem; color:#64748b; text-align:left; }
.danger-btn { background:#b42318 !important; color:#fff !important; border:none !important; }
.danger-btn:hover { background:#8f1c13 !important; }
.admin-warning { margin:6px 0 14px; color:#7f1d1d; font-size:.82rem; text-align:center; }


/* V2.6 — autocomplete visual de locais */
.autocomplete-locais {
  position: relative;
  width: 100%;
}
.autocomplete-locais > input {
  width: 100%;
  box-sizing: border-box;
}
.autocomplete-locais-lista {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .16);
  padding: 5px;
}
.autocomplete-locais-lista[hidden] { display: none; }
.autocomplete-local-opcao {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1f2937;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.autocomplete-local-opcao:hover,
.autocomplete-local-opcao.ativo {
  background: #edf7f2;
  color: #245a48;
}
.autocomplete-local-novo {
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 7px 7px;
  color: #245a48;
}
.autocomplete-local-icone {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
}
.local-row.add-row .autocomplete-locais {
  flex: 1 1 220px;
}
@media (max-width: 600px) {
  .autocomplete-locais-lista { max-height: 220px; }
}
