/*!
 * GRUPO VCGV v1.0.11-beta (https://www.grupovcgv.com.br)
   23/10/2025
 */

  :root{
    --bg:#f5f6f8;
    --card:#fff;
    --accent:#111;
    --muted:#666;
    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
  }

  body{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto; padding:0px; background-image: url('img/wallpaper-grupovcgv-stamonica.png'); /* Coloque o caminho da sua imagem */
        background-size: cover; /* Cobre toda a área, mantendo proporção */
        background-position: center center; /* Centraliza a imagem */
        background-repeat: no-repeat; /* Não repete */
        background-attachment: fixed; /* Fixa a imagem na tela */ user-select: none;}
  .wrap { max-width:80%; margin:0 auto;}
  h1 { text-align:center; margin-bottom:18px; }
  .card { background:var(--card); border-radius:14px; padding:22px; box-shadow:0 10px 30px rgba(0,0,0,0.06); }
.card2 {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin: 0 auto; /* Centraliza horizontalmente */
  display: block; /* Garante que o elemento seja tratado como bloco */
  width: fit-content; /* Ajusta a largura automaticamente conforme o conteúdo */
}

  /*form { display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; align-items:end; }*/
  label{ font-size:13px; color:var(--muted); display:block; margin-bottom:6px; }
  input, select { padding:10px 12px; border-radius:10px; border:1px solid #e6e6e6; width:100%; font-size:15px; cursor:pointer;}
  .multiselect { height:84px; }
  .btn { background:var(--accent); color:#fff; padding:11px 14px; border-radius:10px; border:none; cursor:pointer; font-weight:600; }

  .btn-acao { background:var(--accent); color:#fff; padding:11px 14px; border-radius:10px; border:none; cursor:pointer; font-weight:600;}
  
.btn-acao:hover {
    background-color: #0ea5e9;
    color: #fff;
    cursor: pointer;
}
  table { width:100%; border-collapse:collapse; margin-top:18px; }
  th, td { padding:10px 8px; border-bottom:1px solid #f0f0f0; text-align:left; font-size:14px; }
  th { color:var(--muted); font-weight:600; }
  th:nth-child(8), td:nth-child(8) { width: 100px; } /* Status */
  th:nth-child(10), td:nth-child(10) { width: 170px; } /* Status */
th {
  background-color: #fff; /* Cor de fundo do cabeçalho (por exemplo, verde) */
  color: #000;
}


/* Opcional: mudar a cor ao passar o mouse */
tr:hover {
  background-color: #eaeaea; /* Cor de fundo ao passar o mouse */
}
  .status-em_rota { color:var(--warn); font-weight:700; }
  .status-concluida { color:var(--ok); font-weight:700; }
  .status-atrasada { color:var(--danger); font-weight:700; }
  .timer { font-weight:700; }
 @keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
}

.blink {
  animation: blink 1s linear infinite;
}


 @keyframes blink2 {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.blink2 {
  animation: blink2 2s linear infinite;
}




  .small { font-size:14px; color:var(--muted); }
  .top-actions { display:flex; gap:10px; justify-content:flex-end; margin-bottom:12px;}
  .link { background:transparent; border:1px solid #ddd; padding:8px 10px; border-radius:8px; cursor:pointer;}

.badge {
    display: inline-block;
    background-color: #0ea5e9; 
    color: #fff;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin: 2px 2px 2px 0;

    padding: 10px; 
    border: 1px solid #ddd; 
    text-align: center; 
    border-radius: 10px; 
    user-select: none;
}



.badge2 {
display: inline-block;
background-color: #0072ff;
color: #fff;
padding: 10px 16px;
border: 1px solid #005fcc;
border-radius: 12px;
text-align: center;
text-transform: uppercase;
user-select: none;

/* Tipografia aprimorada */
font-size: 13px;
font-weight: 600;
font-family: 'Segoe UI', 'Roboto', sans-serif;
letter-spacing: 0.7px;
line-height: 1.2;

/* Estética extra */
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
transition: background-color 0.3s ease, box-shadow 0.3s ease;


}


/* Wrapper principal do select */
.choices {
    width: 100% !important;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    font-size: 15px;
    box-sizing: border-box;
    min-height: 50px;
}

/* Inner div que contém os itens */
.choices__inner {
    border: 1px solid #e6e6e6 !important;
    border-radius: 10px !important;
    min-height: 50px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    box-shadow: none !important;
    width: 100% !important;          /* fixa a largura */
    box-sizing: border-box;          /* inclui padding na largura */
}

/* Itens selecionados (tags) */
.choices__list--multiple .choices__item {
    font-size: 14px;
    background-color: #0072ff; /* verde padrão */
    color: #fff;
    border-radius: 6px;
    padding: 3px 8px;

}

/* Foco sem quebrar altura nem largura */
.choices.is-focused .choices__inner {
    border-color: #111 !important;
    min-height: 50px;
    width: 100% !important;          /* mantém largura fixa ao focar */
    box-sizing: border-box;
}

/* Input interno do select */
.choices__input {
    flex: 1 1 auto;
    min-width: 0;                     /* evita que ultrapasse a div */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Evita overflow horizontal */
.choices__list--multiple {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.taxa {
    color: #10b981; /* verde */
    font-weight: bold;
}


/* Modal fundo */
.modal {
    display: none;
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px); /* aplica o efeito de desfoque */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in;
}

/* Conteúdo do modal */
.modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 460px;
    width: 90%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #111;
}

/* Botões dentro do modal */
.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.modal-buttons .btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}


.modal2 {
    display: none;
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px); /* aplica o efeito de desfoque */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal2-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    text-align: left;
    max-width: 550px;
    width: 90%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
}

.linha-tipo {
    position: relative;
    margin-left: 15px; /* Deixar mais espaço à esquerda */
    padding-left: 30px; /* Espaço extra para o conteúdo */
    margin-right: 15px;
    padding-right: 15px; /* Aumenta o espaço à direita */
    margin-bottom: 30px; /* Distância maior entre os itens da linha do tempo */
    font-size: 16px; /* Tamanho de fonte elegante */
    color: #333; /* Cor de texto sóbria */
    line-height: 1.5; /* Melhor espaçamento entre as linhas de texto */
    padding-top: 10px; /* Espaçamento no topo */
    padding-bottom: 10px; /* Espaçamento no fundo */
    background-color: #f4f7fa; /* Cor de fundo mais suave */
    border-left: 9px solid #10b981; /* Borda vertical fina verde */
    border-radius: 40px; /* Borda arredondada */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* Sombra suave para suavizar o visual */
    transition: all 0.3s ease; /* Transições suaves */
    font-style: italic;
}

.linha-tipo::before {
    content: '';
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%; /* Deixar o ponto redondo */
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%); /* Centraliza o ponto verticalmente */
    box-shadow: 0 0 0 3px #fff, 0 0 6px rgba(0, 0, 0, 0.1); /* Sombra para o ponto */
    transition: all 0.3s ease; /* Transição suave para o ponto */
}

.linha-tipo:hover {
    background-color: #e6f7f0; /* Fundo mais claro no hover */
    border-left-color: #059669; /* Borda verde mais intensa */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra mais forte no hover */
}

.linha-tipo:hover::before {
    width: 14px; /* Aumenta o tamanho do ponto no hover */
    height: 14px;
    background-color: #059669; /* Ponto com cor mais intensa no hover */
}

.data-observacao {
    font-size: 13px;  /* ou menor, ex: 12px */
    font-weight: bold; /* menos pesado que bold */
}

.btn-green {
    background: #10b981;
    color: #fff;
}

.btn-green:hover {
    background: #0f9d72;
}

.btn-blue {
    background: #0dcaf0;
    color: #000;
}

.btn-blue:hover {
    background: #31d2f2;
}

.btn-yellow {
    background: #FFC107;   /* Amarelo vibrante (similar ao Tailwind yellow-400) */
    color: #000;           /* Texto preto para contraste */
}

.btn-yellow:hover {
    background: #F59E0B;   /* Amarelo mais escuro no hover (yellow-500) */
}


.btn-red {
    background: #ef4444;
    color: #fff;
}

.btn-red:hover {
    background: #dc2626;
}

.btn-red2 {
    background: #ef4444;
    color: #000;
}

.btn-red2:hover {
    background: #f76363;
    color: #fff;
}

/* Animação de fade */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.novaObs {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    max-height: 160px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    resize: none; /* bloqueia ajuste de tamanho */
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: #fafafa;
    outline: none;
}

.novaObs:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    background-color: #fff;
}

#notificacoes-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* espaço entre notificações */
    z-index: 9999;
    max-width: 300px;
    cursor: not-allowed;
}


.notificacao {
    position: relative;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s, transform 0.4s;
    cursor: not-allowed;
}
.notificacao.show {
    opacity: 1;
    transform: translateY(0);
    cursor: not-allowed;
}
.notificacao.erro { background: #ef4444; cursor: not-allowed;}
.notificacao.sucesso { background: #10b981; cursor: not-allowed;}


/* Botão Observações */
.btnObservacao {
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    position: relative;
}
.btnObservacao:hover {
    background-color: #0f9d72;
    color: #fff;
}

/* Ajusta a célula de observações para não quebrar o traço */
td.observacoes-cell {
    position: relative; /* para o badge se posicionar */
    padding: 6px 8px;  /* padding menor e uniforme */
    vertical-align: middle;
}

/* Badge sobreposto no botão */
.badgeObservacoes {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #c0392b); /* degradê vermelho */
    border: 2px solid #fff; /* borda branca fina para destacar */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    z-index: 10;
}



.btnSaidaWrapper {
    display: flex;
    justify-content: flex-end; /* alinha à direita */
    margin-top: 10px;          /* espaçamento opcional */
}

.btnSaidaWrapper .btn {
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #22c55e;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btnSaidaWrapper .btn:hover {
    background-color: #16a34a;
}

.linha-form {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-right: 20px;
}

.col-motoboy {
  flex: 0 0 20%; /* 30% fixos */
}

.col-bairros {
  flex: 0 0 80%; /* 70% fixos */
}

@media (max-width: 768px) {
  .linha-form {
    flex-direction: column;
  }
  .col-motoboy, .col-bairros {
    flex: 100%;
  }
}


.modal243 {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.9); /* fundo escuro cobrindo a tela inteira */
    backdrop-filter: blur(8px); /* aplica o efeito de desfoque */
    -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
    z-index: 1000;
    justify-content: center;
    align-items: flex-start; /* modal começa do topo */
    padding: 20px; /* espaço para o modal não colar na borda da tela */
}

.modal243-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px); /* altura máxima para caber na tela */
    width: 100%;
    min-height: 600px;
    max-width: 60%;
    overflow: hidden;
    position: relative; /* importante para o botão ficar relativo ao modal */
}


.modal243-content h3,
.modal243-content p#infoMotoboySaida {
    padding: 15px 20px;
    margin: 0;
    flex-shrink: 0; /* nunca encolhe */
}

.modal243-content form {
    padding: 15px 20px;
    overflow-y: auto; /* scroll apenas aqui */
    flex: 1; /* permite ocupar todo o espaço disponível entre header e footer */
}

.modal243-content form select,
.modal243-content form #paradasPorBairroEditar {
    width: 100%;
    margin-top: 15px; /* já existe */
    padding-bottom: 60px; /* espaço extra para não encostar nos botões fixos */
}

.modal-buttons43 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* centraliza os botões */
    gap: 10px;
    padding: 15px 0px;
    border-top: 1px solid #ddd;
    background: #fff; /* mantém o fundo branco */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05); /* opcional: leve sombra para destaque */
    z-index: 10; /* garante que fique acima do conteúdo rolável */
}


.btn43 {
    background:var(--accent); 
    color:#fff; 
    padding:11px 14px; 
    border-radius:10px; 
    border:none; 
    cursor:pointer; 
    font-weight:600;
}

.btn-green43 {
    background-color: #10b981;
    color: #fff;
}

.btn-green43:hover {
    background: #0f9d72;
}

.btn-red43 {
    background-color: #ef4444;
    color: #fff;
}

.btn-red43:hover {
    background: #dc2626;
}

/* Scroll interno */
.modal243-content form::-webkit-scrollbar {
    width: 6px;
}

.modal243-content form::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.card2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.card2-header h1 {
  margin: 0;
  font-size: 2.1em;
  background: #fff; 
  border-radius: 14px;
  font-weight: 600;
  padding: 8px 15px;
}

.card2-header .btn-red {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.card2-header .btn-red:hover {
  background-color: #c0392b;
}

.alerta-modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px); /* aplica o efeito de desfoque */
  -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
  justify-content: center;
  align-items: center;
}

.alerta-conteudo {
  background: #fff;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.9);
  animation: surgir 0.3s ease;
}

.alerta-conteudo h2 {
  color: #b80000;
  margin-bottom: 10px;
  font-size: 24px;
}

.alerta-conteudo p {
  font-size: 18px;
  margin-bottom: 20px;
}

@keyframes surgir {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.modalrua {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px); /* aplica o efeito de desfoque */
  -webkit-backdrop-filter: blur(8px); /* suporte para Safari */
}

.modalrua-content {
  position: relative;
  background-image: url('../img/fundo-modal-mapa.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;

  margin: 20px auto 0 auto;
  padding: 20px;
  min-height: 450px;
  border: 1px solid #888;
  width: 50%;
  border-radius: 10px;
  overflow: hidden; /* Garante que a camada não vaze */
}

/* Camada semi-transparente sobre a imagem */
.modalrua-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.6); /* Branco com transparência */
  border-radius: 10px;
  z-index: 0;
}

/* Garante que o conteúdo fique acima da camada */
.modalrua-content > * {
  position: relative;
  z-index: 1;
}



.close-modalrua {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

#conteudo-ruas-bairros {
  background-color: rgba(255, 255, 255, 0.9); /* Cor clara semi-transparente */
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto; /* Se o conteúdo for grande, adiciona scroll */
}


#input-rua {
  width: 80%;
  padding: 10px 15px;
  margin-bottom: 20px;
  border: 2px solid #ccc; /* Borda padrão neutra */
  border-radius: 6px;
  outline: none;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#input-rua:focus {
  border-color: #4facfe; /* Ativa quando está focado */
  box-shadow: 0 0 6px rgba(79, 172, 254, 0.5);
}


.bairros-container {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto); 
  gap: 10px 40px; 
  margin: 20px auto;


}

.bairro-item {
  display: flex;
  justify-content: space-between;
  background: #f8f8f8;
  min-height: 30px;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  align-items: center;
  border-left: 5px solid #8bc34a;
}

.bairro-item span:last-child {
  font-weight: bold;
  color: #2d7a2d;
}


.bairro-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* efeito hover sutil */
}

.line-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.line-with-text::before,
.line-with-text::after {
    content: "";
    flex-grow: 1;
    border-top: 1px solid #ccc; /* Linha ao lado */
    margin: 0 10px; /* Espaço entre o texto e a linha */
}

.line-with-text span {
    padding: 0 10px; /* Espaçamento ao redor do texto */
    font-weight: bold;
}

.number-pers {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px; /* tamanho padrão */  
}

.number-pers.nsmall {
  font-size: 12px;
}

.number-pers.nmedium {
  font-size: 14px; 
}

.number-pers.nlarge {
  font-size: 18px;
}

.number-pers.nxlarge {
  font-size: 20px;
}

.number-pers.espac1 {
  letter-spacing: 0.8px;
}
.btn-disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none; /* garante que não seja clicável */
}


.linha-cancelada,
.linha-cancelada * {
    text-decoration: line-through !important; /* força riscado em todos os elementos filhos */
    color: #FF0000 !important; /* opcional: cor cinza para todo conteúdo */
    opacity: 0.8; /* opcional: leve transparência */
}
.linha-cancelada td {
    background-color: #ffe5e5 !important;
}


/* Hover para linhas canceladas */
#tbl-entregas tbody tr.linha-cancelada:hover {
    background-color: #f8d7da; /* tom vermelho claro para canceladas */
    cursor: not-allowed;       /* opcional: muda o cursor para indicar desativado */
}

.linha-cancelada td.observacoes-cell,
.linha-cancelada td.observacoes-cell *,
.linha-cancelada .fa-comment-dots,
.linha-cancelada .fa-comment-dots *,
.linha-cancelada .badgeObservacoes,
.linha-cancelada .badgeObservacoes *,
.linha-cancelada .btnObservacao,
.linha-cancelada .btnObservacao *,
.linha-cancelada .btn,
.linha-cancelada .btn *,
.linha-cancelada .btn-green,
.linha-cancelada .btn-green *,
.linha-cancelada .btnObsWrapper,
.linha-cancelada .btnObsWrapper * {
    text-decoration: none !important;
    color: #fff !important;
    opacity: 1 !important;
}



