:root {
  --lantau-blue: #005581;
  --border-color: #e1e1e1;
  --secondary-text: #5f5f5f;
}

/**
 * User sidebar
 */

.user-nav {
  margin-bottom: 32px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  display: flex;
  flex-flow: nowrap column;
}

.user-nav .item {
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
}

.user-nav a.item {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  text-decoration: none;
}

.user-nav a.item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-nav a.item .fa {
  margin-left: auto;
  text-decoration: none;
}

.user-nav a.item.active {
  border-left: 2px solid var(--lantau-blue);
}

.user-nav .item:last-child {
  border-bottom: none;
}

.user-card {
  padding: 8px 16px;
  display: flex;
  flex-flow: nowrap row;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.user-card .avatar {
  margin-right: 8px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  overflow: hidden;
  border-radius: 50%;
}

.user-card .avatar img {
  max-width: 100%;
}

.user-card .whoami {
  display: flex;
  flex-flow: nowrap column;
  width: calc(100% - 40px);
}

.user-card .whoami .name {
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-card .whoami .context {
  color: var(--secondary-text);
  font-size: 12px;
  line-height: 18px;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/**
 * User profile page
 */

.w3-container.user-profile {
  margin-top: 24px;
}

.user-profile .section {
  margin-bottom: 32px;
}

.user-profile .section h2 {
  margin: 0 !important;
  padding: 0 !important;
}

.user-profile .section hr {
  margin: 8px 0;
}

.user-profile .user-form {
  display: flex;
  flex-flow: nowrap column;
}

.user-profile .user-form .field {
  margin-bottom: 12px;
  display: flex;
  flex-flow: nowrap column;
}

.user-profile .user-form .field label {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.user-profile .user-form .field input {
  height: 32px;
}

.user-profile .user-form .form-actions {
  display: flex;
}

.user-profile .user-form button[type="submit"] {
  height: 32px;
  font-size: 14px;
  border-radius: 2px;
}

/**
 * User subscription page
 */

.w3-container.user-subscription {
  margin-top: 24px;
}

.user-subscription .section {
  margin-bottom: 32px;
}

.user-subscription .section h2 {
  margin: 0 !important;
  padding: 0 !important;
}

.user-subscription .section hr {
  margin: 8px 0;
}

/**
 * User change password page
 */
.w3-container.user-change-password {
  margin-top: 24px;
}
