/* ===================== ENTREGAR EPI – PREMIUM / MODAL ASSINATURA ===================== */

#entregarEPI {
  margin-top: 16px;
}

#entregarEPI .entrega-shell {
  max-width: 1180px;
}

#entregarEPI .entrega-header-premium {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

#entregarEPI .entrega-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2563eb;
}

#entregarEPI h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.035em;
  color: #07152b;
}

#entregarEPI .entrega-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

#entregarEPI .entrega-card-premium {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  border: 1px solid rgba(214,226,242,.95);
  border-radius: 24px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,.78);
  padding: 22px;
}

#entregarEPI .entrega-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226,232,240,.9);
}

#entregarEPI .entrega-card-top h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #0f172a;
}

#entregarEPI .entrega-card-top p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

#entregarEPI .entrega-secure-badge {
  width: auto;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(239,246,255,.92);
  border: 1px solid rgba(191,219,254,.95);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

#entregarEPI .entrega-secure-badge svg {
  width: 15px;
  height: 15px;
}

#entregarEPI .entrega-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

#entregarEPI .entrega-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#entregarEPI label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #152238;
  letter-spacing: -0.01em;
}

#entregarEPI select,
#entregarEPI input[type="number"] {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid #d7e1ee;
  padding: 0 13px;
  font-size: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #0f172a;
  outline: none;
  box-shadow: 0 10px 22px rgba(15,23,42,.035);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

#entregarEPI select:focus,
#entregarEPI input[type="number"]:focus {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 4px rgba(37,99,235,.11),
    0 14px 28px rgba(15,23,42,.055);
  background: #ffffff;
}

#entregarEPI .entrega-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 750;
  color: #1d4ed8;
}

#entregarEPI .entrega-status:empty {
  display: none;
}

#entregarEPI .entrega-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(226,232,240,.9);
}

#entregarEPI .entrega-actions-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

#entregarEPI .entrega-actions-info strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
}

#entregarEPI .entrega-actions-info span {
  color: #64748b;
  font-size: 12.5px;
}

#entregarEPI .btn-entrega {
  width: auto;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

#entregarEPI .btn-entrega svg {
  width: 16px;
  height: 16px;
}

#entregarEPI .btn-entrega--primary {
  min-width: 176px;
  padding: 0 20px;
  border: 1px solid rgba(37,99,235,.12);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.01em;
  box-shadow:
    0 16px 30px rgba(37,99,235,.26),
    inset 0 1px 0 rgba(255,255,255,.18);
}

#entregarEPI .btn-entrega--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.025);
  box-shadow:
    0 20px 36px rgba(37,99,235,.32),
    inset 0 1px 0 rgba(255,255,255,.20);
}

#entregarEPI .btn-entrega--primary:active {
  transform: translateY(0);
  box-shadow:
    0 12px 24px rgba(37,99,235,.24),
    inset 0 1px 0 rgba(255,255,255,.14);
}

/* Mantém os botões técnicos antigos invisíveis, sem quebrar os IDs usados pelo JS */
#entregarEPI .entrega-assinatura-legacy,
#entregarEPI #assinaturaButtonsRow,
#entregarEPI #sigEntregaWrap {
  display: none !important;
}

/* Modal premium */
.entrega-metodo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background:
    radial-gradient(circle at center, rgba(59,130,246,.12), transparent 42%),
    rgba(15,23,42,.48);
  backdrop-filter: blur(7px);
}

.entrega-metodo-modal {
  position: fixed;
  z-index: 9001;
  left: 50%;
  top: 50%;
  width: min(660px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 38%),
    #ffffff;
  border: 1px solid rgba(226,232,240,.98);
  box-shadow:
    0 34px 90px rgba(15,23,42,.28),
    inset 0 1px 0 rgba(255,255,255,.8);
  padding: 22px;
  animation: entregaMetodoIn .18s ease-out;
}

@keyframes entregaMetodoIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

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

.entrega-metodo-head h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #0f172a;
}

.entrega-metodo-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.entrega-metodo-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 23px;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.entrega-metodo-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

.entrega-metodo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.entrega-metodo-option {
  width: 100%;
  min-height: 164px;
  padding: 18px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15,23,42,.055);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.entrega-metodo-option:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  box-shadow: 0 24px 44px rgba(37,99,235,.13);
}

.entrega-metodo-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbeafe;
}

.entrega-metodo-icon svg {
  width: 20px;
  height: 20px;
}

.entrega-metodo-option strong {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.entrega-metodo-option small {
  color: #64748b;
  font-size: 12.3px;
  line-height: 1.4;
}

.entrega-metodo-foot {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 880px) {
  #entregarEPI .entrega-form {
    grid-template-columns: 1fr;
  }

  #entregarEPI .entrega-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #entregarEPI .btn-entrega--primary {
    width: 100%;
  }

  .entrega-metodo-grid {
    grid-template-columns: 1fr;
  }

  .entrega-metodo-option {
    min-height: 118px;
  }
}


/* ===================== SPINNER BOTAO REGISTRAR ENTREGA ===================== */
#entregarEPI #btnRegistrarEntrega.is-loading,
#entregarEPI button.is-loading {
  cursor: wait !important;
  opacity: 0.92 !important;
}

#entregarEPI .bzs-btn-spinner {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  border-top-color: #ffffff !important;
  display: inline-block !important;
  margin-right: 8px !important;
  vertical-align: -3px !important;
  animation: bzsSpinEntrega 0.75s linear infinite !important;
}

@keyframes bzsSpinEntrega {
  to {
    transform: rotate(360deg);
  }
}

#entregarEPI #btnRegistrarEntrega.is-loading {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* ===================== SPINNER BOTAO REGISTRAR ENTREGA ===================== */
#entregarEPI #btnRegistrarEntrega.is-loading,
#entregarEPI button.is-loading {
  cursor: wait !important;
  opacity: 0.92 !important;
}

#entregarEPI .bzs-btn-spinner {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  border-top-color: #ffffff !important;
  display: inline-block !important;
  margin-right: 8px !important;
  vertical-align: -3px !important;
  animation: bzsSpinEntrega 0.75s linear infinite !important;
}

@keyframes bzsSpinEntrega {
  to {
    transform: rotate(360deg);
  }
}

#entregarEPI #btnRegistrarEntrega.is-loading {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
