/* ======= ======= ========= ======= ======= */
/* ======= ======= STRUCTURE ======= ======= */
/* ======= ======= ========= ======= ======= */
html,
body {
  display: table;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;

  font-size: 14px;
  font-family: sans-serif
}

body {
  background-image: url('/images/blue_geometric.jpg');
  color: rgba(51, 51, 51, 1);
}

* {
  box-sizing: border-box;
}

* {
  transition: color 0.25s linear,
    background-color 0.25s linear,
    background-image 0.25s linear;
}

header {
  display: table-row;
  width: 100%;
}

footer {
  display: table-row;
  width: 100%;
  height: 1px;
}

#main {
  display: table-row;
  height: 100%;
}

.container {
  max-width: 1300px;
  min-width: 320px;

  margin-left: auto;
  margin-right: auto;
  position: relative;
  text-align: center;

  padding: 0;
}

.container.wide {
  max-width: 1900px;
}

.container > * {
  text-align: left;
}

.container > .content {
  padding: 5px;
}

/* ======= ======= ============= ======= ======= */
/* ======= ======= TAG OVERRIDES ======= ======= */
/* ======= ======= ============= ======= ======= */
.clear {
  clear: both;
}

p {
  line-height: 150%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 5px 0px 5px 0px;
  padding: 0px;
  font-weight: bold;
}

h1 {
  font-size: 220%;
}

h2 {
  font-size: 150%;
}

h3 {
  font-size: 120%;
}

a:link,
a:visited {
  color: #2D6178;
  text-decoration: none;
}

a:hover,
.header a:hover,
.footer a:hover {
  color: #BF5A42;
  text-decoration: none;
}

a.btn {
  color: #FFFFFF;
}

a img {
  border: none;
}

ul {
  padding: 0;
  margin: 0;
  line-height: 1.5em;
  list-style: none;
}

label {
 user-select: none; 
}

::selection {
  color: #FFEAE6;
  background: #BF5A42; /* WebKit/Blink Browsers */
}

ul {
  list-style-position: inside;
  padding: 0;
  margin: 0;
}


/* ======= ======= ====== ======= ======= */
/* ======= ======= HEADER ======= ======= */
/* ======= ======= ====== ======= ======= */
.header {
  position: fixed;
  z-index: 5;
  min-height: 50px;
  max-height: 100px;

  background-color: rgba(255, 255, 255, 1);
  box-shadow: rgba(0, 0, 0, 0.2) 1px 2px 4px 1px;
}


.logo {
  display: inline-block;
  max-width: 600px;
  height: auto;
}

.logo img {
  width: 100%;
  height: auto;
}

#menu-button {
  background-image: url('/images/menu.png');
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  width: 200px;
  height: 40px;
}

.header nav {
  float: right;
  width: 200px;
  margin: 0px 8px 0px 8px;
  padding: 5px 10px 5px 10px;
  text-align: center;
}

.header nav ul {
  background-color: #1048A7;
  width: 200px;
}

.header nav ul a {
  display: block;
  color: #FFFFFF !important;
  padding: 10px;
}

.header nav ul a:hover {
  background-color: #FFFFFF;
  color: #1048A7 !important;
}



/* ======= ======= ==== ======= ======= */
/* ======= ======= PAGE ======= ======= */
/* ======= ======= ==== ======= ======= */
.page .container {
  padding-top: 120px;
}


/* ======= ======= ======= ======= ======= */
/* ======= ======= FOOOTER ======= ======= */
/* ======= ======= ======= ======= ======= */
.footer {
  background-color: rgba(40, 40, 40, 0.5);
  color: #EEEEEE;
}

.footer .content {
  margin: 20px 0 20px 0;
}

.footer a {
  color: #FFFFFF;
  font-weight: bold;
}

.footer .sitemap {
  list-style: none;
  padding: 10px;
}

.social li {
  display: inline-block;
}

.footer .container > * {
  padding: 0.5em 2em 0.5em 2em;
}


/* ======= ======= ======= ======= ======= */
/* ======= ======= BUTTONS ======= ======= */
/* ======= ======= ======= ======= ======= */
button {
  border: none !important;
}

.btn {
  display: inline-block;
  text-align: center;
  min-width: 115px;
  background-color: #999999;
  color: #FFFFFF;
  padding: 10px;
  margin: 5px;
  text-decoration: none;
  border-radius: 3px;
  /* WTF Linux Chrome is pulling font-size and font-family from OS appearance settings */
  font-size: inherit;
  font-family: inherit;
  user-select: none; 
}

.btn:hover {
  background-color: #AAAAAA;
}

.btn:active {
  box-shadow: inset 2px 2px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background-color: #337AB7;
}

.btn-success {
  background-color: #5cb85c;
}

.btn-info {
  background-color: #46b8da;
}

.btn-danger {
  background-color: #d43f3a;
}


/* ======= ======= ========== ======= ======= */
/* ======= ======= TEXT INPUT ======= ======= */
/* ======= ======= ========== ======= ======= */
input[type=text],
input[type=password],
input[type=tel],
textarea {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #AAAAAA;
  width: 100%;
  transition: box-shadow 0.25s linear;
  margin: 0 0 5px 0;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=tel]:focus,
textarea:focus {
  box-shadow: 0 0 5px #E6A523;
}

.has-error input[type=text],
.has-error input[type=password],
.has-error input[type=tel],
.has-error textarea {
  border: 1px solid #AA0000;
  background-color: #FFEEEE;
}

.has-error input[type=text]:focus,
.has-error input[type=password]:focus,
.has-error input[type=tel]:focus,
.has-error textarea:focus {
  box-shadow: 0 0 5px #AA0000;
}

.has-success input[type=text],
.has-success input[type=password],
.has-success input[type=tel],
.has-success textarea {
  border: 1px solid #006600;
  background-color: #EEFFEE;
}

.has-success input[type=text]:focus,
.has-success input[type=password]:focus,
.has-success input[type=tel]:focus,
.has-success textarea:focus {
  box-shadow: 0 0 5px #006600;
}

select {
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #AAAAAA;
  background-color: #FFFFFF;
  width: 100%;
  margin: 0 0 5px 0;
}


/* ======= ======= ====== ======= ======= */
/* ======= ======= LABELS ======= ======= */
/* ======= ======= ====== ======= ======= */
form .form-group.required label.control-label:after,
label.required:after {
  content:" (required) ";
  color:red;
  font-size: 70%;
  position: relative;
  top: -5px;
}

.control-label {
  color: #333333;
  font-size: 100%;
  margin: 5px 0 3px 0;
  display: block;
  text-align: left;
  font-weight: bold;
}

.help-block {
  height: 1em;
  margin: 5px 0 1em 0;
  padding: 0;
  font-size: 0.9em;
  text-align: left;
}

.has-error .help-block {
  color: #AA0000;
}


/* ======= ======= ====== ======= ======= */
/* ======= ======= TABLES ======= ======= */
/* ======= ======= ====== ======= ======= */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

table th,
table td {
  padding: 10px 5px 10px 5px;
  min-height: 50px;
  height: 50px;
}

table th {
  background-color: #FFFFFF;
}

table tr:nth-child(even) td {
  /*background-color: #E6E6E6;*/
  background-color: #FFFFFF;
}

table tr:nth-child(odd) td {
  background-color: #F2F2F2;
}

tr[data-href]:hover td {
  background-color: #AAAAAA;
  color: #FFFFFF;
  cursor: pointer;
}

ul.pagination li {
  display: inline-block;
}

ul.pagination li a {
  display: block;
  padding: 10px;
}

ul.pagination li.active a {
  font-weight: bold;
}


/* ======= ======= ================= ======= ======= */
/* ======= ======= PRODUCTION ORDERS ======= ======= */
/* ======= ======= ================= ======= ======= */
.production-order > div {
  background-color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  padding: 5px 10px 5px 10px;
  margin: 10px;
}

.production-order > .main,
.production-order > .attachments,
.production-order > .history .comment .body {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
}

.production-order > .main > div {
  margin-bottom: 5px;
}

.note {
  font-size: 80%;
  color: #666666;
  margin: 5px 0px 5px 0px;
}

.note.big {
  font-size: inherit;
}

.production-order > .main > .blob {
  margin: 15px 0px 15px 0px;
}

.history > .comment > .create-info {
  background-color: #EEEEEE;
}

.history > .attachment > .create-info {
	background-color: #FFEFC6;
}

.flagged,
.flagged td,
.history > .comment > .create-info.flagged {
  background-color: #FFEEEE !important;
}

.history > .attachment.deleted > .create-info {
  background-color: #FFEEEE !important;
}

.history > .attachment > .body {
	background-image: url("/images/attachment-other.png");
	background-repeat: no-repeat;
	background-position: bottom 5px right 5px;
}

.history > .attachment.Other > .body {
	background-image: url("/images/attachment-other.png");
}

.history > .attachment.Script > .body {
	background-image: url("/images/attachment-script.png");
}

.history > .attachment.Audio > .body {
	background-image: url("/images/attachment-audio.png");
}

.history > .attachment.DryVoice > .body {
	background-image: url("/images/attachment-dryvoice.png");
}

.history > .attachment.FinalMixdown .body {
	background-image: url("/images/attachment-finalmixdown.png");
}

.history > div > .body {
  border-bottom: 1px solid #EEEEEE;
  border-left: 1px solid #EEEEEE;
  border-right: 1px solid #EEEEEE;
  padding: 10px 0px 10px 0px;
  margin-left: 20px;
}

.history > div > .body > p {
	margin: 0.5em 1em 0.75em 1em;
}

.history > div {
  padding: 5px;
}

.avatar img {
  width: 32px;
  height: 32px;
  border-radius: 5px;
}

.avatar {
  float: left;
  margin-right: 10px;
}

.archive {
  color: #BF5A42;
}

th > a.asc:after {
  font-weight: bold;
  content: " \21D1";  
}

th > a.desc:after {
  font-weight: bold;
  content: " \21D3";  
}

form .form-group.required label.control-label:after {
  content:" * ";
  color:red;
}

.link.create a.btn,
.link.update a.btn,
.link.update form#productionorder-clone {
  float: right;
}

.btn.btn-info {
  margin-left: 5px;
}


/* ======= ======= ========= ======= ======= */
/* ======= ======= DASHBOARD ======= ======= */
/* ======= ======= ========= ======= ======= */

.dashboard {
  text-align: center;
}

.dashboard .tile {
  height: 175px;
  
  margin: 20px 10px 0px 10px;

  display: inline-block;
  position: relative;

  background-position: top center;
  background-repeat: no-repeat;
  box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 2px 1px;
  background-color: #FFFFFF;

  text-align: left;
  
  vertical-align: top;
}

.dashboard .tile .content {
  padding: 1em 1.5em 0.7em 1.5em;
  text-decoration: none;
}

.dashboard .tile .controls {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.dashboard .tile .controls a.btn {
  display: inline-block;
}


/* ======= ======= =========== ======= ======= */
/* ======= ======= MEDIA PRINT ======= ======= */
/* ======= ======= =========== ======= ======= */

@media print {
  a[href]:after {
    content: none !important;
  }

  header > .container > .content > *:not(.logo),
  a.btn,
  .btn,
  .avatar,
  #comment-create,
  #comment-review,
  #attachment-create {
    display: none !important;
  }

  header {
    position: relative !important;
  }

  .page .container {
    padding-top: 0px !important;
  }

  header, footer {
    display: none;
  }
}