:root{
  --tn-header-offset: 24px;
  --tennant-teal: #009AC7;
  --tennant-dark: #015570;
  --tennant-text: #475467;
  --tennant-title: #334155;
  --gray-200: #E2E8F0;
  --gray-100: #F8FAFC;
  --focus-outline: #009AC7;
  --shadow-lg: 0 24px 60px rgba(2, 32, 71, .22);
  --danger-bg: #FFF1F2;
  --danger-border: #F43F5E;
  --danger-text: #B42318;
}

.tnp-overlay{
  position: fixed;
  inset: 0;
  background-color: #071923;
  background-image: linear-gradient(90deg, rgba(3, 18, 28, .72), rgba(3, 18, 28, .46)), var(--tnp-auth-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 24px;
  font-family: Arial, "Open Sans", system-ui, sans-serif;
}

body.tnp-auth-gate-page{
  margin: 0;
  min-height: 100vh;
  background-color: #071923;
  background-image: linear-gradient(90deg, rgba(3, 18, 28, .72), rgba(3, 18, 28, .46)), var(--tnp-auth-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body.tnp-auth-gate-page .tnp-overlay{
  display: flex !important;
}

.tnp-card{
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(1, 85, 112, .10);
  overflow: hidden;
}


.tnp-back-home{
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 74px;
  height: 32px;
  padding: 0 13px 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: rgba(0, 154, 199, .10);
  color: var(--tennant-teal);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.tnp-back-home > span[aria-hidden="true"]{
  font-size: 18px;
  line-height: 1;
}

.tnp-back-text{
  font-size: 13px;
}

.tnp-back-home:hover{
  color: #fff;
  background: var(--tennant-teal);
  transform: translateX(-1px);
}

.tnp-back-home:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 154, 199, .16);
}

.tnp-logo-wrap{
  text-align: center;
  padding: 28px 28px 10px;
}

.tnp-logo-img{
  display: inline-block;
  width: min(100%, 320px);
  height: auto;
}

.tnp-header{
  padding: 4px 34px 18px;
  text-align: center;
}

.tnp-header h1{
  margin: 0;
  color: var(--tennant-title) !important;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
}

.tnp-subtitle{
  margin: 10px auto 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--tennant-text);
}

.tnp-body{
  padding: 8px 34px 34px;
}

.tnp-alert{
  display: none;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--tennant-teal);
  background: var(--gray-100);
  color: var(--tennant-text);
  border-radius: 4px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.tnp-alert.is-error{
  background: var(--danger-bg);
  border-color: #fecdd3;
  border-left-color: var(--danger-border);
  color: var(--danger-text);
}

.tnp-field{
  margin-bottom: 18px;
}

.tnp-field label{
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--tennant-title);
  margin-bottom: 8px;
}

.tnp-input{
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  box-sizing: border-box;
  outline: none;
  font-size: 16px;
  color: #0f172a;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tnp-input::placeholder{
  color: #94a3b8;
}

.tnp-input:focus{
  border-color: var(--focus-outline);
  box-shadow: 0 0 0 3px rgba(0, 154, 199, .12);
}

.tnp-input.is-error{
  border-color: var(--danger-border);
}

.tnp-row{
  display: flex;
  gap: 12px;
}

.tnp-row-between{
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 18px;
}

.tnp-check{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--tennant-title);
  cursor: pointer;
}

.tnp-check input{
  width: 18px;
  height: 18px;
  accent-color: var(--tennant-teal);
}

.tnp-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.tnp-actions-stack{
  flex-direction: column;
  align-items: stretch;
}

.tnp-btn{
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  transition: background .2s ease, transform .02s ease;
}

.tnp-btn:active{
  transform: translateY(1px);
}

.tnp-primary{
  background: var(--tennant-teal);
  color: #fff;
}

.tnp-primary:hover{
  background: #007ea4;
}

.tnp-meta{
  min-height: 18px;
  font-size: 13px;
  color: var(--tennant-text);
}

.tnp-meta.is-error{
  color: var(--danger-text);
}

.tnp-links{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 14px;
}

.tnp-link-disabled,
.tnp-link{
  color: #64748b;
  opacity: .85;
}

.tnp-link-disabled{
  cursor: not-allowed;
}

.tnp-link{
  cursor: pointer;
  text-decoration: none;
}

.tnp-link:hover,
.tnp-link:focus{
  color: var(--tennant-teal);
  text-decoration: underline;
}

.tnp-userbar{
  position: absolute;
  top: 28px;
  right: 86px;
  z-index: 9998;
  font-family: Arial, "Open Sans", system-ui, sans-serif;
}

.tnp-userbar-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  border-radius: 0;
  text-decoration: none;
}

.tnp-userbar-toggle:hover,
.tnp-userbar-toggle:focus,
.tnp-userbar-toggle:active{
  background: transparent;
  color:#fff;
  box-shadow:none;
  outline:none;
}

.tnp-userbar-avatar{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.tnp-userbar-avatar-icon{
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.tnp-userbar-avatar-icon::before,
.tnp-userbar-avatar-icon::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.96);
}

.tnp-userbar-avatar-icon::before{
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.tnp-userbar-avatar-icon::after{
  bottom: 0;
  width: 14px;
  height: 8px;
  border-radius: 8px 8px 4px 4px;
}

.tnp-userbar-name{
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tnp-userbar-caret{
  display:none;
}

.tnp-userbar-menu{
  font-size: 11px;
  opacity: .9;
}

.tnp-userbar-menu{
  position: absolute;
  top: calc(100% + 12px);
  right: -6px;
  min-width: 238px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(15,23,42,.18);
  overflow: hidden;
}

.tnp-userbar-welcome{
  padding: 14px 16px 10px;
  font-size: 13px;
  color: #5b667a;
}

.tnp-userbar-links{
  padding: 0;
}

.tnp-userbar-link{
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  box-sizing: border-box;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  box-shadow:none;
  outline:none;
}

.tnp-userbar-link:hover,
.tnp-userbar-link:focus,
.tnp-userbar-link:active{
  background: #f8fafc;
  color: #334155 !important;
  text-decoration:none !important;
  outline:none !important;
  box-shadow:none !important;
}

.tnp-userbar-logout,
.tnp-userbar-logout:hover,
.tnp-userbar-logout:focus,
.tnp-userbar-logout:active{
  border-top: 1px solid rgba(148,163,184,.18) !important;
  outline:none !important;
  box-shadow:none !important;
}

.tnp-userbar-section{
  padding: 8px 16px 4px;
  font-size: 11px;
  color:#64748b;
  text-transform: none;
  border-top:1px dashed rgba(148,163,184,.35);
}

.tnp-userbar-links > .tnp-userbar-link + .tnp-userbar-link{
  border-top:1px solid rgba(148,163,184,.14);
}

.tnp-userbar-menu a,
.tnp-userbar-menu button{
  text-decoration:none !important;
}

@media (max-width: 680px){
  .tnp-overlay{ padding: 14px; }
  .tnp-userbar{ top: 16px; right: 54px; }
  .tnp-userbar-name{ max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
  .tnp-userbar-menu{ width: 210px; }
  .tnp-card{ max-width: 100%; }
  .tnp-logo-wrap{ padding: 22px 18px 8px; }
  .tnp-header{ padding: 4px 18px 16px; }
  .tnp-header h1{ font-size: 26px; }
  .tnp-subtitle{ font-size: 14px; }
  .tnp-body{ padding: 6px 18px 22px; }
  .tnp-btn{ font-size: 18px; }
  .tnp-links{ flex-direction: column; align-items: flex-start; }
}

.tnp-profile-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  font-family: Arial, "Open Sans", system-ui, sans-serif;
}

.tnp-profile-modal.is-open{
  display: block;
}

.tnp-profile-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(1,25,40,.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tnp-profile-modal__dialog{
  position: relative;
  max-width: 860px;
  width: 92%;
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  z-index: 2;
  box-sizing: border-box;
}

.tnp-profile-modal__header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

.tnp-profile-modal__eyebrow{
  font-size: 12px;
  letter-spacing: .12em;
  color: #015570;
  font-weight: 700;
  text-transform: uppercase;
}

.tnp-profile-modal__title{
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.2;
  color: #1e2933;
}

.tnp-profile-modal__close{
  border: none;
  background: #eef2f5;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #1e2933;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tnp-profile-modal__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tnp-profile-modal__box{
  background: #f4f7f9;
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 74px;
  box-sizing: border-box;
}

.tnp-profile-modal__box span{
  display: block;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #6f7f95;
  margin-bottom: 8px;
}

.tnp-profile-modal__box strong{
  display: block;
  font-size: 14px;
  color: #1e2933;
  word-break: break-word;
}

.tnp-profile-modal__footer{
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.tnp-profile-modal__btn{
  min-width: 132px;
  border: 0;
  border-radius: 10px;
  padding: 11px 18px;
  background: #009AC7;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 720px){
  .tnp-profile-modal__grid{ grid-template-columns: 1fr; }
  .tnp-profile-modal__dialog{ margin-top: 3vh; padding: 18px; }
  .tnp-profile-modal__title{ font-size: 22px; }
}
.tnp-field-hint{display:block;margin-top:6px;color:#718096;font-size:12px;line-height:1.35}.tnp-security-code-box{animation:tnpFadeIn .18s ease}@keyframes tnpFadeIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

.tnp-link-button{
  border:0;
  background:transparent;
  padding:0;
  font:inherit;
  cursor:pointer;
}

.tnp-profile-modal__tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 16px;
}

.tnp-profile-modal__tab{
  border:1px solid #d6e1ea;
  background:#fff;
  color:#2e4258;
  border-radius:999px;
  padding:8px 14px;
  font-weight:700;
  cursor:pointer;
}

.tnp-profile-modal__tab.is-active{
  background:#009AC7;
  border-color:#009AC7;
  color:#fff;
}

.tnp-profile-panel{display:none;}
.tnp-profile-panel.is-active{display:block;}

.tnp-profile-modal__notice{
  border:1px solid #F47B29;
  background:#fff6ee;
  color:#9a420f;
  border-radius:12px;
  padding:11px 14px;
  margin-bottom:14px;
  font-weight:700;
}

.tnp-profile-password-form{
  background:#f4f7f9;
  border-radius:16px;
  padding:16px;
}

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

.tnp-profile-password-field label{
  display:block;
  font-size:12px;
  color:#2e4258;
  font-weight:700;
  margin-bottom:6px;
}

.tnp-profile-password-hint{
  margin:10px 0 0;
  color:#6f7f95;
  font-size:12px;
  line-height:1.4;
}

.tnp-profile-password-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
}

.tnp-profile-password-alert{
  border-radius:10px;
  padding:10px 12px;
  margin-bottom:12px;
  font-size:13px;
  font-weight:700;
  background:#e7f7ed;
  color:#116334;
  border:1px solid #b7e4c7;
}

.tnp-profile-password-alert.is-error{
  background:#fff1f1;
  color:#9f1d1d;
  border-color:#ffc9c9;
}

.tnp-profile-password-alert.is-success{
  background:#e7f7ed;
  color:#116334;
  border-color:#b7e4c7;
}

.tnp-profile-modal.is-force-password .tnp-profile-modal__close,
.tnp-profile-modal.is-force-password .tnp-profile-modal__footer [data-tn-profile-close="1"]{
  display:none;
}

@media (max-width: 900px){
  .tnp-profile-password-grid{grid-template-columns:1fr;}
}


/* v10.0.6 password button refinements */
.tnp-profile-password-actions .tn-btn,
.tnp-profile-modal__footer .tn-btn,
.tn-modal .tnp-profile-password-actions .tn-btn,
.tn-modal .tn-modal__footer .tn-btn{
  width:auto !important;
  min-width:148px !important;
  max-width:220px !important;
  height:40px !important;
  padding:0 20px !important;
  border-radius:10px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 auto !important;
}
.tnp-profile-password-actions,
.tnp-profile-modal__footer,
.tn-modal .tnp-profile-password-actions,
.tn-modal .tn-modal__footer{
  justify-content:flex-end !important;
}
.tnp-input[type="password"]::-ms-reveal,
.tnp-input[type="password"]::-ms-clear{
  display:none;
}
.tnp-password-wrap{
  position:relative;
  display:block;
}
.tnp-password-wrap .tnp-input{
  padding-right:44px !important;
}
.tnp-password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#6f7f95;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
}
.tnp-password-toggle:hover{
  background:#e8eef3;
  color:#015570;
}
.tnp-password-toggle svg{
  width:17px;
  height:17px;
  display:block;
  pointer-events:none;
}
.tnp-password-toggle:focus-visible{
  outline:2px solid rgba(0,154,199,.35);
  outline-offset:2px;
}


/* v10.2.1 - atalhos Home para Tennant Service Hub */
.tnp-back-home{min-width:74px;gap:7px;padding:0 12px 0 10px}
.tnp-back-home svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 16px}
.tnp-back-home:hover{transform:translateY(-1px)}
.tnp-userbar-welcome{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tnp-userbar-home{width:28px;height:28px;border-radius:10px;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 28px;background:#eaf8fc;color:#015570!important;border:1px solid #bfeaf4;text-decoration:none!important;box-shadow:none!important;outline:none!important;transition:.18s ease}
.tnp-userbar-home svg{width:15px;height:15px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tnp-userbar-home:hover,.tnp-userbar-home:focus{background:#009AC7;color:#fff!important;border-color:#009AC7;transform:translateY(-1px);text-decoration:none!important;outline:none!important;box-shadow:none!important}
