/**
 *
 * Copyright (c) 2019, Gold Prairie LLC. All rights reserved.
 *
 * Project:  GMS
 * Author:   Benjamin Mack
 *
 */


/**
 *
 * - default layout scheme (header, main etc.)
 * - dynamic content (2 column content etc.)
 *
 */

@import url('base.css');

/* -- from Tachyons CSS -- */

/* https://cdnjs.cloudflare.com/ajax/libs/tachyons/4.6.1/tachyons.css */

.tl { text-align: left; }
.tr { text-align: right; }
.tc { text-align: center; }

.br--bottom { border-top-left-radius: 0; border-top-right-radius: 0; }
.br--top { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.br--right { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.br--left { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.center { margin-right: auto; margin-left: auto; }

.flex { display: -webkit-box; display: -ms-flexbox; display: flex; }
.flex-auto { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; /* 1 */ min-height: 0; /* 1 */ }
.flex-none { -webkit-box-flex: 0; -ms-flex: none; flex: none; }
.flex-column { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
.flex-row { -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; }
.items-start { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
.items-end { -webkit-box-align: end; -ms-flex-align: end; align-items: flex-end; }
.items-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
.justify-start { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; }
.justify-end { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }
.justify-center { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }

/* -- end from Tachyons CSS -- */

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.grey {
  color: #777777;
}

.red {
  color: #ff3333;
  padding: 0 5px;
}

.small {
  font-size: 11px;
}

input.grey,
input.grey:hover,
input.grey:focus {
  border: 1px solid rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.3);
  cursor: not-allowed;
}

div#page {
  max-width: 1440px;
  min-width: 840px;
  margin: 0 auto;
}

div#message {
  border: #a0a0a0 solid 2px;
  line-height: 1.5rem;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  width: 500px;
}

div#header-bg {
  position: absolute;
  top: 0;
  left: -1000px;
  right: -1000px;
  z-index: -1;
  height: 116px;
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,0.075);
}

div#header {
  height: 83px;
  padding: 0 2rem;
}

.page-not-logged-in div#header-bg {
  height: 83px;
}

.page-not-logged-in div#header {
  margin-bottom: 4rem;
}

div#footer {
  margin: 1rem 0;
}

div#logo {
  padding: 16px 0;
  width: 140px;
  float: left;
  text-align: left;
  font-size: 11px;
}

div#logo a,
div#logo a:hover {
  color: #000;
  text-decoration: none;
}

div#headeritems {
  padding: 20px 0 0 0;
  width: 220px;
  float: right;
  text-align: right;
  font-size: 11px;
}

div#headeritems input {
  width: 180px;
  font-size: 11px;
  margin-top: 4px;
  padding: 5px 6px;
  height: 24px;
  background: #fff;
}

div#main {
  margin: 0 2rem;
  padding: 0 0 8rem;
}

div#clientinfo,
div#productinfo {
  margin: 2rem 0;
  float: left;
  width: 100%;
}

div#clientinfo h1,
div#productinfo h1 {
  margin-top: 0;
}

div#content {
  clear: both;
  text-align: left;
}

div#details {
  font-size: 14px;
  line-height: 1.5;
}

div.paging {
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

div.paging .previous {
  margin-right: 1rem;
}

div.paging .next {
  margin-left: 1rem;
}

div.paging .disabled {
  opacity: 0.3;
  pointer-events: none;
}

div.paging .page-of-total {
  margin: 0 1rem;
}


/**
  * dynamic content (2 column content etc.)
 **/

.cols2,
.cols3,
.cols4 {
  width: 100%;
  float: left;
  overflow: hidden;
  /* clears locally */
}

.cols4_1,
.cols4_2,
.cols4_3,
.cols3_1,
.cols3_2,
.cols2_1 {
  margin-right: 1%;
  float: left;
}

.cols4_1 {
  width: 24%;
}

.cols4_2 {
  width: 49%;
}

.cols4_3 {
  width: 72%;
}

.cols3_2 {
  width: 65%;
}

.cols3_1 {
  width: 32%;
}

.cols2_1 {
  width: 48.5%;
}


/**
  * tables
 **/

table {
  width: 100%;
  border-collapse: collapse;
  empty-cells: show;
  text-align: left;
  padding: 0;
}

tbody {
  width: 100%;
  display: table-row-group;
  border: 0;
  border-collapse: collapse;
}

tr {
  background: #fff;
}

th {
  background: #f5f5f5;
  border-top: 3px solid #3361a6;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-weight: 600;
  line-height: 24px;
  text-align: left;
}

th,
td {
  font-size: 14px;
  height: 32px;
  padding: 3px 6px;
}

table input[type=checkbox] {
  height: 28px;
}

table tr:hover td {
  background: #f5f5f5;
}

tr.filterrow {
  /*background: #f5f5f5;*/
  padding: 2px 0;
}

tr.filterrow td {
  text-align: left;
}

tr.filterrow td input {
  width: 60%;
  min-width: 100px;
}

tr.filterrow td input,
tr.filterrow td select {
  padding: 4px 6px;
  height: 28px;
}

table.searchresults {
  width: auto;
  margin: 0 auto;
}

table.searchresults tr:hover td {
  background: none;
}

table.searchresults tr td {
  text-align: left;
}

table#tableBuilder {
  font-size: 13px;
}


/**
  * content
 **/

.helpSection h1,
.helpSection h2,
.helpSection h3,
.helpSection h4 {
  line-height: 1.4;
}

.helpSection h2 {
  margin-top: 2em;
  border-bottom: 1px solid #ddd;
}

.helpSection h3 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1.5rem;
  color: #aaa;
}

.helpSection ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.helpSection ol ol {
  padding-left: 20px;
}

.helpSection ol li {
  padding: 4px 0;
  margin: 0;
}

.helpSection ul li {
  padding: 4px 0;
}

div.fieldset {
  text-align: left;
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

div.fieldset div.field-row {
  list-style: none;
  clear: both;
  margin: 0;
  padding: 5px 20px;
}

div.fieldset div.submit {
  margin-top: 1rem;
  text-align: center;
}

div.fieldset label {
  padding: 8px 12px;
  margin: 2px 0;
  width: 220px;
  font-size: 14px;
  float: left;
}

.input-static {
  display: inline-block;
  padding: 8px 0;
  height: 34px;
  margin: 2px 0;
  font-size: 14px;
  font-family: Arial, Verdana, Helvetica, sans-serif;
  transition: all 0.2s ease;
}

.buttonsmallselect,
.buttonselect,
.buttonsmall,
.button {
  color: #fff;
  background-color: #3361a6;
  border: 1px solid #3361a6;
  padding: 8px 20px;
  cursor: pointer;
}

.buttonsmallselect:hover,
.buttonselect:hover,
.buttonsmall:hover,
.button:hover {
  background-color: #396ebc;
  border-color: #396ebc;
  text-decoration: none;
}

.buttonsmallselect:focus,
.buttonselect:focus,
.buttonsmall:focus,
.button:focus {
  outline: none;
}

.buttonsmallselect,
.buttonsmall {
  padding: 3px 6px;
}

a.buttonsmallselect,
a.buttonselect,
a.buttonsmall,
a.button {
  border: 1px solid #3361a6;
  border-radius: 4px;
  color: #fff;
}

span.buttonsmallselect,
span.buttonselect,
span.buttonsmall,
span.button {
  border-radius: 4px;
}

dl {
  display: table;
}

.tr {
  display: table-row;
}

dt,
dd {
  font-weight: normal;
  padding: 3px 6px;
  display: table-cell;
}

.form-narrow {
  min-width: 250px;
  max-width: 350px;
}

.form-wide {
  min-width: 450px;
  max-width: 700px;
  margin: 0 auto;
}

.form-wide h3 {
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.form-wide label {
  text-align: right;
}

.form-wide input,
.form-wide textarea,
.form-wide select {
  width: 300px;
}

.form-activation {
  padding: 1.5rem 0;
  background: #f5f5f5;
  box-shadow: 0 8px 14px -8px rgba(0,0,0,0.4);
}

.form-activation h3 {
  margin-top: 0;
  text-align: center;
}

.form-activation input {
  width: 100%;
}

.login,
.emailEdit,
.referrerMechanismEdit,
.licenseAdd,
.licenseEdit,
.clientEdit,
.clientAdd,
.userAdd,
.userEdit,
.productImageEdit,
.productDownloadAdd,
.productVersionAdd,
.productAdd,
.productEdit,
.productPriceEdit,
.productVersionEdit,
.productDownloadEdit,
.couponAdd {
  width: 50%;
  min-width: 450px;
  margin: 0 auto;
}

.licenseAdd,
.licenseEdit,
.productImageEdit,
.productVersionAdd,
.productDownloadAdd,
.productDownloadEdit,
.productAdd,
.productEdit,
.productPriceEdit,
.paymentInfo {
  width: 500px;
}

.emailEdit div.fieldset label {
  width: 100px;
}

.emailEdit,
.couponAdd {
  width: 650px;
}

.referrerMechanismEdit {
  width: 300px;
}

.productEdit div.fieldset label,
.couponAdd div.fieldset label {
  text-align: right;
}

.licenseAdd div.fieldset label,
.licenseEdit div.fieldset label {
  text-align: right;
}

.couponAdd input,
.couponAdd textarea {
  width: 200px;
}

.referrerMechanismEdit input[type=text] {
  width: 70px;
}

.editLink {
  font-weight: bold;
}
