.stm-access-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(7, 36, 56, .92);
  backdrop-filter: blur(8px);
}

.stm-access-overlay.is-open { display: flex; }
.stm-access-card { width: min(880px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid #d7dfdc; border-top: 5px solid #b59457; border-radius: 9px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.stm-access-card.is-small { width: min(440px, 100%); }
.stm-access-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid #d7dfdc; background: #fffdf8; }
.stm-access-head p { margin: 0 0 4px; color: #1c607a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stm-access-head h2 { margin: 0; color: #0b2f46; font-size: 21px; line-height: 1.2; }
.stm-access-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #d7dfdc; border-radius: 50%; background: #fff; color: #627785; font-size: 22px; cursor: pointer; }
.stm-access-body { padding: 24px; }
.stm-access-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.stm-access-field { grid-column: span 6; display: grid; gap: 6px; }
.stm-access-field.span-3 { grid-column: span 3; }
.stm-access-field.span-4 { grid-column: span 4; }
.stm-access-field.span-8 { grid-column: span 8; }
.stm-access-field.full { grid-column: 1 / -1; }
.stm-access-field label { color: #536b76; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stm-access-field input, .stm-access-field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bdcbc9; border-radius: 5px; background: #fff; color: #173648; font: 600 13px/1.2 Aptos,"Segoe UI",Arial,sans-serif; }
.stm-access-field input:focus, .stm-access-field select:focus { outline: 3px solid rgba(28,96,122,.12); border-color: #1c607a; }
.stm-access-password { position: relative; }
.stm-access-password input { padding-right: 46px; }
.stm-access-password button { position: absolute; inset: 1px 1px 1px auto; width: 42px; border: 0; border-radius: 0 5px 5px 0; background: transparent; color: #536b76; cursor: pointer; }
.stm-access-password button:hover, .stm-access-password button:focus-visible { color: #155e75; background: #eef6f5; outline: none; }
.stm-access-note { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #bfdbfe; border-radius: 6px; background: #eff6ff; color: #1e3a8a; font-size: 11px; line-height: 1.5; }
.stm-access-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.stm-access-actions button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 5px; font-size: 12px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.stm-access-cancel { background: #e2e8f0; color: #334155; }
.stm-access-submit { background: #0b2f46; color: #fff; }
.stm-access-submit:disabled { opacity: .62; cursor: wait; }
.stm-access-message { display: none; margin-top: 14px; padding: 11px 12px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.stm-access-message.is-error { display: block; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.stm-access-message.is-success { display: block; border: 1px solid #a7f3d0; background: #ecfdf5; color: #166534; }
.stm-location-select:disabled { cursor: wait; color: #64748b; background: #f8fafc !important; }
#btnEmitirNotaDam:disabled { cursor: not-allowed !important; opacity: .72 !important; box-shadow: none !important; }
.painel-controle aside > div:first-child > .stm-crest-base { width: 80px; height: 80px; display: inline-grid !important; place-items: center; padding: 8px !important; border: 1px solid #d7dfdc; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; }
.painel-controle aside > div:first-child > .stm-crest-base img { width: 64px !important; height: 64px !important; object-fit: contain; }

@media (max-width: 680px) {
  .stm-access-overlay { padding: 10px; align-items: flex-start; }
  .stm-access-card { max-height: none; }
  .stm-access-head, .stm-access-body { padding: 18px; }
  .stm-access-field, .stm-access-field.span-3, .stm-access-field.span-4, .stm-access-field.span-8 { grid-column: 1 / -1; }
  .stm-access-actions { flex-direction: column-reverse; }
  .stm-access-actions button { width: 100%; }
}
