* {
    box-sizing: border-box;
}

header {
    flex: 0 0 8em;
    display: flex;
    align-items: center;
    padding: 0;
    background: #00283A;
    color: white;
}

header .page-width {
    display: flex;
    justify-content: center;
    align-items: center;
}

header h1 {
    flex: 1 1 auto;
    text-align: right;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

img.logo {
    height: 40px;
}

header a {
    text-decoration: none;   
}

header a h1 {
    color: white;
    
    font-size: 2em;
}

.page-width {
    width: min(100vw - 50px, 1000px);
    margin: 0 auto;
}

.info {
    background: white;
    padding: 1em;
    width: 20em;
    text-align: center;
    border-radius: 8px;
}

* {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

body {
    padding: 0;
    margin: 0;
    height: 100vh;
    
    display: flex;
    flex-direction: column;
    
    background: #063448;
}

.content {
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
}

.pane {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
}

.pane-inner-container {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 100%;
}

.pane-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em 0;
    overflow: auto;
    gap: 2em;
}

table th {
    text-align: left;
}

form input:not([type="submit"]), form textarea, form select {
    width: 100%;
    padding: 0.7em;
    border-radius: 0.3em;
    border-width: 1px;
    min-height: 3em;
    border-color: #e4e4e4;
    border-style: solid;
    color: #555;
    font-size: 13.3333px;
}

form textarea {
    resize: vertical;
}

form input[type="submit"] {
    width: 10em;
    max-width: 100%;
}


.main-pane {
    background: white;
    border-radius: 0.3em;
    padding: 2em;
    width: 50em;
    max-width: calc(100% - 4em);
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.modal {
	display: flex;
	position: fixed;
	z-index: 100;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	align-items: center;
    justify-content: center;
    border-radius: 0.3em;
}

.dialog-content {
    background: #eee;
    margin: 0 auto;
    text-align: center;
    padding: 2em;
}

.dialog-content h3 {
    padding-bottom: 1em;
    margin: 0;
}

.dialog-content textarea {
    width: 100%;
    height: 10em;
    margin-bottom: 1em;
}

button, .button, input[type="submit"] {
    outline: none;
    border: none;
    color: #b1ddeb;
    background-color: #133541;
    transition: background-color 0.2s;
    font-family: inherit;
    font-size: 1em;
    padding: 1em;
    text-decoration: none;
    border-radius: 0.3em;
}

button:not([disabled]), .button:not([disabled]), input[type="submit"]:not([disabled]) {
    cursor: pointer;
}
    
button:not([disabled]):hover, .button:not([disabled]):hover, input[type="submit"]:not([disabled]):hover {
    background-color: #063448;
}

button[disabled], .button[disabled], input[type="submit"][disabled] {
    background-color: #888;
    color: white;
}

form table {
    width: 100%;
}

form table td {
    padding-left: 0.3em;
    padding-right: 0.3em;
}

form table td:first-child {
    padding-left: 0;
}

form table td:last-child {
    padding-right: 0;
}

select {
    height: 26px;
}

.field {
    padding-bottom: 1em;
}

.field-group table:last-child .field {
    padding-bottom: 0;
}

.field-name {
    font-weight: 600;
    color: #2e83a1;
}

.field h3 {
    margin: 0;
    padding-top: 1em;
    font-size: 1.5em;
    text-transform: uppercase;
    font-weight: 800;
    color: #1b4f60;
}

.field-group table:first-child .field h3 {
    padding-top: 0;
}

.product-brief {
  counter-reset: fieldgroup;
}

.field-group-container {
    position: relative;
    left: -2em;
    display: flex;
}

.field-group-container .field-group-left {
    flex: 0 0 2em;
    padding-top: 1.7em;
}

.field-group-container .field-group {
    flex: 1 0 0;
}

/** Login form */
#MemberLoginForm_LoginForm fieldset {
    border: none;
}

#MemberLoginForm_LoginForm .field {
    margin: 1em 0;
}

#MemberLoginForm_LoginForm .field:first-of-type {
    margin-top: 0;
}

#MemberLoginForm_LoginForm input[type='checkbox'] {
    width: auto;
}

.root .pane-inner {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
}

.add-form {
    display: flex;
    gap: 2em;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;

    flex: 2 2 calc(60% + 2em);
}

.type-select, .sign-content, .basket {
    background: #00283A;
    color: white;
    padding: 2em;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    flex: 1 1 30%;
    height: fit-content;
}

h3 {
    font-weight: 600;
    margin: 0;
}

.type-select .type-item input[type="radio"] {
    display: none;
}

.sign-content textarea {
    height: 10em;
    border-radius: 8px;
    width: 100%;
}

.sign-content input[type="submit"] {
    margin-top: 1em;
}

.root .pane-inner > .basket {
    background: white;
    color: #00283A;
}

.type-item {
    text-align: center;
}

.type-item img {
    background: white;
    padding: 1em;
    display: block;
    margin: 1em auto 0.5em auto;
    border-radius: 8px;
    border: 3px solid transparent;
}

.type-item .name {
    font-size: 14px;
    font-weight: 600;   
}

.type-item input:checked + div img {
    border-color: #0099D2;
}

.line-items {
    list-style-type: none;
    padding: 0;
    width: 100%;
    text-align: left;
    flex-grow: 1;
}

.line-items li {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    margin-bottom: 1.5em;
}

.line-items .item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.line-items .item-type {
    flex-grow: 1;
    font-weight: 700;
}

.line-items .item-price {
    font-weight: 700;
}

.item-remove {
    color: grey;
    margin-left: 0.5em;
}

.basket-summary {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.basket input[type="submit"] {
    margin-top: 1em;
}

.basket-summary > * {
    font-weight: 700;
}

.basket-notes {
    text-align: left;
}

.basket-notes textarea {
    margin: 1em 0;
}