/*!
 * BA Emballage Application
 * Content Stylesheet
 *
 * @version 2.0
 * @date 2018-08-08
 */

/* Box sizing */

html {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
*, *:before, *:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

/* Body */

* {
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

body {
	font-family: 'filson-pro', Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	background: #EEE;
	color: #4F4f4F;
	line-height: normal;
	-webkit-font-smoothing: antialiased;
	font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

#loader {
	position: fixed;
	z-index: 99999999;
	top: 50%;
	left: 50%;
	width: 100px;
	height: 30px;
	margin: -60px 0 0 -50px;
	padding-top: 90px;
	background: #2d2d2d;
	background-size: 60px;
	border-radius: 5px;
	opacity: 0.7;
	color: #fff;
	text-align: center;
}

.hide {
	display: none !important;
}

/* Messages */

.page-messages {
	position: relative;
	list-style: none;
	margin: 0 0 20px 0;
	padding: 12.5px 15px;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}

#error_messages {
	background-color: #EF5350;
}

#success_messages {
	background-color: #9CCC65;
}

#info_messages {
	background-color: #fff;
	color: #111;
}

/* Text */

h1, h2, h3 {
	font-family: 'filson-pro', Helvetica, Arial, sans-serif;
	color: #5d5d5d;
}

h1 {
	margin: 20px 0;
	font-weight: 700;
	font-size: 24px;
}

h2 {
	margin: 20px 0 10px 0;
	font-weight: 700;
	font-size: 16px;
}

h3 {
	margin: 10px 0;
	font-weight: 700;
	font-size: 14px;
}

p {
	margin: 20px 0;
	line-height: 1.3;
}

b, strong {
	font-weight: 600;
}

ul, ol {
	margin: 20px;

	line-height: 1.7;
	list-style-position: inside;
}

dl {
	margin: 20px 0;
}

dt, dd {
	display: inline-block;
	vertical-align: top;
	width: 50%;
	line-height: 1.5;
}

dt {
	font-weight: 700;
}

dd {
	margin-left: -4px;
}

a {
	color: #4F4F4F;
	text-decoration: none;
	transition: all 0.25s;
}

a:hover, a:focus {
	color: #2d2d2d;
	text-decoration: none;
}

.disabled {
	cursor: not-allowed;
}

a img {
	border: 0;
}

img {
	max-width: 100%;
	height: auto;
}

.badge {
	display: block;
	position: absolute;
	top: -5px;
	right: -3px;
	padding: 1px 4px 0;
	min-width: 6px;
	height: 13px;
	background: #ea4e2d;
	border-radius: 7px;
	font-size: 10px;
	color: #fff;
	line-height: 1;
	text-indent: 0;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

.admin-table-pagination {
	font-size: 0;
	text-align: left;
}

.pagination-link {
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
	text-align: center;
	margin: 0 5px;
}

.pagination-link.current {
	color: #fff;
	background: #616161;
}

.pagination-link.disabled {
	cursor: not-allowed;
}

/* Tables */

table {
	margin: 0;
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

th, td {
	height: 40px;
	padding: 10px;
	font-size: 14px;
}

tr td:first-of-type {
	border-radius: 5px 0 0 5px;
}

tr td:last-of-type {
	border-radius: 0 5px 5px 0;
}

th {
	font-weight: 500;
	text-align: left;
}

th a {
	color: #4f4f4f;
}

td {
	background: #fff;
	border-bottom: 5px solid #eee;
}

table th, table td {
	overflow: hidden;
	text-overflow: ellipsis;
}

.checkbox-column {
	width: 20px;
}

.empty-result td, .empty-result {
	text-align: center;
}

.sort-column {
	display: block;
}

.sort-column:after {
	font-family: 'Font Awesome 5 Pro';
	font-weight: 900;
	content: '\f0dc';
	margin-left: 7.5px;
	font-size: 10px;
}

.sort-column-up:after {
	font-family: 'Font Awesome 5 Pro';
	content: '\f0de';
	position: relative;
	top: 2px;
	margin-left: 7.5px;
	font-size: 12px;
}

.sort-column-down:after {
	font-family: 'Font Awesome 5 Pro';
	content: '\f0dd';
	position: relative;
	bottom: 2px;
	margin-left: 7.5px;
	font-size: 12px;
}

.sort-column:hover, .sort-column:focus {
	color: #2d2d2d;
}

/* Grids */

.spread-grid {
	display: table;
	table-layout: fixed;
	width: 960px;
	height: 100%;
}

.spread-row {
	display: table-row;
}

.spread-img {
	width: 100%;
}

.spread-1-2, .spread-1-3, .spread-1-4, .spread-2-3, .spread-3-4, .spread-a {
	display: table-cell;
	vertical-align: top;
	height: 100%;
}

.inline-1-1, .inline-1-2, .inline-1-3, .inline-1-4, .inline-2-3, .inline-3-4 {
	display: inline-block;
	vertical-align: top;
	width: 100%;
	box-sizing: border-box;
}

.inline-1-2, .spread-1-2, .block-1-2 {
	width: 50%;
}

.inline-1-3, .spread-1-3, .block-1-3 {
	width: 33.33%;
}

.inline-1-4, .spread-1-4, .block-1-4 {
	width: 25%;
}

.inline-2-3, .spread-2-3, .block-2-3 {
	width: 66.66%;
}

.inline-3-4, .spread-3-4, .block-3-4 {
	width: 75%;
}

.inline-left > * {
	margin-right: 10px;
}

.inline-right > * {
	margin-left: 10px;
}

.inline-wrapper {
	display: block;
	width: auto;
	letter-spacing: -0.31em;
}

.grid-gutter {
	margin-left: -10px;
	margin-right: -10px;
}

.grid-gutter > [class*='inline-'] {
	margin-left: 10px;
	margin-right: 10px;
	letter-spacing: normal;
}

[class*='inline-'] .form-group {
	margin: 10px 0;
}

.grid-gutter .inline-1-1 {
	width: calc(100% - 20px);
}

.grid-gutter .inline-1-2 {
	width: calc(50% - 20px);
}

.grid-gutter .inline-1-3 {
	width: calc(33.33% - 20px);
}

.grid-gutter .inline-1-4 {
	width: calc(25% - 20px);
}

.grid-gutter .inline-2-3 {
	width: calc(66.66% - 20px);
}

.grid-gutter .inline-3-4 {
	width: calc(75% - 20px);
}

.spread-content {
	height: 100%;
	background: #fff;
}

.spread-content h2, .spread-content h3 {
	margin: 15px 10px;
}

.spread-content p, .spread-content dl, .spread-content ul {
	margin: 15px 10px;
}

/* Forms */

fieldset {
	margin: 0;
	border: 0;
}

.form-section {
	margin-top: 20px;
}

.form-group, .form-control-group {
	position: relative;
	margin: 0;
}

label h2, label h3 {
	display: inline;
	margin: 0;
}

.form-group label {
	display: block;
	margin-bottom: 2px;
	font-weight: 500;
}

.hide-label, .form-no-labels label {
	position: absolute;
	height: 0;
	overflow: hidden;
}

.form-aligned .form-group label, .faux-label {
	display: inline-block;
	vertical-align: top;
	width: 25%;
}

.form-aligned .form-group input, .form-aligned .form-group textarea, .form-aligned .form-group .faux-input {
	width: 73%;
	max-width: 100%;
}

.form-aligned .form-group input.inline-1-2 {
	width: 36.3%;
}

.form-aligned .form-group .form-listview-input input.inline-1-2 {
	width: 49.7%;
}

.form-aligned .form-group input[type=radio], .form-aligned .form-group input[type=checkbox] {
	margin-top: 10px;
}

.form-aligned .form-group select {
	display: inline-block;
	max-width: 145px;
}

.form-control-group input, .form-table-row input {
	display: inline-block;
	margin: 0 10px;
}

.form-control-group label, .form-table-row, .form-table-row.expand-list, .form-listview-item {
	display: block;
	padding: 7.5px 0;
}

.form-table-row {
	display: block;
	overflow: hidden;
}

.form-table-row > label {
	display: block;
	float: left;
	margin-top: 6px;
}

.form-table-cell {
	display: inline-block;
	text-align: center;
	margin: 0 10px;
}

.form-table-align {
	float: right;
	text-align: right;
}

.form-aligned .form-table-align input[type="radio"], .form-aligned .form-table-align input[type="checkbox"] {
	margin-top: 0;
}

.form-table-cell-indent {
	clear: both;
	margin-left: 20px;
}

.form-table-row .form-control-group li:last-of-type label {
	border-bottom: 0;
}

.form-aligned .form-table-align input {
	width: auto;
}

.form-aligned .form-listview-control .form-listview-input {
	display: inline-block;
	width: 63%;
	width: calc(73% - 24px);
}

.form-aligned .form-listview-control .action-link {
	margin: 0 0 0 3px;
}

.form-inline .form-group {
	display: inline-block;
	vertical-align: top;
	margin-right: 20px;
}

.form-inline .form-group label {
	width: auto;
	margin-top: 0;
}

.form-inline .form-group button, .form-inline .form-group .button {
	vertical-align: middle;
}

.form-inline .button-group {
	display: inline-block;
	vertical-align: middle;
	margin-left: 30px;
	padding-top: 22px;
	max-width: none;
}

.input-help {
	display: block;
	font-size: 0.9em;
	font-style: italic;
}

.faux-input {
	display: inline-block;
	vertical-align: top;
	margin-top: 7px;
	margin-bottom: 2px;
}

.form-floatover {
	position: absolute;
	top: 50%;
	right: 10px;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

.form-floatover-icon {
	overflow: hidden;
	font-size: 2em;
	letter-spacing: 2px;
}

input[type="text"],
input[type="search"],
input[type="tel"],
input[type="phone"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
select {
	-webkit-appearance: none;
	width: 100%;
	height: 40px;
	background: #fff;
	border: 0;
	padding: 0 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
	line-height: 40px;
	color: #4f4f4f;
}

input:focus,
textarea:focus,
select:focus,
span.select2-selection.select2-selection--single {
	outline: none;
}

input[type="search"] {
	background-image: url("../images/icon-search.svg");
	background-size: 14px 14px;
	background-repeat: no-repeat;
	background-position: 15px 12.5px;
	padding: 0 15px 0 37.5px;
}

textarea {
	min-width: 100%;
	max-width: 100%;
	min-height: 80px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 15px;
}

select {
	background-image: url(../images/dropdown-arrows.svg);
	background-repeat: no-repeat, repeat;
	background-position: right 15px top 50%, 0 0;
	background-size: 6px auto, 100%;
}

.fullwidth-field {
	max-width: none;
}

.small-input {
	width: 5em !important;
}

.medium-input {
	width: 8em !important;
}

input[type=radio], input[type=checkbox], input[type=file], .form-aligned .form-group input[type=file] {
	padding: 0;
	width: auto !important;
	border: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
}

input[type=date] {
	min-width: 11em; /* Fixes Chrome bug https://code.google.com/p/chromium/issues/detail?id=172029 */
}

option {
	padding-right: 15px;
}

input, select, textarea, button {
	font-family: 'filson-pro', Helvetica, Arial, sans-serif;
}

input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0px 1000px #fff inset;
}

input[type=file], input[type=checkbox], input[type=radio] {
	border: 0;
}

input[disabled] {
	background: #faf9f9;
	color: #4f5251;
}

/* Styles för placeholders måste vara enskilda för varje renderingsmotor! */
::-webkit-input-placeholder {
	font-weight: 500;
	color: #A9A9A9;
	opacity: 1;
}

:-moz-placeholder {
	font-weight: 500;
	color: #A9A9A9;
	opacity: 1;
}

::-moz-placeholder {
	font-weight: 500;
	color: #A9A9A9;
	opacity: 1;
}

:-ms-input-placeholder {
	font-weight: 500;
	color: #A9A9A9;
	opacity: 1;
}

button, .button {
	display: inline-block;
	box-sizing: border-box;
	padding: 0 15px;
	height: 40px;
	background-color: #616161;
	border-radius: 5px;
	border: 0;
	font-size: 14px;
	font-family: 'filson-pro', Helvetica, Arial, sans-serif;
	font-weight: 500;
	color: #fff;
	line-height: 40px;
	text-align: center;
	-webkit-appearance: none;
	cursor: pointer;
}

button i,
.button i {
	margin-right: 7.5px;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
	background: #4f4f4f;
	color: #fff;
	outline: 0;
}

.button-group .button {
	border-radius: 5px 0 0 5px;
}

.button-group .button-dropdown {
	width: 30px;
	border-radius: 0 5px 5px 0;
	padding: 0;
	margin-left: 0 !important;
	border-left: 1px solid rgba(0,0,0,.1);
}

.button-block {
	display: block;
	width: 100%;
	height: 42px;
	line-height: 42px;
}

.button-block + .button-block {
	margin-top: 10px;
}

.inline-right > .button-block, .inline-right > .button-block {
    width: calc(100% - 10px);
}

.button-seamless, .button-seamless:hover, .button-seamless:focus {
	padding: 0;
	background: none;
	border-radius: 0;
	color: #555;
}

button[disabled], button[disabled]:hover, button[disabled]:focus {
	cursor: not-allowed;
	background: #666;
}

.form-buttons {
	overflow: hidden;
}

.form-buttons .button-secondary {
	float: left;
}

.form-buttons .button-primary {
	float: right;
}

.button.dynamic-delete {
	width: 40px;
	height: 40px;
	background: #fff;
	color: #EF5350;
	border: 1px solid #ccc;
	border-radius: 50%;
	padding: 0;
}

.button.dynamic-delete:focus {
	outline: 0;
}

.button.dynamic-delete i {
	margin: 0;
}

/* Fix for Firefox rendering buttons wrong */
button::-moz-focus-inner {
	margin-top: 0;
	margin-bottom: -1px;
	padding: 0;
	border: 0
}

/* Theme (colors) */

.t-success {
	color: #9CCC65;
}

.button.t-success {
	background-color: #9CCC65;
	color: #fff;
}

.button.t-success:hover, .button.t-success:focus {
	background-color: #8CB75B;
}

.t-danger {
	color: #EF5350;
}

.t-danger:hover, .t-danger:focus {
	color: #D84B48;
}

.button.t-danger {
	background-color: #EF5350;
	color: #fff;
}

.button.t-danger:hover, .button.t-danger:focus {
	background-color: #D84B48;
	color: #fff;
}

.t-warning {
	color: #f1c40f;
}

.t-warning:hover, .t-warning:focus {
	color: #DAB22A;
}

.button.t-warning {
	background-color: #f1c40f;
	color: #fff;
}

.button.t-warning:hover, .button.t-warning:focus {
	background-color: #DAB22A;
}

.button.t-neutral {
	background-color: #fff;
	border: 1px solid #ccc;
	color: #111;
}

.button.t-neutral:hover, .button.t-neutral:focus {
	background-color: #f1f1f1;
	color: #111;
}

/*
 * Dialog
 */

#dialog_overlay {
	display: none;
	position: fixed;
	z-index: 19999;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.7);
	width: 100%;
	height: 100%;
}

.dialog {
	display: none;
	position: fixed;
	left: 50%;
	top: 50%;
	background: #fff;
	border-radius: 5px;
	z-index: 20000;
	-ms-transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

.dialog-content {
	padding: 0 20px;
	height: 100%;
	overflow: auto;
	font-size: 15px;
}

.dialog-content header {
	margin: 0 -20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #ccc;
	padding: 0 20px;
}

.dialog-content h1 {
	font-size: 18px;
	margin: 0;
	padding: 20px 0;
}

.dialog-content img {
	width: 100%;
}

.dialog-content ul {
	padding: 0;
	margin: 20px 0;
	list-style: none;
}

.dialog-content table {
	margin-bottom: 20px;
}

.dialog-content th {
	background: #616161;
	color: #fff;
}

.dialog-content th:first-of-type {
	border-radius: 5px 0 0 0;
}

.dialog-content th:last-of-type {
	border-radius: 0 5px 0 0;
}

.dialog-content td {
	border-bottom: 1px solid #ccc;
}

.dialog-buttons {
	font-size: 0;
	margin: 30px 0 20px 0;
}

.dialog-buttons * {
	margin-right: 10px;
}

.dialog-close-button:after {
	position: absolute;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #EF5350;
	color: #fff;
	top: -12.5px;
	right: -12.5px;
	content: '\f00d';
	font-family: 'Font Awesome 5 Pro';
	font-size: 14px;
	font-weight: 900;
	text-align: center;
	line-height: 24px;
}

/*
 * Tipsy Tooltips
 */

.tipsy {
	position: absolute;
	z-index: 100000;
	padding: 5px;
	font-size: 11px;
}

.tipsy-inner {
	max-width: 200px;
	padding: 7px 15px;
	background-color: #202122;
	border-radius: 3px;
	color: #fff;
	text-align: center;
}

.tipsy-arrow {
	position: absolute;
	width: 0;
	height: 0;
	line-height: 0;
	border: 3px dashed #202122;
}

.tipsy-arrow-n {
	border-bottom-color: #202122;
}

.tipsy-arrow-s {
	border-top-color: #202122;
}

.tipsy-arrow-e {
	border-left-color: #202122;
}

.tipsy-arrow-w {
	border-right-color: #202122;
}

.tipsy-n .tipsy-arrow {
	top: 0;
	left: 50%;
	margin-left: -3px;
	border-bottom-style: solid;
	border-top: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-nw .tipsy-arrow {
	top: 0;
	left: 10px;
	border-bottom-style: solid;
	border-top: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-ne .tipsy-arrow {
	top: 0;
	right: 10px;
	border-bottom-style: solid;
	border-top: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-s .tipsy-arrow {
	bottom: 2px;
	left: 50%;
	margin-left: -3px;
	border-top-style: solid;
	border-bottom: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-sw .tipsy-arrow {
	bottom: 0;
	left: 10px;
	border-top-style: solid;
	border-bottom: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-se .tipsy-arrow {
	bottom: 0;
	right: 10px;
	border-top-style: solid;
	border-bottom: none;
	border-left-color: transparent;
	border-right-color: transparent;
}

.tipsy-e .tipsy-arrow {
	right: 0;
	top: 50%;
	margin-top: -3px;
	border-left-style: solid;
	border-right: none;
	border-top-color: transparent;
	border-bottom-color: transparent;
}

.tipsy-w .tipsy-arrow {
	left: 0;
	top: 50%;
	margin-top: -3px;
	border-right-style: solid;
	border-left: none;
	border-top-color: transparent;
	border-bottom-color: transparent;
}

/*
 * Multifile dragdrop upload
 */

.multifile-dropdrag {
	position: relative;
}

.multifile-dropdrag:after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding-top: 50%;
	background: #000;
	opacity: 0.6;
	font-size: 16px;
	text-align: center;
	color: #fff;
}

.js .multifile-dropdrag-target {
	padding: 20px;
	background: #eee;
	border: 1px dotted #ccc;
	border-radius: 5px;
}

.js .multifile-dropdrag-target:before {
	content: '';
	display: block;
	font-weight: 700;
	font-size: 18px;
}

.js .multifile-dropdrag-target label {
	display: block;
	overflow: hidden;
	height: 23px;
	color: transparent;
	margin: 5px 0 20px 0;
}

.js .multifile-dropdrag-target label:before {
	content: '';
	display: block;
	color: #4F4F4F;
}

.js .multifile-dropdrag-target input[type=file] {
	background: transparent;
}

/* Select2-styling */

.select2-container--default .select2-selection--single {
	height: 40px;
	border: 1px solid #ccc;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	height: 40px;
	line-height: 40px;
}

.select2-results__option {
	padding: 10px;
	border-bottom: 1px solid #ccc;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: #eee;
	color: #111;
}

.select2-results__group {
	background: #616161;
	color: #fff;
	border-bottom: 1px solid #ccc;
}

.select2-container--default .select2-results__group {
	padding: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 40px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	padding-left: 10px;
}

