html { font-size: 16px; background-color: #f9f9f9; line-height: 1.5; font-family: Arial, Helvetica, sans-serif; }
body > footer { margin: 2rem 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: #000000; }
a:hover { text-decoration: underline; }
button, input[type=submit] { display: inline; width: auto; background-color: #dadada; padding: 0.4rem 1rem; }
button:hover, input[type=submit]:hover { background-color: #cacaca; cursor: pointer; }
input, textarea, button, select {
	font: inherit; display: block; box-sizing: border-box; width: 100%; padding: 0.4rem 0.7rem; line-height: 1.5; color: #212529; appearance: none; background-color: #ffffff; background-clip: border-box;
	border: 1px solid #dee2e6; border-radius: 0.4rem; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
label { display: block; font-size: 1.1em; margin: 1rem 0 0.2rem 0; font-weight: bold; }
h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; text-wrap: balance; font-weight: bold; margin: 0 0 0.5rem; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: solid 1px #999999; padding: 0 0 0.2rem; }
h2 span { margin: 0 0 0 0.3rem; font-size: 0.6em; font-weight: normal; color: #999999; }
h2 a { margin: 0 0 0 0.6rem; font-size: 0.5em; font-weight: normal; color: #666666; text-decoration: underline; }
h2 a:hover { color: #000000; }
h3 { font-size: 1rem; margin: 1.3rem 0 0.3rem 0; }
h4 { font-size: 0.9rem; }
h5 { font-size: 0.8rem; }
h6 { font-size: 0.6rem; }
p { overflow-wrap: break-word; text-wrap: wrap; min-height: 0.5em; }
ul { padding: 0; list-style: none }
* { margin: 0; }
form > ul > li { margin: 0 0 0.5rem 0; }
svg.building { color: #2758fd; }

section#sidebar { background-color: #e9e9e9; display: flex; flex-direction: column; box-shadow: 1px 0 2px 0 rgba(0,0,0,0.25); z-index: 1; }
section#sidebar figure { display: flex; margin: 0.2rem; }
section#sidebar figure img { width: 75px; margin: 1rem; }
section#sidebar figure figcaption { align-self: center; }
section#sidebar nav { margin: 1rem 0; flex-grow: 1; display: flex; flex-direction: column; }
section#sidebar nav div:first-child { flex-grow: 1; }
section#sidebar nav svg { position: relative; top: 6px; width: 1.5rem; }
section#sidebar nav a { display: block; font-size: 1.1rem; color: #000000; margin: 0.2rem 0.5rem; padding: 0.2rem 0.5rem; text-decoration: none; }
section#sidebar nav a.selected { background-color: #acacac40; }
section#sidebar nav a:hover { background-color: #acacac40; text-decoration: none; }
section#sidebar form { display: block; }
section#sidebar form button { all:unset; display: inline; cursor: pointer; font-size: 1.1rem; color: #000000; margin: 0.2rem 0.5rem; padding: 0.2rem 0.5rem; box-sizing: content-box; }
section#sidebar form button:hover { background-color: #acacac40; }
section#sidebar footer { background-color: #ff0000; color: #ffffff; padding: 0; }
section#sidebar footer a { color: #ffffff; text-decoration: underline; font-size: 1rem; }
section#sidebar footer p { margin: 0.8rem 1rem; }

section#topbar { width: 100%; }
section#topbar > div { display: flex; justify-content: space-between; }
section#topbar .companyname { padding: 0.8rem 0.8rem 0.8rem 1rem; font-size: 1.1rem; }
section#topbar .showmenu { min-width: 2rem; width: 2rem; padding: 0.5rem 0.5rem 0 0.5rem; }
section#topbar .search { text-align: right; padding: 0.3rem 0 0.3rem 1rem; flex-grow: 1; }
section#topbar .search input { max-width: 300px; display: inline-block; }
section#topbar div.notifications { height: 2rem; width: 2rem; min-width: 2rem; padding: 0.5rem; }
section#main { font-size: 0.9rem; padding: 0.1rem 1rem; }

@media (min-width: 1201px) {
	section#sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 300px; }
	section#topbar { position: absolute; top: 0; left: 0; }
	section#topbar > div { margin: 0 0 1rem 320px; }
	section#topbar .showmenu { display: none; }
	section#topbar .companyname { display: none; }
	section#main { margin: 6rem 0 0 320px; }
}
@media (max-width: 1200px) {
	section#sidebar { position: relative; height: auto; width: 100%; background: url('/square-logo-2.jpg') center center no-repeat; }
	section#sidebar::before { content: ""; position: absolute; inset: 0; background-color: #fffffff0; z-index: 2; }
	section#sidebar nav { z-index: 3; margin: 1rem auto; }
	section#sidebar figure { display: none; }
	section#sidebar footer { display: none; }
	section#topbar { position: relative; background-color: #e71313; color: #ffffff; }
	section#topbar > div { margin: 0 0 0.1rem 0; }
	section#main { margin: 1rem 0 0 0; }
}
@media (min-width: 801px) and (max-width: 1200px) {
	section#sidebar nav a { display: inline-block; margin: 0; }
	section#sidebar nav { text-align: center; }
	section#sidebar nav button { display: inline-block; margin: 0; }
}
@media (max-width: 500px) {
	section#topbar .companyname { display: none; }
}

span.order-status { display: inline-block; padding: 0.1rem 0.4rem; text-align: center; font-weight: bold; font-size: 0.9em; }
span.order-status.new { background-color: #dadada; color: #333333; }
span.order-status.planned { background-color: #4768fd; color: #f0f0f0; }
span.order-status.started { background-color: #ffbb77; color: #333333; }
span.order-status.confirming { background-color: #ff9966; color: #333333; }
span.order-status.finished_confirmed { background-color: #bbffad; color: #333333; }
span.order-status.locked { background-color: #333333; color: #f0f0f0; }

table { border-spacing: 0 0.5rem; }
table tbody tr { position: relative; background-color: #ffffff; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2); }
table thead th { padding: 1rem 0.3rem 0; font-weight: bold; color: #333333; background-color: transparent; text-align: left; }
table thead th svg { width: 1.2rem; position: relative; top: 5px; left: 3px; }
table tbody tr:hover { cursor: pointer; box-shadow: 0px 4px 5px -1px rgba(0,0,0,0.2); top: -1px; left: -1px; }
table tbody tr a { position: absolute; inset: 0; background-color: transparent; }
table tbody tr td { padding: 0.3rem; vertical-align: top; }
table tbody tr td span:nth-of-type(1) { display: block; font-size: 0.8em; font-weight: bold; min-height: 1em; }
table tbody tr td span:nth-of-type(2) {}
table.greedy { width: 100%; max-width: 1200px; margin: 0 0 2rem; }

@media (min-width: 801px) {
	table tbody tr td img { height: 3rem; }
	table tbody tr td.img { width: 1%; text-align: center; }
	table tbody tr td.img svg { height: 3rem; width: 2rem; }
	table tbody tr td.img div { display: inline-block; }
	table tbody tr td.img img { height: 3rem; width: auto; max-width: none; margin: 0 auto; }
	table tbody tr td label { display: none; }
}
@media (max-width: 800px) {
	table thead { display: none; }
	table tbody tr { display: grid; grid-template: auto auto auto / 1fr 1fr; grid-auto-flow: row dense; }
	table tbody tr td {}
	table tbody tr td.img img { height: auto; width: 100%; }
	table tbody tr td.wide { grid-column: span 2; order: 0; }
	table tbody tr td.tall { grid-row: span 4; order: 0; }
	table tbody tr td label { display: block; font-size: 0.8em; margin: 0; }
}

ul.flashes { margin: 1rem 1rem 0.5rem 1rem; }
ul.flashes li { padding: 1rem; border-radius: 10px; border: none; }
ul.flashes li.ok { background-color: #bbffad; }
ul.flashes li.error { background-color: #ff6767; }
ul.flashes li.warning { background-color: #fcffe0; }
ul.flashes li.text { background-color: #ffffff; }

ul.auto-col { display: grid; grid-gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, max-content)); margin: 0 0 1rem; }
ul.auto-col > li {}

ul.img-text { border-radius: 4px; border: solid 1px #f2f2f2; color: #494848; }
ul.img-text > li { background-color: #ffffff; border: none; }
ul.img-text > li > a { display: flex; justify-content: space-between; border-bottom: 1px solid #eeeeee; color: inherit; padding: 1rem; }
ul.img-text > li > a { text-decoration: none; }
ul.img-text > li:hover { background-color: #eeeeee; }
ul.img-text > li > a > div { flex-grow: 1; font-size: 0.8rem; padding: 0 1rem; min-width: 0; }
ul.img-text > li > a > div img { }
ul.img-text > li > a > div:first-child { width: 100px; flex-grow: 0; flex-shrink: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
ul.img-text > li > a > div:last-child { width: auto; flex-grow: 0; flex-shrink: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
ul.img-text > li > a > div footer { font-style: italic; font-size: 0.7rem; }
ul.img-text > li > a img { width: 100%; }

ul.title-text { border-radius: 4px; border: solid 1px #f2f2f2; color: #494848; margin: 0 0 1rem; }
ul.title-text > li { display: grid; grid-template-columns: 1fr auto; background-color: #ffffff; border-bottom: 1px solid #eeeeee; }
ul.title-text > li.warning { background-color: #fcffe0; }
ul.title-text > li > div { padding: 0.5rem; }
ul.title-text > li > div:nth-of-type(1) { font-weight: bold; }
ul.title-text > li > div:nth-of-type(3) { grid-area: auto / span 2; }

ul.files li { display: inline-block; margin: 0 0.3rem 0.3rem 0; }
ul.files li a { padding: 0.2rem 0.3rem 0.2rem 0; border: solid 1px #eaeaea; font-size: 0.8em; }
ul.files li a:hover { text-decoration: none; background-color: none; cursor: pointer; box-shadow: 0px 4px 5px -1px rgba(0,0,0,0.2); position: relative; top: -1px; left: -1px; color: #000000; }
ul.files li svg { height: 1rem; position: relative; top: 4px; left: 0px; }
ul.images li { display: inline-block; margin: 0 0.4rem 0 0; padding: 0; }
ul.images li a { display: inline-block; padding: 0; margin: 0; }
ul.images li a:hover { text-decoration: none; cursor: pointer; box-shadow: 0px 4px 5px -1px rgba(0,0,0,0.2); position: relative; top: -1px; left: -1px; }
ul.images li img { height: 5rem; margin: 0; padding: 0; }

div.page > div.top { border-bottom: solid 1px #999999; }
div.page svg { width: 1.2rem; position: relative; top: 5px; left: 0px; }
@media (min-width: 901px) {
	div.page { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; grid-gap: 0 1rem; }
	div.page > div.top { grid-column: span 3; }
	div.page > div.right { grid-column: 3; }
	div.page > div.left { grid-column: span 2; }
}

#page-login { max-width: 1920px; margin: 0 auto; padding: 0; }
#page-login h2 { border: none; padding: 0 0 0 0.3rem; }
#page-login label { font-weight: normal; }
#page-login header { display: flex; flex-wrap: nowrap; justify-content: space-between; margin: 2rem 0 5rem 0; max-width: 1200px; margin: 1rem auto; overflow: hidden; }
#page-login header img { height: 100px; }
#page-login div.news { max-width: 1200px; margin: 0 auto; }
@media (max-width: 1200px) {
	#page-login header img { display: none; }
	#page-login header img:last-child { display: block; margin-left: 1rem; }
}
#page-login div.banner {
	display: flex; justify-content: space-between;
	margin: 0 auto 3rem; padding: 0; max-width: 1920px; background-color: none; min-height: 700px; background-image: url('/banner-2.jpg');
}
#page-login div.banner .box { display: block; padding: 1rem; margin: auto; box-shadow: 4px 4px 6px 0px rgba(0,0,0,0.45); width: 500px; background-color: #ffffff; }
