// Basics

html {
  font-size: 62.5%;
  height: 100%;
}

body {
  height: 100%;
  color: #5C5C5C;
  font-family: "Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
  //background: #fff url(../img/background.png) repeat;
  background: $pcBodyBg;
}

// Box-Sizing FTW! http://www.paulirish.com/2012/box-sizing-border-box-ftw/
*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.top-bar>ul .name h1 a {
    font-size: 18px !important;
}

.body-wrap .header-logo.with-side-text {
    margin-right: 0.5em;
    vertical-align: middle;
    margin-bottom: 0;
    margin-top: 0;
}

footer {
  width: 100%;
  max-width: 1180px;
  margin: 40px auto 30px;

  p {
    font-size: 13px;
    display: inline-block;
    vertical-align: middle;
    padding-top: 12px;
    text-align: left;
  }
  h1 {
    font-size: 18px;
    font-size: 1.8rem;
    font-weight: 500;
    a, a:visited {
        display: block;
      color: #444;
    }
  }
  .img-logo {
    margin-top:18px;
  }

  .f-logo {
  	height: 45px;
  	width: 50px;
  	display: inline-block;
  	background: url(../img/footer-stack.png) 50% 50% no-repeat;
  	text-indent: 100%;
  	white-space: nowrap;
  	overflow: hidden;
  	margin-right: 4px;
  	margin-top: -3px;
  	vertical-align: middle;
  }
}

#main {
  padding-top: 45px;
}

@media only screen and (min-width: 768px) {
  #main {min-height: 80%;}
}

.module-clients.action-view {
  #header {
    h3 {
      margin-bottom: 0;
    }

    .search-form {
      margin-bottom: 0;
    }
  }
}

#header {
    background: $pcBodyBg;
    // border-top: 2px solid #1d1d1d;
    //border-bottom: 1px solid $lblue * 0.8;
    margin-top: 20px;
    padding: 0;
    // overflow: visible;
    .row {
        padding: 0px 20px;
        h2, h3 {
            float: left;
        }
    }

    .search-form {
        margin-bottom: 24px;

        button {
            display: none
        }
    }

    .ttl {
        color: #333645;
        //text-shadow: 0 2px 3px lighten(#F7EFE7, 30);
        border-bottom: 4px solid $pcLightBlue;
    }
}

input.rounded-input{
    background: #fff;
    border: 1px solid lighten($pcBrown, 40);
    color: $pcBrown;
    font-size: 18px;
    line-height: 1;
    margin: 0;
    padding: 0 15px;
    @include border-radius(25px);

    &:focus {
      //color: #fff;
      //background: $pcGreen;
    }
  }

#quickAdd {
  margin:20px 0;
}

#search-form{
	float: right;
	overflow: visible;
	margin: 0;
	padding: 20px 0 0;
	form{
		float: left;
		margin: 0;
	}
	input#search{
		background: #fff;
		border: 0;
		color: $darkGrey;
		font-size: 18px;
		line-height: 1;
		margin: 0;
		padding: 0 15px;
		@include border-radius(25px);
	}
	div.quick-menu{
		float: right;
		position: relative;
		a#qm{
			background: #fff;
			color: $pancakeDarkBlue;
			display: block;
			line-height: 1;
			margin: 0 0 0 10px;
			padding: 10px 12px;
			@include border-radius(25px);
			&.active,
			&:hover{
				background: $pancakeDarkBlue;
				color: #fff;
			}
			&.active{
				@include border-radius(25px 25px 0 0);
			}
		}
	}
	ul.f-dropdown{
		background: $pancakeDarkBlue;
		font-size: 16px;
		list-style: none;
		margin: 0;
		padding: 5px;
		position: absolute;
		top: 1.8em;
		right: 0;
		text-indent: 0;
		width: 200px;
		z-index: 999;
		@include border-radius(5px);
		li{
			display: block;
		}
		a{
			color: #fff;
			display: block;
			font-weight: bold;
			padding: 5px 10px;
			width: 100%;
			&:hover{
				background: #fff;
				color: $pancakeDarkBlue;
				@include border-radius(3px);
			}
			i{
				margin-right: 10px;
			}
		}
	}
}



.notification {
  position: fixed;
  top: 44px;
  left: 50%;
  margin-left: -253px;
  width: 500px;
  text-align: center;
  padding: 8px;
  display: block;
  z-index: 999;
  font-weight: normal;
  font-size: 13px;
  cursor: pointer;

  p {
      font-weight: normal;
      margin: 0;
  }

  &:after {
      position: absolute;
      right: 4px;
      top: 4px;
      font-weight: normal;
      font: normal 1.1em/1 $icons;
      content: "\f217";
  }

}

.success {
  background: #dff2bf;
  border: 1px solid #9bb76a;
  color: #456114;
  a, a:visited {
    color: #456114;
    text-decoration: underline;
  }
  a:hover, a:focus {
    text-decoration: none;
  }
}

.error {
  background: #e67373;
  border: 1px solid #bb3b3b;
  color: #661717;
  a, a:visited {
    color: #661717;
    text-decoration: underline;
  }
  a:hover, a:focus {
    text-decoration: none;
  }
}

.time {
  font-size: 1.1em;
  font-weight: 600;
  color: #9bb76a;
}

.ui-datepicker {
  margin-top:-40px;
}

.reveal-modal-bg {
  z-index: 1002;
}

.reveal-modal {
  padding: 15px;
  z-index: 1003;

  @include border-radius(8px);
  @include single-box-shadow(0px, 3px, 0, 1px, #ccc);

  label {font-size: 14px !important;}
  #modal-header {padding: 15px;}
  .close-reveal-modal {top: 20px; right: 20px;}
  .modal-content {word-wrap:break-word;overflow-wrap:break-word;}
}

#modal-header {
  padding: 15px 15px 6px;
  margin: -15px -15px 10px;
  background: #eee;
  border-bottom: 1px solid #ddd;
  @include border-radius(8px 8px 0px 0px);
  h3 {
    margin-bottom: 0;
    font-size: 1.4em;
  }
}

/* Navigation */
.fixed.contain-to-grid {
  background: #333333;
}

.contain-to-grid .top-bar {
  width: 100%;
  max-width: 1170px;
}

#home-link {
  a, a:visited {
    padding-left: 24px;
    @extend .g16.home;
    @include sprite-background-position($geomicons16-sprites, home, 0, 14px);
  }
  a:hover, a:focus {
    @extend .g16.home:hover;
    @include sprite-background-position($geomicons16-sprites, home-hover, 0, 14px);
  }
}


//.top-bar ul > li:hover, .top-bar ul > li.active


// .top-bar section ul li:hover a
.top-bar {
  background: $pcWhite;
  border-bottom: 4px solid $pancakeBlue;
  height: 50px;
  margin: 0;
  ul, li, ul li ul li.divider {
    background: $pcWhite;
  }

  ul li.name {
  background: $pcNavBg!important;
  }
  ul li ul {
  background: $pcWhite;



    li {
    border-left: 4px solid $pancakeBlue;
    border-right: 4px solid $pancakeBlue;

    &:last-child {
    border-bottom: 4px solid $pancakeBlue;
    }

    color: $pancakeBlue!important;
    a {
      color: $pancakeBlue!important;
    }
    }
  }

  ul li.toggle-topbar a {
      color: $pcNavText !important;
      &:after {
      border-top-color: $pancakeBlue !important;
      }
    }


  ul li.active {
    background: lighten($pcWhite, 10) !important;

    a {

      color: #fff!important;
    }
  }
  ul li {



      &:hover  {
        &:after {
          border-top-color: $pcNavChevron !important;
        }
      }

     a {
      &:after {
      border-top-color: $pcNavActiveBg !important;
      }


    }

    .active {
      background: $pcNavActiveBg!important;

      a {
      color: $pcNavActiveText !important;
      //background: #ff9900!important;

      &:after {
      border-top-color: #fff !important;
      }
      }
    }

  }

  section ul li {
    a {
    color: $pcNavText !important;
      &:after {
      color: $pcNavChevron;
      }
    }
    &:hover {
    background: $pcNavBg!important;

    > a {
      color: $pcNavText !important;
      }


    }
  }
  section li ul li{
    font-size: 0.85em;
   // border-left: 5px solid $pcBrown;
   background: $pcNavBg !important  ;

    > a {
      color: #fff!important;
    }

    &:hover {

      > a {
        color: $pcNavTextHover!important;
        &:after {
          color: $pcNavChevronHover;
      }
      }
    }

  }

  li.divider {
    display: none !important;
  }
  .nav-search {
    position: relative;
    width: 120px;
    max-width: 100%;
    padding: 0 15px;
    button, .button {
      display: none;
    }
    input {
      position: absolute;
      right: 10px;
      top: 6px;
      width: 80%;
    }
    .divider {
      display: none;
    }
  }
  ul > li a:not(.button) {
    font-weight: bold !important;
    color: #fff;
  }
  ul > li.name a:not(.button) {
    font-weight: bold !important;
  }


  ul li ul li {
    position: relative;
    padding: 5px 15px 5px 0 !important;
    &:hover {
      background: $pcNavHover !important;
    }

  }
  ul li ul li a {
    &:hover {
    background: $pcNavHover !important;
    }
  }
  ul .count, ul .sub-level-badge {
    position: absolute;


    right: 5px;
    padding: 3px 4px;
    top: 9px;
    color: #fff;
    font-weight: bold;
    @include border-radius(5px);
    background: lighten( $pancakeBlue, 10);

    //color: $pancakeBlue;
  }
  ul > li:hover a, ul > li.active a {
    color: #fff;
  }
  ul ul ul, ul ul ul ul {
    padding: 0 !important;
    height: auto !important;
    border-top: 4px solid $pancakeBlue;
  }
  ul ul ul ul li {
      margin:0 !important;
  }
  ul > li.has-dropdown .dropdown li.has-dropdown > a::after {
    top: 10px !important;
  }
  .user-pic {
    margin: 8px 8px 0 -4px;
    width: 30px;
    height: 30px;
    float: left;
    @include border-radius($borderRadius);
  }
  .timers, .has-top-level-badge {
    position: relative;

    > a {
        margin-right: 20px;
    }

    .timer-counter, .top-level-badge {
      position: absolute;
      font-size: 10px;
      top: 15px;
      right: 32px;
      color: white;
      padding-top: 3px;
      text-align: center;
      height: 16px;
      width: 16px;
      margin: 0;
      line-height: 1;
      background: $lblue;
      font-weight: bold;
      @include text-shadow(0 1px 1px 1px $lblue*0.5);
      @include border-radius(20px);
    }
  }
}

ul .divider, ul.dropdown .divider {
	background:#222!important;
}

/* Footer */
footer {
  border-top: 1px solid #ddd;
}

#backend-logo {
  // float: left;
  padding-left: 0 !important;
  margin-left: 0 !important;
  h1 {
    //font-size: 20px;
    //margin-top: 27px;
    //a, a:visited {color: #666;}
  }
  img {
    width: auto;
    max-height: 30px;
    max-width: 150px;
  }
}

#footer-logo {
  // float: left;
  padding-left: 0 !important;
  margin-left: 0 !important;
  h1 {
    //font-size: 20px;
    //margin-top: 27px;
    //a, a:visited {color: #666;}
  }
  img {
    //margin-top: 17px;
    margin: 0;
    width: auto;
    max-height: 50px;
    max-width: 250px;
  }
}

.top-bar ul li a:not(.button) {
  font-size: 18px;
  height: 46px;
}

.top-bar ul li ul li a:not(.button) {
  font-size: 14px;
  padding-top: 2px;
  padding-bottom: 1px;
}

.top-bar {

    ul {
      height: auto;
    }

    .has-dropdown {
        .dropdown {
            padding: 0px 0 0 0!important;

            .pancake-navigation-label-container {
              &:hover {
                background: $pcNavBg!important;
              }
            }
            .pancake-navigation-label {
                font-size: 1.5em!important;
                padding-top: 0px;
                padding-bottom: 1px;
                white-space: nowrap;
                cursor: auto;
                color: $pcNavLegend;
                border-bottom: 1px solid $pcNavLegend;
                background: $pcNavBg!important;   // Dropdown color
            }


        }
    }
}


.content-wrapper {
  background: #fff;
  border: 1px solid lighten($pcGrey, 40);
  padding-bottom: 2em;
  @include border-radius(10px);
}

.check-open:before {
  content: "\f096";
}

.complete-check:hover .check-open:before {
  content: "\f046";
  color:#ff9900;
}

.checked .check-open:before {
  content: "\f046";
  color:$pcGreen;
}

footer {
    a {
        color: inherit;
    }

    .pancake-version {
        float: right;
    }

    .latest-blog-post {
        float: right;
        margin-right: 10px;
        font-style: normal;
        margin-top: 12px;

        strong {
            display: block;
            margin-bottom: -34px;
        }

    }
}

.inputs-without-margin {
    input {
        margin: 0 !important;
    }
}

.vertically-aligned-tds {
    td, th {
        vertical-align: middle;
    }
}

.top-bar .right li {
    border-right: 0;
}

.iframe {
  .contain-to-grid, #header, footer, #invoice-type-block, .gateway-items {
    display: none;
  }
}
