*{
  margin: 0;
  padding: 0;
}


body{
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height:25px;
  background-color: #24292C;
  background-attachment: fixed;
  background-position:right bottom;
  background-repeat: no-repeat;
  background-size: 30% auto;
}


img{
  border: 0;
  max-width:100%;
}

a{
  text-decoration: none;
  cursor:pointer;
  color: #48007c;
  transition: .7s color, .7s background-color;
}
a:focus{
  outline: none;
}
a:hover{
  color:#0072bc;
  transition: .2s color, .2s background-color;
}

h1{
  font-weight: 900;
  color: #606060;
  font-size: 35px;
  line-height: 35px;
  margin-bottom: 15px;
}
h2{
  font-weight: 900;
  color: #606060;
  font-size: 25px;
  line-height: 25px;
  margin-bottom: 15px;
  margin-top: 40px;
}
h3{
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  margin-top: 20px;
  background-color: #48007c;
  padding: 10px 40px;
}

h4{
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  margin-top: 30px;
  background-color: #48007c;
  padding: 8px;
}

h2:first-child, h3:first-child{
  margin-top:0;
}
p{
  margin-bottom: 15px;
}
p:last-child{
  margin-bottom:0;
}

ul, ol{
  margin: 0 0 15px 30px;
}

.sidebar{
  position:fixed;
  left:0;
  top:0;
  width: 250px;
  height:100%;
  box-sizing: border-box;
  background-color: #2C3237;
  overflow-y: auto;
  border-right: 10px solid #222729;
}
.sidebar #logo{
  display: block;
  padding: 20px;
}
.sidebar #logo img{
  width: 80%;
}
.sidebar p{
  margin: 20px;
  border-top: 3px solid #394145;
  color: #717C8E;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  padding-top: 5px;
}
.sidebar ul{
  list-style-type: none;
  margin:0 0 40px 0;
}
.sidebar ul li a{
  display: block;
  padding: 7px 20px;
  color: #C4CBD7;
  font-size: 20px;
}
.sidebar ul li a.current{
  background-color: #394145;
}
.sidebar ul li a:hover{
  background-color: #2F373C;
  color:#FFFFFF !important;
}

.container{
  margin-left: 250px;
}

.main{
  width: 94%;
  max-width: 1500px;
  margin: 0 auto 30px auto;
  position:relative;
}

.header{
  background-color: #48007c;
  position:relative;
  padding: 22px 40px;
  box-sizing: border-box;
  min-height: 117px;
  margin-bottom: 20px;
}

.header .breadcrumbs{
  font-weight: 700;
  text-transform:uppercase;
  color: #FFFFFF;
  font-size: 16px;
  line-height:16px;
  margin-bottom:10px;
  opacity: .5;
}
.header .breadcrumbs a{
  color: #FFFFFF;
}
.header .breadcrumbs a:hover{
  color:#FFF !important;
}

.header h1{
  font-weight:900;
  font-size: 40px;
  line-height: 48px;
  margin:0;
  color:#FFFFFF;
}
.header h1 .fa{
  margin-right: 10px;
}

.content{
  background-color:#FFFFFF;
  
  position:relative;
  margin-bottom: 20px;
  overflow:hidden;
}

.padding{
  padding: 30px 40px;
}
.grey{
  background-color: #f1f1f1;
}
.padding:empty{ display:none; padding:0; }

.footer{
  margin-bottom: 15px;
  color: #666;
  font-size: 13px;
  line-height: 20px;
}
.footer .logo{
  opacity: .3;
  transition: 2s opacity;
}
.footer .logo:hover{
  opacity: .6;
  transition: .3s opacity;
}
.footer .logo img{
  width: 100px;
}

.buttons{
  margin: 0 0 25px 0;
}
.buttons a, .button{
  font-family: 'Lato', sans-serif;
  display: inline-block;
  background-color: #48007c;
  color: #FFFFFF;
  padding: 8px 15px;
  margin-right: 15px;
  font-weight:700;
  border:none;
  transition: .7s background-color;
  cursor:pointer;
  font-size: 17px;
}
.buttons a i, .button i{
  margin-right:5px;
}
.buttons a:hover, .button:hover{
  background-color: #48007c !important;
  color:#FFFFFF !important;
  transition: .3s background-color;
}
.buttons a i, .button i{
  transition:transform .7s; 
}
.buttons a:hover i, .button:hover i{
  transform:scale(1.2);
  transition: transform .3s;
}
.button.topmargin{
  margin-top:10px;
}


.xscroll{
  width:100%;
  overflow-x:auto;
}

.data{
  border-collapse: collapse;
  padding:0;
  min-width:50%;
}
.data.topborder{
  border-top: 1px solid #CCCCCC;
}
.data tr th{
  padding: 5px 10px;
  background-color: #48007c;
  font-weight: 700;
  color:#FFFFFF;
  text-align:left; 
}
.data tr:not(:first-child) th{
  border-top: 30px solid #FFF; 
}
.data tr td{
  padding: 5px 10px;
  border-bottom: 1px solid #CCCCCC;
}
.data tr:nth-child(2n+2) td{
  background-color: #f1f1f1;
}

.data.searching .draggable{
  display: none !important;
}

.data tr td.iconcol{
  width:20px;
}

.data a{
  display: block;
  color:#000000;
}
.data a:hover{
  color:#48007c;
}
.delete:hover{
  color: #BF312F !important;
}

.data .fa{
  font-size: 18px;
}



.label{
  color: #606060;
  margin-top: 15px;
  font-size:13px; 
}
.label:first-child{
  margin-top:0;
}

.select, .input, .textarea,.flatpickr-input{
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #9B9B9B;
  font-family: 'lato', 'arial';
  font-size: 14px;
  color:#606060;
  background-color:#FFFFFF;
}

.input:focus, .textarea:focus{
  outline:none;
  border: 1px solid #48007c;
}

.textarea{
  height: 90px;  
}
.textarea.autogrow{
  height:auto;
  min-height: 90px; 
  resize: none;
  overflow: hidden;
}

.select2{
  width: 100%; 
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
  background-color: #48007c !important;
}
.select2 ul{
  margin-left:0;
}



.save{
  clear: both;
  margin-top: 15px;
  background-color: #F5F5F5;
}


.block{
  display:block;
}
.cols{
  columns:3;
}

.clear{ clear: both; }

.line{
  border-bottom: 1px solid #CCCCCC;
  height: 30px;
  margin-bottom:30px;
}
.line + h2{
  margin-top:0;
}

.margined{
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.galleryimage{
  cursor: grab; 
}
.galleryimage img{
  display: block;
  aspect-ratio: 1/1;
  object-fit: cover;
  width:100%;  
}
.galleryimage .caption{
  display:block;
  margin-right: 60px;
  line-height: 30px;
  height:30px;
  overflow:hidden;
  font-size: 13px;
}

.editphoto{
  max-width:50%;
  max-height: 370px;
  
}


.logincontainer{
  width: 90%;
  max-width: 500px;
  box-sizing: border-box;
  margin: 40px auto;
  text-align:center;
}

.logincontainer .logo{
  max-height: 100px;
  max-width: 250px;
}
.logincontainer h2{
  color:#FFFFFF;
  font-weight:900;
  font-size: 25px;
  margin: 15px 0 50px 0;
}
.logincontainer .loginbox{
  background-color:#FFFFFF;
  border-top: 8px solid #48007c;
  
  text-align:left;
  overflow:hidden;
}
.logincontainer .loginbox .padding{
  padding: 20px;
}
.logincontainer .grey{
  background-color:#f1f1f1;
  padding: 10px 20px;
}
.logincontainer .button{
  display:block;
  width:100%;
}

.loginbox.logingone{
  display: none;
}




.pageblocklink{
  display:block;
  background-color:#f1f1f1;
  padding: 15px;
  margin-bottom:20px;
  color:#606060;
}
.pageblocklink .block-type{
  float:right;
}
.pageblocklink.hidden{
  opacity: .5;
}


.deletepageblock{
  float:right;
  color:#666;
}
.deletepageblock:hover{
  color:red !important;
}

.gone{ display:none; }
.here{ display:block; }


#response{
  position:fixed;
  top:-100px;
  left:0;
  width:100%;
  box-sizing:border-box;
  text-align:center;
  padding: 0 10vw;
  z-index:99;
  transition: 3s top;
}

#response.in{
  top:0;
  transition:.5s top; 
}
#response.out{
  top:-100px;
  transition: 3s top;
}

.note{
  background-color: #53AC67;
  color:#FFFFFF;
  padding: 10px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.note .fa{
  font-size: 25px;
  line-height: 25px;
  vertical-align:middle;
  margin-right: 5px;
}
.note.error{
  background-color:#BF312F;
}
#response .note{
  border-radius: 0 0 15px 15px; 
}



.pagelink{
  display:block;
  background-color:#f1f1f1;
  padding: 15px;
  text-align:center;
}


.flex{
  display:flex;
}
.flex .half{
  width: 48%;
  margin-right: 4%;
}
.flex .half:nth-child(2n+2){
  margin-right:0;
}

.flex .quarter{
  width:25%;
}
.flex .quarter .input, .flex .quarter .select{  
  height: 35px;
}

.blockgroup{
  background-color:#f1f1f1;
  padding: 20px;
  margin: 30px 0 10px 0;
  position:relative;
}

.blockgroupadd{
  display:block;
  margin: 0 0 50px 20px;
}

.pageblock-order{
  position:absolute;
  right:25px;
  top:10px;
}
.pageblock-order a{
  margin-left: 10px;
}

.pageblock-header{
  border-bottom: 2px solid #48007c;
  margin-bottom: 20px;
  padding:15px 15px 20px 15px;
  background-color:#f1f1f1;
}



.grid-5{
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 20px; 
}

.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-gap{
  gap: 50px !important;
}
.grid-vert{
  align-items: center; 
}

.span-1 {
  grid-column: span 1;
}
.span-2 {
  grid-column: span 2;
}
.span-3 {
  grid-column: span 3;
}
.span-4 {
  grid-column: span 4;
}
.span-5 {
  grid-column: span 5;
}

.dev-error{
  border: 2px solid #BF312F;
  background-color: #FCDFDF;
  padding: 10px;
  margin: 20px 0;
  font-size: 13px; 
  line-height: 15px; 
}


.draggable{
  cursor:grab;
  width: 25px;
  text-align: center;
  color:#CCC;
  transition:.3s color;
}
.draggable:hover{
  color: #666; 
  transition:.3s color;
}
.sortable-placeholder{
  border: 2px dashed #666 !important;
  border-bottom: 2px dashed #666 !important;
  height: 30px;
}
.gallery .sortable-placeholder{
  display:block;
  width: 100%; 
  aspect-ratio: 1/1; 
  height: auto; 
  background-color: #f1f1f1;
}
.draggable {
  cursor: grab;
}
.drop-target, .data tr:nth-child(2n+2) .drop-target {
  background: #E5EAEF !important;
  color:#FFF; 
}
.dragging {
  opacity: 0.6;
}

.trumbowyg-editor {
  max-height: 50vh !important;
  overflow-y: auto !important;
  box-sizing: border-box;
}
.trumbowyg-box{
  background-color:#FFF;
}
.trumbowyg-box h1, .trumbowyg-box h2, .trumbowyg-box h3, .trumbowyg-box h4{
  background:none;
  margin: 40px 0 10px 0;
  padding: 0; 
  color:#000;
  font-size: 2rem; 
  line-height: 1;
  font-weight: 700;
}
.trumbowyg-box h1, .trumbowyg-box h2{
  font-size: 3rem;
}
.trumbowyg-box h3{
  font-size: 2rem;
}
.trumbowyg-box h4{
  font-size: 1.5rem;
}

.currentfile{
  display:inline-block;
  max-width: 100px;
  max-height: 50px;
  margin-top: 10px; 
  margin-right: 10px;
  vertical-align:middle; 
  border-radius: 5px; 
}

.pagination{
  margin-top: 60px; 
  text-align:center; 
}
.pagination a{
  display: inline-block;
  background-color:#f1f1f1;
  color: #000;
  border-radius: 100%; 
  font-size: 10px; 
  width: 20px;
  height: 20px;
  line-height: 20px; 
  overflow:hidden;
  margin: 0 2px;
  transition: transform .8s;
}
.pagination a:hover{
  transform: scale(2);
  transition: transform .3s;
}
.pagination a.current{
  background-color: #48007c;
  color:#FFF; 
}


.half{
  float:left;
  width:49%;
  padding-bottom:5px;
}
.half.right{
  margin-left: 2%;
}





.showhide{
  display: block;
  padding: 20px 40px;
  background-color: #666;
  color:#FFF;
  font-size: 20px;
}
#addlink.showhide{
  background-color: #48007c;
}
.showhide:hover{
  color:#FFF;
  background-color:#999;
}
.showhide i{
  float:right;
  font-size: 20px;
  transition:.7s transform;
}
.showhide.active{
  background-color: #84bd00;
}
.showhide.active i{
  transform: rotate(90deg);
  transition:.3s transform;
}
.showhide .intro{
  display:block;
  font-size: 12px;
  line-height: 16px; 
  margin-top: 12px; 
}


.casenote{
  display:block;
  padding: 20px 40px;
  color:#000;
}
.casenote:nth-child(2n+1){
  background-color:#f1f1f1;
}
.casenote .date{
  color:#666;
  font-size: 12px;
}

.casenote .archivenote{
  float:right;
  opacity:.2;
  transition:.5s opacity, .5s color;
  color:#000;
}
.casenote .searchresult{
  font-weight: bold;
  margin-bottom: 5px;
}

.archivenote:hover{
  opacity:1;
  color:red;
  transition:.3s opacity, .3s color;
}

.addnewcasenote{
  margin: 15px 40px;
}

.archived{
  display:block;
  border-top:1px solid #CCC;
  border-bottom:1px solid #CCC;
  color:#CCC;
  text-align:center;
}
.archivedcontainer .casenote{
  margin: 0 20px 20px 20px;
  border:1px solid #CCC;
  border-top:0;
  border-radius: 0 0 10px 10px;
  opacity: .5;
}

.typetags{
  display:flex;
  flex-wrap:wrap;
  gap: 15px; 
  margin: 15px 0;
}

.typetags span{
  background-color: #48007c;
  color:#FFF; 
  font-size: 12px;
  line-height: 1; 
  border-radius: 10px; 
  padding: 7px 10px; 
}

.typetags .date{
  background-color: #24292C;
  color:#FFF; 
}

.typetags span:empty{
  display:none;
}

.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 100px;
}

.search-result{
  display:block;
  border-left: 1px solid transparent;
  transition: border .7s;
}
.search-result:hover{
  color:#000;
  border-left: 10px solid #48007c;
  transition: border .3s;
}

.sidebar-search{
  display:block;
  padding: 10px 20px; 
}
.sidebar-search input{
  width: calc(100% - 20px);
  border:0;
  padding: 10px;
  border-radius: 5px; 
}