* {
    box-sizing: border-box;
}

body {
    background-color: #0f273e;
}

h3 {
    width: 100%;
}

input[type=text], 
input[type=email] {
    display: inline-block;
    margin-bottom: 2px;
	width: 250px;
}

input[type=password] {
	width: 180px;
	margin-bottom: 2px;
}

.pwfld, 
input[type="text"].pwfld {
    width: 175px;
}

.InputLabel {
	width: 170px;
	display: inline-block;
	text-align: right;
	margin-right: 10px;
}

.showHidePW, 
button[type=button].showHidePW {
    right: 20px;
    bottom: auto;
}

.dialog {
    z-index: 2;
}

.dialog-actions {
    margin-bottom: 8px;
}

#ChangePassword {
    display: none;
	position: absolute;
	top: 10px;
	left: 200px;
	background: #31689b;
}

.WindowBody.AccountPrefsWindow {
	padding: 0 16px;
}

.acct-prefs-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: 16px 0 8px;
}

.acct-prefs-section:nth-child(1), 
.acct-prefs-section:nth-child(2) {
    border-bottom: 2px solid #31689b;
}

.acct-prefs-section:nth-child(3) {
    padding-bottom: 0;
}

#Email {
    width: 50%;
}

.requirements-div {
  background-color: lightgray;
  color: darkred;
  border-radius: 10px;
  padding: 5px 10px;
  line-height: 1.2;
  width: fit-content;
  font-size: 0.9rem;
}

.requirements-div i {
  padding-right: 3px;
}

.requirements-container {
  margin: 5px 80px;
}

.pw-requirement-title {
  font-style: italic;
}

#AlarmRecips .acct-prefs-setting {
    width: 100%;
}

#AlarmRecips label {
    display: block;
    width: 100%;
}

#AlarmRecips input.AddrInput {
    width: 33%;
}

#AlarmRecips .helperText {
    display: block;
    margin: 2px 0 4px;
}

#Addr1 {
	margin-top: 5px;
}

#ReadOnlyConfig {
	position: absolute;
    top: 0px;
    left: 50%;
    width: 90%;
    display: none;
    background: #31689b;
    text-align: center;
    transform: translate(-50%, 0%);
}

#ReadOnlyAccountTable {
    max-height: 170px;
	overflow-y: auto;
}

#EditPermissions {
    display: none;
	position: absolute;
    top: 0px;
    left: 50%;
    width: 93%;
    background: #31689b;
    transform: translate(-50%, 0%);
}

#AcctPOCDiv label {
  font-weight: bold;
}

#UserAccountInfo {
  margin-bottom: 20px;
}

#FunctionPermDiv {
	display: inline-block;
	height: 160px;
	overflow: auto;
	width: 45%;
}

#CameraPermDiv {
	display: inline-block;
    height: 160px;
    overflow: auto;
    vertical-align: top;
    width: 45%;
}

@media 
only screen and ( max-width: 646px )
{
    hr {
        display: inline-block;
    }

    label {
        display: block;
        padding-bottom: 2px;
    }

    .field input[type=text],
    .field input[type=email],
    #Email {
        width: 100%;
    }

    input[type='text'].AddrInput,
    #AlarmRecips input[type=text].AddrInput, 
    input[type='password'],
    .pwfld, input[type='text'].pwfld
    {
        width: 100%;
    }

    .field input[type=text],
    .field input[type=email],
    .styled-select {
        margin-left: 0;
    }

    .acct-prefs-section {
        flex-direction: column;
        padding: 8px 0;
    }

    .acct-prefs-section .btn {
        margin-bottom: 4px;
    }

    .acct-prefs-setting {
        width: 100%;
    }

    #AcctPOCDiv {
        float: none;
    }

    #Addr1 {
        margin-top: 0;
    }

    .requirements-container {
      margin: 5px 25px;
    }

  #ChangePassword {
    width: 300px;
  }
}

@media 
only screen and ( max-width: 401px ) {
	#ChangePassword {
		left: 50%;
        transform: translateX(-50%);
    top: 50px;
        width: 90%;
    text-align: center;
    width: 300px;
	}

    .btn {
		font-size: 14px;
		padding: 0.75%;
	}

    .InputLabel {
		text-align: center;
		margin-right: 0px;
	}

    #EditPermissions {
		width: 99%;
	}

    #ChangePasswordBtn {
		margin-right: 0px;
	}

    #ReadOnlyConfig {
		width: 100%;
	}

    #ReadOnlyAccountTable .btn {
		padding: 9px 1px;
	}

    #ReadOnlyAccountTable{
		max-height: 170px;
	}

    #CameraPermDiv, 
    #FunctionPermDiv{
		width: 100%;
        height: auto;
        max-height: 175px;
	}

  .requirements-container {
    margin: 5px 25px;
  }
}

@media all and ( max-width: 379px ) {
	#ReadOnlyConfig {
		width: 100%;
	}

    #ReadOnlyAccountTable .btn {
		padding: 9px 1px;
	}

    #ChangePasswordBtn {
		margin-right: 0px;
	}

    #ChangePassword {
		text-align: center;
	}

    .InputLabel {
		margin-right: 0;
	}

    #EditPermissions {
		width: 99%;
	}

    .btn {
		font-size: 14px;
		padding: 7px 10px;
	}

  .requirements-container {
    margin: 5px 25px;
  }
}