:root{
	--color-yellow: #FD0;
	--color-yellow-light: #ffde59;
	--color-yellow-lighter: #fff0b2;
	--color-red: #d40511;
	--color-red-light: #eb131e;
	--color-red-dark: #9a0000;
	--color-black: #191919;
	--color-black-light: #333;
	--color-black-dark: #000;
}
/* Top Bar Stuff */
.top-bar, footer{
	height: 63px;
	vertical-align: middle;
	line-height: 20px;
	padding: 5px 0px;
}
.top-bar a{
	display: inline-block;
	height: 48px;
	vertical-align: middle;
}
.top-bar a.btn.btn-secondary{
	height: initial;
}
.top-bar .icons{
	padding: 10px;
	display: inline-block;
}
.top-bar .home-link{
	color: var(--color-red);
	font-weight: 800;
	line-height: 50px;
	font-size: 32px;
}
.top-bar .home-link:hover{
	color: var(--color-red-light);
}
.top-bar .home-link:active{
	color: var(--color-red-dark);
}
.top-bar .home-link:focus-visible{}
.top-bar .home-link img{
	display: inline-block;
	height: 100%;
	vertical-align: bottom;
}
.c-fluid{
	padding: 0px 15px;
	max-width: 1200px;
	margin: auto;
}
.main{
	margin-top: 15px;
	margin-bottom: 60px;
}
footer{
	position: fixed;
	bottom: 0px;
	left: 0px;
	right: 0px;
	padding: 0px 5px;
	margin-top: -50px;
	overflow: hidden;
}
footer .table{
	height: 100%;
}
footer .t-cell{
	text-align: center !important;
}
footer a.icons{
	display: inline-block;
	line-height: 34px;
	font-size: 28px;
}
footer a.disabled{
	color: #1116;
	pointer-events: none;
}
header a.icons{
	padding: 0px 20px;
}

/* Panel */
.panel{
	border-radius: .4rem;
	box-shadow: 0 0.1rem 0.4rem 0 rgba(50,50,50,.5);
}
.row, .s-row, .n-row{
	overflow: initial;
}
h1{
	font-size: 200%;
	margin-bottom: 5px;
}
h2{
	font-size: 150%;
	margin-bottom: 10px;
}
.panel-simple, .panel-link{
	padding: 5px;
	display: block;
	text-decoration: none !important;
}
.panel-link h3, .panel-simple h3{
	color: inherit;
	font-weight: 700;
	font-size: 120%;
}
.panel-link p, .panel-simple p{
	margin-top: 5px;
}
.section{
	border-bottom: 1px solid #CCC;
	margin: 5px -5px;
	padding: 10px 5px;
	clear: both;
}
.section:first-child{
	margin-top: 0px;
	padding-top: 0px;
}
.section:last-child{
	border-bottom: none;
	margin-bottom: 0px;
	padding-bottom: 0px;
}
.section > h3{
	color: inherit;
	font-weight: 800;
	font-size: 150%;
	margin-bottom: 5px;
}
.section .panel{
	margin-bottom: 5px;
}
h1 + .section{
	padding-top: 0px;
}
.panel-button, .panel-button-cell, .panel-button-tight{
	font-weight: 700;
	transition: background-color .2s, border .2s;
	color: #fff;
	background-color: #d40511;
	border: .1rem solid #d40511;
	border-radius: .4rem;
	cursor: pointer;
	font-size: 110%;
	overflow: hidden;
	padding: 5px 20px;
	position: relative;
	align-items: center;
	display: inline-flex;
	justify-content: center;
	width: 100%;
	margin: 10px 0px 0px 0px;
	text-decoration: none !important;
	user-select: none;
}
.panel-button-tight{
	margin: 5px 0px 0px 0px;
	padding: 6px 15px;
	font-size: 100%;
	text-decoration: none;
}
.panel-button-cell{
	margin: -5px 0px;
	padding: 3px 10px;
	font-size: 1.5rem;
	text-decoration: none;
}
.panel-condensed{
	font-size: 110%;
	line-height: 1.3;
}
.panel-condensed h4{
	font-weight: 700;
	padding: 0px;
	margin-bottom: 5px;
}
.panel-condensed h3{
	padding: 0px;
}
.panel-inline{
	padding: 0px;
}
.panel-inline .p-body{
	padding: 8px;
}
.panel-inline .panel-button{
	margin: 0px;
	padding: 0px;
	height: 49px;
}
.panel-inline-s .panel-button{
	height: 35px;
}
.panel-inline h3{
	line-height: 17px;
}
.panel-inline p{
	line-height: 14px;
}
.panel-invoice{
	font-size: 110%;
}
.panel-invoice h4{
	font-weight: 700;
	font-size: 105%;
	padding-bottom: 5px;
}
.panel-invoice p{
	line-height: 0.9;
}
.panel-invoice *[class*="col-"]{
	margin-bottom: 5px;
}
.bold{
	font-weight: 700;
}
.row::after{
	content: "";
	clear: both;
	display: block;
}
.section > .row>*[class*="col-"]{
	float: none;
}
.panel.quick-actions{
	display: flex;
}
.panel.quick-actions > *{
	padding: 20px;
	display: flex;
	justify-content: center;
}

m-10{
	margin-bottom: 10px;
}

/* Table Stuff */
.table .t-head{
	background: #eee;
	border-bottom-color: #d40511;
	font-weight: bold;
}
.table .t-row, .table .t-cell{
	border-color: #777;
}
.t-row.table-sum{
	border-top: 2px solid #222;
	font-weight: bold;
}
.table .t-cell{
	text-align: center;
}
.table .t-cell:first-child{
	text-align: left;
}
.table .t-cell:last-child{
	text-align: right;
}

/* Step Progress Bar */
.stepper-wrapper {
  display: flex;
  margin-bottom: 20px;
}
.stepper-item{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.stepper-item::before, .stepper-item::after, .stepper-item.completed::after {
  position: absolute;
  content: "";
  border-bottom: 3px solid #ccc;
  width: 100%;
  top: 20px;
  left: -50%;
  z-index: 2;
}
.stepper-item::after, .stepper-item.completed::after {
  left: 50%;
}
.stepper-item .step-counter {
	z-index: 5;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	padding-top: 1px;
	border-radius: 50%;
	background: #ddd;
	margin-bottom: 3px;
	border: 3px solid #ccc;
}

.stepper-item.active {
	font-weight: bold;
}
.stepper-item.active .step-counter{
	border-color: #d40511;
	border-width: 3px;
	background: #fff;
}
.stepper-item.completed .step-counter {
	border-color: #ffd21b;
	background: #fff;
}
.stepper-item.completed::after {
	border-bottom-color: #ffd21b;
	z-index: 3;
}
.stepper-item:first-child::before, .stepper-item:last-child::after{content: none;}

.p-update{
	padding: 5px 0px;
	border-bottom: 1px solid #ddd;
}
.p-update:last-child{
	border-bottom: none;
}
.p-update .u-info{
	padding-bottom: 3px;
}

/*Form Stuff*/
#calculation{
	font-size: 85%;
}
input, select, textarea, .image-label{
	-webkit-transition: box-shadow 0.25s, border-color 0.25s, background-color 0.15s;
	transition: box-shadow 0.25s, border-color 0.25s, background-color 0.15s;
	color: #333;
	border: 1px solid #a1a1a1;
	border-radius: 2px;
	box-shadow: inset 0 2px 3px rgb(0 0 0 / 10%), 0 0 5px 2px rgb(212 212 212 / 0%);
	font-size: 14px;
	line-height: 16px;
	padding: 6px 8px;
	width: 100%;
	margin-bottom: 10px;
	box-sizing: border-box;
}
input[type="checkbox"]{
	width: 24px;
	height: 24px;
	margin-top: 3px;
	margin-bottom: 13px;
}
textarea + .panel-button{
	margin-top: 0px;
}
.disabled-input{
	pointer-events: none;
	background: #ddd;
	color: #333;
}
.panel-button[type = "submit"]{
	font-size: 130%;
	padding: 10px 20px;
}
label, input{display: block;}
label{font-size: 12px;}
.details{
	line-height: 22px;
	font-weight: bold;
	font-size: 16px;
}
form h4{
	font-weight: 700;
}
.image-label{
	display: flex;
	position: relative;
	text-align: center;
	height: 275px;
	vertical-align: middle;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	overflow: hidden;
	word-break: break-all;
}
.image-label > input[type = "file"], .image-label > .image-preview, .image-label > #camera-canvas, .image-label > #captured-image{
	position: absolute;
	display: block;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
}
.image-label > #camera-canvas, .image-label > #captured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.image-label > img[src=""] {
	display: none !important;
}
.image-label > *{
	z-index: 1;
	text-shadow: 0px 0px 25px #FFF, 0px 0px 5px #FFFA;
}
.image-label > #captured-image{
	z-index: 2;
}
#take-picture, #cancel-picture{
	padding: 10px 20px;
	font-size: 16px;
}
#take-picture{
	margin-top: 131px;
}
#cancel-picture{
	background: #FFF;
	color: #d40511;
}
.image-label > .image-preview{
	opacity: 0.7;
	background-size: cover;
	z-index: 0;
	background-position: center;
}
#upload-filename, #capture-filename{
	font-size: 80%;
}
.warning{
	padding: 10px;
	font-size: 110%;
	border-radius: 5px;
	background: #F66;
	border: 2px solid #c00;
	margin-bottom: 10px;
	display: block;
}
.warning.w-green{
	background: #7F8;
	border: 2px solid #0e0;
}

/* On UI interactions */
.panel-button, .panel-link{
	transition: scale 0.2s;
}
.panel-button.hover, .panel-link.hover, .icons.hover{
	scale: 0.95;
}
.panel-link:hover h3, .panel-link.hover h3{
	color: #d40511;
}
a.icons.hover{
	color: #d40511;
}
a.icons.selected{
	scale: 1.1;
}
.t-small{
	font-size: 75%;
}

/* Tooltip */
.tool-tip-active{
	overflow: hidden;
}
.tool-tip-active #tool-tip-container{
	display: block;
}
#tool-tip-container{
	display: none;
	position: fixed;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	background: RGBA(100, 100, 100, 0.5);
	z-index: 10;
}
#tool-tip{
	background: #fff;
	position: fixed;
	max-width: calc(100% - 60px);
	max-height: calc(100% - 60px);
	width: 100%;
	box-shadow: 0px 0px 20px 1px #000;
	
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	
	border-radius: 5px;
	padding: 0px 20px;
	text-align: center;
	
	padding-top: 20px;
}
#tp-icon{
	font-size: 100px;
	line-height: 175px;
	color: #FC0;
	opacity: 0.7;
	margin-top: -20px;
}
#tp-head{
	font-size: 24px;
	margin-top: -10px;
	margin-bottom: 10px;
	font-weight: 800;
	color: #d40511;
}
#tp-body{
	font-size: 16px;
	margin-bottom: 10px;
}
#tp-confirm, #tp-cancel{
	display: block;
	width: 100%;
	margin: auto;
	padding: 10px;
	border: 1px solid #ddd;
	margin-bottom: 10px;
	border-radius: 5px;
}
#tp-confirm{
	border-color: #d40511;
	background: #d40511;
	font-weight: 700;
	color: #FFF;
}


/*Colors*/
header{
	background: rgb(255, 204, 0);
	background: linear-gradient(90deg, rgb(255, 204, 0), rgb(255, 204, 0) 48%, rgb(255, 229, 127) 70%, rgb(255, 240, 178));
}
footer{
	background: rgb(255, 204, 0);
	background: linear-gradient(180deg, rgb(255, 204, 0), rgb(255, 217, 65) 30%, rgb(255, 204, 0));
	z-index: 1;
}
.panel{
	background: #FFF;
}
h1, h2, h3{
	color: rgb(212, 5, 17);
	font-weight: 800;
}
html, body{
	background: #FFF;
	color: #191919;
	font-family: Delivery, Verdana, sans-serif;
}
* {
	-webkit-tap-highlight-color: transparent;
}

/* Icons */
.right-chev::after{
	color: #d40511;
	content: "\e643";
	font-family: dhlicons;
	vertical-align: top;
}
.icons{
	font-family: addicons;
	color: #000;
	font-size: 25px;
	text-decoration: none !important;
	line-height: 25px;
}
.icons.selected{
	color: #d40511;
}
.icons:active{
	color: #555;
}
.icons.i-archive::after{
	content: "\e910";
}
.icons.i-home::after{
	content: "\e901";
}
.icons.i-alert::after{
	content: "\e908";
}
.icons.i-user::after{
	content: "\e909";
}
.icons.i-form::after{
	content: "\e900";
}
.icons.i-camera::after{
	content: "\e906";
}
.icons.i-upload::after{
	content: "\e905";
}

/* Font */
@font-face{
	font-family:Delivery;
	font-style:normal;
	font-weight:400;
	src:url("/assets/fonts/delivery.woff") format("woff")
}
@font-face{
	font-family:Delivery;
	font-style:normal;
	font-weight:700;
	src:url("/assets/fonts/delivery bold.woff") format("woff")
}
@font-face{
	font-family:Delivery;
	font-style:normal;
	font-weight:800;
	src:url("/assets/fonts/delivery black.woff") format("woff")
}
@font-face{
	font-family:dhlicons;
	font-style:normal;
	font-weight:400;
	src:url("/assets/fonts/dhl icons.woff") format("woff")
}
@font-face{
	font-family:addicons;
	font-style:normal;
	font-weight:400;
	src:url("/assets/fonts/icomoon.woff") format("woff")
}

@media (min-width:800px) {
	html, body{
		font-size: 14px;
	}
}

@media (width >= 800px) {
	.header-align {
		margin-top: 3px;
	}
	.panel {
		margin-bottom: 15px;
	}
	.section .panel {
		margin-bottom: 15px;
	}
	.row>*[class*="col-"] {
		padding: 0px 8px;
	}
	.row {
		margin: 0px -8px;
	}
}



/* EXTRA STUFF */
.perm-nav{
	font-weight: 700;
}
.perm-nav a{
	text-decoration: none !important;
}

.flex-split{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Hamburger Menu */
.hamburger-checkbox {
	display: none;
}

.hamburger-label {
	display: inline-block;
	cursor: pointer;
	padding: 10px;
	position: relative;
	width: 30px;
	height: 24px;
	user-select: none;
}

.hamburger-label span,
.hamburger-label span::before,
.hamburger-label span::after {
	display: block;
	position: absolute;
	width: 100%;
	height: 3px;
	background-color: var(--color-black);
	border-radius: 2px;
	transition: all 0.3s ease-in-out;
}

.hamburger-label span {
	top: 50%;
	transform: translateY(-50%);
}

.hamburger-label span::before {
	content: '';
	top: -10px;
}

.hamburger-label span::after {
	content: '';
	top: 10px;
}

/* Hamburger animation when checked */
.hamburger-checkbox:checked + .hamburger-label span {
	background-color: transparent;
}

.hamburger-checkbox:checked + .hamburger-label span::before {
	top: 0;
	transform: rotate(45deg);
	background-color: var(--color-red);
}

.hamburger-checkbox:checked + .hamburger-label span::after {
	top: 0;
	transform: rotate(-45deg);
	background-color: var(--color-red);
}

/* Content controlled by hamburger */
.hamburger-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
	padding: 0 20px;
}

.hamburger-checkbox:checked ~ .hamburger-content {
	max-height: 1000px;
	padding: 20px;
}

.button-expandable{
	position: relative;
}
.pos-bottom-right{--position-top: 100%; --position-right: 0; --position-left: auto; --position-bottom: auto;}
.pos-top-left {--position-top: auto; --position-bottom: 100%; --position-left: 0; --position-right: auto;}
.pos-bottom-left {--position-top: 100%; --position-left: 0; --position-right: auto; --position-bottom: auto;}
.pos-top-right {--position-top: auto; --position-bottom: 100%; --position-right: 0; --position-left: auto;}

.button-expandable > label{
}
.button-expandable > label > input{
	display: none;
}
.button-expandable > label:not(:has(input:checked)) + .expandable-content{
	display: none;
}
.button-expandable .expandable-content{
	position: absolute;
	top: var(--position-top, 100%);
	bottom: var(--position-bottom, auto);
	right: var(--position-right, 0);
	left: var(--position-left, auto);
	background: #FFF;
	gap: 0;
	border-radius: 0.4rem;
	padding: 4px 0px;
	box-shadow: 0 0.1rem 0.4rem 0 rgba(50,50,50,.5);
	z-index: 1;
}
.expandable-content > *{
	flex: 1;
	padding: 4px 12px;
}
.expandable-content > *:hover{
	background: #eee;
	cursor: pointer;
	user-select: none;
}

/* Notifications */
.top-bar:has(.notification-control) > .c-fluid > .flex-row{
	flex-wrap: nowrap;
	align-items: center;
}
.notification-control > label{
	position: relative;
}
.notification-badge{
	position: absolute;
	top: 0;
	right: -3px;
	min-width: 19px;
	padding: 2px 4px;
	border: 2px solid var(--color-yellow);
	border-radius: 20px;
	background: var(--color-red);
	color: #fff;
	font: 700 11px/15px Delivery, sans-serif;
}
.notification-menu{
	width: 340px;
	max-width: calc(100vw - 30px);
	max-height: min(480px, calc(100dvh - 80px));
	overflow-y: auto;
}
.notification-menu .notification-item, .notification-menu button{
	display: block;
	height: auto;
	margin: 0;
	padding: 6px 12px;
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.notification-menu .notification-item:hover, .notification-menu button:hover{
	background: #eee;
}
.notification-item .t-small{
	display: block;
	color: #666;
}
.notification-menu div[id^="notification-page-"]{
	padding: 0;
}
.notification-menu button{
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
}
@media (max-width: 600px){
	.top-bar:has(.notification-control) > .c-fluid{
		position: relative;
	}
	.top-bar:has(.notification-control) > .c-fluid > .flex-row{
		gap: 6px;
	}
	.notification-control{
		position: static;
	}
	.button-expandable .notification-menu{
		right: 15px;
	}
	.top-bar:has(.notification-control) .home-link.no-translate{
		display: none;
	}
}

/* Language Guide */
.language-picker{
	line-height: 48px;
	display: flex;
	gap: 15px;
}
.language-link.is-active{
	font-weight: bold;
}
