/* ==========================================================
   UCD PROFILE V2
   Compact / CSS-only tabs
   ========================================================== */

body.ucd-controller-profile .ucd-profile-v2 {
  width: 100% !important;
  max-width: 720px !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #172033 !important;
}

/* Hide radio controls */
.ucd-profile-tab-radio {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================
   TABS
   ========================================================== */

.ucd-profile-tabs {
  display: flex !important;
  align-items: center !important;

  gap: 2px !important;

  margin: 0 0 22px !important;

  border-bottom:
    1px solid rgba(71,85,105,.22) !important;
}

.ucd-profile-tabs label {
  display: inline-flex !important;
  align-items: center !important;

  min-height: 36px !important;

  padding: 0 12px !important;

  border-bottom:
    2px solid transparent !important;

  color: #64748b !important;

  font-size: 11px !important;
  font-weight: 650 !important;

  cursor: pointer !important;

  transition:
    color .12s ease,
    border-color .12s ease !important;
}

.ucd-profile-tabs label:hover {
  color: #172033 !important;
}

/* Active tab */

#ucd-profile-tab-profile:checked
~ .ucd-profile-tabs
label[for="ucd-profile-tab-profile"],

#ucd-profile-tab-signature:checked
~ .ucd-profile-tabs
label[for="ucd-profile-tab-signature"],

#ucd-profile-tab-security:checked
~ .ucd-profile-tabs
label[for="ucd-profile-tab-security"] {
  color: #1265b0 !important;

  border-bottom-color:
    #1674d1 !important;
}

/* ==========================================================
   PANELS
   ========================================================== */

.ucd-profile-panel {
  display: none !important;
}

#ucd-profile-tab-profile:checked
~ .ucd-profile-panels
.ucd-profile-panel-profile {
  display: block !important;
}

#ucd-profile-tab-signature:checked
~ .ucd-profile-panels
.ucd-profile-panel-signature {
  display: block !important;
}

#ucd-profile-tab-security:checked
~ .ucd-profile-panels
.ucd-profile-panel-security {
  display: block !important;
}

/* ==========================================================
   HEADINGS
   ========================================================== */

.ucd-profile-section-head {
  margin: 0 0 16px !important;
}

.ucd-profile-section-head h2 {
  margin: 0 !important;

  color: #172033 !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  line-height: 18px !important;
}

.ucd-profile-section-head p {
  margin: 3px 0 0 !important;

  color: #64748b !important;

  font-size: 10px !important;
  line-height: 14px !important;
}

/* ==========================================================
   FORM
   ========================================================== */

.ucd-profile-form {
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;
}

.ucd-profile-grid {
  display: grid !important;

  grid-template-columns:
    1fr 1fr !important;

  gap: 10px !important;
}

.ucd-profile-field {
  margin-top: 13px !important;
}

.ucd-profile-label {
  display: block !important;

  margin: 0 0 4px !important;

  color: #344054 !important;

  font-size: 10px !important;
  font-weight: 650 !important;
}

.ucd-profile-input {
  box-sizing: border-box !important;

  width: 100% !important;
  min-height: 35px !important;

  padding: 6px 9px !important;

  border:
    1px solid #cbd5e1 !important;

  border-radius: 6px !important;

  color: #172033 !important;
  background:
    rgba(255,255,255,.91) !important;

  font-size: 11px !important;

  outline: none !important;

  box-shadow: none !important;
}

.ucd-profile-input:focus {
  border-color:
    #3788d8 !important;

  box-shadow:
    0 0 0 2px
    rgba(55,136,216,.10) !important;
}

.ucd-profile-help {
  margin-top: 5px !important;

  color: #64748b !important;

  font-size: 9px !important;
  line-height: 12px !important;
}

/* ==========================================================
   ACTIONS
   ========================================================== */

.ucd-profile-actions {
  display: flex !important;

  justify-content: flex-end !important;

  margin-top: 15px !important;
}

.ucd-profile-primary,
.ucd-profile-secondary {
  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;

  width: auto !important;

  min-height: 33px !important;

  padding: 0 13px !important;

  border-radius: 6px !important;

  font-size: 10px !important;
  font-weight: 700 !important;

  text-decoration: none !important;

  box-shadow: none !important;
}

.ucd-profile-primary {
  border:
    1px solid #1674d1 !important;

  color: #ffffff !important;
  background: #1674d1 !important;
}

.ucd-profile-primary:hover {
  background: #0f63b7 !important;
}

.ucd-profile-secondary {
  border:
    1px solid #cbd5e1 !important;

  color: #344054 !important;
  background: #ffffff !important;
}

.ucd-profile-inline-button {
  margin-top: 4px !important;
}

/* ==========================================================
   EMAIL CONFIG
   ========================================================== */

.ucd-profile-email-configs {
  margin-top: 20px !important;
  padding-top: 18px !important;

  border-top:
    1px solid rgba(71,85,105,.17) !important;
}

.ucd-profile-email-configs
.card,
.ucd-profile-email-configs
section,
.ucd-profile-email-configs
fieldset {
  background: transparent !important;
  box-shadow: none !important;
}

/* ==========================================================
   SIGNATURE / INITIALS
   ========================================================== */

.ucd-profile-sign-preview {
  position: relative !important;

  display: flex !important;
  align-items: center !important;

  min-height: 86px !important;

  margin: 0 0 10px !important;
  padding: 10px !important;

  border-bottom:
    1px solid rgba(71,85,105,.15) !important;

  background:
    rgba(255,255,255,.18) !important;
}

.ucd-profile-sign-preview img {
  max-width: 260px !important;
  max-height: 80px !important;

  object-fit: contain !important;
}

.ucd-profile-remove {
  position: absolute !important;

  top: 6px !important;
  right: 6px !important;

  padding: 0 !important;

  border: 0 !important;

  color: #64748b !important;
  background: transparent !important;

  font-size: 9px !important;
  font-weight: 600 !important;
}

.ucd-profile-divider {
  margin: 24px 0 18px !important;

  border-top:
    1px solid rgba(71,85,105,.17) !important;
}

/* ==========================================================
   2FA
   ========================================================== */

.ucd-profile-status {
  display: flex !important;
  align-items: center !important;

  gap: 6px !important;

  margin-bottom: 10px !important;

  color: #475569 !important;

  font-size: 10px !important;
}

.ucd-profile-status svg {
  width: 15px !important;
  height: 15px !important;

  flex: 0 0 15px !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 760px) {
  .ucd-profile-grid {
    grid-template-columns:
      1fr !important;
  }

  body.ucd-controller-profile
  .ucd-profile-v2 {
    max-width: none !important;
  }
}
