/*
 * Icons from mastersprite
*/
.sprite {
  background-image:url(/images/mastersprite16-one_july032014.png);
  background-repeat:no-repeat;
  background-color:transparent;
  display:inline-block;
  width:16px;
  height:16px;
  vertical-align: middle;
}
.sprite-phone { background-position: 0 -1248px; }
.sprite-mail { background-position: 0 -1281px; }
.sprite-location { background:url(/images/mastersprite16-two_june182014.png) no-repeat 0 -5072px; }
.sprite-user { background-position: 0 -3167px; }

.list-unstyled {
  list-style:none;
  margin:0;
}

.list-inline li {
  display:inline-block;
  margin-right:5px;
}

.section {
  background:#f0f0f0;
  padding:15px;
  margin-bottom:20px;
}
.section-header {
  /*text-decoration:underline;*/
  margin-top:0;
  line-height:30px;
  /*border-bottom:1px solid #ccc;*/
}
.section table .color_box {
  margin:0;
}
.section .sprite {
  margin-left:5px;
}

/*
 * Formtastic changes
*/

form.formtastic legend {
    color:#222;
    font-size: 1.4em;
}

/*
 * All the other stuff
*/

#loader {
  display: none;
}

body {
    padding: 20px 0;
    border-top: 4px solid #5091BD;
    font-size: 12px;
}

hr {
  margin: 10px 0;
}

h2 {
  font-size: 25px;
  margin-bottom: 10px;
}

h3 {
  font-size: 20px;
}

form {
  margin: 0;
}

a.silent {
    color: #222;
    text-decoration: none;
}

.color_box {
  margin-left: 10px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  padding: 0 8px;
  color: white;
}
.green_box {
  background: #6BB501;
}
.basic_box,
.plus_box,
.premium_box { /* The tier, not the legacy "type" */
  background:#5092BD;
}

.flatbutton {
    text-decoration: none;
    margin: 0 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    padding: 5px 10px;
    border: none;
}

.flatbutton:hover {
    text-decoration: underline;
    cursor: pointer;
}

a.flatbutton.large {
    font-size: 1.4em;
    padding: 10px 20px;
}

.red, .red:hover { background: #D81700; color: white; }
.blue, .blue:hover { background: #4784AD; color: white; }
.green, .green:hover { background: #6BB501; color: white; }
.gray, .gray:hover { background: #F6F6F6; color: #222;}

.redtext {color: #D81700;}

.delete {
    color:#8a1f11;
}

.flush-right {
  text-align: right;
}

.category_select_box {
    width: 200px;
}

a.distanced {
  margin-left: 10px;
}

span.flag-description {
  font-size: 0.75em;
  color: #666;
  padding-left: 8px;
  font-style: italic;
  font-weight: normal;
}

textarea.low {
  height:50px;
}

table .center-align {
  text-align:center;
}
table .right-align {
  text-align:right;
}
.faded {
  color:#999
}
table.sortable th {
  cursor:pointer;
}

table.contract-pricing {
  width:500px;
}
table.contract-pricing tr th.label {
  width:237.5px;
}
table.contract-pricing tr td input {
  width:50px;
  text-align:right;
}
table.contract-pricing tr .price {
  text-align:right;
}


.container {
  width: 1000px;
}

dt, dd {
  line-height: 25px;
}

dd {
  margin-left: 15px;
}

/* Header styling */

header {
  margin-top: 5px;
}

header hr {
  margin-top: 10px;
}

header .logout {
  margin-top: 22px;
  float: right;
}

.formtastic label {
  font-weight: bold;
}

.formtastic select, .formtastic textarea {
  margin-left: 20px;
  margin-bottom: 10px;
}

.formtastic input {
  margin-left: 20px;
}

.formtastic fieldset .btn-group > .btn:first-child {
  margin-left: 20px;
}

.formtastic .inputs-list {
  list-style: none;
  margin: 10px 0 10px 0;
  padding: 0;
}

.formtastic fieldset > li {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 10px;
}

.formtastic fieldset > ol {
  list-style: none;
  margin: 10px 0 10px 0;
}

.formtastic textarea {
  width:auto;
}

.formtastic .actions li {
  list-style-type:none;
  display:inline-block;
  margin-right:10px;
}

.formtastic fieldset div.hidden {
  display:none;
}

.radio-collection {
  margin-left:30px;
}

/*
 * Used in Edit Recommended Apps section.
 */
/*textarea*/.share-recommendations {
  width: 80%;
}

.hints {
    border: 1px #b7b7b7 dashed;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 0 1em;
    width: auto;
}

.hints h3 {
  margin: 0px;
}

.searchTypeSelector select {
  width: 140px;
  margin-top: 5px;
}

.searchValueField {
  width: 200px;
}

.contract-status th {
  vertical-align: top !important;
}

.overflow-wrap {
  overflow-wrap: anywhere;
}

/* V8 Calculation Errors styles */
.error-message {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.4;
  word-wrap: break-word;
}

.script-preview {
  font-family: monospace;
  font-size: 11px;
  line-height: 1.3;
  color: #666;
  background-color: #f8f8f8;
  padding: 2px 4px;
  border-radius: 3px;
  display: block;
  word-wrap: break-word;
}

.external-link {
  color: #0088cc;
}

.external-link:hover {
  color: #005580;
}

.mb-4 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 15px;
}

/* Make table more readable */
.table-v8-errors td {
  vertical-align: top;
}

.table-v8-errors th {
  white-space: nowrap;
}

/* Ensure good contrast for error type labels */
.table-v8-errors .label {
  color: white !important;
  font-weight: bold;
  padding: 2px 4px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
