/* Personalizzazioni SESINET separate da Velzon: modificare qui, non nel CSS del template. */
:root {
  --vz-primary: #325ac7;
  --vz-primary-rgb: 50, 90, 199;
  --vz-body-font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html,
body {
  font-family: var(--vz-body-font-family);
}

body {
  background: #f3f5fa;
}

#page-topbar {
  border-bottom: 1px solid #e8ebf3;
}

.navbar-header .btn svg,
.navbar-menu svg,
.sesinet-user-badge svg,
.sesinet-kpi-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.navbar-menu .nav-link svg {
  width: 18px;
  height: 18px;
  margin-right: 12px;
}

.navbar-menu .nav-link {
  gap: 0;
}

.navbar-menu .sesinet-disabled {
  opacity: .48;
  cursor: default;
}

.navbar-menu .sesinet-disabled:hover {
  color: inherit;
}

.sesinet-sidebar-brand,
.sesinet-brand {
  font-weight: 850;
  letter-spacing: -.05em;
  font-size: 23px;
  color: #23375a;
}

.sesinet-sidebar-brand>span,
.sesinet-brand>span {
  color: #537bea;
}

.sesinet-sidebar-brand {
  display: block;
  padding: 14px 0 0 4px;
}

.sesinet-sidebar-sub {
  display: block;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 9px;
  color: #8494ae;
  letter-spacing: .21em;
  padding-left: 5px;
}

.sesinet-topbrand {
  font-weight: 800;
  letter-spacing: -.03em;
  color: #243c65;
}

.sesinet-user-badge {
  gap: 8px;
  align-items: center;
  background: #f3f6fb;
  border: 1px solid #e5eafa;
  border-radius: 20px;
  padding: 6px 12px;
  color: #475673;
  font-weight: 600;
}

.sesinet-kpi-icon,
.sesinet-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e9efff;
  color: #4269d0;
}

.sesinet-kpi-success {
  background: #e6f8ef;
  color: #279967;
}

.sesinet-kpi-muted {
  background: #eef1f7;
  color: #71809a;
}

.sesinet-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 12% 10%, #dfe9ff, transparent 35%), radial-gradient(circle at 90% 85%, #d9e3fc, transparent 45%), #f5f7fc;
}

.sesinet-auth-shell {
  width: 100%;
  max-width: 440px;
}

.sesinet-auth-card {
  border-radius: 17px;
}

.sesinet-secret-box {
  background: #f3f6fd;
  border: 1px dashed #b6c8ef;
  border-radius: 10px;
  padding: 16px;
}

.sesinet-secret {
  overflow-wrap: anywhere;
  letter-spacing: .08em;
  font-size: 18px;
}

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

.sesinet-recovery-grid code {
  border: 1px solid #dfe5f0;
  border-radius: 7px;
  background: #f8faff;
  padding: 12px 8px;
  text-align: center;
  font-size: 15px;
}

.btn svg {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

.card {
  border-radius: 12px;
}

@media (max-width:767px) {
  .page-title-box .page-title-right {
    display: none;
  }

  .sesinet-user-badge {
    display: none !important;
  }
}

/* Sidebar mobile: il JS gestisce .sesinet-menu-open. */
@media (max-width:991.98px) {
  .app-menu {
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 1003;
  }

  body.sesinet-menu-open .app-menu {
    transform: translateX(0);
  }

  body.sesinet-menu-open .vertical-overlay {
    visibility: visible;
    opacity: .5;
    z-index: 1002;
    display: block;
  }
}

/* Accesso a due colonne, basato sul login Velzon del precedente portale Laravel. */
body.sesinet-login-page {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: #fff;
}

.sesinet-login,
.sesinet-login * {
  box-sizing: border-box;
}

.sesinet-login {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(440px, 42fr);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  color: #202b38;
}

.sesinet-login__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #1e4258 url('../images/cover-auth.webp') center / cover no-repeat;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.sesinet-login__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 27, 42, .14), rgba(9, 28, 43, .27) 48%, rgba(6, 23, 40, .44));
}

.sesinet-login__visual-brand {
  padding: 36px;
  width: 100%;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .2);
}

.sesinet-login__visual-logo {
  display: block;
  max-width: min(70%, 440px);
  max-height: 120px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sesinet-login__visual-subtitle {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: .20em;
  text-transform: uppercase;
  font-weight: 600;
}

.sesinet-login__panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 46px clamp(28px, 5vw, 90px) 25px;
  background: #fff;
}

.sesinet-login__center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.sesinet-login__form-wrap {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
}

.sesinet-login__brand {
  margin: 0 0 clamp(40px, 6vh, 70px);
  text-align: center;
}

.sesinet-login__panel-logo {
  display: block;
  max-width: 290px;
  width: 85%;
  height: auto;
  max-height: 105px;
  object-fit: contain;
  margin: 0 auto;
}

.sesinet-login__brand-caption {
  display: block;
  margin-top: 12px;
  color: #8292a5;
  font-size: 12px;
  letter-spacing: .20em;
  font-weight: 600;
}

.sesinet-login__title {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: #202a38;
  margin: 0 0 17px;
}

.sesinet-login__help {
  color: #738297;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.sesinet-login .form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #738297;
}

.sesinet-login .form-control {
  min-height: 48px;
  border-radius: 5px;
  background: #f8fafc;
  border: 1px solid #d9e2ed;
  font-size: 14px;
  padding: 12px 15px;
  box-shadow: none;
}

.sesinet-login .form-control:focus {
  border-color: #52b4e9;
  box-shadow: 0 0 0 .2rem rgba(35, 156, 224, .12);
  background: #fff;
}

.sesinet-login__password-wrap {
  position: relative;
}

.sesinet-login__password-wrap .form-control {
  padding-right: 92px;
}

.sesinet-login__password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  min-width: 86px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #738297;
  font-size: 12px;
  border-radius: 0 5px 5px 0;
}

.sesinet-login__password-toggle:focus-visible {
  outline: 2px solid #239ce0;
  outline-offset: -2px;
}

.sesinet-login__submit {
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  border: 1px solid #20262e;
  border-radius: 5px;
  background: #20262e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.sesinet-login__submit:hover,
.sesinet-login__submit:focus {
  background: #2f3944;
  border-color: #2f3944;
  color: #fff;
}

.sesinet-login__hint {
  text-align: center;
  font-size: 12px;
  color: #8390a0;
  line-height: 1.65;
  margin-top: 27px;
}

.sesinet-login__footer {
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: #76869a;
  margin-top: 42px;
}

.sesinet-login__alert {
  font-size: 13px;
  line-height: 1.5;
}

.sesinet-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid #e6ecf4;
  border-radius: 10px;
}

.sesinet-qr-image {
  width: 210px;
  height: 210px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-align: center;
}

.sesinet-qr-image svg {
  width: 100%;
  height: 100%;
}

.sesinet-manual-key summary {
  color: #4970b0;
  font-size: 12px;
  cursor: pointer;
}

.sesinet-manual-key .sesinet-secret {
  font-size: 14px;
  letter-spacing: .08em;
}

@media (max-width:991.98px) {
  .sesinet-login {
    display: block;
  }

  .sesinet-login__visual {
    display: none;
  }

  .sesinet-login__panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 30px 24px 20px;
  }

  .sesinet-login__brand {
    margin-bottom: 42px;
  }
}

@media (max-width:420px) {
  .sesinet-login__panel {
    padding-inline: 19px;
  }
}

.sesinet-tabs .btn {
  border-radius: 7px;
}

.sesinet-record-main {
  max-width: 320px;
  overflow-wrap: anywhere;
}

.sesinet-record-details {
  max-width: 470px;
  overflow-wrap: anywhere;
}

.sesinet-record-details>div {
  margin-block: 3px;
}

/* Contatori delle tab e password contestuali nella scheda cliente. */
.sesinet-tabs .badge {
  font-size: 11px;
  font-weight: 650;
  min-width: 22px;
  vertical-align: 1px;
}

.sesinet-inline-secret {
  background: #f3f6fd;
  border: 1px solid #d5e0f2;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 12px;
}

.sesinet-inline-secret-value {
  display: block;
  padding: 6px 0;
  color: #23375a;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}


.navbar-brand-box .logo-sm img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbar-brand-box .logo-lg img {
  max-width: 170px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sesinet-tabs a.btn .badge {
  background-color: var(--vz-primary) !important;
  color: #fff !important;
}

.sesinet-tabs a.btn:hover .badge, .sesinet-tabs a.btn-primary .badge {
  background-color: var(--vz-secondary-bg-subtle) !important;
  color: rgba(var(--vz-secondary-rgb), var(--vz-text-opacity))!important;
}