* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f6efe0, #ffffff);
  min-height: 100vh;
  color: #111;
}

/* =========================
   LOGIN
========================= */

.tela-login {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 45px 24px;
}

.login-box {
  width: 100%;
  max-width: 1300px;
}

.logo-area {
  width: 100%;
  margin-bottom: 55px;
}

.logo-header {
  background: #fff;
  border: 2px solid rgba(245,184,0,.55);
  border-radius: 34px;
  padding: 34px 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}

.logo-header img {
  width: 300px;
  max-width: 100%;
  object-fit: contain;
}

.linha-logo {
  width: 2px;
  height: 125px;
  background: #f5b800;
}

.texto-header h1 {
  font-size: 58px;
  line-height: 1;
  margin-bottom: 16px;
}

.texto-header p {
  color: #444;
  font-size: 24px;
}

.opcoes-login {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.opcoes-login-agencia {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.card-login {
  background: #fff;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0,0,0,.15);
  border-top: 8px solid #f5b800;
}

.card-login.admin {
  background: #181818;
}

.card-login span {
  display: inline-block;
  background: #f5b800;
  color: #111;
  font-size: 13px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.card-login h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.card-login.admin h2 {
  color: #fff;
}

.card-login p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
  color: #555;
}

.card-login.admin p {
  color: #ddd;
}

.card-login input,
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  padding: 0 18px;
  margin-bottom: 15px;
  font-size: 16px;
  outline: none;
}

.card-login input,
.form-card input,
.form-card select {
  height: 58px;
}

.card-login.admin input {
  background: #242424;
  border: 1px solid #333;
  color: #fff;
}

.card-login input:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: #f5b800;
}

.card-login button,
.form-card button,
button {
  border: none;
  border-radius: 14px;
  background: #f5b800;
  color: #111;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.card-login button,
.form-card button {
  width: 100%;
  height: 58px;
}

button:hover {
  filter: brightness(.96);
  transform: translateY(-1px);
}

/* =========================
   LAYOUT PAINEL
========================= */

.dashboard {
  display: flex;
  min-height: 100vh;
}

.menu-lateral {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: #111;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
  overflow: hidden;
  z-index: 100;
}

.conteudo-dashboard {
  margin-left: 280px;
  width: calc(100% - 280px);
  padding: 40px;
}

.conteudo-dashboard h1 {
  font-size: 42px;
  color: #111;
  margin-bottom: 10px;
}

.conteudo-dashboard p {
  color: #555;
  margin-bottom: 35px;
}

.logo-menu {
  display: block;
  width: 145px;
  max-width: 100%;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  object-fit: contain;
}

.logo-menu-rodape {
  position: fixed;
  left: 66px;
  bottom: 18px;
  width: 145px;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.menu-lateral nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding-bottom: 80px;
}

.menu-lateral nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: .3s;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.menu-lateral nav a:hover,
.menu-lateral nav a.ativo {
  background: #f5b800;
  color: #111;
}

/* =========================
   MENU AGÊNCIA
========================= */

.agencia-menu {
  align-items: center;
}

.usuario-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0 28px;
  width: 100%;
}

.foto-menu-funcionario {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f5b800;
  background: #222;
  margin-bottom: 12px;
}

#nomeAgencia {
  color: #fff;
  font-size: 18px;
  text-align: center;
  margin: 0 0 6px;
  font-weight: 800;
  line-height: 1.25;
}

#nomeFuncionario {
  color: #d6d6d6;
  font-size: 14px;
  text-align: center;
}

/* =========================
   CARDS
========================= */

.cards-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card-info,
.form-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  border-top: 6px solid #f5b800;
}

.card-info {
  padding: 30px;
}

.card-info span {
  display: block;
  color: #666;
  margin-bottom: 15px;
}

.card-info strong {
  font-size: 42px;
  color: #111;
}

.form-card {
  padding: 35px;
  max-width: 760px;
}

.form-card h2 {
  margin-bottom: 25px;
  color: #111;
}

.textarea-grande {
  min-height: 180px;
  resize: vertical;
  padding: 18px !important;
}

input[type="file"] {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  margin-bottom: 12px;
}

/* =========================
   PRODUTOS
========================= */

.categoria-produtos {
  margin-bottom: 30px;
}

.categoria-produtos h3 {
  font-size: 22px;
  color: #111;
  margin-bottom: 15px;
  border-left: 6px solid #f5b800;
  padding-left: 12px;
}

.grid-produtos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.produto-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: .3s;
}

.produto-card:hover {
  border-color: #f5b800;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.produto-card input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #f5b800;
}

.produto-card strong {
  display: block;
  color: #111;
  font-size: 16px;
  margin-bottom: 6px;
}

.produto-card span {
  display: inline-block;
  background: #f5b800;
  color: #111;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 14px;
}

.produto-card-box {
  width: 100%;
}

.campos-produto,
.instancia-produto {
  background: #fff9e6;
  border: 1px solid rgba(245,184,0,.45);
  border-radius: 16px;
  padding: 16px;
  margin-top: 10px;
}

.campos-produto {
  display: none;
}

.campos-produto input,
.instancia-produto input {
  width: 100%;
  height: 48px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 10px;
  font-size: 15px;
}

.opcao-vip {
  display: block;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  font-weight: 600;
  cursor: pointer;
}

.opcao-vip input {
  width: auto;
  height: auto;
  margin-right: 8px;
}

/* =========================
   VALORES / BOTÕES
========================= */

.campo-valor {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 15px 0;
}

.campo-valor span {
  background: #f5b800;
  color: #111;
  font-weight: 800;
  padding: 0 22px;
  border-radius: 16px 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  min-height: 82px;
}

.campo-valor input {
  flex: 1;
  border-radius: 0 16px 16px 0 !important;
  margin: 0 !important;
  height: 82px;
  padding: 0 28px;
  font-size: 22px;
}

.botoes-passeio,
.botoes-filtro {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.botoes-passeio button,
.botoes-filtro button {
  flex: 1;
  min-width: 180px;
}

.label-upload {
  display: block;
  font-weight: 700;
  margin: 18px 0 8px;
}

/* =========================
   PERFIL FUNCIONÁRIO
========================= */

.perfil-foto-area {
  text-align: center;
  margin-bottom: 35px;
}

.perfil-foto-circulo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #f5b800;
  overflow: hidden;
  background: #f7f7f7;
  margin-bottom: 18px;
}

.perfil-foto-circulo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-escolher-foto {
  display: block;
  width: auto !important;
  padding: 13px 34px !important;
  margin: 0 auto 10px !important;
  border-radius: 30px !important;
}

.texto-foto {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* =========================
   RESERVAS
========================= */

.reserva-card {
  border-top-width: 8px;
}

.status-confirmada {
  border-top-color: #21a657 !important;
}

.status-pendente {
  border-top-color: #f5b800 !important;
}

.status-nao-concluida {
  border-top-color: #d93025 !important;
}

.status-automatico-reserva {
  margin-top: 20px;
}

.selo-reserva {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 15px;
}

.selo-confirmada {
  background: #e6f7ed;
  color: #137333;
}

.selo-pendente {
  background: #fff7d6;
  color: #8a6500;
}

.selo-cancelada {
  background: #fde8e8;
  color: #b42318;
}

/* =========================
   CALENDÁRIO
========================= */

.calendario-card {
  width: 760px !important;
  max-width: 760px !important;
}

.calendario-header {
  display: grid !important;
  grid-template-columns: 48px 1fr 48px !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 28px !important;
}

.btn-seta-calendario {
  width: 48px !important;
  height: 44px !important;
  border-radius: 14px !important;
  font-size: 22px !important;
  padding: 0 !important;
}

.calendario-titulo-area {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
}

.calendario-titulo-area h2 {
  font-size: 38px !important;
  margin: 0 !important;
  font-weight: 900 !important;
}

.calendario-titulo-area select {
  width: 105px !important;
  height: 46px !important;
  border-radius: 14px !important;
  border: 1px solid #d9d9d9 !important;
  font-size: 18px !important;
  padding: 0 10px !important;
  background: #fff !important;
}

.mes-calendario {
  width: 100% !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  padding: 22px !important;
  background: #fff !important;
  border-top: 5px solid #f5b800 !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.08) !important;
}

.grade-dias {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 8px !important;
}

.nomes-semana div {
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
  padding-bottom: 8px !important;
}

.dia-calendario {
  width: 100% !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  background: #f1f1f1 !important;
  font-size: 17px !important;
  cursor: pointer !important;
}

.dia-vazio {
  visibility: hidden !important;
}

.dia-com-reserva {
  background: #21a657 !important;
  color: #fff !important;
  font-weight: 900 !important;
}

.dia-feriado {
  background: #ffe08a !important;
  color: #111 !important;
  font-weight: 900 !important;
}

.dia-bloqueado {
  background: #d93025 !important;
  color: #fff !important;
  font-weight: 900 !important;
}

.dia-hoje {
  border: 3px solid #111 !important;
  font-weight: 900 !important;
}

.legenda-calendario {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 25px;
  font-weight: 700;
}

.legenda-calendario span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legenda {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
}

.legenda.verde {
  background: #21a657;
}

.legenda.amarelo {
  background: #ffe08a;
}

.legenda.vermelho {
  background: #d93025;
}

.legenda.preto {
  border: 3px solid #111;
  background: #fff;
}

.modal-calendario {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,.55);
  padding: 30px;
}

.modal-calendario-conteudo {
  background: #fff;
  max-width: 650px;
  margin: 60px auto;
  border-radius: 24px;
  padding: 35px;
  border-top: 6px solid #f5b800;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.fechar-modal-calendario {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  font-size: 26px !important;
}

/* =========================
   RESPONSIVO
========================= */

@media(max-width:1100px) {
  .cards-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-produtos {
    grid-template-columns: 1fr;
  }
}

@media(max-width:768px) {
  .dashboard {
    flex-direction: column;
  }

  .menu-lateral {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .logo-menu-rodape {
    position: relative;
    left: auto;
    bottom: auto;
    width: 145px;
    max-width: 100%;
    margin-top: 30px;
  }

  .conteudo-dashboard {
    margin-left: 0;
    width: 100%;
    padding: 25px;
  }

  .cards-dashboard {
    grid-template-columns: 1fr;
  }

  .calendario-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .opcoes-login {
    grid-template-columns: 1fr;
  }

  .logo-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .linha-logo {
    width: 130px;
    height: 2px;
  }

  .texto-header h1 {
    font-size: 40px;
  }
}

.btn-salvar-produtos {
  margin-top: 25px !important;
  margin-bottom: 25px !important;
}

.resumo-reserva {
  margin-top: 25px;
}

.resumo-card {
  background: #fff9e6;
  border: 2px solid #f5b800;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
}

.resumo-card h3 {
  margin-bottom: 15px;
}

.resumo-item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.resumo-total {
  background: #111;
  color: #fff;
  padding: 18px;
  border-radius: 16px;
  margin-top: 18px;
}

.resumo-total strong {
  color: #f5b800;
  font-size: 22px;
}

.btn-fazer-reserva {
  margin-top: 20px !important;
}

/* Orçamentos em conversa */
.orcamento-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

.tipo-orcamento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.tipo-orcamento-card {
  border: 2px solid #eeeeee;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 12px;
  align-items: center;
  cursor: pointer;
  background: #fff;
  transition: .2s ease;
}

.tipo-orcamento-card input {
  display: none;
}

.tipo-orcamento-card:has(input:checked) {
  border-color: #f5b800;
  background: #fff9df;
  box-shadow: 0 10px 24px rgba(245,184,0,.18);
}

.tipo-icone {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111;
  color: #f5b800;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: span 2;
  font-size: 28px;
  font-weight: 900;
}

.tipo-orcamento-card strong,
.tipo-orcamento-card small {
  display: block;
}

.tipo-orcamento-card small {
  color: #555;
  line-height: 1.45;
}

.orcamento-chat-card {
  min-height: 640px;
  background: #efe7dc !important;
  border-top-color: #25d366 !important;
}

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

.chat-header p {
  margin: 4px 0 0;
  color: #666;
}

.orcamento-chat-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.conversa-orcamento {
  background: rgba(255,255,255,.65);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.08);
}

.conversa-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #555;
  font-size: 13px;
  margin-bottom: 10px;
}

.balao-orcamento {
  max-width: 82%;
  padding: 14px 16px;
  border-radius: 16px;
  margin: 10px 0;
  line-height: 1.55;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.balao-orcamento p {
  margin: 5px 0;
}

.balao-agencia {
  background: #ffffff;
  border-bottom-left-radius: 4px;
}

.balao-admin {
  background: #dcf8c6;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.responder-orcamento {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.responder-orcamento textarea {
  min-height: 96px;
}

.acoes-documento {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.acoes-documento button {
  width: auto !important;
  background: #111 !important;
  color: #f5b800 !important;
}

@media (max-width: 980px) {
  .orcamento-layout {
    grid-template-columns: 1fr;
  }

  .balao-orcamento {
    max-width: 100%;
  }

  .conversa-meta {
    flex-direction: column;
  }
}


/* Ajustes finais de orçamento, recibo e reserva */
.orc-produtos-box {
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
  background: #fffdf4;
}

.orc-produtos-box h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.tabela-orcamento-produtos,
.orc-itens-mini {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.tabela-orcamento-produtos th,
.tabela-orcamento-produtos td,
.orc-itens-mini th,
.orc-itens-mini td {
  border-bottom: 1px solid #eeeeee;
  padding: 9px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.tabela-orcamento-produtos input {
  margin: 0 !important;
  min-height: 42px;
}

.orc-produtos-acoes,
.acoes-documento {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.orc-produtos-acoes strong {
  margin-left: auto;
  color: #111;
}

.btn-mini {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-remover,
.btn-perigo {
  background: #b42318 !important;
  color: #fff !important;
}

.conversa-orcamento.nova-mensagem {
  border-left: 5px solid #25d366;
}

.valores-vip-passeio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.resumo-card-ao-vivo {
  border-color: #111;
}

@media (max-width: 760px) {
  .tabela-orcamento-produtos,
  .tabela-orcamento-produtos tbody,
  .tabela-orcamento-produtos tr,
  .tabela-orcamento-produtos td {
    display: block;
    width: 100%;
  }

  .tabela-orcamento-produtos thead {
    display: none;
  }

  .orc-produtos-acoes,
  .acoes-documento {
    justify-content: stretch;
  }

  .acoes-documento button,
  .orc-produtos-acoes button {
    flex: 1 1 100%;
  }
}


/* Revisão solicitada: telas amplas, abas e controles proporcionais */
.orcamento-tabs-final {
  display: flex;
  gap: 12px;
  margin: 20px 0 24px;
  flex-wrap: wrap;
}

.aba-orcamento {
  width: auto !important;
  min-height: 48px;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  background: #111 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.aba-orcamento.ativa {
  background: #f5b800 !important;
  color: #111 !important;
}

.badge-fila {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d93025;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  display: none;
}

.orcamento-layout-final {
  display: block !important;
}

.painel-orcamento-final {
  width: 100%;
  max-width: none;
}

.painel-oculto {
  display: none !important;
}

.tela-orcamentos .orcamento-compose,
.tela-orcamentos .orcamento-chat-card {
  min-height: auto;
}

.tabela-orcamento-produtos th:nth-child(1),
.orc-itens-mini th:nth-child(1) { width: 34%; }
.tabela-orcamento-produtos th:nth-child(2),
.orc-itens-mini th:nth-child(2) { width: 18%; }
.tabela-orcamento-produtos th:nth-child(3),
.orc-itens-mini th:nth-child(3) { width: 42%; }
.tabela-orcamento-produtos th:nth-child(4) { width: 6%; }

.recibo-produtos-box .tabela-recibo-produtos {
  table-layout: fixed;
}

.recibo-produtos-box .tabela-recibo-produtos th:nth-child(1),
.recibo-produtos-box .tabela-recibo-produtos td:nth-child(1) {
  width: auto !important;
}

.recibo-produtos-box .tabela-recibo-produtos th:nth-child(2),
.recibo-produtos-box .tabela-recibo-produtos td:nth-child(2) {
  width: 210px !important;
}

.recibo-produtos-box .tabela-recibo-produtos th:nth-child(3),
.recibo-produtos-box .tabela-recibo-produtos td:nth-child(3) {
  width: 64px !important;
  text-align: center;
}

.recibo-produtos-box .tabela-recibo-produtos td {
  vertical-align: middle;
}

.recibo-produtos-box .recProdutoNome,
.recibo-produtos-box .recProdutoValor {
  height: 52px;
}

.tipo-icone {
  width: 42px !important;
  height: 42px !important;
  font-size: 16px !important;
  border-radius: 10px !important;
}

.tipo-orcamento-card {
  grid-template-columns: 42px 1fr !important;
  border-radius: 10px !important;
}

.campo-valor {
  min-height: 46px;
  border-radius: 10px !important;
  overflow: hidden;
}

.campo-valor span {
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  font-size: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.campo-valor input {
  height: 46px !important;
  min-height: 46px !important;
  font-size: 15px !important;
  margin: 0 !important;
}

.botoes-passeio button,
.botoes-filtro button,
.card-info button {
  border-radius: 10px !important;
  min-height: 42px;
  padding: 10px 14px !important;
  font-size: 14px !important;
}

.label-upload {
  font-size: 13px !important;
  padding: 7px 0 4px !important;
}

.recibo-produtos-box {
  margin-top: 18px;
}

@media (max-width: 780px) {
  .orcamento-tabs-final { flex-direction: column; }
  .aba-orcamento { justify-content: center; width: 100% !important; }
}


/* Separação definitiva orçamento admin/agência */
.orcamento-cabecalho-final {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.sino-orcamento {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: #111 !important;
  color: #f5b800 !important;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px !important;
}

.sino-orcamento b {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #d93025;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.painel-orcamento-cheio,
.painel-notificacoes-orcamento {
  width: 100%;
  max-width: none;
}

.painel-notificacoes-orcamento {
  margin-top: 22px;
  background: #efe7dc !important;
  border-top-color: #25d366 !important;
}

.btn-fechar-painel {
  width: auto !important;
  background: #111 !important;
  color: #fff !important;
}

.tipo-orcamento-horizontal {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

.tela-orcamentos-final .orcamento-layout {
  display: block !important;
}

@media (max-width: 720px) {
  .orcamento-cabecalho-final {
    align-items: center;
  }
}


/* Ajuste final: tabela de orçamento da agência com Produto e Observação iguais */
.orc-produtos-box-agencia .tabela-orcamento-agencia {
  table-layout: fixed;
  width: 100%;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(1),
.orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(1),
.orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(2),
.orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(2) {
  width: calc((100% - 76px) / 2) !important;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(3),
.orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(3) {
  width: 76px !important;
  min-width: 76px;
  text-align: center;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia td {
  vertical-align: middle;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia input {
  width: 100%;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia .btn-mini {
  margin: 0 auto;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia {
  table-layout: fixed;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(1),
.orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(1) {
  width: 155px !important;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(2),
.orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(2),
.orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(3),
.orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(3) {
  width: calc((100% - 215px) / 2) !important;
}

.orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(4),
.orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(4) {
  width: 60px !important;
  text-align: center;
}

.orc-data-hora-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.orc-data-hora-grid input,
.tabela-orcamento-produtos input {
  width: 100%;
  font-size: 15px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.reserva-card {
  position: relative;
}

.btn-lixeira-reserva {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #f1b3ad;
  background: #fff5f3;
  color: #b91c1c;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-lixeira-reserva:hover {
  background: #fee2e2;
}

@media (max-width: 760px) {
  .orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(1),
  .orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(1),
  .orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(2),
  .orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(2),
  .orc-produtos-box-agencia .tabela-orcamento-agencia th:nth-child(3),
  .orc-produtos-box-agencia .tabela-orcamento-agencia td:nth-child(3) {
    width: 100% !important;
  }
}

/* Ajustes profissionais de menu, resumo e comissões */
.menu-lateral {
  padding: 20px 24px;
  overflow: hidden;
}

.usuario-menu {
  margin: 8px 0 20px;
}

.foto-menu-funcionario {
  width: 72px;
  height: 72px;
}

.usuario-menu h3 {
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
}

.usuario-menu span {
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.menu-lateral nav {
  gap: 6px;
  padding-bottom: 0;
}

.menu-lateral nav a {
  min-height: 39px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.logo-menu-rodape {
  position: static;
  width: 135px;
  margin: auto auto 0;
}

.cards-comissoes-resumo {
  margin-bottom: 28px;
}

.painel-comissoes {
  max-width: 1180px;
}

.lista-comissoes-profissional {
  display: grid;
  gap: 16px;
}

.comissao-card {
  background: #fff;
  border: 1px solid #e8e2d4;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(17,17,17,.06);
}

.comissao-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.comissao-topo strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  color: #111;
}

.recibo-label {
  display: inline-flex;
  color: #6b5a26;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.comissao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.comissao-grid p {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #faf8f1;
}

.comissao-grid span {
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.comissao-grid strong {
  color: #111;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.status-comissao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-comissao-paga {
  background: #e8f7ee;
  color: #146c2e;
  border-color: #a7d7b6;
}

.status-comissao-pendente {
  background: #fff7db;
  color: #805f00;
  border-color: #f5b800;
}

.status-comissao-atrasada {
  background: #ffe8e8;
  color: #a61b15;
  border-color: #ef9a9a;
}

.status-comissao-aguardando {
  background: #f1f3f5;
  color: #495057;
  border-color: #d7dce0;
}

.comissao-card.status-comissao-paga {
  background: #fff;
  color: inherit;
  border-left: 5px solid #1f9d55;
}

.comissao-card.status-comissao-pendente {
  background: #fff;
  color: inherit;
  border-left: 5px solid #f5b800;
}

.comissao-card.status-comissao-atrasada {
  background: #fff;
  color: inherit;
  border-left: 5px solid #d93025;
}

.comissao-card.status-comissao-aguardando {
  background: #fff;
  color: inherit;
  border-left: 5px solid #adb5bd;
}

.comprovante-link {
  display: inline-flex;
  margin-top: 8px;
  color: #111;
  font-weight: 900;
}

.comissao-aviso {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf8f1;
  color: #555 !important;
}

.estado-vazio-profissional {
  padding: 24px;
  border: 1px dashed #d8ceb8;
  border-radius: 14px;
  background: #fffaf0;
}

.estado-vazio-profissional strong,
.estado-vazio-profissional span {
  display: block;
}

.estado-vazio-profissional span {
  margin-top: 6px;
  color: #666;
}

.resumo-cupom-ok,
.resumo-cupom-erro {
  margin: 10px 0 0 !important;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
}

.resumo-cupom-ok {
  background: #e8f7ee;
  color: #146c2e !important;
}

.resumo-cupom-erro {
  background: #fff1f2;
  color: #991b1b !important;
}

@media (max-height: 760px) and (min-width: 901px) {
  .menu-lateral {
    padding: 16px 20px;
  }

  .usuario-menu {
    margin-bottom: 14px;
  }

  .foto-menu-funcionario {
    width: 58px;
    height: 58px;
  }

  .menu-lateral nav {
    gap: 4px;
  }

  .menu-lateral nav a {
    min-height: 33px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .logo-menu-rodape {
    width: 118px;
  }
}

@media (max-width: 900px) {
  .menu-lateral {
    overflow: visible;
  }

  .comissao-topo {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .dashboard {
    display: block;
  }

  .menu-lateral {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 18px;
  }

  .usuario-menu {
    margin: 10px 0 14px;
  }

  .foto-menu-funcionario {
    width: 58px;
    height: 58px;
  }

  .menu-lateral nav {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .menu-lateral nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 11px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .logo-menu,
  .logo-menu-rodape {
    width: 132px;
  }

  .logo-menu-rodape {
    position: static;
    margin: 14px auto 0;
  }

  .conteudo-dashboard {
    width: 100%;
    margin-left: 0;
    padding: 22px 14px;
  }

  .conteudo-dashboard h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .cards-dashboard,
  .grid-produtos,
  .orc-data-hora-grid,
  .comissao-grid {
    grid-template-columns: 1fr !important;
  }

  .form-card,
  .card-info,
  .comissao-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px;
    border-radius: 18px;
  }

  .orc-produtos-box,
  .tabela-scroll,
  .lista-tabela-scroll {
    overflow-x: auto;
  }

  .tabela-orcamento-produtos {
    min-width: 680px;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
    font-size: 16px !important;
  }
}
