html {
	font: 14px/19px "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.number {
	text-align: right;
}

@media screen {
	.list-view {
		border: 1px solid #ddd;
		border-collapse: separate;
		border-spacing: 0;
		margin: 20px;
	}

	.list-view th, .list-view td {
		padding: 9px 5px;
		line-height: 1.25;
		vertical-align: middle;
		color: #555;
	}

	.list-view th {
		font-weight: bold;
		font-size: 13px;
		background: #eee;
	}
}

@media print {
	.list-view {
		border-spacing: 0;
	}
}

.list-view td a {
	color: inherit;
	text-decoration: inherit;
	display: block;
}

th, td {
	padding: 0px 4px;
}

tr.underline td {
	border-bottom: 4px solid #ddd;
}

.list-view>tbody>tr:nth-child(even) {
	background-color: #f8f8f8;
}

.list-view>tbody>tr:nth-child(odd) {
	background-color: white;
}

.list-view tbody tr[onclick], [ng-click] {
	cursor: pointer;
}

.fit-width {
	width: fit-content;
	width: -webkit-fit-content;
	width: -moz-fit-content;
}

@media screen {
	.create-new, .hidden-form {
		border: 1px solid #ddd;
		margin: 20px;
		width: fit-content;
		width: -webkit-fit-content;
		width: -moz-fit-content;
	}

	.create-new h1, .hidden-form h1 {
		font-size: 16px;
		font-weight: normal;
		padding: 6px 12px;
		color: #555;
		background: #e8e8e8;
		margin: 0;
		cursor: pointer;
	}

	.create-new h1::before {
		content: '+ ';
		font-size: 18px;
		font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
		font-weight: bold;
	}

	.form-body {
		margin: 20px;
	}

	.controls {
		margin-left: 160px;
		margin-bottom: 18px;
	}

	.controls.text {
		font-size: 15px;
		color: #555;
		padding-top: 4px;
	}

	.controls .text {
		font-size: 15px;
		color: #555;
		padding-top: 4px;
	}

	input[type=text], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], textarea, select {
		background-color: white;
		border: 1px solid #ccc;
		border-radius: 3px;
		box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
		margin-left: 0;
		padding: 4px;
		font-size: 13px;
		line-height: 18px;
		color: #555;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
	}

	input[type=text][readonly] {
		border: 1px solid transparent;
		box-shadow: none;
	}

	input[type=text], input[type=password], input[type=tel], input[type=number], input[type=date], select:not([multiple]) {
		height: 28px;
	}

	input[type=text]:not([size]), input[type=password]:not([size]), input[type=tel]:not([size]) {
		width: 250px;
	}

	textarea:not([cols]) {
		width: 250px;
	}

	textarea:not([rows]) {
		height: 54px;
	}
}

@media print {
	input[type=text], input[type=password], input[type=tel], input[type=number], input[type=date], textarea, select {
		background-color: white;
		border: none;
		padding: none;
		box-shadow: none;
		margin-left: 0;
	}

	select {
		-webkit-appearance: none;
	}
}

.form-body label, .form-label {
	display: block;
	float: left;
	width: 140px;
	padding-top: 5px;
	text-align: right;
	font-weight: bold;
	font-size: 13px;
	line-height: 18px;
}

.form-body .controls label {
	display: inline;
	width: auto;
	padding: 0;
	float: none;
}

@media print {
	.create-new, .hidden-form {
		display: none;
	}

	.controls {
		margin-left: 160px;
		margin-bottom: 5px;
	}

	.form-body label, .form-label {
		padding-top: 2px;
	}
}

@media screen {
	button, .button {
		display: inline-block;
		outline: 0;
		margin: 0;
		padding: 6px 12px;
		font-size: 14px;
		line-height: 18px;
		text-align: center;
		cursor: pointer;
		border: none;
		color: #555;
		font-weight: normal;
		background: #e8e8e8;
	}

	a.button {
		text-decoration: none;
	}
}

@media print {
	button, .button {
		display: none;
	}
}

button[hidden] {
	display: none;
}

.margin {
	margin: 20px;
}

.control-instructions {
	color: #555;
	margin-top: 6px;
}

.default-button {
	color: white;
	background: #00aeef;
}

button[disabled], button.default-button[disabled], button.delete-button[disabled] {
	color: #eee;
	background: #ccc;
}

.delete-button {
	color: white;
	background: red;
	margin: 20px;
}

button[delete-path] {
	color: white;
	background: red;
	margin: 20px;
}

.row-delete-button {
	display: none;
}

.relative-base, td:has(.row-delete-button) {
	position: relative;
}

tr:hover .row-delete-button, .has-delete-button:hover .row-delete-button, .row-delete-button:hover {
	position: absolute;
	display: block;
	right: -35px;
	top: 8px;
	color: red;
	background: #FEE;
}

#map-canvas {
	clear: both;
	margin: 20px;
}

.leaflet-popup .leaflet-popup-content a {
	font: 14px/19px "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #555;
}

.float-left {
	float: left;
}

.float-right {
	float: right;
}

@media screen {
	header {
		position: fixed;
		top: 0;
		left: 0; 
		right: 0;
		min-height: 64px;
		z-index: 2000;
		box-shadow: 0 1px 5px rgba(70, 70, 70, 0.4);
		background-color: white;
	}

	body {
		padding-top: 64px;
	}
}

@media print {
	header {
	   display: none;
	}	   
}

.company-name {
	font-size: 36px;
	line-height: 1;
	color: green;
	font-weight: bold;
	float: left;
	display: block;
	margin-left: 20px;
	margin-top: 15px;
	text-decoration: none;
}

.company-name.blue {
	color: blue;
}

.user-info {
	float: right;
	margin-right: 20px;
	margin-top: 16px;
}

.inline-block {
	display: inline-block;
}

nav {
	float: left;
	margin: 17px 20px;
}

nav a {
	display: block;
	float: left;
	margin-right: 5px;
	font-size: 16px;
	line-height: 20px;
	padding: 5px 12px;
	color: #534d4b;
	text-decoration: none;
}

nav a:hover {
	color: #e45735;
	background-color: #fff0ed;
}

nav a.active {
	color: white;
	background-color: #e45735;
}

h1,
h3{
	margin: 20px;
}

.nowrap {
	white-space: nowrap;
}

#edit-farmer input[type=text]:not([size]), #edit-farmer textarea {
	width: 100%
}

.clear-both {
	clear: both;
}

.grand-total {
	font-size: 1.5em;
	font-weight: bold;
	text-align: right;
	margin: 20px;
}

.has-chemical {
	background-color: red !important;
}

.has-wheat {
	background-color: yellow !important;
}

.inactive-field td {
	color: #999999;
}

@media screen {
	.canceled,
	.booking-canceled {
		background-color: #ff0000 !important;
	}
	
	.created,
	.stopped,
	.booking-prelim {
		background-color: #f1ba92 !important;
	}

	.ordered,
	.booking-scheduled {
		background-color: #e2e2e2 !important;
	}

	.assigned,
	.quote,
	.booking-broker-req {
		background-color: #e6e898 !important;
	}

	.started,
	.booking-accepted {
		background-color: #a9e39f !important;
	}

	.processing,
	.pressed,
	.booking-in-process {
		background-color: #94dfef !important;
	}

	.received,
	.shipped,
	.booking-shipped {
		background-color: #ff80c0 !important;
	}

	.ready_to_ship,
	.booking-has-photos {
		background-color: #ffd600 !important;
	}

	.finished,
	.booking-invoiced {
		background-color: #fffd80 !important;
	}
}

fieldset {
	width: fit-content;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	padding-bottom: 0;
	margin-bottom: 18px;
}

.press-heading {
	page-break-before: always;
}

.booking-week-summary td {
	background-color: black;
	color: white;
}

.center {
	text-align: center;
}

.addresses {
	margin: 20px;
}

.addresses th {
	font-size: 1.5em;
}

.addresses td {
	vertical-align: top;
}

.addresses td:first-child, .addresses th:first-child {
	padding-right: 2.5in;
}

.total-label {
	font-weight: bold;
	text-align: right;
}

.total-row {
	font-weight: bold;
}

h1.printable-title {
	margin: 0;
	margin-bottom: 20px;
	text-align: center;
	font-size: 24px;
}

.order-info {
	text-align: right;
}

.report-table {
	margin: 20px 0;
}

.page {
	page-break-after: always;
}

.page:last-of-type {
	page-break-after: auto;
}

.bold {
	font-weight: bold;
}

.letterhead {
	background-image: url(/logo);
	background-repeat: no-repeat;
	background-position: 0.5in 0.125in;
	background-size: 2in;
}

.mr {
	margin-right: 20px;
}

.ml {
	margin-left: 20px;
}

@media print {
    .no-print {
        display: none;
    }
}

.sticky thead {
	position: sticky;
	top: 64px;
}

.input-tag {
	padding-left: 5px;
}

div.data-table {
	padding: 20px;
	display: inline-block;
}

div.data-table .create-new {
	margin: 0;
}

.data-table h3 {
	margin :0;
}

.buttons {
	position: absolute;
	bottom: 5px;
	right: 5px;
	left: 5px;
	height: 40px;
	z-index: 2;
	text-align: right;
}

.buttons img {
	height: 100%;
	width: 100%;
}

.buttons button {
	height: 100%;
	padding: 5px;
	background-color: #eee5;
	border-radius: 3px;
}

.file-viewer {
	max-width: 450px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
}

.file {
	display: flex;
	justify-content: center;
	align-content: center;
	height: 250px;
	width: 200px;
	position: relative;
	border: 2px solid black;
	border-radius: 5px;
	box-shadow: gray 5px 5px;
}

.file img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	border-radius: 3px;
}

.file input[type=text] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background-color: #eee8;
	color: black;
	border: none;
	z-index: 2;
}

.file a {
	text-decoration: none;
}

.file .mask {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: #000c;
	z-index: 1;
}

.challenge {
	transition: transform 0.5s ease;
}

.challenge img {
	height: 16px;
}

.challenging {
	transform: translate(40px, -40px);
}
