body {
  padding-top: 70px;
  padding-bottom: 30px;
  background-color: #f4f4f4;
}

/* ANIMATE-IF */

.animate-if {
  background:white;
  border:1px solid black;
  padding:10px;
}

.animate-if.ng-enter, .animate-if.ng-leave {
  transition:all cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s;
}

.animate-if.ng-enter,
.animate-if.ng-leave.ng-leave-active {
  opacity:0;
}

.animate-if.ng-leave,
.animate-if.ng-enter.ng-enter-active {
  opacity:1;
}


/* CROPPER OVERLAY */

.profileImgContainer{position:relative;}
.profileImgContainer:hover .profileImg {opacity: 0.3;}
.profileImgContainer:hover .profileCaption {opacity: 1;}

.profileImg {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
  margin:auto !important;
}

.profileCaption > div {
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 16px 32px;
}

.profileCaption{
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

/* LINKS */

.inactiveLink,.inactiveLink:hover{cursor:default;}
.gray,.gray:hover,.gray:active,.gray:focus{color:gray !important}

.cursor-pointer {
  cursor: pointer
}

/* used in profile */
.--grey-buttonlike{
  padding: 9px 0 0;
  color: #999;
  font-size: 0.5em;
  font-style: italic;
}


/* INPUTS */
.btn-group-toggle input[type='radio']{
  display:none;
}

.form-control{
  border-radius: 0 !important;
}
.triedValidation input.ng-invalid{
  border: 1px solid #f44;
}
.validation-popup{
  margin: 1em 0 !important;
  color: #f33;
}

input.font-awesome{
  font-family: FontAwesome;
}

.input-group {
	margin-bottom: 5px;
}

input.ng-invalid:not(.ng-pristine){border:1px solid rgba(233,102,102,.6) !important;}
input.ng-invalid:not(.ng-pristine):focus{
  border:1px solid red !important;
  -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(233,102,102,.6);
  box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(233,102,102,.6);
}
input.ng-valid:not(.ng-empty):not(.ng-pristine):focus{
  border:1px solid green !important;
  -webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,233,102,.6);
  box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,233,102,.6);
}


.input--on-focus{
  padding: 7px 13px;
  border:0;
  box-shadow: none;
}

.input--on-focus:focus{
  padding: 6px 12px;
  border:1px solid #ccc;
  webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.input--on-focus.ng-empty{
  font-style: italic;
}

.input--on-focus[disabled]{
  background: rgba(0,0,0,0);
  color: #999;
}

/* CONTAINERS */

.dashboard-container h2{
  margin-top: 0 !important;
}

.dashboard-main .panel{
  background: inherit;
  border: 0;
  box-shadow: none;
}

.agreement-list__controls{
  position:absolute;
  top:0.2em;right:0.5em;
  background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.panel-body h2{
  margin-top: 0 !important;
}

.panel{
  border-radius: 0 !important;
  box-shadow: 3px 3px #dedede;
}

.card-item-sm{
  margin:0.5em 0;
  padding: 0.25em;
}

.card-item-sm.rejected{background-color:#ccc}

.card-item-sm .user-avatar{
  width:100%;
  height: auto;
}
.card-item-sm .avatar-col{
  padding:0;
  padding-right: 1%;
}

/* NAVBAR */

.navbar{
  margin-bottom:0 !important;
}

.navbar-default{
  background: #00b392 !important;
}

.navbar li.active{
  border-bottom: 8px solid #00957d;
  background: #00957d;
}
.navbar li.active > a{
  background: inherit !important;
}

/* NAV TOUR */
#navbar .tour-tip{
  position: fixed !important;
  top: 4em !important;
}


/* FRONTPAGE */

.main-thing.frontpage{
  margin-top:-30px;
  padding-top:30px;
}

.frontpage{
  background:#333;
}

.frontpage h1{
  color:#fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7)
}
.frontpage h2{
  color:#fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7)
}
.frontpage h3{
  color:#fff;
  font-size: 2.5em;
  margin-top:1.5em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7)

}

.frontpage a.showLogin{
  margin:2em;
}

.introText{padding:2rem 0; text-align: justify; background: #f0f0f0}

.introText p, .introText h4{
  max-width: 40rem;
  margin: 1em auto;
}

.avatar-round{
  height:2em;
  width: 2em;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #d0fff8;
}


/* AGREEMENT ROOM */
.hoverRed:hover{color:red !important;}
.hoverGold:hover{color:gold !important;}

.ngPopup #minBtn, .ngPopup #pinBtn{
  display:none;
}
.ngPopup .title{
  padding: 4px 0 !important;
}
.ngPopup .titleBar{
  z-index:10 !important;
}
.ngPopup .fr-wrapper{
  min-height: 500px;
}

.agreementDraft{
  background: #e1e1e1;
}

.agreementHeader{
  margin:2.5em auto !important;
}

.agreementHeader .col-md-4{
  padding:0;
}

.agreementBody{
  margin-top:70px;
}

agreement-sidebar{
  position: fixed;
  width: inherit;
  word-wrap: break-word;
  padding-left: 2em;
  text-align: right;

  font-size:  1rem !important;
  max-height: calc(100% - 100px);
  overflow-y: auto;
}

agreement-sidebar li > a {padding:5px 15px;}
agreement-sidebar li > a.changed {font-weight: bold}


agreement-sidebar h2{padding:0 15px;font-size: 0.9rem !important;}
agreement-sidebar h1{font-size: 1rem !important;}


.agreement{padding:0 2em}
.agreement > *{
  max-width: 66rem;
  margin:auto;
  float: none;
}

#agreementTitle{
  margin: 0.5em 0;
}

#agreementToolbar{
  background: #fafafa;
  padding: 1.2em 0;
  position: fixed;
  top: 60px;
  left:0;
  width:100%;
  z-index:10;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}

#agreementToolbar .toolbarSection{
  flex-basis: auto;
    justify-content: space-between;
}
#agreementToolbar .toolbarSection > *{
  display: inline-block;
  margin:0 1em;
}

#agreementToolbar .toolbarSection{
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

#agreementToolbar p{line-height: 1.5em;margin:0;}

#agreementToolbar button{line-height: 1.5em}

#agreementToolbar button:focus{background: #00af93;}
#agreementToolbar button.active{background: #16544a; border-color:#00957e;}
#agreementToolbar button.subActive{background: #028671; border-color:#00584a;}

#agreementToolbar #currentPrevious button{
  border-radius: 0 !important;
}

.caretFix{
  display: inline-block;
    margin-left: -0.25em;
}

.dropdown-toggle-noleftborder{
  border-left: 0 !important;
}


.btn-primary[disabled]{
  background-color: #00af9366;

border-color: #00957e66;
}


.toolbarConvenerDate{
  display:inline-block;
  vertical-align: middle;
  font-size: 10px;
}
.toolbarConvenerPicture{
  height:2em;
}

.agreementNav h2{font-size: 1.2rem}

.nav-heading-1{font-size: 1.5em}
.nav-heading-2{font-size: 1.1em}

.agreementNav a.active, .agreementNav a.active:hover,.agreementNav a.active:active{
  background:#fafafa !important;
}

.agreementContainer{
  max-width: 804px;
}
.row.fullWidth{
  max-width: 100%;
}

agreement-comments{
    position:absolute;
}


.versionText{
  background: #fff;
  border-radius: 0;
  min-height: 100vh;
  margin-bottom: 50vh;
  box-shadow: 0 0 0 0.75pt #d1d1d1,0 0 3pt 0.75pt #ccc;
}
.versionText .fr-wrapper{
  box-shadow: none !important;
  padding: 48px 72px
}
.versionText .fr-toolbar{
  position:sticky;
  top:129px;
}

.agreementContainer .fr-view{
  padding:0 !important;
}
.fr-view *{
  max-width: 100%;
  word-wrap: break-word;
}

.oldVersionText{
  background:#f0f0f0 !important;
}
.oldVersionText .fr-wrapper, .oldVersionText .fr-wrapper * {
  background:rgba(0,0,0,0) !important;
}

.oldVersionText .fr-toolbar,.versionText.readOnly .fr-toolbar{
  /*border:0;
  box-shadow: none;*/
  background: inherit;
}

.versionText h1{font-size: 1.4em !important}
.versionText h2{font-size: 1.2em !important}
.versionText h3{font-size: 1.1em !important}

h1#topText{visibility: hidden; height:0;}

.fr-view .inlineComment, .fr-view .endInlineComment{visibility:hidden; height:0; display: inline; width:0;}

comment-icon{width:100%;}
.commentIcon{
  position: absolute;
  z-index: 1;
  font-size: 0.8em;
}
.commentIcon a{
  margin-left: -2em;
}

.commentOverlay{
  z-index: 1;
  position: absolute;
  background: rgba(100,200,100,0.5);
}

comment-popup{
  /*
float: right;
  margin-left: 3em;*/
  position:absolute;
  left:0;
  width: 100%;
  min-width: 30rem;
  max-width: 40rem;
}
comment-popup .panel{
  margin-left: 1em;
}
comment-popup .messageInput{
  padding: 0;
}
comment-popup .messageInput textarea{
  min-height: 10em;
}
comment-popup .comment:last-child{
  margin-bottom: 1em;
}
comment-popup:hover .panel{  background-color:#fff;}
comment-popup .panel{  background-color:#f6f6f6;border-top: 1px solid #ddd;border-left: 1px solid #ddd;}
comment-popup p{
  text-align: left !important;
}

.fr-view.fr-disabled{
  user-select: text;
  -o-user-select: text;
  -moz-user-select: text;
  -khtml-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
}

.froalaPgBreak{
  display: block;
  background: #f4f4f4;
  width: 100%;
  height: 2em;
  position: absolute;
  left: 0;
}

.fieldSection{
  /*margin-bottom:4em;*/
  padding: 1em;
  background: #fff;
  border-radius: 0;
}
h2.sectionName{
  padding:0;
  font-size: 1.5rem;
  margin-bottom: 1.2em;
}
h3.subSectionName{
  font-size: 1.2rem;
  margin-bottom: 1em;

}
img.agreement-avatar{
  width: 10em;
  height: 10em;
  margin: 1em;
}
img.agreement-avatar.pull-left{margin-left: 0}
img.agreement-avatar.pull-right{margin-right: 0}


.comparisonText{background:#fdfdfd}
.comparisonText.fullText ins{text-decoration:none;color:rgba(25, 161, 21,1)}
.comparisonText.fullText del{text-decoration:none;color:rgba(255, 141, 141, 1); text-decoration: line-through;}
.comparisonText.comparison-past ins{display: none}
.comparisonText.comparison-past del{text-decoration:none;color:rgba(255, 141, 141,1)}
.comparisonText.comparison-current del{display: none}
.comparisonText.comparison-current ins{text-decoration:none;color:rgba(25, 161, 21, 1)}

toggle div.toggle{
  width:100% !important;
}


div.agreement-btns{padding:2em 1em}

i.empty-placeholder{color:#aaa }

label.fieldChanged{
  background: green;
  color: white;
  border-radius: 0.5em;
  padding: 0.5em;
}

.nav .subnav li{
  padding-left: 1em
}

.suggestionList{
  /*background: #fffdc7;
  border-radius: 0.5em;*/
  padding: 0.5em;
}

.suggestionList ul{
  padding-left: 1em
}

.comment, .attachment{
  /*position:relative;
  clear:both;*/
  display: table;
  width: 100%;
  margin:0;
  line-height: 1.2em;
  height:0;
  text-align: left;
  margin-bottom: 10px;
}

.attachments{
  margin-top:1em;
}
.attachment:hover{
  background: #f0f0f0;
}

.comment textarea{
  line-height: 1rem;
  padding: 1rem;
}
.comment .comment-body, .attachment .attachment-body{
  display: table-cell;width:calc( 100% - 3rem );
}

.comment .avatar, .attachment .avatar{display: table-cell; width:3rem; height:100%;vertical-align: top;}
.comment .user-avatar, .attachment .user-avatar{height:3rem; width:3rem;}

.comment .comment-body p, .attachment .comment-body p{margin-bottom: 0; direction: ltr;
  padding: 0.5em;
  padding-left: 5px;
  display: inline-block;
  /*max-width: 98%;*/
}
.comment .comment-body h4, .attachment .attachment-body h4{margin:0;margin-left:5px;;color:#000}

.commentDate{
  font-size:0.8rem;font-weight: normal;margin:0;margin-left:5px;color:#888;text-align:left
}


comment-popup .postBtn{width:calc( 100% - 3em );}
comment-popup .attachBtn{width:3em;}

.fr-box{
  margin-bottom: 0.5em;
}
.commentToggler, .commentToggler:hover,.commentToggler:focus, .commentToggler:active{
  text-decoration: none;
}
.commentToggler span, .commentToggler i{
  font-size:inherit;color:inherit;font-weight: inherit;
  margin:0;padding:0.1em;
}
.commentToggler.unread{
  font-weight: bold;
  color: white;
  background-color: rgb(108,171,255);
  padding: 0.25em;
  margin:0 1em;
  border-radius: 0.25em;
}
.commentToggler.unread:focus,.commentToggler.unread:hover{color:white}
.commentToggler.unread span, .commentToggler.unread i{
  font-size:inherit;color:white;font-weight: inherit;
  margin:0;padding:0.1em;
}

/* AGREEMENT STRUCTURE */
.agreementToolbar-structureSection{
  position: relative;
}

.agreement-toolbar-explorer .arrow-up {
  width: 0;
  height: 0;

  position: relative;
  display: inline-block;
  vertical-align: bottom;
  margin-right: 0.5em;
  border-left: 1em solid transparent;
  border-right: 1em solid transparent;

  border-bottom: 1em solid #00957d;
}
.agreement-toolbar-explorer{

  position:absolute;
  right:0;
  z-index:15;

  width:70em;
  margin-top: 2.5em;

  text-align: right;
}

agreement-structure-explorer{
  position: relative;
  width:100%;
  height:100%;
  display: block;
  text-align: left;
}

agreement-structure-explorer a:hover{
  text-decoration: none;
}


agreement-structure-explorer header{
  position: relative;
  width:100%;
  height: auto;
  background: #00957d;
  padding:1em;
  display:flex;
}
agreement-structure-explorer header .explorer-header-buttons-l{
  margin-right:1em;
  flex-shrink: 0;

}
agreement-structure-explorer header .explorer-header-buttons-r{
  margin-left:1em;
  flex-shrink: 0;

}
agreement-structure-explorer header .explorer-header-center{
  flex-grow: 1;
  overflow: hidden;
}

agreement-structure-explorer header > *{
  align-self: center;
}



agreement-structure-explorer header .breadcrumb{
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  direction: rtl;
  background:none;
  color: #efefef;
}
agreement-structure-explorer header  .breadcrumb li {display: inline;}
agreement-structure-explorer header  .breadcrumb span:hover {  color: #fefefe;}

agreement-structure-explorer header .explorer-headers-buttons{
  float:right;
}

agreement-structure-explorer .explorer-container{
  width: 100%;
  height:100%;
  position: relative;

  display: flex;
  align-items: stretch;
  border:1px solid #ccc;
  background: #f7f7f7;
  padding: 1em;


}

agreement-structure-explorer .explorer-sidepane{
  background: #f3f2f2;
  width: 25%;
  min-width: 20em;
  padding: 1em;
}
agreement-structure-explorer .explorer-sidepane a.active,
agreement-structure-explorer .explorer-list a.active,{
  background: #eaeaea
}
agreement-structure-explorer .explorer-sidepane a,
agreement-structure-explorer .explorer-list a{
  word-break: break-all;
}

/* AUTO INDENT */
agreement-structure-explorer .explorer-sidepane ul,
agreement-structure-explorer .explorer-list ul{
  margin-left: 0;
}
agreement-structure-explorer .explorer-sidepane ul ul,
agreement-structure-explorer .explorer-list ul ul{
  margin-left: 1em;
}


agreement-structure-explorer .explorer-main{
  width: 100%;
  min-height: 13em;
  background: #f7f7f7;
  padding: 1em;
  display: flex;
}

agreement-structure-explorer .explorer-main .loading{
  width: 100%;
  min-height: 13em;
  background: #f7f7f7;
  padding: 1em;
  display: block;
}

.explorer-file-icon{
  display: inline-block;
  margin: 1em;
  min-width: 5em;
  max-width: 10em;
}
.explorer-file-icon--thumb{
  display: block;
  font-size: 4em;
  text-align:center;
  cursor:pointer;
  /*
  padding:1rem;
  */

}
.explorer-file-icon--caption{
  text-align: center;
  word-wrap: break-word;
}

.fa-super{
  left: 30%;
  top: -40%;
}

/* USER AGREEMENT BROWSER */
user-agreements-table{
  width:100%;
  display: block;
}


user-agreements-table .nav-pills > li > a > i{
  margin-right: 1em;
}

user-agreements-table .nav-pills > li.active > a{
  /*color: #000 !important;*/
  background-color: #eaeaea !important;
  font-weight: bold;
}


user-agreements-table .nav-pills > li > a{
  color: #333 !important;
}

user-agreements-table tr.draft{
  background-color:#ededed;
}
user-agreements-table tr.draft a{
  font-style: italic;
}

user-agreements-table tr.waiting a{
  color:#c6a700;
}

user-agreements-table tr.editing a{
  color:#00b392;
}

user-agreements-table tr.editing.unviewed{
  font-weight: bold;
}

user-agreements-table td{
  background:inherit !important;
}

user-agreements-table tr.children > td{
  padding:0;
}

user-agreements-table tr.children  table{
  margin:0;
  background:inherit !important;
}


user-agreements-table table {
  table-layout: fixed;
}
user-agreements-table table tr td:first-child {
  background: red;
  width: 200px;
}
user-agreements-table table td+td {
  width: auto;
}
