/* ==========================================================
   SOLICITAÇÃO WEB | UNIMED ITAJUBÁ
   Tema visual isolado. Mantém Bootstrap e CSS legado como base.
   ========================================================== */

body.authorizer-modern {
  --unimed-green: #00995d;
  --unimed-green-dark: #006b4f;
  --unimed-green-soft: #eaf7f0;
  --unimed-ink: #173b32;
  --unimed-muted: #647a73;
  --unimed-border: #dce9e2;
  --unimed-bg: #f3f8f5;
  background: var(--unimed-bg) !important;
  color: var(--unimed-ink);
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  font-size: 15px !important;
  line-height: 1.5;
  min-height: 100vh;
}

.authorizer-modern *,
.authorizer-modern *::before,
.authorizer-modern *::after {
  box-sizing: border-box;
}

.authorizer-modern > .row:first-child {
  margin: 0 !important;
}

.authorizer-modern header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--unimed-border);
  box-shadow: 0 4px 18px rgba(20, 70, 50, 0.04);
}

.authorizer-modern header::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 25%;
  height: 5px;
  border-radius: 0 0 0 12px;
  background: linear-gradient(90deg, #a7e8c5, #00a66a);
}

.authorizer-modern header .lg-screen,
.authorizer-modern header .sm-screen {
  width: 100%;
}

.authorizer-modern header .lg-screen > div {
  display: flex !important;
  align-items: center;
  gap: 24px;
  padding: 0 !important;
}

.authorizer-modern header img {
  height: 58px !important;
  width: auto;
  object-fit: contain;
}

.authorizer-modern header h2 {
  margin: 0 0 0 2px !important;
  color: var(--unimed-green-dark);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.authorizer-modern header h2::after {
  content: "Preencha seus dados para acompanhar sua solicitação";
  display: block;
  margin-top: 2px;
  color: var(--unimed-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.authorizer-modern .sm-screen {
  display: none;
}

/* Área principal e cartão do formulário */
.authorizer-modern #form-client-attendance {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 56px !important;
  padding: 30px clamp(20px, 4vw, 48px) 34px;
  background: #fff;
  border: 1px solid rgba(210, 230, 219, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(23, 75, 53, 0.09);
}

.authorizer-modern #progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  width: 100%;
  margin: 0 0 34px !important;
  padding: 0 !important;
  list-style: none;
}

.authorizer-modern #progress::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: #e3eee8;
  z-index: 0;
}

.authorizer-modern #progress li {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 0 4px !important;
  margin: 0 !important;
  text-align: center;
  color: #82958d;
  background: transparent !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.authorizer-modern #progress li {
  counter-increment: step;
}

.authorizer-modern #progress li::before {
  content: counter(step);
  /* counter-increment: step; */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 9px;
  border: 2px solid #dce9e2;
  border-radius: 50%;
  background: #fff;
  color: #82958d;
  font-size: 14px;
  font-weight: 700;
}

.authorizer-modern #progress {
  counter-reset: step;
}

.authorizer-modern #progress li.active {
  color: var(--unimed-green-dark);
}

.authorizer-modern #progress li.active::before {
  border-color: var(--unimed-green);
  background: var(--unimed-green);
  color: #fff;
  box-shadow: 0 0 0 5px var(--unimed-green-soft);
}

.authorizer-modern #progress li span {
  display: block;
  white-space: normal;
}

/* Etapas */
.authorizer-modern #form-client-attendance fieldset {
  display: none;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.authorizer-modern #form-client-attendance fieldset:first-of-type {
  display: block;
}

.authorizer-modern #form-client-attendance fieldset h3 {
  margin: 0 0 22px !important;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2ef;
  color: var(--unimed-green-dark);
  font-size: 23px;
  font-weight: 700;
}

.authorizer-modern #form-client-attendance fieldset .row {
  margin-left: -10px;
  margin-right: -10px;
}

.authorizer-modern #form-client-attendance fieldset [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.authorizer-modern .information {
  margin: 0 0 22px;
  padding: 0 0 0 22px;
  color: #435b52;
  font-size: 15px;
  line-height: 1.75;
}

.authorizer-modern .information li {
  margin: 0 0 8px;
  padding-left: 4px;
}

.authorizer-modern #form-client-attendance label,
.authorizer-modern #form-client-attendance .attendance > div > span,
.authorizer-modern #form-client-attendance .local > div > span {
  display: inline-block;
  margin: 0 0 7px;
  color: #294b40;
  font-size: 13px;
  font-weight: 600;
}

.authorizer-modern #form-client-attendance .req {
  color: #e05252 !important;
  font-weight: 700;
}

.authorizer-modern #form-client-attendance .form-control,
.authorizer-modern #form-client-attendance select,
.authorizer-modern #form-client-attendance textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cfdfd5 !important;
  border-radius: 11px !important;
  background-color: #fff;
  color: #203e34;
  box-shadow: 0 2px 5px rgba(20, 70, 50, 0.025) !important;
  font-family: inherit;
  font-size: 15px !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.authorizer-modern #form-client-attendance textarea {
  min-height: 140px;
  resize: vertical;
}

.authorizer-modern #form-client-attendance .form-control:focus,
.authorizer-modern #form-client-attendance select:focus,
.authorizer-modern #form-client-attendance textarea:focus {
  border-color: var(--unimed-green) !important;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(0, 153, 93, 0.11) !important;
}

.authorizer-modern #form-client-attendance input[type="radio"] {
  accent-color: var(--unimed-green);
  width: 17px !important;
  height: 17px;
  vertical-align: middle;
  margin: 0 6px 0 0;
}

.authorizer-modern #form-client-attendance a {
  color: var(--unimed-green-dark);
  font-weight: 600;
  text-decoration: none;
}

.authorizer-modern #form-client-attendance a:hover {
  text-decoration: underline;
}

.authorizer-modern .attendance,
.authorizer-modern .local {
  padding: 14px 16px;
  margin: 0 0 18px !important;
  border: 1px solid var(--unimed-border);
  border-radius: 13px;
  background: #f8fbf9;
}

.authorizer-modern #form-client-attendance .acao,
.authorizer-modern #form-client-attendance .btn {
  min-height: 44px;
  padding: 10px 22px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #00a66a, #007c55) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(0, 140, 85, 0.16);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.authorizer-modern #form-client-attendance .acao:hover,
.authorizer-modern #form-client-attendance .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(0, 140, 85, 0.22);
}

.authorizer-modern #form-client-attendance .prev {
  background: #edf5f0 !important;
  color: var(--unimed-green-dark) !important;
  box-shadow: none;
}

.authorizer-modern #form-client-attendance #first-next,
.authorizer-modern #form-client-attendance #save-protocol-client {
  float: right;
}

.authorizer-modern #form-client-attendance .last-fieldset h2 {
  color: var(--unimed-green-dark);
  font-size: 23px;
  font-weight: 700;
}

.authorizer-modern #eventsPanel,
.authorizer-modern #attach-list,
.authorizer-modern #client-attach {
  color: #536b61;
}

.authorizer-modern #eventsPanel {
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--unimed-border);
  border-radius: 12px;
  background: #fbfdfc;
}

.authorizer-modern #jqxFileUpload {
  max-width: 100%;
}

.authorizer-modern .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.authorizer-modern .modal-header,
.authorizer-modern .modal-footer {
  border-color: #edf2ef;
}

.authorizer-modern .modal-title {
  color: var(--unimed-green-dark);
  font-weight: 700;
}

.authorizer-modern .span-modal {
  color: #294b40;
  line-height: 1.65;
}

.authorizer-modern .confirm-span {
  color: var(--unimed-green-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.authorizer-modern .error-alert {
  color: #b63b3b;
}

@media (max-width: 767px) {
  .authorizer-modern header {
    min-height: 74px;
    padding: 10px 16px;
  }

  .authorizer-modern header .lg-screen {
    display: none !important;
  }

  .authorizer-modern header .sm-screen {
    display: flex !important;
    align-items: center;
    gap: 14px;
  }

  .authorizer-modern header .sm-screen img {
    max-width: 105px;
    height: auto !important;
  }

  .authorizer-modern header .sm-screen h2 {
    margin: 0 !important;
    font-size: 21px;
  }

  .authorizer-modern header h2::after {
    font-size: 11px;
  }

  .authorizer-modern #form-client-attendance {
    width: calc(100% - 20px);
    margin: 16px auto 28px !important;
    padding: 20px 16px 24px;
    border-radius: 16px;
  }

  .authorizer-modern #progress {
    gap: 2px;
    margin-bottom: 25px !important;
  }

  .authorizer-modern #progress::before {
    top: 14px;
    left: 8%;
    right: 8%;
  }

  .authorizer-modern #progress li {
    font-size: 9px;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .authorizer-modern #progress li::before {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
    font-size: 12px;
  }

  .authorizer-modern #form-client-attendance fieldset h3 {
    font-size: 20px;
  }

  .authorizer-modern #form-client-attendance fieldset [class*="col-"] {
    margin-bottom: 12px;
  }

  .authorizer-modern #form-client-attendance .form-control,
  .authorizer-modern #form-client-attendance select {
    min-height: 46px;
    font-size: 16px !important;
  }

  .authorizer-modern #form-client-attendance textarea {
    min-height: 130px;
    font-size: 16px !important;
  }

  .authorizer-modern #form-client-attendance .acao {
    min-width: 112px;
    margin-top: 8px;
  }

  .authorizer-modern #form-client-attendance #first-next,
  .authorizer-modern #form-client-attendance #save-protocol-client {
    float: none;
    display: block;
    width: 100%;
  }

  .authorizer-modern #form-client-attendance .prev {
    width: 100%;
    margin-bottom: 8px;
  }

  .authorizer-modern .sm-line-break {
    display: none;
  }

  .authorizer-modern #eventsPanel {
    min-height: 130px;
  }

  .authorizer-modern .modal-dialog {
    margin: 10px;
  }

  .authorizer-modern .modal-body {
    padding: 16px;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================
   CORREÇÃO DE ESTRUTURA
   Neutraliza dimensões/posicionamentos herdados do authorizer.css.
   O formulário inteiro passa a ser um único cartão alinhado.
   ========================================================== */

html body.authorizer-modern {
  margin: 0 !important;
  background: #f2f7f4 !important;
}

body.authorizer-modern > .row {
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.authorizer-modern #form-client-attendance {
  display: block !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  width: min(1120px, calc(100% - 48px)) !important;
  max-width: 1120px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 34px auto 56px !important;
  padding: 28px 42px 36px !important;
  overflow: visible !important;
  background: #fff !important;
  border: 1px solid #dcebe2 !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 50px rgba(21, 75, 51, 0.09) !important;
}

body.authorizer-modern #form-client-attendance > fieldset {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  clear: both !important;
  display: none;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.authorizer-modern #form-client-attendance > fieldset:first-of-type {
  display: block;
}

body.authorizer-modern #form-client-attendance > fieldset > .row {
  display: flex;
  flex-wrap: wrap;
  width: auto;
  min-height: 0;
  margin-left: -10px !important;
  margin-right: -10px !important;
  float: none !important;
}

body.authorizer-modern #form-client-attendance > fieldset h3 {
  width: 100%;
  margin: 0 0 22px !important;
}

body.authorizer-modern #form-client-attendance #progress {
  position: relative !important;
  display: flex !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 0 36px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.authorizer-modern #form-client-attendance #progress li {
  position: relative !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.authorizer-modern #form-client-attendance .row::before,
body.authorizer-modern #form-client-attendance .row::after {
  content: "";
  display: table;
}

body.authorizer-modern #form-client-attendance .row::after {
  clear: both;
}

body.authorizer-modern #form-client-attendance .information {
  display: block;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 0 24px !important;
  padding: 0 0 0 22px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.authorizer-modern #form-client-attendance .information li {
  position: static !important;
  display: list-item !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 8px !important;
  padding: 0 0 0 4px !important;
  background: transparent !important;
  border: 0 !important;
}

body.authorizer-modern #form-client-attendance .error-alert {
  position: static !important;
  float: none !important;
  display: block;
  width: 100% !important;
  margin: 0 0 12px !important;
}

@media (max-width: 767px) {
  body.authorizer-modern #form-client-attendance {
    width: calc(100% - 24px) !important;
    margin: 16px auto 28px !important;
    padding: 20px 16px 24px !important;
    border-radius: 16px !important;
  }

  body.authorizer-modern #form-client-attendance > fieldset {
    width: 100% !important;
    padding: 0 !important;
  }

  body.authorizer-modern #form-client-attendance #progress {
    margin-bottom: 26px !important;
  }
}

/* REDESIGN FIEL À REFERÊNCIA | UNIMED ITAJUBÁ */
html,
body.authorizer-modern {
  min-height: 100%;
}
body.authorizer-modern {
  --u-green: #008c50;
  --u-deep: #006b45;
  --u-ink: #082b38;
  margin: 0 !important;
  overflow-x: hidden;
  background:
    radial-gradient(
      ellipse at 12% 52%,
      rgba(185, 244, 210, 0.42),
      transparent 34%
    ),
    linear-gradient(180deg, #f8fffc, #eef9f5 62%, #e8f8f1) !important;
  color: var(--u-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Rodapé com ondas orgânicas */
body.authorizer-modern:after {
  content: "";
  display: block;
  width: 100%;
  height: 105px;
  margin-top: 38px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C180 35 300 105 490 75 S800 25 1000 65 S1320 100 1600 42 L1600 120 L0 120 Z' fill='%23b8f0c9'/%3E%3Cpath d='M0 88 C220 115 350 42 570 65 S900 110 1110 58 S1400 30 1600 75 L1600 120 L0 120 Z' fill='%2300a968'/%3E%3Cpath d='M0 100 C190 65 390 110 620 88 S950 45 1170 80 S1430 105 1600 65 L1600 120 L0 120 Z' fill='%23007b49'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
}

.authorizer-modern .solicitacao-hero {
  min-height: 190px;
  position: relative;
  display: flex;
  overflow: hidden;
  background: linear-gradient(105deg, #fff, #f2fcf7 48%, #d9f7e8);
}
.authorizer-modern .solicitacao-hero:before {
  content: "";
  position: absolute;
  left: -5%;
  bottom: -84px;
  width: 52%;
  height: 145px;
  background: #c9f4d9;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.authorizer-modern .solicitacao-hero__content {
  width: 58%;
  padding: 22px clamp(24px, 5vw, 76px) 24px;
  position: relative;
  z-index: 2;
}
.authorizer-modern .solicitacao-logo {
  display: block;
  width: 112px;
  height: 54px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 9px;
}
.authorizer-modern .solicitacao-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.authorizer-modern .solicitacao-heading__icon {
  color: #008c50;
  font-size: 38px;
  margin-top: 5px;
}
.authorizer-modern .solicitacao-heading h1 {
  margin: 0 !important;
  color: #092d38;
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 800;
  letter-spacing: -1px;
}
.authorizer-modern .solicitacao-heading h2 {
  margin: 0 !important;
  color: #006b45;
  font-size: 21px;
  font-weight: 700;
}
.authorizer-modern .solicitacao-heading p {
  margin: 4px 0 0;
  color: #183f49;
  font-size: 13px;
  line-height: 1.45;
}
.authorizer-modern .solicitacao-hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 0 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}
.authorizer-modern .solicitacao-hero__visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(225, 255, 238, 0.08),
    rgba(0, 153, 93, 0.08)
  );
}
.authorizer-modern .solicitacao-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.authorizer-modern #form-client-attendance {
  width: min(1440px, calc(100% - 64px));
  margin: 20px auto 0 !important;
  padding: 0 26px 34px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.authorizer-modern #progress {
  max-width: 1200px;
  margin: 0 auto 22px !important;
  padding: 0 12px !important;
}
.authorizer-modern #progress:before {
  background: #a8d9c1;
  top: 18px;
}
.authorizer-modern #progress li {
  color: #173c49;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}
.authorizer-modern #progress li:before {
  width: 38px;
  height: 38px;
  border-color: #b9cbd0;
  color: #264957;
  font-size: 15px;
}
.authorizer-modern #progress li.active:before {
  background: #008c50;
  border-color: #008c50;
  box-shadow: 0 0 0 5px #d6f5e3;
}
.authorizer-modern #progress li.active {
  color: #006b45;
}
.authorizer-modern #progress li.active span {
  display: inline-block;
  padding: 5px 24px;
  border-radius: 30px;
  background: #c9f3da;
}
.authorizer-modern .orientation-step .orientation-card {
  display: grid;
  grid-template-columns: minmax(230px, 30%) 1fr;
  gap: 24px;
  align-items: center;
  padding: 25px 30px 20px;
  border: 1px solid rgba(202, 232, 217, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(13px);
  box-shadow: 0 16px 42px rgba(17, 88, 58, 0.09);
}
.authorizer-modern .orientation-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.authorizer-modern .orientation-illustration img {
  display: block;
  width: min(100%, 330px);
  max-height: 320px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.authorizer-modern .orientation-title {
  margin-bottom: 13px;
}
.authorizer-modern .orientation-title h3 {
  margin: 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #092f3b !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
}
.authorizer-modern .orientation-title p {
  margin: 0;
  color: #243f49;
  font-size: 15px;
}
.authorizer-modern .orientation-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.authorizer-modern .orientation-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 58px;
  padding: 6px 0;
  border-bottom: 1px solid #e1eee7;
  color: #122f3b;
  font-size: 15px;
  line-height: 1.42;
}
.authorizer-modern .orientation-list li:last-child {
  border: 0;
}
.authorizer-modern .orientation-list li > .glyphicon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #008c50;
  background: #e6f8ed;
  font-size: 22px;
}
.authorizer-modern .orientation-list strong {
  font-weight: 800;
  margin-right: 5px;
  color: #092d38;
}
.authorizer-modern .orientation-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 16px 0;
  padding: 13px 18px;
  border-radius: 13px;
  background: linear-gradient(90deg, #e2f8eb, #d8f4e5);
  color: #123c32;
  font-size: 15px;
}
.authorizer-modern .orientation-notice > .glyphicon {
  color: #008c50;
  font-size: 23px;
}
.authorizer-modern .orientation-notice strong {
  font-size: 17px;
}
.authorizer-modern .orientation-notice a {
  color: #00783f !important;
  font-size: 17px;
  font-weight: 800 !important;
}
.authorizer-modern .orientation-actions {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 16px;
}
.authorizer-modern #form-client-attendance #first-next {
  float: none !important;
  min-width: 280px;
  min-height: 52px;
  padding: 12px 60px 12px 34px !important;
  border-radius: 30px !important;
  font-size: 16px !important;
}
.authorizer-modern .orientation-action-arrow {
  position: absolute;
  color: #fff;
  font-size: 19px;
  margin: 16px 0 0 205px;
  pointer-events: none;
}
.authorizer-modern #form-client-attendance fieldset:not(.orientation-step) {
  padding: 26px 30px !important;
  /* border: 1px solid #d6eadf !important; */
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 15px 40px rgba(17, 88, 58, 0.08);
}

@media (max-width: 767px) {
  body.authorizer-modern:after {
    height: 70px;
    margin-top: 22px;
  }
  .authorizer-modern .solicitacao-hero {
    min-height: 0;
    display: block;
  }
  .authorizer-modern .solicitacao-hero__content {
    width: 100%;
    padding: 15px 18px 17px;
  }
  .authorizer-modern .solicitacao-logo {
    width: 98px;
    height: 46px;
    margin-bottom: 10px;
  }
  .authorizer-modern .solicitacao-heading {
    gap: 11px;
  }
  .authorizer-modern .solicitacao-heading__icon {
    font-size: 29px;
  }
  .authorizer-modern .solicitacao-heading h1 {
    font-size: 27px;
  }
  .authorizer-modern .solicitacao-heading h2 {
    font-size: 17px;
  }
  .authorizer-modern .solicitacao-heading p {
    font-size: 12px;
  }
  .authorizer-modern .solicitacao-hero__visual {
    position: relative;
    width: 100%;
    height: 145px;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .authorizer-modern .solicitacao-hero__visual img {
    object-position: center 38%;
  }
  .authorizer-modern #form-client-attendance {
    width: calc(100% - 22px);
    margin: 14px auto 0 !important;
    padding: 0 0 22px;
  }
  .authorizer-modern #progress {
    gap: 2px;
    margin: 0 auto 16px !important;
    padding: 0 !important;
  }
  .authorizer-modern #progress li {
    font-size: 9px;
  }
  .authorizer-modern #progress li:before {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin-bottom: 7px;
  }
  .authorizer-modern #progress:before {
    top: 14px;
  }
  .authorizer-modern #progress li.active span {
    padding: 4px 5px;
  }
  .authorizer-modern .orientation-step .orientation-card {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 17px 15px;
    border-radius: 16px;
  }
  .authorizer-modern .orientation-illustration img {
    width: min(62%, 220px);
    max-height: 180px;
  }
  .authorizer-modern .orientation-title h3 {
    font-size: 21px !important;
  }
  .authorizer-modern .orientation-title p {
    font-size: 13px;
  }
  .authorizer-modern .orientation-list li {
    grid-template-columns: 42px 1fr;
    gap: 9px;
    min-height: 0;
    padding: 9px 0;
    font-size: 13px;
  }
  .authorizer-modern .orientation-list li > .glyphicon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 18px;
  }
  .authorizer-modern .orientation-notice {
    margin: 12px 0 0;
    padding: 13px 12px;
    gap: 7px;
    text-align: center;
    font-size: 13px;
  }
  .authorizer-modern .orientation-notice strong {
    font-size: 15px;
  }
  .authorizer-modern .orientation-notice a {
    width: 100%;
    font-size: 16px;
  }
  .authorizer-modern #form-client-attendance #first-next {
    width: min(100%, 300px);
    min-width: 0;
  }
  .authorizer-modern .orientation-action-arrow {
    margin-left: 205px;
  }
  .authorizer-modern #form-client-attendance fieldset:not(.orientation-step) {
    padding: 18px 14px !important;
  }
  .authorizer-modern .desktop-only {
    display: none;
  }
}

/* ==========================================================
   REFINAMENTO VISUAL DAS ETAPAS 2, 3 E 4
   Escopo isolado: preserva IDs, names, validações e integrações.
   ========================================================== */
body.authorizer-modern #form-client-attendance #progress {
  --progress: 0%;
  isolation: isolate;
}
body.authorizer-modern #form-client-attendance #progress::before {
  content: "";
  left: 9%;
  right: 9%;
  top: 18px;
  height: 2px;
  background: #dce9e3;
  z-index: -2;
}
body.authorizer-modern #form-client-attendance #progress::after {
  content: "";
  position: absolute;
  left: 9%;
  top: 18px;
  width: calc((100% - 18%) * var(--progress) / 100);
  height: 2px;
  background: linear-gradient(90deg, #00a66a, #008b52);
  z-index: -1;
  transition: width 0.3s ease;
}
body.authorizer-modern #progress li.completed {
  color: #007b4b;
}
body.authorizer-modern #progress li.completed::before {
  content: "✓";
  counter-increment: none;
  color: #fff;
  background: #008c55;
  border-color: #008c55;
  box-shadow: 0 0 0 4px #e0f6e9;
  font-size: 17px;
}
body.authorizer-modern #progress li.active::before {
  border-color: #008c55;
  background: #008c55;
  color: #fff;
  box-shadow: 0 0 0 5px #d8f4e4;
}

/* A primeira etapa fica leve, sem o grande cartão envolvendo tudo. */
body.authorizer-modern .orientation-step .orientation-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 18px 12px 8px !important;
}
body.authorizer-modern .orientation-step .orientation-notice {
  margin-left: 12px !important;
  margin-right: 12px !important;
}

/* Cabeçalhos das etapas: uma única linha de separação, sem <hr> duplicado. */
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > .row:first-child
  h3 {
  margin: 0 0 22px !important;
  padding: 0 0 13px !important;
  border-bottom: 1px solid #e4eee8 !important;
  color: #006b4f !important;
  font-size: 25px !important;
  line-height: 1.25;
  letter-spacing: -0.35px;
}
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > hr {
  display: none !important;
}
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > .row {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
}

/* Opções de perfil e de prestador: seleção em cartões, sem caixas empilhadas. */
body.authorizer-modern #form-client-attendance .attendance,
body.authorizer-modern #form-client-attendance .local {
  display: block;
  margin: 0 0 15px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.authorizer-modern #form-client-attendance .attendance > div,
body.authorizer-modern #form-client-attendance .local > div {
  width: 100%;
  padding: 0 !important;
}
body.authorizer-modern #form-client-attendance .attendance > div > span,
body.authorizer-modern #form-client-attendance .local > div > span {
  display: block;
  margin: 0 0 10px !important;
  color: #153d35;
  font-size: 14px;
  font-weight: 700;
}
body.authorizer-modern #form-client-attendance #radio-attendance-client,
body.authorizer-modern #form-client-attendance #radio-attendance-unimed,
body.authorizer-modern #form-client-attendance #radio-attendance-provider,
body.authorizer-modern #form-client-attendance #radio-provider-ok,
body.authorizer-modern #form-client-attendance #radio-provider-no-ok {
  width: auto !important;
  margin: 0 7px 0 0 !important;
  accent-color: #009b63;
  vertical-align: middle;
  transform: scale(1.08);
}
body.authorizer-modern #form-client-attendance .attendance a,
body.authorizer-modern #form-client-attendance .local a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 8px 0 0;
  padding: 0 17px !important;
  border: 1px solid #d8e8df;
  border-radius: 12px;
  background: #fff;
  color: #31564a !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.18s ease;
}
body.authorizer-modern #form-client-attendance .attendance a:hover,
body.authorizer-modern #form-client-attendance .local a:hover {
  border-color: #009b63;
  background: #f0fbf5;
}
body.authorizer-modern #form-client-attendance .attendance > div > span + br,
body.authorizer-modern #form-client-attendance .local > div > span + br {
  display: none;
}

/* Aviso como informação contextual, não como erro vermelho. */
body.authorizer-modern #form-client-attendance .attendance + .attendance {
  margin: 0 0 22px !important;
  padding: 13px 16px !important;
  border-left: 3px solid #18a66a !important;
  border-radius: 0 11px 11px 0 !important;
  background: #eff9f3 !important;
  color: #31564a !important;
}
body.authorizer-modern #form-client-attendance .attendance + .attendance span {
  display: block;
  color: #31564a !important;
  font-size: 13px;
  line-height: 1.55;
}

/* Campos: grade fluida, rótulos consistentes e foco acessível. */
body.authorizer-modern #form-client-attendance label {
  display: block;
  margin: 0 0 7px !important;
  color: #24483e;
  font-size: 13px;
  font-weight: 650;
}
body.authorizer-modern #form-client-attendance .form-control,
body.authorizer-modern #form-client-attendance select,
body.authorizer-modern #form-client-attendance textarea {
  min-height: 46px;
  padding: 11px 14px !important;
  border: 1px solid #d5e5dc !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #183c34 !important;
  box-shadow: 0 2px 7px rgba(22, 75, 51, 0.035) !important;
  font-size: 14px !important;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
body.authorizer-modern #form-client-attendance textarea {
  min-height: 132px;
  resize: vertical;
}
body.authorizer-modern #form-client-attendance .form-control:focus,
body.authorizer-modern #form-client-attendance select:focus,
body.authorizer-modern #form-client-attendance textarea:focus {
  border-color: #00a66a !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 166, 106, 0.12) !important;
}
body.authorizer-modern #form-client-attendance h6 {
  margin: 3px 0 18px !important;
  color: #71857d;
  font-size: 12px;
}
body.authorizer-modern #form-client-attendance .req {
  color: #e04b4b !important;
}

/* SIM/NÃO do prestador como opções compactas e alinhadas. */
body.authorizer-modern #form-client-attendance .local a {
  min-height: 20px;
  padding: 0 15px !important;
}
body.authorizer-modern
  #form-client-attendance
  #info-provider-choice
  > .row:first-child {
  margin-bottom: 17px !important;
}

/* Navegação alinhada à direita, consistente em todas as etapas. */
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.acao {
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 46px;
  margin: 8px 0 0 9px !important;
  padding: 10px 22px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700;
}
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.prev {
  background: #edf7f1 !important;
  color: #007b4b !important;
  border: 1px solid #d8eade !important;
}
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.next2,
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.next4,
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.send {
  background: linear-gradient(135deg, #00a66a, #007d4d) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 7px 16px rgba(0, 137, 83, 0.16) !important;
}
/* body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step) {
  padding: 12px 0 8px !important;
} */
/* body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)::after {
  content: "";
  display: block;
  clear: both;
}
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.prev {
  margin-left: auto !important;
}
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.acao {
  float: right !important;
}
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > input.prev {
  clear: both;
} */

@media (max-width: 767px) {
  body.authorizer-modern #form-client-attendance #progress::before,
  body.authorizer-modern #form-client-attendance #progress::after {
    top: 14px;
  }
  body.authorizer-modern #progress li.completed::before,
  body.authorizer-modern #progress li.active::before {
    box-shadow: 0 0 0 3px #dff5e8;
  }
  body.authorizer-modern .orientation-step .orientation-card {
    padding: 12px 0 6px !important;
  }
  body.authorizer-modern #form-client-attendance .attendance a,
  body.authorizer-modern #form-client-attendance .local a {
    min-height: 40px;
    margin-bottom: 7px;
    padding: 0 12px !important;
  }
  body.authorizer-modern
    #form-client-attendance
    > fieldset:not(.orientation-step)
    > input.acao {
    min-width: calc(50% - 7px);
    margin: 10px 0 0 7px !important;
  }
}

/* ==========================================================
   AJUSTES PONTUAIS - PERFIL, AVISOS E CONFIRMAÇÃO
   Mantém o fluxo e os identificadores consumidos pelo JavaScript.
   ========================================================== */
body.authorizer-modern .orientation-step .orientation-card {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Título das etapas com uma única divisória elegante. */
body.authorizer-modern
  #form-client-attendance
  > fieldset:not(.orientation-step)
  > .row:first-child
  h3 {
  border: 0 !important;
  border-bottom: 1px solid #e5eee9 !important;
  padding-bottom: 13px !important;
  margin-bottom: 20px !important;
}

/* Aviso contextual antes da escolha do perfil. */
body.authorizer-modern .attendance-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 22px;
  padding: 14px 17px;
  border: 1px solid #f3dfb3;
  border-radius: 12px;
  background: #fff9eb;
  color: #77551b;
}
body.authorizer-modern .attendance-notice > .glyphicon {
  flex: 0 0 20px;
  margin-top: 2px;
  color: #c58b20;
  font-size: 18px;
}
body.authorizer-modern .attendance-notice strong {
  display: block;
  margin-bottom: 2px;
  color: #755014;
  font-size: 13px;
}
body.authorizer-modern .attendance-notice p {
  margin: 0;
  color: #765d32;
  font-size: 13px;
  line-height: 1.5;
}

/* Escolha de perfil: cartões leves com ícone, sem radio solto. */
body.authorizer-modern #form-client-attendance .attendance-profile {
  margin: 0 0 22px !important;
}
body.authorizer-modern
  #form-client-attendance
  .attendance-profile
  .profile-question {
  display: block;
  margin: 0 0 11px;
  color: #173f35;
  font-size: 14px;
  font-weight: 700;
}
body.authorizer-modern #form-client-attendance .profile-options {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
body.authorizer-modern
  #form-client-attendance
  .profile-options
  input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}
body.authorizer-modern #form-client-attendance .profile-options a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
  min-height: 58px;
  margin: 0 !important;
  padding: 10px 15px !important;
  border: 1px solid #e0ebe5;
  border-radius: 13px;
  background: #fff;
  color: #31564a !important;
  text-decoration: none !important;
  font-weight: 650;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
body.authorizer-modern #form-client-attendance .profile-options a .glyphicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eaf7f0;
  color: #00965c;
  font-size: 16px;
}
body.authorizer-modern #form-client-attendance .profile-options a:hover {
  border-color: #9bd8b8;
  background: #f8fcf9;
}
body.authorizer-modern
  #form-client-attendance
  .profile-options
  input:checked
  + a {
  border-color: #00a36a;
  background: #f0faf4;
  color: #006b4f !important;
  box-shadow: 0 0 0 2px rgba(0, 163, 106, 0.09);
}
body.authorizer-modern
  #form-client-attendance
  .profile-options
  input:checked
  + a
  .glyphicon {
  background: #d7f3e3;
  color: #008650;
}

/* SIM/NÃO sem preenchimento colorido: apenas o indicador assinala a escolha. */
body.authorizer-modern #form-client-attendance .local a {
  background: transparent !important;
  border-color: #dce9e2 !important;
  color: #31564a !important;
  box-shadow: none !important;
}
body.authorizer-modern #form-client-attendance .local a:hover,
body.authorizer-modern #form-client-attendance .local a:focus {
  background: transparent !important;
}

/* Modal de conferência mais largo e organizado em grade. */
body.authorizer-modern #modal-confirm .confirm-dialog {
  width: min(920px, calc(100% - 32px));
  margin: 30px auto;
}
body.authorizer-modern #modal-confirm .confirm-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 49, 38, 0.24);
}
body.authorizer-modern #modal-confirm .confirm-header {
  padding: 22px 28px 16px;
  border-bottom: 1px solid #e8f0eb;
  background: #fff;
}
body.authorizer-modern #modal-confirm .confirm-header .modal-title {
  color: #006b4f;
  font-size: 21px;
  font-weight: 750;
}
body.authorizer-modern #modal-confirm .confirm-header .modal-title .glyphicon {
  margin-right: 8px;
  color: #009b61;
}
body.authorizer-modern #modal-confirm .confirm-header p {
  margin: 5px 0 0 28px;
  color: #71847b;
  font-size: 13px;
}
body.authorizer-modern #modal-confirm .confirm-body {
  max-height: min(68vh, 680px);
  overflow-y: auto;
  padding: 22px 28px 26px;
}
body.authorizer-modern #modal-confirm .confirm-warning {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid #f1dfb7;
  border-radius: 12px;
  background: #fff9eb;
  color: #77551b;
}
body.authorizer-modern #modal-confirm .confirm-warning > .glyphicon {
  margin-top: 2px;
  color: #c58b20;
  font-size: 18px;
}
body.authorizer-modern #modal-confirm .confirm-warning strong {
  display: block;
  margin-bottom: 2px;
}
body.authorizer-modern #modal-confirm .confirm-warning p {
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
}
body.authorizer-modern #modal-confirm .confirm-section + .confirm-section {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid #e8f0eb;
}
body.authorizer-modern #modal-confirm .confirm-section h5 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #006b4f;
  font-size: 16px;
  font-weight: 750;
}
body.authorizer-modern #modal-confirm .confirm-section h5 > .glyphicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e8f7ef;
  color: #00965c;
}
body.authorizer-modern #modal-confirm .confirm-section h5 small {
  margin-left: auto;
  color: #82958c;
  font-size: 11px;
  font-weight: 600;
}
body.authorizer-modern #modal-confirm .confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.authorizer-modern #modal-confirm .confirm-item {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f7faf8;
}
body.authorizer-modern #modal-confirm .confirm-item.confirm-wide {
  grid-column: 1 / -1;
}
body.authorizer-modern #modal-confirm .confirm-item label {
  display: block;
  margin: 0 0 4px !important;
  color: #6c8077;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}
body.authorizer-modern #modal-confirm .confirm-item > span {
  display: block;
  padding: 0 !important;
  color: #193f34;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.authorizer-modern #modal-confirm .confirm-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px 22px;
  border-top: 1px solid #e8f0eb;
  background: #fff;
}
body.authorizer-modern #modal-confirm .confirm-footer .btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
}
body.authorizer-modern #modal-confirm .confirm-footer .btn-default {
  border: 1px solid #dce9e2;
  background: #f4f8f5;
  color: #08754d;
}
body.authorizer-modern #modal-confirm .confirm-footer .btn-success {
  border: 0;
  background: linear-gradient(135deg, #00a66a, #007d4d);
}
@media (max-width: 767px) {
  body.authorizer-modern #form-client-attendance .profile-options {
    display: grid;
    grid-template-columns: 1fr;
  }
  body.authorizer-modern #form-client-attendance .profile-options a {
    width: 100%;
    min-width: 0;
  }
  body.authorizer-modern #modal-confirm .confirm-dialog {
    width: calc(100% - 20px);
    margin: 10px auto;
  }
  body.authorizer-modern #modal-confirm .confirm-header {
    padding: 18px 18px 14px;
  }
  body.authorizer-modern #modal-confirm .confirm-body {
    max-height: calc(100vh - 170px);
    padding: 16px 16px 20px;
  }
  body.authorizer-modern #modal-confirm .confirm-grid {
    grid-template-columns: 1fr;
  }
  body.authorizer-modern #modal-confirm .confirm-item.confirm-wide {
    grid-column: auto;
  }
  body.authorizer-modern #modal-confirm .confirm-footer {
    padding: 13px 16px 16px;
  }
  body.authorizer-modern .attendance-notice {
    margin-left: 0;
    margin-right: 0;
  }
}

#text-provider-ok,
#text-provider-no-ok {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.confirmation-header {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid #e5eeea;
}

.confirmation-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.confirmation-title i {
  color: #008f5a;
  font-size: 20px;
}

.confirmation-title h4 {
  margin: 0;
  color: #006b50;
  font-size: 21px;
  font-weight: 700;
}

.confirmation-header p {
  margin: 6px 0 0 30px;
  color: #71847d;
  font-size: 13px;
}

.confirmation-icon {
  color: #008f5a;
  flex-shrink: 0;
  display: block;
}

.btn-previous {
  margin-right: auto;
}

.btn-next {
  margin-left: auto;
}

/* Navegação das etapas */
body.authorizer-modern #form-client-attendance .form-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-top: 28px;
  padding-top: 8px;
}

/* Botões */
body.authorizer-modern #form-client-attendance .form-navigation .acao {
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 46px;
  margin: 0 !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700;
}

/* Anterior à esquerda */
body.authorizer-modern #form-client-attendance .form-navigation .prev {
  margin-right: auto !important;
  background: #edf7f1 !important;
  color: #007b4b !important;
  border: 1px solid #d8eade !important;
}

/* Próximo à direita */
body.authorizer-modern #form-client-attendance .form-navigation .next2,
body.authorizer-modern #form-client-attendance .form-navigation .next4 {
  margin-left: auto !important;
  background: linear-gradient(135deg, #00a66a, #007d4d) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 7px 16px rgba(0, 137, 83, 0.16) !important;
}

/* Mobile */
@media (max-width: 767px) {
  body.authorizer-modern #form-client-attendance .form-navigation {
    gap: 10px;
    margin-top: 20px;
  }

  body.authorizer-modern #form-client-attendance .form-navigation .acao {
    min-width: 0;
    flex: 1;
  }
}

.request-complete-content {
  padding: 12px 16px;
  color: #29483f;
  font-family: inherit;
}

.request-complete-success,
.request-complete-next {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: #f2faf5;
  border-radius: 12px;
}

.request-complete-success strong,
.request-complete-next strong {
  display: block;
  color: #007f50;
  font-size: 15px;
  margin-bottom: 5px;
}

.request-complete-success p,
.request-complete-next p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.request-complete-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #dff5e9;
  color: #00965e;
  font-size: 19px;
}

.request-complete-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  background: #fff8e8;
  border-left: 4px solid #e9ad35;
  border-radius: 8px;
  color: #70521b;
}

.request-complete-notice > i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.request-complete-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 576px) {
  .request-complete-content {
    padding: 8px 4px;
  }

  .request-complete-success,
  .request-complete-next {
    padding: 12px;
    gap: 10px;
  }
}

.request-complete-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.request-notice-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

/* ==========================================================
   ETAPA 4 | ANEXAR DOCUMENTOS
   Camada visual isolada. Mantém os IDs exigidos pelo upload legado.
   ========================================================== */
body.authorizer-modern #form-client-attendance > fieldset.last-fieldset {
  color: #173b32;
}

body.authorizer-modern .last-fieldset .attach-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 18px;
}

body.authorizer-modern .last-fieldset .attach-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #e4f7ec;
  color: #00965c;
  font-size: 25px;
}

body.authorizer-modern .last-fieldset .attach-heading h2 {
  margin: 0 0 2px !important;
  color: #102f3a;
  font-size: 21px;
  font-weight: 750;
}

body.authorizer-modern .last-fieldset .attach-heading p {
  margin: 0;
  color: #647a73;
  font-size: 13px;
}

body.authorizer-modern .last-fieldset .attach-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid #ffdf91;
  border-radius: 10px;
  background: #fff8e6;
  color: #80500b;
}

body.authorizer-modern .last-fieldset .attach-warning > span {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #e99b20;
  font-size: 21px;
}

body.authorizer-modern .last-fieldset .attach-warning p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

body.authorizer-modern .last-fieldset .attach-upload-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(300px, 1.18fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 20px;
}

body.authorizer-modern .last-fieldset .attach-type-column > label {
  display: block;
  margin: 0 0 8px;
  color: #294b40;
  font-size: 13px;
  font-weight: 700;
}

body.authorizer-modern .last-fieldset #select-document-type-attach {
  margin: 0;
}

body.authorizer-modern .last-fieldset #attach-document-type {
  min-height: 44px;
  border-radius: 9px !important;
}

body.authorizer-modern .last-fieldset #jqxFileUpload {
  float: none !important;
  width: 100% !important;
  margin-top: 12px;
}

body.authorizer-modern .last-fieldset .attach-drop-column {
  min-width: 0;
}

body.authorizer-modern .last-fieldset .attach-drop-hint {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 14px;
  border: 1px dashed #a9bdb3;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f6faf8);
  color: #173b32;
  text-align: center;
}

body.authorizer-modern .last-fieldset .attach-drop-hint > span {
  color: #00a05e;
  font-size: 27px;
}

body.authorizer-modern .last-fieldset .attach-drop-hint strong {
  font-size: 13px;
  font-weight: 700;
}

body.authorizer-modern .last-fieldset .attach-drop-hint > span + strong + span {
  font-size: 12px;
}

body.authorizer-modern .last-fieldset .attach-drop-hint small {
  margin-top: 4px;
  color: #61766d;
  font-size: 10px;
}

body.authorizer-modern .last-fieldset .attach-status-section,
body.authorizer-modern .last-fieldset .attach-files-section {
  margin: 18px 0 0;
}

body.authorizer-modern .last-fieldset .attach-status-section h3,
body.authorizer-modern .last-fieldset .attach-files-section h3 {
  margin: 0 0 8px !important;
  padding: 0;
  border: 0;
  color: #174236;
  font-size: 14px;
  font-weight: 750;
}

body.authorizer-modern .last-fieldset #eventsPanel {
  min-height: 38px;
  max-height: 145px;
  overflow: auto;
  padding: 9px 12px;
  border: 1px solid #e1eee6;
  border-radius: 9px;
  background: #fbfdfc;
  color: #52685e;
  font-size: 11px;
  line-height: 1.5;
}

body.authorizer-modern .last-fieldset #client-attach,
body.authorizer-modern .last-fieldset #attach-list {
  display: block;
  width: 100%;
  color: #294b40;
  font-size: 13px;
}

body.authorizer-modern .last-fieldset #client-attach:empty,
body.authorizer-modern .last-fieldset #attach-list:empty {
  display: none;
}

body.authorizer-modern .last-fieldset .attach-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e9f0ec;
}

body.authorizer-modern .last-fieldset .attach-navigation .prev {
  margin: 0 auto 0 0 !important;
}

body.authorizer-modern .last-fieldset #finalize-client {
  float: none !important;
  margin: 0 0 0 auto !important;
  min-width: 170px;
  background: linear-gradient(135deg, #00a66a, #007d4d) !important;
}

@media (max-width: 767px) {
  body.authorizer-modern .last-fieldset .attach-heading {
    align-items: flex-start;
  }
  body.authorizer-modern .last-fieldset .attach-upload-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.authorizer-modern .last-fieldset .attach-drop-hint {
    min-height: 105px;
  }
  body.authorizer-modern .last-fieldset #eventsPanel {
    max-height: 125px;
  }
  body.authorizer-modern .last-fieldset .attach-navigation {
    gap: 10px;
  }
  body.authorizer-modern .last-fieldset .attach-navigation .acao {
    min-width: 0;
    flex: 1;
  }
}

body.authorizer-modern .last-fieldset.has-attach-type .attach-drop-hint {
  display: none;
}
body.authorizer-modern .last-fieldset #jqxFileUpload:not([hidden]) {
  display: block !important;
  min-height: 88px;
  padding: 10px;
  border: 1px dashed #a9bdb3;
  border-radius: 10px;
  background: #f8fcfa;
}
body.authorizer-modern .last-fieldset #jqxFileUpload .jqx-file-upload,
body.authorizer-modern .last-fieldset #jqxFileUpload .jqx-file-upload-file-row,
body.authorizer-modern
  .last-fieldset
  #jqxFileUpload
  .jqx-file-upload-buttons-container {
  max-width: 100%;
}

#eventsPanel {
  width: 100% !important;
}

/* ==========================================
   MODAL DE CONFIRMAÇÃO DO PROTOCOLO
========================================== */

.protocol-success {
  padding: 22px 24px;
  color: #294b43;
  font-family: inherit;
}

/* Confirmação de sucesso */

.protocol-success-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: #effaf4;
  border-radius: 14px;
  margin-bottom: 24px;
}

.protocol-success-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008b55;
  background: #d8f5e5;
  border-radius: 50%;
}

.protocol-success-icon svg {
  width: 29px;
  height: 29px;
}

.protocol-success-banner h3 {
  margin: 0 0 5px;
  color: #007d50;
  font-size: 19px;
  font-weight: 700;
}

.protocol-success-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Dados de acesso */

.protocol-access-info {
  margin-bottom: 20px;
}

.protocol-access-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.protocol-heading-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008b55;
  background: #e6f7ee;
  border-radius: 11px;
}

.protocol-heading-icon svg {
  width: 23px;
  height: 23px;
}

.protocol-access-heading h4 {
  margin: 0 0 4px;
  color: #17483b;
  font-size: 16px;
  font-weight: 700;
}

.protocol-access-heading p {
  margin: 0;
  color: #647b73;
  font-size: 13px;
}

/* Cartão com protocolo e senha */

.protocol-data-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: #f7faf8;
  border: 1px solid #e0eee6;
  border-radius: 12px;
}

.protocol-data-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.protocol-data-label {
  color: #60776e;
  font-size: 12px;
  font-weight: 600;
}

.protocol-data-item strong {
  color: #007d50;
  font-size: 20px;
  font-weight: 750;
  overflow-wrap: anywhere;
  letter-spacing: 0.3px;
}

/* Orientação sobre envio */

.protocol-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff8e9;
  border-left: 4px solid #e9ad36;
  border-radius: 9px;
  margin-top: 20px;
}

.protocol-notice-icon {
  width: 24px;
  min-width: 24px;
  color: #c68a18;
}

.protocol-notice-icon svg {
  width: 23px;
  height: 23px;
}

.protocol-notice strong {
  display: block;
  color: #805b16;
  font-size: 13px;
  margin-bottom: 5px;
}

.protocol-notice p {
  margin: 0;
  color: #765f35;
  font-size: 13px;
  line-height: 1.6;
}

/* Rodapé */

.protocol-footer-message {
  margin: 22px 0 0;
  text-align: center;
  color: #547066;
  font-size: 13px;
  font-weight: 600;
}

/* Responsividade */

@media (max-width: 576px) {
  .protocol-success {
    padding: 16px 12px;
  }

  .protocol-success-banner {
    align-items: flex-start;
    padding: 14px;
  }

  .protocol-success-banner h3 {
    font-size: 17px;
  }

  .protocol-data-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .protocol-data-item strong {
    font-size: 18px;
  }
}

/* ==========================================================
   DOCUMENTOS ANEXADOS | LISTA MODERNA
   Escopo restrito à área de anexos da etapa final.
   Não altera upload, remoção ou navegação.
   ========================================================== */
body.authorizer-modern .last-fieldset .attach-files-section {
  margin-top: 26px !important;
  padding-top: 20px;
  border-top: 1px solid #e5eee9;
}

body.authorizer-modern .last-fieldset .attach-files-section > h3 {
  margin: 0 0 14px !important;
  color: #006b4f !important;
  font-size: 19px !important;
  font-weight: 750 !important;
  line-height: 1.3;
}

/* O subtítulo é criado pelo JavaScript quando há arquivos. */
body.authorizer-modern .last-fieldset #client-attach h4 {
  margin: 0 0 10px !important;
  color: #294b40;
  font-size: 13px;
  font-weight: 650;
}

/* Remove o visual de lista antiga e organiza os cartões. */
body.authorizer-modern .last-fieldset #attach-list ul.attach-list-modern {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.authorizer-modern
  .last-fieldset
  #attach-list
  ul.attach-list-modern
  > li.attach-item-modern {
  display: flex !important;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 70px;
  margin: 0 !important;
  padding: 12px 14px !important;
  list-style: none !important;
  border: 1px solid #e1ece5 !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(25, 75, 52, 0.045);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

body.authorizer-modern
  .last-fieldset
  #attach-list
  ul.attach-list-modern
  > li.attach-item-modern::before,
body.authorizer-modern
  .last-fieldset
  #attach-list
  ul.attach-list-modern
  > li.attach-item-modern::marker {
  content: none !important;
  display: none !important;
}

body.authorizer-modern
  .last-fieldset
  #attach-list
  ul.attach-list-modern
  > li.attach-item-modern:hover {
  border-color: #b9ddc8 !important;
  box-shadow: 0 6px 18px rgba(25, 95, 60, 0.085);
  transform: translateY(-1px);
}

body.authorizer-modern .last-fieldset #attach-list .attach-file-type {
  display: inline-flex !important;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  border: 1px solid #f5d9d6;
  border-radius: 11px;
  background: #fff3f1;
  color: #d34b45;
}

body.authorizer-modern
  .last-fieldset
  #attach-list
  .attach-file-type
  .glyphicon {
  font-size: 22px;
}

body.authorizer-modern .last-fieldset #attach-list .attach-file-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 !important;
  color: #24483e !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.authorizer-modern .last-fieldset #attach-list .attach-delete-slot {
  display: inline-flex !important;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* Botão de exclusão discreto, mas com área de toque confortável. */
body.authorizer-modern .last-fieldset #attach-list button.attach-delete-modern {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #8b9a93 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

body.authorizer-modern
  .last-fieldset
  #attach-list
  button.attach-delete-modern:hover,
body.authorizer-modern
  .last-fieldset
  #attach-list
  button.attach-delete-modern:focus {
  border-color: #f4d6d3 !important;
  background: #fff1ef !important;
  color: #c74740 !important;
  outline: none;
}

body.authorizer-modern
  .last-fieldset
  #attach-list
  button.attach-delete-modern
  .glyphicon {
  font-size: 16px;
}

@media (max-width: 767px) {
  body.authorizer-modern .last-fieldset .attach-files-section {
    margin-top: 20px !important;
    padding-top: 17px;
  }

  body.authorizer-modern .last-fieldset .attach-files-section > h3 {
    font-size: 18px !important;
  }

  body.authorizer-modern .last-fieldset #attach-list ul.attach-list-modern {
    gap: 8px;
  }

  body.authorizer-modern
    .last-fieldset
    #attach-list
    ul.attach-list-modern
    > li.attach-item-modern {
    min-height: 64px;
    gap: 10px;
    padding: 10px !important;
    border-radius: 11px !important;
  }

  body.authorizer-modern .last-fieldset #attach-list .attach-file-type {
    flex-basis: 38px;
    width: 38px;
    height: 42px;
  }

  body.authorizer-modern .last-fieldset #attach-list .attach-file-name {
    font-size: 12px !important;
  }

  body.authorizer-modern .last-fieldset #attach-list .attach-delete-slot {
    flex-basis: 34px;
  }

  body.authorizer-modern
    .last-fieldset
    #attach-list
    button.attach-delete-modern {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* Correção específica do campo Mensagem no celular */
@media screen and (max-width: 767px) {
  html body.authorizer-modern #form-client-attendance #message {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    box-sizing: border-box !important;
  }
}
