/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

html,
body {width: 100%; height: 100%; font-family: 'Raleway', sans-serif; background: #6c6c6c} 

.btn {background: #d2006a; color: #FFFFFF; padding: 6px 15px 7px; line-height: 1.4; display: inline-block; text-decoration: none; font-size: 19px}
.btn:hover {background: #df2374}

#app-wrapper {display: block; width: 100%; height: 100%; max-width: 1250px; margin: 0 auto; box-sizing:border-box}
#app-content {display: block; width: 100%; box-sizing:border-box; height: 100%; position: relative; border-top: solid 10px #6c6c6c; border-bottom: solid 10px #6c6c6c}

header {background: #d2006a; color: #FFFFFF; position: absolute; width: 100%; height: 10%}
.header-sm header {height: 5%}
header h1 {background: url(../img/eskimo-reporting-logo.png) no-repeat left center; background-size: contain; width: 100%; height: 100%; text-indent: -99999px; margin: 0; border-left: solid 15px #d2006a; border-top: solid 10px #d2006a; border-bottom: solid 10px #d2006a; box-sizing: border-box}
#logo-wrapper {width: 30%; position: absolute; height: 100%; box-sizing: border-box}
#report-title-wrapper {width: 50%; text-align: center; position: absolute; height: 100%; box-sizing: border-box; left: 30%}
#report-title {display: table; width: 100%; height: 100%}
#report-title-wrapper h2 {width: 100%; height: 100%; margin: 0; box-sizing: border-box; display: table-cell; vertical-align: middle}
.header-sm #report-title-wrapper h2 {font-size: 18px}
#switch-report-btn-wrapper {width: 20%; background: #ffce00; position: absolute; height: 100%; box-sizing: border-box; left: 80%}
#switch-report-btn {display: table; width: 100%; height: 100%}
#switch-report-btn-content {display: table-cell; width: 100%; height: 100%; vertical-align: middle}
#switch-report-btn a {display: block; background: url(../img/arrow-icon.png) no-repeat right center; background-size: 38px 25px; padding: 9px 45px 5px 0; width: 110px; margin: 0 auto; color: #000000; text-decoration: none; font-weight: 700}

#content-wrapper {background: #FFFFFF; padding: 0; position: absolute; height: 90%; width: 100%; top: 10%; box-sizing:border-box}
.header-sm #content-wrapper {height: 95%; top: 5%}

#report-list {position: absolute; width: 50%; background: #ececec; box-sizing:border-box; padding: 0; height: 100%; border: solid 10px #ececec}
#report-list form {position: absolute; width: 100%; height: 10%; box-sizing:border-box; border-bottom: solid 15px #ececec}
#report-list input {width: 100%; border: none; padding: 0 30px; box-sizing:border-box; height: 100%}
#report-list-results {position: absolute; width: 100%; height: 90%; top: 10%; overflow-y: scroll; box-sizing:border-box}
#report-list-results h3 {background: #dadada; font-size: 17px; margin: 0; display: block; padding: 5px 10px 5px 35px}
#report-list-results .report-list-results-group.favourite h3 {background: #a080c3; color: #FFFFFF}
#report-list-results ul {list-style: none; padding: 6px 0; margin: 0; background: #FFFFFF}
#report-list-results ul li.selected {background: #ffce00}
#report-list-results ul li a {color: #000000; text-decoration: none; font-size: 16px; display: block; padding: 3px 10px 3px 35px}
#report-list-results ul li a.favourite {background: url(../img/star-icon.png) no-repeat 7px 6px; background-size: 20px 20px}
#report-list-results ul li.selected a.favourite {background-image: url(../img/star-icon-white.png)}

#report-preview {position: absolute; left: 50%; width: 50%; background: #f9f9f9; box-sizing:border-box; height: 100%}
#report-preview-wrapper {display: table; width: 100%; height: 100%}
#report-preview-content {display: table-cell; width: 100%; height: 100%; vertical-align: middle; text-align: center}
#report-preview-roundall {width: 215px; height: 215px; display: inline-block; background: #d2006a; color: #FFFFFF; font-size: 24px; border-radius: 50%; box-sizing: border-box; padding: 58px 20px}

#report-summary {text-align: left; padding: 5% 12%; overflow-y: scroll; height: auto; box-sizing: border-box}
#report-summary h2 {font-size: 26px; line-height: 1.4; margin-top: 0}
#report-summary p {font-size: 18px; line-height: 1.4}
ul#report-stats {list-style: none; padding: 30px 0 20px}
ul#report-stats li:first-child {border-top: solid 1px #d2006a}
ul#report-stats li {line-height: 1.4; padding: 7px 0; font-size: 17px; border-bottom: solid 1px #d2006a}
#report-favourite {padding: 0 0 30px}
#report-favourite label {margin-left: 7px}
#report-summary .btn {padding: 7px 35px 8px 35px}

#report-options {position: absolute; width: 40%; background: #ececec; box-sizing:border-box; padding: 0; height: 100%; border: solid 15px #ececec; border-left: solid 25px #ececec; border-right: solid 25px #ececec}
#report-options-content {padding: 25px}
#report-options h2 {font-size: 20px; margin-bottom: 25px}
#report-options .select {margin-bottom: 20px}
#report-options .btn {border: none; width: 100%; padding-top: 9px; padding-bottom: 10px; margin-top: 25px}
#report-preview.report-run {left: 41%; width: 59%}

#report-view {position: absolute; width: 100%; background: #ffffff; box-sizing:border-box; padding: 0; height: 100%; display: table}
#report-view-content {display: table-cell; vertical-align: middle; width: 100%; height: 100%; text-align: center}
#report-options-btn {writing-mode: vertical-lr; text-orientation: mixed; position: absolute; width: 40px; text-align: center; height: 100%; left: 0; top: 0; background: #f5f5f5; text-decoration: none; line-height: 40px; color: #000000; z-index: 3}
#report-options-btn img {display: inline-block; margin-left: -5px}
#report-grid {border-left: solid 40px #FFFFFF; border-bottom: solid 50px #FFFFFF; height: 100%; top: 0; position: absolute; width: 100%; overflow-y: scroll}
.report-section {position: absolute; top: 0; height: 50%; width: 100%; left: 0; padding: 10px}
.report-section h2 {text-align: left; color: #d2006a; font-size: 18px; margin: 0 0 7px}
.report-section > div {border: solid 1px #434343; background: #f5f5f5; height: calc(100% - 32px)}
#report-section-2 {top: 50%}
#report-btns {position: absolute; bottom: 0; width: 100%; height: 50px; border-left: solid 40px #ececec; background: #ececec}
#report-btns .left {width: 50%; float: left; text-align: left; box-sizing: border-box; padding: 5px 10px; top: 0}
#report-btns .right {width: 50%; float: left; text-align: right; box-sizing: border-box; padding: 5px 10px; top: 0}
#report-btns .btn {margin: 0 3px; height: 40px; font-size: 15px; font-weight: 300; line-height: 40px; padding: 0 20px; display: inline-block; margin: 0 5px 0 0}
#report-btns .right form {float: right; width: 65%; position: relative; margin-right: 5px}
#report-btns .right a {float: right; border-radius: 20px; background: url(../img/print.png) center center #d2006a no-repeat; background-size: 20px 20px}
#report-btns .right a.last {margin: 0; background-image: url(../img/arrow.png); background-size: 24px 24px}
#report-btns .right input[type="text"] {background: #FFFFFF; border-radius: 20px; height: 40px; width: 100%; border: none; padding: 0 20px; line-height: 40px}
#report-btns .right input[type="submit"] {background: url(../img/mail.png) center center #d2006a no-repeat; background-size: 24px 24px; position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 20px; text-indent: -9999px; border: none}

@media only screen and (max-width: 1023px) {
  #report-title-wrapper {width: 45%}
  #switch-report-btn-wrapper {width: 25%; left: 75%}

  #report-btns .left {width: 45%}
  #report-btns .right {width: 55%}
  #report-btns .btn {font-size: 14px}
  #report-btns .right input[type="text"] {font-size: 14px}
}

@media only screen and (max-width: 767px) {

  #app-content {border: none}

  header h1 {border-left: solid 10px #d2006a}
  #logo-wrapper {width: 35%}
  #report-title-wrapper {width: 50%; left: 35%}
  #report-title-wrapper h2 {font-size: 14px; line-height: 1.4}
  #switch-report-btn-wrapper {width: 15%; left: 85%}
  #switch-report-btn a {text-indent: -9999px; width: 38px; padding: 0}

  /*#content-wrapper {display: none}*/

  #report-list {width: 100%; height: 50%}
  #report-list form {height: 22%}
  #report-list-results {height: 78%; top: 22%}
  #report-preview {width: 100%; height: 50%; left: 0; top: 50%}

  #report-summary {height: 100%; padding: 0; border: solid 15px #f9f9f9; border-left: solid 25px #f9f9f9; border-right: solid 25px #f9f9f9}

  #report-options {width: 100%; height: 65%}
  #report-options-content {padding: 0}
  #report-options h2 {margin-top: 0; margin-bottom: 8px; font-size: 18px}
  #report-options .select {margin-bottom: 8px}
  #report-options .btn  {margin-top: 12px}
  #report-preview.report-run {width: 100%; height: 35%; left: 0; top: 65%}
  #report-preview.report-run #report-preview-roundall {font-size: 19px; width: 165px; height: 165px; padding: 43px 20px}

  #report-grid {border-bottom: solid 100px #FFFFFF}
  #report-btns {height: 100px}
  #report-btns .left,
  #report-btns .right {width: 100%; float: none; height: 50px; padding: 5px 10px}
  #report-btns .left .btn {font-size: 13px}
  #report-btns .right .btn,
  #report-btns .right .btn.last {margin: 0 5px 0 0}
  #report-btns .right form {float: left; width: 210px; margin: 0}
  #report-btns .right a {float: left}
  #report-btns .right input[type="text"] {font-size: 13px; padding: 0 12px}
}


/* SELECT STYLING */

*,
*::before,
*::after {box-sizing: border-box}

:root {--select-border: #777; --select-focus: blue; --select-arrow: var(--select-border)}

select {-webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: transparent; border: none;padding: 0 1em 0 0; margin: 0; width: 100%; font-family: inherit; font-size: inherit; cursor: inherit; line-height: inherit; z-index: 1; outline: none}

select::-ms-expand {display: none}

.select {display: grid; grid-template-areas: "select"; align-items: center; position: relative; min-width: 15ch; max-width: 100%; border-bottom: 1px solid var(--select-border); border-radius: 0; padding: 0.5em 0em; font-size: 1.1rem; cursor: pointer; line-height: 1.1; background-color: #ececec}

.select select,
.select::after {grid-area: select}

.select:not(.select--multiple)::after {content: ""; justify-self: end; width: 0.8em; height: 0.5em; background-color: #d2006a; -webkit-clip-path: polygon(100% 0%, 0 0%, 50% 100%); clip-path: polygon(100% 0%, 0 0%, 50% 100%)}

select:focus + .focus {position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px; border: 2px solid var(--select-focus); border-radius: inherit}

select[multiple] {padding-right: 0; height: 6rem}

select[multiple] option {white-space: normal;  outline-color: var(--select-focus)}

.select--disabled {cursor: not-allowed; background-color: #eee; background-image: linear-gradient(to top, #ddd, #eee 33%)}

label {font-size: 1.125rem; font-weight: 500}

.select + label {margin-top: 2rem}





/* - - - - three col view - start - - - - */

h2 {font-weight: 400;}

.select {background: #f5f5f5; font-size: 16px}

.three-col-view #report-list {width: 30%}

.three-col-view #report-options {width: 25%; left: 30%; border: solid 10px #f5f5f5; background: #f5f5f5; overflow-y: scroll}
.three-col-view #report-options-content {padding: 10px}
.three-col-view #report-options h2 {margin-top: 0}
.three-col-view #report-options .select {margin-bottom: 12px}

#supplier-select-input {position: relative}
#supplier-select-input:after {content: ""; position: absolute; top: 11px; right: 0; width: 0.8em; height: 0.5em; background-color: #d2006a; -webkit-clip-path: polygon(100% 0%, 0 0%, 50% 100%); clip-path: polygon(100% 0%, 0 0%, 50% 100%); display: block}
#supplier-select-input input {background: none; border: none; position: relative; color: #222222; padding: 8px 0; display: block; width: 100%; border-bottom: solid 1px rgb(119, 119, 119); margin-bottom: 12px}
#supplier-select-input input::placeholder {color: #222222}
#supplier-select-input input:-ms-input-placeholder {color: #222222}
#supplier-select-input input::-ms-input-placeholder {color: #222222}


#supplier-select {background: #ececec; padding: 5px 7px 0; margin: 0 0 10px}
#supplier-select-search {padding: 0 0 7px}
#supplier-select label {font-size: 15px; display: block; padding: 0 0 5px}
#supplier-select input {width: 100%; border: none; padding: 0 15px; box-sizing: border-box; height: 45px}
#supplier-select-search-results {height: 300px; overflow-y: scroll; background: #FFFFFF}
#supplier-select-search-results ul {list-style: none; margin: 0; padding: 0}
#supplier-select-search-results ul li {padding: 5px 8px}

.three-col-view #report-preview {width: 45%; left: 55%; overflow-y: scroll}
.three-col-view #report-preview-content {vertical-align: top}
.three-col-view #report-summary {padding: 20px 25px}
.three-col-view #report-summary h2 {font-size: 20px}
.three-col-view #report-summary p {font-size: 16px}
.three-col-view ul#report-stats li {font-size: 15px}
.three-col-view #report-favourite label {font-size: 15px}

@media only screen and (max-width: 900px) {
  .three-col-view #report-list {width: 50%; height: 50%}
  .three-col-view #report-options {width: 50%; left: 50%; height: 50%}
  .three-col-view #report-preview {width: 100%; top: 50%; height: 50%; left: 0}
}

@media only screen and (max-width: 480px) {
  .select {font-size: 14px}

  .three-col-view #report-list-results h3 {font-size: 15px; padding-left: 28px}
  .three-col-view #report-list-results ul li a.favourite {background-size: 15px 15px; background-position: 6px 5px}
  .three-col-view #report-list-results ul li a {font-size: 14px; padding-left: 28px}

  .three-col-view #report-options-content {padding: 0}
  .three-col-view #report-options h2 {font-size: 15px}

  #supplier-select-input input {font-size: 14px}

  .three-col-view #report-summary {padding: 0}
  .three-col-view #report-summary h2 {font-size: 15px}
  .three-col-view #report-summary p {font-size: 14px}
  .three-col-view ul#report-stats li {font-size: 13px}
  .three-col-view #report-favourite label {font-size: 13px}
}

/* - - - - three col view - end - - - - - */


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

