@import url(/styles/reset.css);


/* BASE */

html {
    font-size: 18px;
}

body {
	background-color: #fff;
	font-family: FrutigerLT45Light, sans-serif;
	font-weight: 400;
	font-size: 1em;
	line-height: 1.4;
	color: #000;
    overflow-y: scroll;
}

b,
strong {
    font-weight: 700;
}

ul li {
    padding: 2px 0;
}

ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

ol li {
    list-style-type: decimal;
}

img {
    max-width: 100%;
}

a {
    color: #00627D;
    text-decoration: underline;
}

p {
    margin: 0 0 1em;
}

h1 {
	margin: 0 0 .25em;
    font-family: FrutigerLT65Bold, sans-serif;
	font-size: 4em;
	font-weight: 400;
	line-height: 1.15;
}

h2 {
	margin: 1em 0 .5em;
	font-family: FrutigerLT65Bold, sans-serif;
    font-weight: 400;
	font-size: 2.5em;
    line-height: 1.15;
}

h3 {
    margin: 1em 0 .5em;
    color: #00627d;
    font-family: FrutigerLT65Bold, sans-serif;
	font-size: 1.667em;
	font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

h4 {
    margin: .75em 0;
    font-size: 1.5em;
    font-weight: 400;
}

h5 {
	margin: 1em 0 .25em;
    font-family: FrutigerLT65Bold, sans-serif;
	font-size: 1.25em;
    font-weight: 400;
}

h6 {
    margin: 1em 0 .5em;
    font-family: FrutigerLT65Bold, sans-serif;
    font-size: 1.125em;
    font-weight: 400;
}

h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child {
    margin-top: 0;
}


/* LAYOUT */

#page {
	display: flex;
    flex-wrap: wrap;
}

header {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    color: #fff;
    z-index: 10;
}

header > section {
    padding-top: 0;
    padding-bottom: 0;
}

#top-top {
    padding-top: 2em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-basis: 100%;
}

#top-left,
#top-right {
    display: flex;
    align-items: center;
}

#top-left {
    padding-left: 0;
    padding-right: 0;
    flex-basis: 256px;
}

#top-right {
    padding: 0;
    flex-basis: 80%;
    justify-content: flex-end;
}

#logo {
    width: 100%;
    margin-left: 1em;
}

header .coreTextButton1,
header .coreTextButton2 {
    margin: 0 0 0 1em;
}

header .coreTextButton1 a:hover {
    background-color: #cbb900;
}

header .coreTextButton2 a,
header .coreTextButton2 a:hover {
    color: #fff;
    background-color: #00627d;
}

main {
    overflow: hidden;
    flex-basis: 60%;
    flex-grow: 1;
}

aside {
    background-color: #eee;
    z-index: 2;
    flex-basis: 33.333%;
    align-self: flex-start;
}

aside .blue {
    position: relative;
    margin: -1em -1em 1em;
    padding: 4vw 4vw 2vw;
    background: url('../Pictures/sidepanel.jpg') 50% 50%/cover;
}

aside .blue::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 98, 125, .8);
    z-index: 0;
}

aside .blue * {
    position: relative;
    color: #fff;
    z-index: 1;
}

aside .blue h3::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1vw;
    width: 25%;
    margin-left: -12.5%;
    border-bottom: 1px solid #b4a918;
    display: block;
}

.login-page #page {
    justify-content: center;
}

.login-page main {
    max-width: 640px;
    flex-basis: 100%;
}

section.hero {
    position: relative;
    padding-top: calc(240px + 4vw);
    padding-bottom: 4vw;
    color: #fff;
    background-color: #888;
    background-position: 50% 50%;
    background-size: cover;
    text-align: center;
    flex-basis: 100%;
}

section.small-hero {
    padding-top: 175px;
    padding-bottom: 0;
}

section.hero > div {
    z-index: 1;
}

section.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .45) 99%, rgba(0, 0, 0, .45) 100%);
}

.login-page section.hero {
    padding-top: calc(150px + 4vw);
}

.box {
    padding: 2em 0;
    background-color: #f8f8f8;
}

.box > * {
    margin-left: 2rem;
    margin-right: 2rem;
}

.red {
    background: #c00;
    color: #fff;
    padding: 1em;
}


/* FORM & BUTTONS */

input,
textarea,
select {
    padding: .5em .75em;
    font-family: inherit;
    font-size: .9em;
    line-height: inherit;
}

input[type=text],
input[type=password],
textarea,
select {
    position: relative;
    max-width: 100%;
    border: 1px solid #eee;
}

input[type=submit]:disabled {
    color: #ddd;
    background-color: #888;
    border-color: #888;
    cursor: not-allowed;
}

input:focus,
select:focus,
textarea:focus,
.coreTextButton1 a:focus,
.coreTextButton2 a:focus {
    box-shadow: 0 0 5px rgba(0, 0, 0, .75);
}

.label, label {
    font-weight: 700;
    display: block;
}

.limit-width {
    max-width: 800px;
}
.form.limit-width {
    max-width: 550px;
}

/* New form styles 2022-11-23 START */
.form .full-width {
    flex: 100%;
}
.form .half-width {
    flex: calc(50% - 2em);
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.form:not(.kommande-spec) .half-width > :last-child {
    margin-top: auto;
}

.form .full-width .half-width {
    width: calc(50% - 3px); /* Why 3px? */
    display: inline-block;
    margin-top: 1em;
    min-width: 180px;
}

.form .full-width .half-width:nth-child(2n+1) input {
    width: calc(100% - 1em);
}
@media(max-width:400px){
    .form .half-width {
        width: 100% !important;
    }
    .form .full-width .half-width:nth-child(2n+1) input {
        width: 100%;
    }
}
.label + .full-width {
    margin-top: 0px;
}
.form .full-width .full-width {
    margin-top: 1em;
}
.kommande-uppdrag th:not(th:first-child) {
    text-align: start;
}

.kommande-uppdrag td:not(td:first-child) {
    text-align: start;
}

.kommande-uppdrag th:first-child {
    width: 300px;
    max-width: 300px;
}

.history td {
    color: #808080;
}

.kommande-uppdrag td:first-child {
    width: 300px;
    max-width: 300px;
}
/* New form styles 2022-11-23 END */
.form {
    margin: 0 -1rem;
    display: flex;
    flex-wrap: wrap;
}

.form > * {
    margin: 0.5em 1rem;
    flex: 1 1 200px;
}

.form-wide > * {
    flex-basis: 300px;
}

.small-column .form {
    margin-left: -.5rem;
    margin-right: -.5rem;
}

.small-column .form > * {
    margin: .5rem;
}

.small-column .form > *:not(.width-1-1) {
    flex-basis: 150px;
}

.form > .field-narrow {
    flex-basis: 100px;
}

.small-column .form > .field-narrow {
    flex-basis: 60px;
}

.form > .field-wide {
    flex-basis: 400px;
}

.small-column .form > .field-wide {
    flex-basis: 350px;
}

.form > .bottom {
    align-self: flex-end;
}

.form > .middle {
    align-self: center;
}

.form input[type=text],
.form input[type=password],
.form select,
.form textarea {
    width: 100%;
    background-color: #eee;
}
input[type="checkbox"] + label {
    display: inline;
    margin-left: 0.5em;
}

.form .coreTextButton1,
.form .coreTextButton2,
.form input[type=submit] {
    margin-top: 1em;
    margin-bottom: 0;
}

.form .coreTextButton1:first-child,
.form .coreTextButton2:first-child,
.form input[type=submit]:first-child {
    margin-top: 0;
}

.form-field {
    padding-top: .5em;
    display: inline-block;
}

.coreTextButton1,
.coreTextButton2,
input[type=submit] {
    max-width: calc(100% - 1em);
    margin: 0 1em 1em 0;
    font-size: .9em;
    text-align: center;
    text-transform: uppercase;
    display: inline-block;
    cursor: pointer;
}

.coreTextButton1 a,
.coreTextButton2 a,
input[type=submit] {
    padding: .5em 1em;
    border: 1px solid;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    transition: all .2s ease-out;
}

.coreTextButton1 a,
input[type=submit] {
    color: #fff;
    background-color: #cbb900;
    border-color: #cbb900;
}

.coreTextButton2 a,
input[type=submit].reset {
    color: #00627d;
    background-color: transparent;
    border-color: #00627d;
}

.coreTextButton1 a:hover,
input[type=submit]:hover {
    background-color: rgba(203, 185, 0, .7);
}

.coreTextButton2 a:hover,
input[type=submit].reset:hover {
    color: #fff;
    background-color: #00627d;
}


/* TABLE */

table,
td {
    border: none;
}

th,
th * {
    font-weight: 700;
}

th {
    padding: 10px;
    background-color: #eee;
}

tbody td {
	padding: 5px 10px;
}

.table {
    overflow-x: auto;
}

table.nice-rows {
    width: 100%;
}

table.nice-rows thead tr {
    background-color: #eee;
}

table.nice-rows tbody tr:nth-child(even) {
    background-color: #f6f6f6;
}

tbody tr.table-marked:nth-child(even) {
    color: #e00;
}

tbody tr.table-marked:nth-child(odd) {
    color: #e00;
}

tbody tr.table-marked td,
li.list-marked {
    font-weight: 700;
}

.table-icon {
    width: 26px;
    padding-right: 0;
}

.table-icon img {
    min-width: 16px;
}

.pagingLinks {
    margin-top: 15px;
}

.pagingLinks a {
    margin-bottom: .25em;
    padding: 0 7px;
    color: #00627d;
    background: #fff;
    border: 1px solid #00627d;
    line-height: 1.5em;
    text-decoration: none;
    display: inline-block;
}

.pagingLinks a.selected {
    color: #fff;
    background-color: #00627d;
}


/* MISC */

.text-list > li {
    margin-bottom: 2em;
    padding: 0;
}

.text-list > li:last-child {
    margin-bottom: 0;
}

iframe,
embed {
    max-width: 100%;
    border: 1px solid #eee;
}

.embed-container {
    position: relative;
    padding-top: 56.25%;
}

.embed-container > iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.align-center {
    text-align: center;
}

div.title {
    padding-bottom: 0;
    flex-basis: 100%;
}

div.title > h2,
div.title > h3,
div.title > h5 {
    margin-bottom: 0;
}

.clear {
    clear: both;
}

.coreHdelimiter {
    margin: 1em 0;
    border-top: 1px solid #eee;
}

.coreHdelimiter hr {
    display: none;
}


.notice-count {
    padding: 0 .25em;
    color: #fff;
    background-color: #c00;
}

#menu .notice-count {
    margin-left: .25em;
}


.news-image {
    max-width: 480px;
    margin-bottom: .5em;
}

.footer-margin {margin-bottom:200px;}
.margin-top { margin-top: 1em; }
.margin-bottom {  margin-bottom: 1em; }

.addFile span {
    font-weight: 300;
}
.addFile div * {
    display: inline-block;
}
.kommande-spec div * {
    padding: 5px 10px;
    display: block;
}
.kommande-spec div {
    background-color: #eee;
}
.kommande-spec .label {
    background-color: #fff;
}