@import url(../../../stylesheets/application.css);

@import 'themeheader';
@import 'variables';
@import 'compass/css3';
@import 'mixins';

//@import 'ja';

body {
  color: $text-color;
  background-color: $background-color;
}

body, input, select, textarea, button {
  font: $base-font;
  line-height: 1.4;
}

tt, code, pre {
  font-family: Consolas, "Liberation Mono", Courier, monospace;
  font-size: 12px;
}

#content h1, h2, h3, h4 {
  color: $text-color;
}

#header {
  background: $background-color;
  padding: 4px 8px 10px 6px;
  height: auto;
  a {
    color: $link-color;
  }
  > h1 {
    background: url(../images/logo.png) no-repeat 10px 5px;
    padding: 5px 45px;
    color: #393939;
  }
}

#main {
  background: transparent;
  margin: 15px 15px 0px 15px;
  background-color: $background-color;
}

#top-menu {
  font: $base-font;
  padding: 10px 10px 2px 20px;
  background-color: #f3f3f3;
  background-image: linear-gradient(#f9f9f9, #f3f3f3);
  background-repeat: repeat-x;
  text-shadow: 0 1px 0 #fff;
  border-bottom: 1px solid #e5e5e5;

  #loggedas {
    color: #222;
  }
  a {
    color: $text-color;
    font-weight: bold;
    padding: 5px;
    margin-right: 0px;
    transition: color .15s ease-in 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);

    &:hover {
      color: $link-color;
      text-decoration: none;
    }
  }
}

div {
  &.flash {
    border: 1px solid;
    text-shadow: 0 1px white;
  }
  &#content > div.flash {
    &:first-child {
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
    border: 0px solid;
    padding: 10px 35px 10px;
    margin: -6px -10px 6px -10px;
    background-position-x: 12px !important;
    background-position-y: 9px !important;
    position: relative;
    border-bottom: 1px solid #AECCD7;
  }
}

#errorExplanation,
div.flash,
.nodata,
.warning,
.conflict {
  padding: 8px 35px 8px 30px;
  margin-bottom: 20px;
  font-size: 1.1em;
  border: 1px solid;
  border-radius: 4px;
}

#errorExplanation,
.nodata,
.warning {
  background-color: #fcf8e3;
  border: 1px solid #fbeed5;
  color: #c09853;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

div {
  &.filters h2 .scope_title a {
    color: #444;
  }
  &#content {
    margin-right: 300px;
    width: auto;
  }
  &#main.nosidebar div#content {
    margin-right: 0px;
  }
}

#sidebar {
  width: 260px !important;
  padding: 0px 10px 20px 15px !important;
  background: whiteSmoke;
  border: 1px solid #ddd;

  zoom: 1;
  border-radius: 4px;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
}

div#content {
  > h2, h2.contacts_header {
    border-bottom: 1px solid #d8e6ec;
    background: #E6F1F6;
    text-shadow: 0px 1px white;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    padding: 8px 20px;
    margin: -6px -10px 10px;
  }
  > {
    div.filters h2, #add-news > h2, #add-message > h2, #add-document > h2 {
      border-bottom: 1px solid #C5D5DD;
      background: #E6F1F6;
      text-shadow: 0px 1px white;
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
      padding: 8px 20px;
      margin: -6px -10px 10px;
    }
  }
}

.controller-boards.action-index #add-message {
  position: static;
  #message-form > p {
    position: relative;
    padding: 10px;
    background-color: white;
    margin: -10px;
    border-bottom: 1px solid #AECCD7;
  }
}

// .controller-documents.action-index div#content  h2,
.controller-timelog.action-index div#content h2, .controller-time_entry_reports.action-report div#content h2, .controller-boards.action-show div#content h2, .controller-messages.action-show div#content h2, .controller-boards.action-show div#content div#add-message h2 {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 1px solid #AECCD7;
  /*padding: 9px 20px 12px;*/
  margin: -2px -10px 10px;
}

.controller-timelog.action-index div#content .contextual, .controller-time_entry_reports.action-report div#content .contextual {
  margin-top: 50px;
}

#add-news, #add-message, #add-document {
  margin-bottom: 20px;
}

div#content h2.contacts_header {
  padding-bottom: 10px;
  /* white-space: nowrap;*/
}

p.breadcrumb {
  margin: 4px 0 14px 0;
}

div#content > div.contextual {
  margin-top: 10px;
  margin-right: 10px;
}

#roadmap {
  margin: 10px;
}

p.subtitle {
  margin: 0px 0 12px 0;
}

.contextual a {
  color: #888;
  &:link, &:visited {
    color: #888;
  }
  &:hover, &:visited:hover {
    color: #333;
  }
}

div.filters h2 .scope_title a {
  color: #222;
  text-decoration: none;
}

#header {
  padding-top: 10px;
  padding-left: 10px;
  background-position-y: 11%;
}

div#welcome-store-content {
  h1, h2, h3, h4 {
    color: #222;
  }
}

#content, #main.nosidebar #content {
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

a {
  color: $link-color;

  &:link,
  &:visited {
    color: $link-color;
  }
}

div {
  &.issue {
    background: #FFD;
    padding: 20px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    margin: -11px -11px 15px -11px;
    &.tooltip {
      padding: 6px;
      margin: 0 0 6px 0;
    }
  }
  &.contact.details, &.deal.details {
    padding: 15px !important;
    margin: -11px -11px 6px;
  }
}

#sidebar h3 {
  color: #222;
}

#footer {
  background-color: #F8F8F8;
  border: 0px;
  border-top: 1px solid #E0E0E0;
  color: #636363;
  margin-top: 45px;
  padding: 15px;

  .bgl {
    .bgr {
      &:after {
        content: " and gitmike theme";
      }
    }
  }
}

// Headers

h2, h3, h4 {
  border-bottom: 0px;
}

.wiki {
  h1, h2, h3 {
    border-bottom: 0px;
  }
  &.wiki-page {
    h1 {
      border-bottom: 1px solid #ccc;
    }
    > h2 {
      border-bottom: 1px solid #ccc;
      padding-bottom: 6px;
    }
  }
}

// Menu

#main-menu {
  left: 0px;
  width: 100%;
  // height: 40px;
  // overflow: hidden;
  background: #FAFAFA;
  background: linear-gradient(to bottom, #fafafa, #eaeaea);
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafa',endColorstr='#eaeaea')";
  border: 1px solid #EAEAEA;
  border-bottom-color: #CACACA;
  border-radius: 3px;

  margin-right: 0;
  position: relative;

  ul {

    @include clearfix();

    margin-top: 0;
    padding-left: 0;
    background-color: transparent !important;


    li {
      margin: 0;
      padding: 0;

      a {
        background-color: transparent !important;
        display: block;
        float: left;
        padding: 10px 12px;
        color: #333;
        text-shadow: 0 1px 0 #fff;
        font-weight: bold;
        text-decoration: none;
        border-bottom: 2px solid #DADADA;
        height: 20px;
        line-height: 20px;

        &.selected {
          color: #000;
          border-bottom: 2px solid #D26911 !important;
          background-color: #ebebeb;
          background-image: linear-gradient(#fcfcfc, #ebebeb);
          background-repeat: repeat-x;
          &:hover {
            color: #000;
          }
        }
        &:hover {
          color: $link-color;
          border-bottom: 2px solid #CFDCE8;
          background-color: #dce6ef;
          background-image: linear-gradient(#fafbfd, #dce6ef);
          background-repeat: repeat-x;
          text-decoration: underline;
        }
      }
    }
  }
}

@import 'tables';
@import 'forms';


// Misc

.box {
  background-color: #fcfcfc;
  border-radius: 8px;
  padding: 16px;
}

img.gravatar {
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
}

@import 'wiki';
@import 'projects';

div.journal .details {
  padding-left: 30px;
}

#context-menu {
  box-shadow: 0 0 3px #CCC;
  ul li ul {
    box-shadow: 0 0 3px #CCC;
  }
  li:hover {
    border: 1px solid #eee !important;
    background-color: #eee;
  }
  ul {
    border-top: 1px solid #DDD;
    border-left: 1px solid #DDD;
    border-bottom: 1px solid #DDD !important;
    border-right: 1px solid #DDD !important;
  }
}

div.tooltip:hover span.tip {
  border: 1px solid #D9D9D9;
  zoom: 1;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.05);
}

table.progress td {
  &.closed {
    background: #AECCD7 none repeat scroll 0%;
  }
  &.done {
    background: #EAF2F5 none repeat scroll 0%;
  }
}

#history div.journal {
  border-top: 1px solid #DDD;
}

/* Modal form*/

div.modal {
  h3.title {
    background: transparent;
    color: inherit;
  }
  border-radius: 8px;
  border: 1px solid #CCC;
  padding: 30px 42px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#modalbg {
  background: white;
  opacity: 0.75;
}

@import 'login';

// Contacts

div.filters .live_search {
  margin-left: 11px !important;
}

input.live_search_field {
  border-radius: 12px;
  box-shadow: inset 0px 1px 4px rgba(0, 0, 0, 0.15);
  outline: none;
  padding: 3px 10px !important;
  border: 1px solid #C3C3C3;
}

.live_search input.live_search_field {
  font-size: 12px !important;
}

label#search_overlabel {
  font-size: 12px !important;
  padding-left: 12px !important;
  margin-top: -3px !important;
  padding-right: 28px;
  top: 11px !important;
}

table.contacts.index tbody tr {
  &:hover {
    background-color: #EFF5F8 !important;
  }
  &.context-menu-selection:hover {
    background-color: #507AAA !important;
  }
}

h2 span.tag {
  letter-spacing: 0px;
  top: -4px;
  position: relative;
  a {
    margin-bottom: -1px;
  }
}

div.filters .live_search {
  letter-spacing: 0px;
}

label#search_overlabel {
  margin-top: -4px;
}

.live_search input.live_search_field {
  margin-top: -6px;
}

span {
  &.tag a, &.deal-status {
    color: white;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.25);
    font-size: 9px !important;
    line-height: 1 !important;
    margin: 2px 0px 2px 0px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    position: relative;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 4px 6px 4px !important;
    background: black url(../images/dark-overlay.png) repeat-x scroll 0 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 hsla(0, 100%, 100%, 0.3);
  }
  &.tag a:hover {
    text-shadow: none;
  }
  &.deal-status a:hover {
    color: black;
    text-shadow: none;
  }
}

body {
  &.controller-contacts #content, &.controller-notes #content, &.controller-contacts_tasks #content, &.controller-contacts_duplicates #content, &.controller-sale_funel #content, &.controller-deals #content {
    margin-right: 340px;
  }
  &.controller-contacts #sidebar, &.controller-notes #sidebar, &.controller-contacts_tasks #sidebar, &.controller-contacts_duplicates #sidebar, &.controller-sale_funel #sidebar, &.controller-deals #sidebar {
    width: 300px !important;
  }
}

// Invoices

table.invoice-lines {
  tbody tr.line-data:hover {
    background-color: #EFF5F8 !important;
  }
  th {
    border: 0px !important;
  }
}

span.invoice-status {
  &.draft {
    background-color: #AAA !important;
  }
  &.sent {
    background-color: #3F8AF7 !important;
  }
  &.paid {
    background-color: green !important;
  }
}

@import 'settings';
@import 'plugins';
@import 'store';

