* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  font-family: ff-tisa-sans-web-pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 100%;
  min-width: 320px;
  background-color: #eeeeee;
}
h1 {
  font-family: ff-tisa-sans-web-pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 2.6em;
  margin: .8rem 0 .8rem 0;
  color: #1d5188;
}
h2 {
  font-family: ff-tisa-sans-web-pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.6em;
  margin: .1em 0 .7em 0;
  color: #035478
}
h3 {
  font-family: ff-tisa-sans-web-pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.2em;
  margin: .0 0 .4em 0;
  color: #000000;
}
h4 {
  font-family: ff-tisa-sans-web-pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0em;
  margin: .2em 0 .2em 0;
  color: #035478
}
p {
  font-family: ff-tisa-sans-web-pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1em;
  line-height: 1.4em;
  margin: 0 0 .8em 0
}
strong, b {
  font-weight: 600
}
a {
  color: #1d5188;
  transition: color .3s;
  text-decoration: none
}
a:hover {
  text-decoration: underline
}
img {
  max-width: 100%;
  height: auto
}
hr {
  border: none;
  border-bottom: 4px solid black;
}
.inner {
  display: block;
  width: 97%;
  max-width: 1000px;
  margin: 0 auto;
  clear: both
}
.clearb {
  clear: both
}
section {
  padding: 40px 0;
  clear: both;
  overflow: hidden;
  position: relative
}
table {
  font-size: 1em;
}

/**** Form ****/

form {
  margin: 0;
  padding: 0;
}
input, textarea, .label label, select, button, .btn {
  display: block;
  width: 100%;
  font-size: 1em;
  line-height: 1.3em;
  font-family: ff-tisa-sans-web-pro, Helvetica Neue, Helvetica, Arial, sans-serif;
  padding: 8px 8px;
  outline: 0;
}
input, textarea, select {
  border-radius: 6px;
  background: #fefaee;
  border: 1px solid #f4e19f;
  height: 2.4em;
}
input[type="checkbox"], input[type="radio"] {
  width: auto;
  display: inline;
  height: 1em;
}
textarea {
  resize: vertical;
  height: 10em;
}
input:focus, textarea:focus, select:focus {
  border-color: #e2bc37;
  background-color: #fffefa;
}
input.ok, textarea.ok, select.ok {
  background: #eefeef;
  border-color: #aff49f;
}
input.ok:focus, textarea.ok:focus, select.ok:focus {
  background: #f7fff7;
  border-color: #6ec15b;
}
input:read-only, input.locked, textarea.locked  {
  background: #eeeeee;
  border-color: #dddddd;
}
input.missing, textarea.missing, select.missing {
  background: #feeeee;
  border-color: #f49f9f;
}
input.missing:focus, textarea.missing:focus, select.missing:focus {
  background: #fff7f7;
  border-color: #ff7878;
}
.requiredradio.missing input[type='radio'] {
  border-color: #ff7878;
  box-shadow: 0px 1px 6px #ff7878;
}
.btn, button, input[type=submit] {
  display: inline-block;
  background-color: #3d9a2d;
  color: #FFF;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  transition: background-color .3s;
  cursor: pointer;
  height: 2.5em;
}
.btn:hover, button:hover, input[type=submit]:hover {
  text-decoration: none;
  background-color: #286b1c;
}
.btn:disabled, button:disabled, input[type=submit]:disabled {
  background: #dabc00;
  color: #968100;
}

/**** Table ****/

.table {
  display: table;
  width: 100%;
}
.table > .table_row {
  display: table-row;
}
.table > .table_row.header, .table th {
  background-color: #eee;
  border-bottom: none;
  font-weight: 700;
  padding: 0px;
}
.table > .table_row > div, .table td {
  display: table-cell;
  border-bottom: 1px solid #eee;
  padding: 0px;
}
.table a, .table tr {
  color: #000;
  cursor: pointer;
  transition: background .3s;
}
.table a:hover, .table tr:hover {
  background-color: #f4d301;
  text-decoration: none;
}
.table tr.hide {
  display: none;
}
.fraktbrev-filter {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  background-color: #fff6bc;
  text-decoration: none;
  color: #000;
  transition: color .3s, background .3s;
}
.fraktbrev-filter:hover {
  text-decoration: none;
  background-color: #ffea62;
}
.fraktbrev-filter.active {
  background-color: #f4d301;
}

/**** Site ****/

#site {
  display: block;
  width: 100%;
  min-height: 100%;
}
#byline {
  padding: 10px 0 20px 0;
  text-align: center;
}
#byline div {
  display: inline;
  font-size: 0.8rem;
  text-align: center;
}
#byline a {
}

/**** Login ****/

#login {
  position: relative;
  width: 100%;
  height: 100%;
}
#login > .background {
  display: block;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 1;
}
#login > .background img {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#login > .login-box {
  position: absolute;
  background: #FFF;
  z-index: 10;
  top: 50%;
  left: 50%;
  width: 400px;
  max-width: 90%;
  border-radius: 6px;
  padding: 20px;
  transform: translate(-50%, -50%);
}
#login > .login-box img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px auto;
}
#login label {
  margin-bottom: 5px;
}
#login .row {
  margin: 15px 0 0 0;
}
#login #errormsgs {
  border: 1px solid #ff0000;
  background-color: #ffeaea;
  padding: 5px 8px;
  border-radius: 6px;
}
#login #errormsgs p {
  margin: 0px;
}
#login > #byline {
  position: absolute;
  bottom:10px;
  left: 0px;
  width: 100%;
  z-index: 150;
}
#login > #byline a {
  color: #FFF;
  font-size: 1em;
}

/**** Fraktbrev ****/

#fraktbrev {
  display: block;
  width: 100%;
  //min-height: 100%;
  background-color: #eeeeee;
  padding-top: 40px;
  overflow: hidden;
}
#fraktbrev #content {
  width: 100%;
  padding: 0 0 8px 0;
  position: relative;
  z-index: 10;
}
#fraktbrev a.remove {
  display: block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;
  background-image: url('/img/delete.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
#fraktbrev a.add {
  line-height: 20px;
}
#fraktbrev a.add:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;
  background-image: url('/img/add.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-right: 5px;
}

/**** Header ****/

#fraktbrev #header {
  position: fixed;
  top: 0px;
  right: 0px;
  lefT: 0px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}
#fraktbrev #header .title a {
  color: #FFF;
}
#fraktbrev #header .nav ul {
  display: flex;
  list-style: none;
  margin: 0px;
  padding: 0px;
  justify-content: flex-end;
  align-items: center;
}
#fraktbrev #header .nav li {
}
#fraktbrev #header .nav a {
  color: #fff;
  margin-left: 15px;
}
#fraktbrev #header .nav a.active {
  font-weight: 700;
}
#fraktbrev .page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/**** Page Title ****/

#fraktbrev #pagetitle {
  position: relative;
  width: 100%;
  color: #000;
  padding: 30px 0 0 0;
  z-index: 5;
}
#fraktbrev #pagetitle:before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: -60px;
  z-index: 2;
  background-color: #F4D300;
  background-position: center;
  background-image: url('/img/background_title.jpg');
  background-repeat: no-repeat;
  background-size: cover;
}
#fraktbrev #pagetitle .inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
#fraktbrev #pagetitle h1 {
  color: #000;
}
#fraktbrev #pagetitle h1.extra {
  font-size: 2em;
}

/**** ErrorMsgs ****/

#fraktbrev #errormsgs {
  position: relative;
  width: 100%;
  color: #000;
  z-index: 9;
}
#fraktbrev #errormsgs p {
  display: block;
  border: 1px solid #bda400;
  background-color: #ffee7f;
  margin: 0 0 20px 0;
  padding: 5px;
}

/**** Page ****/

#fraktbrev .content-container {
  position: relative;
}
#fraktbrev .tab-nav {
  position: relative;
  width: 100%;
  z-index: 10;
}
#fraktbrev .tab-nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  margin: 0px;
  padding: 0px;
}
#fraktbrev .tab-nav li {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
}
#fraktbrev .tab-nav li a {
  display: block;
  background-color: rgba(255, 214, 0, 0.3);
  padding: 6px 20px;
  margin-right: 10px;
  text-align: center;
  color: #000;
  border-radius: 6px 6px 0px 0px;
  transition: background-color .3s, color .3s;
}
#fraktbrev .tab-nav li a:hover {
  text-decoration: none;
  background-color: rgba(255, 214, 0, 0.8);
}
#fraktbrev .tab-nav li a.active {
  background-color: #FFF;
  color: #000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2)
}
#fraktbrev .content-container > .content-wrap {
  background-color: #FFF;
  border-radius: 0px 0px 6px 6px;
  padding: 0px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 20;
}
#fraktbrev .content-container .content {
  display: none;
  padding: 20px;
}
#fraktbrev .content-container .content.active {
  display: block;
}
#fraktbrev .content .infobox {
  border: 1px solid #ff0000;
  background-color: #ffd0d0;
  color: #000000;
  padding: 5px 10px;
  border-radius: 6px;
}
#fraktbrev .content.form .infobox {
  margin: 10px 15px 0 15px;
}

/**** Skjema ****/

#fraktbrev .form-nav {
}
#fraktbrev .form-nav ul {
  justify-content: space-between;
}
#fraktbrev .form-nav li {
  width: 32%;
}
#fraktbrev .form-nav li a {
  width: 100%;
  padding: 10px 15px;
  color: #000;
  border-radius: 6px 6px 0px 0px;
  margin: 0px;
}
#fraktbrev .form-nav li a:hover {
  background-color: #555;
  background-color: rgba(85, 85, 85, 0.7);
  color: #FFF;
}
#fraktbrev .form-nav li a.active {
  background-color: #FFF;
  color: #000;
}
#fraktbrev .form-nav li a.disabled {
  pointer-events: none;
  color: #9c6f04;
  background-color: rgba(255, 214, 0, 0.1);
}
#fraktbrev .content.form {
  padding: 15px 0px 0px 0px;
}
#fraktbrev .content.form.locked {
  pointer-events: none;
}
#fraktbrev .content.form.locked button.print {
  pointer-events: all;
}
#fraktbrev .anleggsliste .anlegg .anleggheading .collapse {
}
.form .separator h3 {
  width: 100%;
  text-align: center;
  background-color: #f1f7ff;
  margin: 30px 0 20px 0;
  padding: 5px 0;
  border-top: 1px solid #cfe1f9;
  border-bottom: 1px solid #cfe1f9;
}
.form .separator.heading h3 {
  margin-top: 0px;
  border: none;
  background-color: #d0def5;
}
.form .row {
  display: block;
  width: 100%;
  display: flex;
  margin: 0 0;
  padding: 0 15px;
  page-break-inside:avoid;
}
.form .submit-row {
  background-color: #F4D300;
  padding: 15px;
  border-radius: 0px 0px 6px 6px;
}
.form .submit-row button {
  margin-right: 15px;
}
.form .submit-row button:last-of-type {
  margin-right: 0px;
}
.form .submit-row.admin-only {
  background-color: #ffb0b0;
  margin-top: 20px;
  pointer-events: all;
}
.form .submit-row.admin-only button {
  width: auto;
  background-color: #ff0000;
}
.form .submit-row.admin-only button:hover {
  background-color: #aa0000;
}
.form .label {
  width: 35%;
  text-align: right;
}
.form .row.missing .label {
  color: red;

}
.form .input {
  width: 65%;
}
#fraktbrev .form input, #fraktbrev .form .label > label, #fraktbrev .form textarea, #fraktbrev .form select {
  width: 100%;
  margin-bottom: 10px;
}
#fraktbrev .form input[type="checkbox"], #fraktbrev .form input[type="radio"] {
  width: auto;
//  display: inline;
//  height: 1em;
}
#fraktbrev .form .input > label {
/*  padding: 0px;
  line-height: 1em;
  display: inline-block;*/
  cursor: pointer;
  margin-right: 10px;
}
#fraktbrev .form table {
  width: 100%;
}
#fraktbrev .form table td {
  text-align: center;
}
#fraktbrev .form table td:first-of-type {
/*  text-align: right;*/
}
#fraktbrev .form .row.fishtable {
  display: table;
}
#fraktbrev .form .row.fishtable .row {
  display: table-row;
  padding: 0;
}
#fraktbrev .form .row.fishtable .row>div {
  display: table-cell;
  padding: 0 5px;
}
#fraktbrev .form .row.fishtable .header {
}
#fraktbrev .form .row.fishtable .header>div {
  text-align: center;
}

#fraktbrev .collapsable {
  margin: 0 20px;
  display: block;
  position: relative;
  border: 1px solid #d0def5;
  background-color: #f6faff;
  border-radius: 6px;
  margin-bottom: 20px;
  margin-top: 20px;
}
#fraktbrev .collapsable .collapsable-title {
  background: #6c90c1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFF;
  border-radius: 6px 6px 0 0;
}
#fraktbrev .collapsable .collapsable-title h3 {
  color: #FFF;
  margin: 5px 0px;
  padding-left: 15px;
  background: none;
  border: none;
}
#fraktbrev .collapsable .collapsable-content {
}
#fraktbrev .collapsable .collapse {
  display: block;
  position: relative;
  width: 31px;
  height: 31px;
  transition: background .3s, transform .3s;
  background: rgba(255,255,255,0);
  border-radius: 15px;
  margin-right: 10px;
  pointer-events: all;
  cursor: pointer;
}
#fraktbrev .collapsable .collapse:before {
  content: "";
  background-color: #FFF;
  width: 21px;
  height: 4px;
  position: absolute;
  top: 13px;
  right: 5px;
}
#fraktbrev .collapsable .collapse:after {
  content: "";
  background-color: #FFF;
  width: 4px;
  height: 21px;
  position: absolute;
  top: 5px;
  right: 13px;
  transition: transform .3s;
  transform: rotate(90deg);
}
#fraktbrev .collapsable.collapsed .collapse:after {
  transform: rotate(0deg);
}
#fraktbrev .collapsable .collapse:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.15);
}
#fraktbrev .sub-collapse {
  position: relative;
}
#fraktbrev .sub-collapse .collapse {
  position: absolute;
  top: 6px;
  right: 10px;
}
#fraktbrev .sub-collapse .collapse:before {
  background-color: #000;
}
#fraktbrev .sub-collapse .collapse:after {
  background-color: #000;
}
#fraktbrev .sub-collapse.collapsed .collapse:after {
  transform: rotate(0deg);
}

#fraktbrev .anleggsliste {
  display: block;
  position: relative;
}
#fraktbrev .anleggsliste > .anlegg {
}
#fraktbrev .anleggsliste > .anlegg.prototype {
  display: none;
}
#fraktbrev .anleggsliste .anleggheading {
}
#fraktbrev .anleggsliste .anleggheading h3 {
  width: 35%;
}
#fraktbrev .anleggsliste .anleggheading input {
  width: 50%;
  margin: 5px 0px;
}
#fraktbrev .anleggsliste button {
  /*margin-bottom: 1em;*/
}

/**** Arkiv ****/

.pageNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

/**** Responsive screens ****/
@media screen {
  .printonly {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .table {
    font-size: 0.8em;
    line-height: 1.2em;
  }
  table[data-sortable] th, table[data-sortable] td {
    padding: 5px;
  }
  #fraktbrev .anleggsliste {
    padding: 0 5px;
  }
}

@media screen and (max-width: 500px) {
  #fraktbrev {
    padding-top: 36px;
    font-size: 0.8em;
  }
  #fraktbrev #header {
    font-size: 0.8em;
  }
  #fraktbrev #header .nav a {
    margin-left: 10px;
  }
  #fraktbrev #pagetitle {
    padding: 0px;
  }

}


/**** Print ****/

@page {
  size: A4;
  margin: 0;
}
