/* =========================
   HEADER RESPONSIVO
========================= */
.header-mobile {
  flex-wrap: nowrap;
  max-width: calc(100% - 60px); /* reserva espaço pro botão */
}

/* LOGO */
.logo-box img {
  max-width: 100px;
  height: auto;
  flex-shrink: 0;
}
/* TEXTO */
.anotacao-profissional {
  font-size: 13px;
  line-height: 1.3;
  max-width: 100%;
}

.agenda-table {
  width: 100%;
  overflow-x: auto;
}

/* Força tabela a caber no card */
.agenda-table table {
  width: 100%;
  table-layout: fixed;
}

/* Células menores e uniformes */
.agenda-table th,
.agenda-table td {
  padding: 6px 2px;
  font-size: 12px;
  white-space: nowrap;
}

/* Datas clicáveis não quebram layout */
.date-click {
  cursor: pointer;
  border-radius: 6px;
}

.date-click {
  cursor: pointer;
}

/* Hover apenas para desktop */
@media (hover: hover) {
  .date-click:hover {
    background-color: #198754 !important;
    color: white !important;
  }
}

/* =========================
   ANOTAÇÃO PROFISSIONAL
========================= */

.header-mobile {
    align-items: flex-start;
  }

  .logo-box img {
    max-width: 120px;
  }

  


.anotacao-profissional {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  border-left: 4px solid #a3a4a4;
  padding: 8px 12px;
  background-color: #f8f9fa;
  max-width: 100%;
}

.anotacao-profissional .nome {
  font-weight: 600;
}

.anotacao-profissional .nome span {
  font-weight: 400;
  font-size: 11px;
  color: #575656;
}

.anotacao-profissional .cbo {
  margin-top: 4px;
  font-size: 10px;
  color: #777;
}

/* =========================
   SUBSCRIBE / INPUT + BOTÃO
========================= */
.rounded-subscribe {
  position: relative;
  display: flex;
  align-items: center;
}

.rounded-subscribe .form-input {
  width: 100%;
  height: 48px;
  padding: 12px 56px 12px 16px;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
}

/* Botão */
.btn-subscribe {
  position: absolute;
  top: 1px;
  right: 6px;
  height: 28px;
  padding: 0 5px;
  font-size: 14px;
  line-height: 1;        /* CRÍTICO */
  border-radius: 30px;
  border: none;
  background: #198754;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-subscribe:hover {
  background: #157347;
}

/* =========================
   FORMULÁRIO AGENDA
========================= */
#agenda-form .form-label {
  display: block !important;
  position: static !important;
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #343547;
}

#agenda-form .form-control {
  background-color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

#agenda-form .form-control:focus {
  border-color: #7bb6a4;
  box-shadow: 0 0 0 0.15rem rgba(123, 182, 164, 0.35);
}

/* =========================
   HEADER FIXO
========================= */
:root {
  --header-height-desktop: 80px;
  --header-height-mobile: 120px;
}

header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

.content {
  padding-top: var(--header-height-desktop);
}

/* =========================
   MOBILE / FLIP / TELAS < 390px
========================= */
@media (max-width: 413px) {

  .logo-mobile-hide {
    display: none !important;
  }

  .agenda-table th,
  .agenda-table td {
    font-size: 11px;
    padding: 4px 1px;
  }

  .card-header {
    font-size: 14px;
  }

  /* Conteúdo não fica sob header */
  .content {
    padding-top: var(--header-height-mobile);
  }

  /* Botão vira bloco (evita esmagamento) */
  /* Botão */

  .rounded-subscribe .form-input {
    height: 42px;
    padding: 10px 48px 10px 14px;
    font-size: 13px;
  }

  .btn-subscribe {
    height: 26px;
    padding: 0 8px;
    font-size: 12px;
    right: 6px;
  }
}

.btn-subscribe:hover {
  background: #157347;
}


  /* Labels menores */
  #agenda-form .form-label {
    font-size: 1rem;
  }

  /* Anotações mais compactas */
  .anotacao-profissional {
    font-size: 10px;
  }
}

/* =========================
   DOBRÁVEIS / SAFE AREA
========================= */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
