body {
  background: #F44336;
  height: 100%; margin: 0; padding: 0;
}
html { height: 100%; font-family: "Roboto", sans-serif; color:rgba(0,0,0,0.87); line-height: 1.5;
  -webkit-text-size-adjust: 100%; font-size: 14px;
}
* { box-sizing: border-box; }
h1, h2, h3, h4, h5 {
  margin: 0; padding: 0;
}

h3 {
  text-transform: uppercase;
  color:rgba(0,0,0,.87);
  font-weight: 700;
}

ul {
  margin: 0; padding: 0;
}

/* TEXT FIELDS */
div.textfield {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 30px;
}

div.textfield.nomargin {
  margin-top: 0px;
}


div.padding {
  padding: 10px;
  padding-top: 15px;
}

div.textfield > input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border:none;
  border-bottom: 1px solid #8A8A8A;
  padding-bottom: 6px;
  background: transparent;
  font-size: 16px;
  outline: none;
  border-radius: none;
  box-shadow: none;
  margin-bottom: 1px;
}

div.textfield > input:focus ~ label, div.textfield > input:not(:placeholder-shown) ~ label {
  color:#2979FF;
  font-size: 0.85em;
  top:-17px;
}

div.textfield > input:invalid {
  border-bottom: 2px solid #F44336;
  margin-bottom: 0px;
}

div.textfield > input:invalid ~ label {
  color:#F44336;
}

div.textfield > input:not(:placeholder-shown):valid, div.textfield > input:focus:not(:invalid) {
  border-bottom: 2px solid #2979FF;
  margin-bottom: 0px;
}

div.textfield.red > input:not(:placeholder-shown):valid, div.textfield.red > input:focus:not(:invalid) {
  border-bottom: 2px solid #f22121;
  margin-bottom: 0px;
}

div.textfield.red > input:focus ~ label, div.textfield.red > input:not(:placeholder-shown) ~ label {
  color:#f22121;
}

div.textfield.orange > input:not(:placeholder-shown):valid, div.textfield.orange > input:focus:not(:invalid) {
  border-bottom: 2px solid #FF9900;
  margin-bottom: 0px;
}

div.textfield.orange > input:focus ~ label, div.textfield.orange > input:not(:placeholder-shown) ~ label {
  color:#FF9900;
}

div.textfield > label {
  top:0px;
  position: absolute;
  pointer-events:none;
  font-size: 16px;
  transition: .2s ease-out;
}

div.textfield > span {
  color:#757575;
  font-size: 0.95em;
  margin-top: 3px;
}
div.textfield > span.error {
  color:#F44336;
}

div.textfield.error > label, div.textfield.error input  {
  color:#F44336 !important;
}
div.textfield.error input  { border-bottom-color:#F44336 !important; }

/* SELECT FIELD */
div.selectefield {
  display: flex;
  flex-direction: column;
}

div.selectefield > span {
  font-weight: bold;
  text-transform: uppercase;
}

div.selectefield > select {
  margin-top: 5px;
}

select {
  padding: 5px 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border:none;
  background: #fff;
  border: 1px solid #999;
  position: relative;
  background: url(../img/arrow.png) 0 0 no-repeat;
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: right center;
}


/* DOT */
.rounded-dot {
  width: 10px;
  height: 10px;
  border-radius: 30px;
  margin-right: 8px;
}

.rounded-dot.green {
  background: green;
}

.rounded-dot.red {
  background: red;
}

.rounded-dot.grey {
  background: grey;
}

/* BUTTON */
.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border:none;
  font-size: 13pt;
  text-transform: uppercase;
  font-family: 'Roboto';
  border-radius: 2px;
  height: 36px;
  padding: 0px 16px;
  -moz-box-shadow: 0px 1px 3px 0px #888;
  -webkit-box-shadow: 0px 1px 3px 0px #888;
  -o-box-shadow: 0px 1px 3px 0px #888;
  box-shadow: 0px 1px 3px 0px #888;
  cursor: pointer;
  outline: none !important;
  position: relative;
  overflow: hidden;
}

.btn::-moz-focus-inner {
  border: 0;
}



.btn:active {
  outline: none !important;
}

.btn.blue { background: #2196F3; color:#fff; }
.btn.blue:hover { background: #1976D2; }

.btn.red { background: #f22121; color:#fff; }
.btn.red:hover { background: #d11919; }

.btn.orange { background: #FF9A00; color:#fff; }
.btn.orange:hover { background: #FF9A00; }


.btn:disabled {
  background: #595959 !important;
}

.ripple-waves {
  position: absolute;
  width: 0px;
  height: 0px;
  background: rgba(255,255,255,0.3);
  top:0;
  left:0;
  border-radius: 500px;
  animation: ripplewaves 0.8s linear;
  pointer-events: none;
}
a.btn {
  text-decoration: none;
  padding: 5px 10px;
  overflow: hidden;
}

@-webkit-keyframes ripplewaves {
  0% {
    width: 20px;
    height: 20px;
    margin-left:-10px;
    margin-top:-10px;
  }
  70% {
    height: 210px;
    width: 210px;
    margin-left:-105px;
    margin-top:-105px;
  }
  95% {
    opacity: 0;
  }
  100% {
    height: 250px;
    width: 250px;
    margin-top:-125px;
    margin-left:-125px;
    opacity: 0;
  }
}

/* SEARCH */
ul.search_criteria {
  display: flex;
}

ul.search_criteria > li {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-right: 20px;
  padding: 10px;
  padding-top: 0px;
  min-width: 250px;
}

ul.search_criteria > li select {
  width: 100%;
}

ul.search_criteria > li span {
  font-weight: bold;
}

/* NOTIFICATIONS */
.notification {
  position: absolute;
  top:5%; right: 5%;
  background: rgba(0,0,0,0.7);
  padding: 10px 25px;
  border-radius: 3px;
  color:#fff;
  text-shadow: 0px 0px 1px #000;
  font-size: 16px;
  cursor: pointer;
}

/* LOADER */
.progress {
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: #bbb;
  overflow: hidden;
  position: relative;
}

.progress > .indeterminate {
  height: 4px;
  -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
  animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
  position: absolute;
  border-radius: 3px;
}

@-webkit-keyframes indeterminate {
  0% {
    left: -35%;
    right: 100%;
  }
  60% {
    left: 100%;
    right: -90%;
  }
  100% {
    left: 100%;
    right: -90%;
  }
}

.loading * {
  display: none;
}

.loading-content {
  display: none;
}

.loading .loading-content, .loading .loading-content * {
  display: flex;
}

/* COLOR */
.indeterminate.blue {
  background: #2196F3;
}

.indeterminate.red {
  background: #f22121;
}

.indeterminate.orange {
  background: #FF9900;
}

/* SIGN IN SCREEN */
body.sign-in {
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('http://steelcoders.com/alpha/v1.2/assets/images/mountains2.jpg');
  background-size: cover;
}
body.sign-in > form {
  width: 350px;
  height: 480px;
  background: #fff;
  box-shadow: 0 8px 10px 1px rgba(0,0,0,0.14),0 3px 14px 2px rgba(0,0,0,0.12),0 5px 5px -3px rgba(0,0,0,0.3);
  border-radius: 2px;
  transition: box-shadow .25s;
  display: flex;
  flex-direction: column;
  padding: 15px 30px;
  transition: height 0.5s ease;
}

body.sign-in > form > header {
  padding: 10px 0px;
}

body.sign-in > form div.img-rounded {
  min-width: 100%; min-height: 100px;
  width: 100%; height: 100px;
  background-repeat: no-repeat;
  background-size: auto 80px;
  background-position: center;
  margin: 0 auto;
}

body.sign-in > form > header > h3 {
  text-align: center;
  margin: 15px 0px;
}

body.sign-in > form > div.signin-action {
  padding: 30px 0px;
  display: flex;
  justify-content: center;
}

body.sign-in > form.loading {
  height: 224px;
  width: 500px;
}

body.sign-in > form.loading .loading-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.sign-in > form.loading h2 {
  margin: 20px 0px;
}

/* MAIL BOX */
body.dashboard {
  background: #fff;
  padding-top:60px;
  padding-left: 250px;
}

nav.top-nav {
  position: fixed;
  width: 100%;
  height: 60px;
  background: #FF9900;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  z-index: 999;
  top:0;
  left:0;
}

nav.top-nav > section.nav-title > h2 {
  color:#fff;
  text-shadow: 1px 1px 1px #888;
}

nav.top-nav > form.nav-search {
  min-width: 40%;
  background: rgba(255,255,255,0.32);
  border-radius: 2px;
  padding: 0px 14px;
  padding-right: 0px;
  display: flex;
  align-items: center;
}

nav.top-nav > form.nav-search > i {
  color:#fff;
}

nav.top-nav > form.nav-search > input[type="text"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border:none;
  background: transparent;
  padding: 12px;
  font-size: 1.1em;
  color:#fff;
  font-family: "Roboto", serif;
  flex:1;
  min-width: 50px;
  outline: none;
}

nav.top-nav > form.nav-search > input[type="text"]::-webkit-input-placeholder  {
  color:rgba(255,255,255,0.7);
}

/* SIDE NAV */
nav.side-nav {
  position: fixed;
  top:60px;
  bottom: 0;
  left:0;
  width: 250px;
  background: #fff;
  -moz-box-shadow: 0px 0px 4px 0px #999;
  -webkit-box-shadow: 0px 0px 4px 0px #999;
  -o-box-shadow: 0px 0px 4px 0px #999;
  box-shadow: 0px 0px 4px 0px #999;
  display: flex;
  flex-direction: column;
  z-index: 9;
  padding: 15px 0px;
}

nav.side-nav > span {
  margin: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: bold;
}

nav.side-nav > ul {
  margin-bottom: 10px;
}

nav.side-nav > ul > li {
  list-style: none;
  padding: 7px 10px;
}

nav.side-nav > ul > li:hover {
  background: #ececec;
  cursor: pointer;
}

/* FACTURE LIGNE VIDES */
div.empty_line {
  display: flex;
}

div.empty_line:nth-child(2n+1){
  background: #e0e0e0;
}

div.empty_line > div {
  margin-left: 20px;
}

div.empty_line > div:first-child {
  margin-left: 0px;
  flex:1;
}

/* PAGE CONTENT */
section.page-content {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  padding-bottom: 20px;
}

section.page-content div.loading-page {
  width: 400px;
  position: absolute;
  top:50%;
  left:calc(50% - 200px);
}

section.page-content h1 {
  margin: 10px;
  padding-bottom: 8px;
  width: 100%;
  border-bottom: 1px solid #FFBA52;
}

section.page-content h2 {
  margin: 10px;
  width: 100%;
}

section.page-content > table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: scroll;
}

section.page-content > table td {
  border:1px solid #aaa;
  padding: 4px 8px;
}

section.page-content > table tbody tr:hover {
  cursor: pointer;
  background: #e9e9e9 !important;
}

section.page-content > table td:first-child { border-left: none; }
section.page-content > table td:last-child { border-right: none;
}

section.page-content > table td a {
  text-decoration: underline;
  color:#3e79d8;
  cursor: pointer;
}

section.page-content > table td div {
  display: flex;
  align-items: center;
}

section.page-content > table thead tr {
  background: #e5e5e5;
  text-transform: uppercase;
  font-weight: bold;
}

section.page-content > table tbody tr:nth-child(2n+1){
  background: #f2f2f2;
}

section.page-content > table tbody tr:nth-child(2n+1):hover {
  background:#e9e9e9;
}

section.page-content section.bloc-infos {
  display: flex;
  padding: 0px 10px;
  margin-top: 10px;
}

section.page-content section.bloc-infos > section {
  flex:1;
  background: #ddd;
  margin-right: 10px;
  padding: 10px;
}

section.page-content section.bloc-infos > section:last-child {
  margin-right: 0px;
}

section.page-content section.bloc-infos > section h2 {
  text-transform: uppercase;
  font-size: 1.2em;
}

section.page-content section.bloc-infos > section ul li {
  list-style: none;
  padding: 5px 0px;
  display: flex;
  align-items: center;
}

section.page-content section.bloc-infos > section ul li  div {
  display: flex;
  align-items: center;
}

section.page-content section.bloc-infos > section div.action_button {
  display: flex;
  justify-content: flex-end;
}

section.page-content section.bloc-infos > section ul li > span {
  font-weight: bold;
}

/* ACTION BUTTON */
div.action_form {
  display: flex;
  justify-content: center;
  padding: 20px 0px;
  width: 100%;
}

div.action_form a {
  margin-left: 15px;
}

div.action_form a:first-child { margin-left: 0px; }
