/*
 * HTML5 Boilerplate
 *
 * 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
   ========================================================================== */
body {
  font-family: verdana, sans-serif;
}
html,
input,
textarea {
  color: #222;
}
input {
  padding: 5px 15px;
  margin: 5px 10px;
}
select {
  display: inline-block;
  cursor: pointer;
  padding: 5px 15px;
  outline: 0;
  border: 1px solid #000000;
  border-radius: 0px;
  background: #fff;
  color: #000000;
  margin: 5px 10px;
}
select::-ms-expand {
  display: none;
}
select:hover,
select:focus {
  color: #000000;
  background: #ffffff;
}
select:disabled {
  opacity: 0.5;
  pointer-events: none;
}

button {
  box-shadow: 0px 1px 0px 0px #f0f7fa;
  background: linear-gradient(to bottom, #000000 5%, #000000 100%);
  background-color: #000000;
  border-radius: 6px;
  border: 1px solid #000000;
  display: inline-block;
  cursor: pointer;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  padding: 9px 24px;
  text-decoration: none;
  text-shadow: 0px -1px 0px #5b6178;
}
button:hover {
  background: linear-gradient(to bottom, #000000 5%, #000000 100%);
  background-color: #000000;
}

body {
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
#customersTable {
  margin-top: 2vh;
}

.paddedContent {
  padding-left: 3vw;
  padding-right: 3vw;
}
#login {
  width: 200px;
  margin-top: 50px;
  margin-right: auto;
  margin-left: auto;
}
table:not(#korrList, .linkList),
#filter,
#news,
#editBtns,
.centerContent {
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}
#korrsTable {
  max-width: 100%;
  overflow: hidden;
}
#editBtns {
  margin-top: 1vh;
}
td,
th {
  padding: 3px 10px;
  white-space: nowrap;
  vertical-align: top;
}
td.td-wrappable {
  white-space: normal;
}
th {
  text-align: left;
  color: #eeeeee;
}
table tr.odd {
  background-color: #f6f6f6;
}
table tr.even {
  background-color: #e6e6e6;
}
input,
select {
  margin-right: 50px;
}
#adminSelectHolder select,
#months {
  margin-right: 10px;
}
#addHelg select {
  margin-right: 5px;
}
textarea {
  resize: both;
  height: 200px;
}
.tdH {
  text-align: right;
  font-weight: bold;
  padding: 0px;
}
.tdB {
  text-align: left;
  padding-right: 40px;
}
.filterHead {
  display: inline-block;
  width: 100px;
  text-align: right;
  line-height: 2em;
}
#filter select {
  width: 300px;
}

.clearTable {
  clear: both;
}
thead {
  background: #000000;
  border-radius: 6px;
}
thead th {
  padding: 3px 18px 3px 10px;
  border-bottom: 1px solid black;
  font-weight: normal;
  cursor: pointer;
  *cursor: hand;
}
table pre {
  background-color: #ae9f25;
  padding: 10px;
}
/*
nav
{
    display: inline-block;
    background: #000000;
    padding: 10px;
    border-radius: 6px;
    margin-right: 5vw;
    margin-left: 10vw;
}
*/
nav {
  display: block;
  background: #000000;
  padding: 10px;
  margin-right: auto;
  margin-left: auto;
  width: fit-content;
}
nav img.menuMore {
  display: none;
}
nav a {
  text-decoration: none;
  color: #ffffff;
  margin-right: 10px;
}
nav a.active {
  color: #a59402;
}
#logo {
  float: left;
}
.newImg,
.markNewImg,
.deleteBtnToggler {
  margin-left: 15px;
  cursor: pointer;
}
.markInvoiceDone,
.invoiceDone {
  cursor: pointer;
}
#content form {
  margin-top: 30px;
}
table.dataTable a {
  color: #000000;
}
.openClose {
  cursor: pointer;
}
.achive img {
  cursor: pointer;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
  background-color: transparent;
  border: 0;
  overflow: hidden;
  /* IE 6/7 fallback */
  *text-indent: -9999px;
}

.ir:before {
  content: '';
  display: block;
  width: 0;
  height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
  display: none !important;
  visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * Hide visually and from screenreaders, 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: ' '; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
  *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (max-width: 1680px) {
  #adminSelectHolder select,
  #months,
  #addHelg select {
    padding: 0px;
  }
}
@media only screen and (max-width: 1500px) {
  #adminSelectHolder,
  #months,
  #addHelg {
    font-size: 0.8em;
  }
}
@media only screen and (max-width: 1310px) {
  button {
    padding-left: 10px;
    padding-right: 10px;
  }
  #adminSelectHolder select,
  #months,
  #addHelg select,
  nav {
    margin-right: 0px;
  }
}
@media only screen and (max-width: 1200px) {
  #content {
    padding: 5px 5px;
  }
  .dataTables_wrapper,
  #filter,
  #planeringHeadTools,
  #planering,
  #dateTable,
  #timeTableHolder {
    font-size: 0.5em;
  }
  .filterHead {
    width: 50px;
  }
  #filter select {
    width: 70px;
  }
  nav {
    vertical-align: top;
    display: inline-block;
    background: #000000;
    padding: 10px;
    border-radius: 6px;
  }
  nav img.menuMore {
    display: inline;
    cursor: pointer;
    vertical-align: top;
    margin-top: 3px;
  }
  nav span {
    display: inline-block;
  }
  nav a {
    display: none;
    text-decoration: none;
    color: #ffffff;
    margin-right: 10px;
  }
  nav a.smallscreenvisible {
    display: block;
  }
  nav a.active {
    color: #a59402;
    display: inline;
  }
  .notSmallScreen {
    display: none;
  }
}

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

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
  nav,
  #filter,
  img,
  #projectsTable_length,
  #projectsTable_filter,
  #projectsTable_info,
  #projectsTable_paginate,
  .hideInPrint {
    display: none;
  }

  * {
    background: transparent !important;
    color: #000 !important; /* Black prints faster: h5bp.com/s */
    box-shadow: none !important;
    text-shadow: none !important;
  }

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

  /*
     * Don't show links for images, or javascript/internal links
     */

  .ir a:after,
  a[href^='javascript:']:after,
  a[href^='#']:after {
    content: '';
  }

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

  thead {
    display: table-header-group; /* h5bp.com/t */
  }

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

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 0.5cm;
  }

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

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