/*
 * Overrides for Material Admin
 */
 body {
    padding-top: 30px;
    opacity: 0;
    overflow-x: hidden;
}

#main {
    padding-bottom: 30px;
}

#logo-bar {
	position: fixed;
	top:0;
	left:0;
	background: #fff;
	width: 100%;
	z-index: 11;
	height: 50px;
}

#main-logo {
	background: #fff;
	padding:13px 0px 0 20px;
	height: 30px;
	z-index: 10;
	float: left;
}

#main-logo img {
	max-height: 25px;
	max-width: 180px;
	width: auto;
	}

#secondary-logo {
	background: #fff;
	padding:13px 20px 0px;
	height: 25px;
	z-index: 10;
	float: right;
}

#secondary-logo img {
	max-height: 25px;
	max-width: 180px;
	width: auto;
}


#header {
	top:50px;
	background-color: #4285f4;
	min-height: 50px !important;
	z-index: 11;
}

.header-inner {
    padding: 8px 0 !important;
}

#sidebar {
	padding-top:35px;
	width: 320px !important;
}
#sidebar.toggled {
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
}

.thumbnail {
    padding: 0;
}

.thumbnail .caption {
    padding: 15px;
}

.card .card-header h2 {
    line-height: 120%;
    word-wrap: break-word !important;
}


@media (min-width: 1200px) {
  body.sw-toggled #content {
	padding: 15px 0 30px 320px;
  }
}

.fileinput .fileinput-preview {
    height: 100px;
}


#chat {
    top: 130px;
}

.clear {
    clear: both;
}

#menu-trigger::before {
    top:3px;
}

/* Overrides for Section edit */

#section-edit button {
	margin:0 10px 10px 0;
}

#section-edit .components button {
	margin:0 5px 10px 0;
}

.placeholder {
    background-color: #d2d2d2;
    height: 80px;
    margin-bottom: 10px;
}

div.tags .placeholder {
    background: none !important;
    height: 20px !important;
}

.ui-sortable-helper {
    -webkit-box-shadow: 0px 0px 10px #888;
    -moz-box-shadow: 0px 0px 10px #888;
    box-shadow: 0px 0px 10px #888;
}

#edit-menu-holder {
    top:90px;
    padding: 20px 0;
    right: -300px;
    width: 280px;
}

#edit-menu-holder .card {
    margin-bottom:5px;
}

#editpage-menu-button {
    position: fixed;
    right: 0;
    top: 121px;
    z-index: 100000;
}

.editpage-menu-trigger {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.sidebaredit {
  position: fixed;
  background: #fff;
  box-shadow: 0 0 10px rgba(51, 51, 51, 0.38);
  height: calc(100% - 65px);
  top: 65px;
  -webkit-transition: all;
  -o-transition: all;
  transition: all;
  -webkit-transition-duration: 300ms;
  transition-duration: 300ms;
  z-index: 10;
  opacity: 1;
  filter: alpha(opacity=0);
  overflow-y: auto;
}

.sidebaredit.toggled {
    opacity: 1;
    right:0 !important;
}

body.editsidebar-toggled #content {
    padding-right:280px;
}

#edit-sida .sortable-list {
    border:2px dashed #ccc;
    padding:10px;
}

#edit-sida .sortable-list .card {
    margin-top: 15px;
    margin-bottom: 15px;
}


/* Overrides for Section edit */

.bgm-mmg {
	background-color:#f15722 !important;
}

.white-text {
	color: #ffffff;
}

.columncentered {
	text-align:center
}
.column5 {
	width: 5%;
}

.column10 {
	width: 10%;
}

.column12 {
	width: 12%;
}

.column15 {
	width: 15%;
}

.column20 {
	width: 20%;
}

.column30 {
	width: 30%;
}

.column40 {
	width: 40%;
}

.column50 {
	width: 50%;
}

.column60 {
	width: 60%;
}

p {
    font-size: 15px;
}

#content li {
    font-size: 15px;
}

#jstree_menu_div a {
    white-space: normal !important;
    height: auto;
}

#jstree_menu_div
{
    max-width: 320px;
}


.sub-menu ul > li > a {
  color: #7f7f7f;
  padding: 8px 20px 8px 30px;
  font-weight: 500;
  display: block;
}

.sub-menu ul > li ul {
	padding-left: 10px;
  font-size: 13px;
  margin: 0px 0;
  background-color: transparent;
}

.sub-menu ul > li > a.active,
.main-menu li > a.active{
  background-color: #f7f7f7;
}

.fileinput .fileinput-preview img {
    margin-top: -60px;
}


/* start course dashboard */

#news-list .listview .lv-item .lv-small {
    overflow: visible !important;
    text-overflow: initial !important;
    white-space: pre-wrap !important;
}


.group-logo {
	position: absolute;
	top:10px;
	right: 10px;
	max-width: 100px;
	max-height: 30px;
	height: auto !important;
	width: auto !important;
	-webkit-box-shadow: 4px 4px 10px 0px rgba(50, 50, 50, 0.1);
	-moz-box-shadow:    4px 4px 10px 0px rgba(50, 50, 50, 0.1);
	box-shadow:         4px 4px 10px 0px rgba(50, 50, 50, 0.1);
}
/* end course dashboard */

.progress-bar-finished {
    background-color: #4caf50;
}
.progress-bar-unfinished {
    background-color: #aaa;
}
.progress-bar-begun {
    background-color: #ff9800;
}

.mini-charts-item {
	margin-bottom: 0px !important;
}

.pdf-container {
	height: 900px;
}

.htmlcomponent img.pull-left {
    margin:0px 20px 20px 0px !important;
}

.htmlcomponent img.pull-right {
    margin:0px 0px 20px 20px !important;
}

#bottom-nav {
    left: 0;
    position: fixed;
    right: 0;
    bottom: 0px;
    width: 100%;
    z-index: 55;
    background: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 1);
}

#course-content-overview-footer {
    left: 0;
    position: fixed;
    bottom: 0px;
    width:100%;
    z-index:45;
    background: rgba(247, 247, 247, 1);
    min-height:55px;
}

/* mobile fixes */
@media only screen and (max-width: 767px) {
    #course-content-overview-footer {
        position: sticky;
    }
}

/* mobile fixes */
@media only screen and (max-width: 767px) {
    
    #fabmenu {
        bottom: -40px;
    }

	#secondary-logo {
		display: none;
	}
	
    #sidebar {
        -webkit-transform: translate3d(-320px, 0, 0) !important;
        transform: translate3d(-320px, 0, 0) !important;
    }

	
	.tab-nav li {
		display: block;
	}

	.container img {
		max-width: 100%;
	}

	.group-logo {
		max-width: 20% !important;
	}

	/* Force table to not be like tables anymore */
    /* OBS: This breaks the bootstrap datepicker widget in responsiveness*/
	.bootgrid-table table,
	.bootgrid-table thead,
	.bootgrid-table tbody,
	.bootgrid-table th,
	.bootgrid-table td,
	.bootgrid-table tr {
		display: block;
	}

		/* Hide table headers (but not display: none;, for accessibility) */
	.bootgrid-table thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	.bootgrid-table tr { border: 1px solid #ccc; }

	.bootgrid-table td {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 50%;
		white-space: normal;
		text-align:left;
	}

	.bootgrid-table td:first-child {
		padding-left: 10px !important;
	}

	.bootgrid-table td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		text-align:left;
		font-weight: bold;
	}

	/*
	Label the data
	*/
	.bootgrid-table td:before { content: attr(data-title); }

	.pdf-container {
		height: 400px;
	}
	
	.htmlcomponent img.pull-left {
        width: 100% !important;
        height: auto;
        margin: 20px 20px 20px 0px !important;
    }

    .htmlcomponent img.pull-right {
        width: 100% !important;
        height: auto;
        margin: 20px 0px 20px 20px !important;
    }
    
    .top-menu .dropdown-menu {
        top:47px;
    }
    
    body.lesson .modal .modal-body {
        padding:0;
    }
    
    body.lesson .modal .modal-header {
        display: none;     
    }
    
    body.lesson .card .card-body.card-padding {
        padding:0px !important;
    }
    
    body.lesson .card .card-header .actions {
        top:3px !important;
    }
    
    body.lesson .card .card-header.ch-alt {
        padding:15px 0 !important;
    }
    
    
    #main {
        padding-bottom: 100px !important;
    }
    
    #bottom-nav .btn {
        padding:12px !important;
    }
    
    .waves-circle {
        padding:0 !important;
    }
    
    .btn-float {
        padding:6px 12px !important;
    }
    
    body.editsidebar-toggled #content {
        padding-right:0px;
    }
    
    #clean-view-trigger {
        display: none;
    }
    
    .media-body {
        clear: both;
    }
        
    /*
	Start Bottom navigation
	*/
    
    #bottom-nav .btn {
        width: 100%;
    }

    #bottom-nav .pull-right {
        float: none !important;
    }

    #bottom-nav .pull-right {
        float: none !important;
    }
    
    #bottom-nav .m-l-5 {
        margin: 10px 0 0 0 !important;

    }
    /*
	End Bottom navigation
	*/
	
    body.course-catalogue div[role=tabpanel] {
        margin-top:-30px;
    }  
	    
    body.course-catalogue {
        padding-top: 20px;
    }
    
    body.course-catalogue .site-banner {
        background-size: auto 100% !important;
    }

}

@media only screen and (max-width: 360px) {

    body.course-catalogue div[role=tabpanel] {
        margin-top:-30px;
    }  
    
    body.course-catalogue {
        padding-top: 20px;
    }
    
    body.course-catalogue .site-banner {
        background-size: auto 100% !important;
    }
    
    #reviewslist .reviewholder {
        padding: 30px 15px 30px 15px !important;
    }
    
    .t-view[data-tv-type="text"]::after {
        background:none !important;

    }
    
    .t-view[data-tv-type="text"]::before {
        background:none !important;
        box-shadow:none !important;
        content:"" !important;
        border:none !important;
    }
}


.popover{
    width:150px;
}

.center {
	text-align: center;
	margin-left: auto;
    margin-right: auto;
	width: 100%;
}


/* Start Kurskatalog */

#reviewslist .reviewholder {
    padding: 30px 15px 30px 80px;
}


body.course-catalogue #content {
    padding: 30px 0 30px 0px;
}

body.course-catalogue #header {
    top:0;
}

body.course-catalogue .header-inner {
    padding: 0 !important;
}

body.course-catalogue #main {
    padding-top: 0;
    padding-bottom: 100px;
}

@media (min-width: 1170px) {
    body.course-catalogue #main, body.course-catalogue #content, body.course-catalogue .jumbotron {
        width: 1170px;
        margin: auto;
    }
}

body.course-catalogue #footer {
    padding: 0;
}


body.course-catalogue .container {
    width: auto;
}

body.course-catalogue .toplogo img {
	max-height: 25px;
	max-width: 180px;
	width: auto;
}

body.course-catalogue .toplogo {
	padding:13px 0 0 5px;
}


body.course-catalogue .buy-btn {
    background: #4CAF50 none repeat scroll 0 0;
    text-align: center;
    border-radius: 3px;
    color: #fff;
    display: block;
    padding: 7px 20px;
    text-transform: uppercase;
    transition: all 300ms ease 0s;
    margin:15px 0 0 0;
}

body.course-catalogue .tab-content ul {
    list-style-type:none;
    padding: 5px 0;
}

body.course-catalogue .course img {
    width: 100%;
    height: auto;    
}

body.course-catalogue .ha-menu {
    margin-top: 0;
    background: #fff;
    top:50px !important;
}

body.course-catalogue .ha-menu a {
    color: #333 !important;
}

body.course-catalogue #menu-trigger .line-wrap {
    margin-top: 20px;
}

body.course-catalogue #menu-trigger .line-wrap .line {
    background-color: #333;
}

body.course-catalogue .site-banner {
    width: 100%;
}

body.course-catalogue .site-banner .jumbotron {
    background: transparent;
    color: #fff;   
    text-align: center;
    padding: 80px 15px;
}

body.course-catalogue .badge {
    clear: both;
}

.panel-heading-no-plus {
  padding: 2px 15px;
  border-bottom: 1px solid transparent;
  border-top-right-radius: 1px;
  border-top-left-radius: 1px;
}
.panel-heading-no-plus {
  border-bottom: 1px solid #dddddd;
}

.panel-item > .badge {
  float: right;
}
.panel-item  > .badge + .badge {
  margin-right: 5px;
}

body.course-catalogue .cataloguebody ul {
    list-style-type: disc !important;
    padding: 5px 30px;
}


/* End Kurskatalog */

@media print { 
    #sidebar { 
        display: none !important;
    } 
    
    #content {
        padding:0 !important;
    }
}


.container {
    max-width: 1170px !important;
}


/* Start nytt "avskalat" tema */

body.lesson .container .card-header, body.lesson .container .card {
    background: transparent !important;
    border: medium none;
    box-shadow: none;
}

body.lesson {
    background-color: #fff;
}

body.lesson #sidebar, body.lesson #bottom-nav {
    /*background: rgba(241, 87, 34, 0.1) none repeat scroll 0 0;*/
    background:#f7f7f7;
}

body.lesson .sub-menu ul > li > a.active, body.lesson .main-menu li > a.active {
    /*background: rgba(241, 87, 34, 0.1) none repeat scroll 0 0;*/
    background:#f1f1f1;
}

body.lesson .container .card li {
    margin-bottom: 10px;
}

#fabmenu a:hover, #fabmenu a:focus {
    color: #fff !important;
}

.m-article h1 {
    color: #000000 !important;
}


.courseprogress-green {
    color:#8BC34A !important;
}
.courseprogress-green:before {
    color:#8BC34A !important;
}

.courseprogress-orange {
    color:#FFC107 !important;
}
.courseprogress-orange:before {
    color:#FFC107 !important;
}

.courseprogress-red {
    color:#F44336 !important;
}
.courseprogress-red:before {
    color:#F44336 !important;
}


@media print {
    body {
        background-color: white !important;
        -webkit-print-color-adjust: exact !important;
    }
    body.lesson .previous, body.lesson .next, #bottom-nav, #fabmenu, .noprint {
        display: none;
    }
   
    .forceprint {
        display: block;
    }
    
   body.lesson a[href]:after {
        content: "";
    }
  
    #main {
        position: relative;
        padding-bottom: 0px;
        padding-top: 0px;
    }

    .progress-bar-danger {
        background-color: #f44336 !important;
    }
    .progress-bar-success {
        background-color: #4caf50 !important;
    }

  @page {
        size: A4;  
        margin: 50pt 25pt 20pt 25pt;
    }

}

.spacer {
    padding:10px 0;
}

/* End nytt "avskalat" tema */

/* Start H5P edit overrides */

.h5p-dragnbar-li, .h5p-dragnbar-li:last-child {
    background:none !important;
    border-radius:none !important;
    border-right: 0 !important;
}

.h5p-slidecontrols-button {
    background:none !important;
    border-radius:none !important;
}


.h5p-dragnbar-ul li:hover {
    background:none !important;
    border-radius:none !important;
}

/* End H5P edit overrides */


/* breadcrum overrides */

.breadcrumb > li + li:before {
    content: " " !important;
    padding: 0px 0px !important;
}

@media (min-width: 1199px) {
    body.sw-toggled .breadcrumb {
        padding: 0px 0px 10px 0px !important;
    }
}

.motivation_article img {
    /*max-width: 500px !important;*/
    display: block;
    margin: auto auto;
}
.motivation_article .col-md-8 {
    width: 100%;
}
.motivation_article .col-lg-9 {
    width: 100%;
}
.motivation_article .text-right {
    text-align: center;
}



/* Fix for clearer edit button on courses */
.actions > li > a::before, .actions > a::before {
    opacity: 1;
    transform: scale3d(1, 1, 1)
}

.newinstance {
    cursor:move;
}
/* Course list course admin */

.status-indicator {
    position: absolute;
    top:15px;
    left: 15px;
}

.list-group-item {
    margin-bottom: 0px !important;
}

/* List component */

.bgm-lightgray {
    background:#f4f4f4;
}

.bgm-active {
    background:#f4f4f4;
}

.listview.lv-lg .lv-item:hover {
    background:#f4f4f4;
}

.z-depth-1-top {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

div.list-component .actions > li > a::before, .actions > a::before {
    opacity: 0;
}

  div.list-component .actions > li > a:hover:before,
  div.list-component .actions > a:hover:before,
  div.list-component .actions > li > a.open:before,
  div.list-component .actions > a.open:before {
    -webkit-transform: scale3d(1, 1, 1);
    -moz-transform: scale3d(1, 1, 1);
    -ms-transform: scale3d(1, 1, 1);
    -o-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    opacity: 1;
    filter: alpha(opacity=100);
  }
  
  /* Start certifikat */
 
.certificate thead {
    display: none;
}
 
.certificate tr {
    font-size: 16px;
}
 
.btn-btns > .btn {
    margin: 0 5px 10px 0;
}

.course-badge {
    border-radius: 50%;
    height: 120px;
    line-height: 42px;
    padding: 22px 0 0;
    text-align: center;
    width: 120px;
    margin: auto;
}
.course-badge i {
    font-size: 40px;
}
.course-badge h2 {
    padding:0px;
    margin:-8px 0px 0px 0px;
}
 

/* End certifikat */

.dropdown-menu {
    z-index: 100 !important;
}
.Xbootstrap-datetimepicker-widget  {
    position: relative;
}

body.lesson-overview .listview.lv-lg .lv-item:hover {
    background:none;
}

.truncatetext {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.profile-pic > img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-sizing: content-box;
}

/*
.sw-toggled #menu-trigger {
    display:block !important;
}
*/

.tooltip {
    min-width:120px;
}

.block-header > h2 {
    color: #000 !important;
}

.block-header > h2 > small {
    color: #555 !important;
}

.wcc-inner {
    color: #000 !important;
}

.course-description p {
    font-size: 12px;
}

.lvhs-input-alt {
    border: 0;
    padding: 0 26px 0 55px;
    height: 63px;
    font-size: 18px;
    width: 100%;
    font-weight: 100;
    background: #fff;
    border-bottom: 1px solid #EEE;
}

.note-image-dialog {
    z-index: 2100;
}
