
/* ---- MAIN ---- */
html, body {
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: #ffffff ;
	font-family: sans-serif,sans;
	text-align: center;
}

header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 2em; /* Leave space for language bar by narrow screen */
}

form {
	margin-bottom: 7em; /* Leave space for footer to grow in heigth by narrow screen */
}
.mandatory_star {
	color: #dd3333;
	font-weight: bold;
	position: absolute;
	margin-top: 2px;
}
.mandatory_text {
	color: #dd3333;
	font-weight: bold;
}
a {
	text-decoration: none;
	font-weight: bold;
	color: #888888;
}
a:hover {
	color: #333333;
	text-decoration: underline;
}
hr {
	height: 1em;
	border: 0;
	margin: 0;
	background: #eeeecc;
}

#language_bar {
	position: absolute;
	top: 0;
	right: 1em;
	border-bottom: 2px #bbb solid;
}
#language_bar ul {
	list-style: none;
	margin: 0.5em 0 0 0;
}
#language_bar ul li {
	display: inline-block;
	font-weight: bold;
}
#language_bar ul li a {
	display: block;
	text-decoration: none;
	color: #666666;
	border-bottom: 6px transparent solid;
}
#language_bar ul li a:hover {
	color: #ffffff;
	background: #ddddcc;
	border-bottom: 6px #fff222 solid;
}

#message, #error_message {
	width: 100%;
	border-radius: 5px;
	color: #333333;
	font-weight: bold;
	text-align: center;
	padding: 0.5em;
	margin-bottom: 1em;
}
#message {
	background: #99ff00;
	max-width: calc(785px - 1em);
}
#error_message, .field_error, .field_error:focus {
	background: #ff8040;
}

footer {
	position: fixed;
	width: calc(100% - 1em);
	text-align: center;
	left: 0;
	bottom: 0;
	padding: 0.5em;
	border-top: 2px #bbbbbb solid;
	background: #eeeecc;
}

/* ---- FLAT STYLE ---- */
fieldset {
	background: #eeeecc;
	border: 1px #bbbbbb solid;
	padding: 6px;
	text-align: left;
}
fieldset legend {
	position: relative;
    top: -15px;
    background: #eeeecc;
    padding: 4px 10px;
    border-radius: 6px 6px 0 0;
    border-left: 1px #bbbbbb solid;
    border-top: 1px #bbbbbb solid;
    border-right: 1px #bbbbbb solid;
}
input, select, textarea {
	background: #ffffff;
	border: 1px #bbbbbb solid;
	border-radius: 5px;
	padding: 0.2em 0.5em 0.2em 1em;
	-webkit-transition: all .4s ease-out;
	-moz-transition: all .4s ease-out;
	-ms-transition: all .4s ease-out;
	-o-transition: all .4s ease-out;
	transition: all .4s ease-out
}
input {	
	height: 1.5em;
	max-width: 195px;
	min-width: 195px;
}
input:focus, select:focus, textarea:focus {
	background: #fff222;
}
input:focus::selection, textarea:focus::selection {
  color: black;
  background: #dbae08;
}
select {
	height: 1.9em; /* input height + input padding */
	max-width: 222px; /* input width + arrow */
	min-width: 222px; /* input width + arrow */
	padding: 0.2em 0.5em 0.2em 1em;
}
textarea {
	font-family: sans-serif,sans;
	height: 4em;
	padding: 0.2em 0.5em 0.2em 1em;
	width: calc(100% - 1.3em);
}
button {
	background: #ffffee;
	border: 1px #bbbbbb solid;
	height: 2em;
	font-weight: bold;
	color: #333333;
}
button:hover {
	background: #ddddcc;
}

/* ---- NARROW FORM ---- */
.narrow_fieldset {
	margin: 0 auto;
	margin-top: 1.5em;
	max-width: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1em 1em 0 1em;
	margin-bottom: 2em;
}
.narrow_fieldset input, .narrow_fieldset button, .narrow_fieldset span, .narrow_fieldset img {
	margin-bottom: 1em;
	width: 100%;
}
.narrow_fieldset button {
	width: calc(100% + 1em);
}
.narrow_fieldset span {
	text-align: center;
}

/* ---- WIDE FORM ---- */
.wide_fieldset {
	margin: 0 auto;
	margin-top: 0.5em;
	max-width: 800px;
}
.wide_fieldset input, .wide_fieldset button {
	margin-bottom: 1.5em;
}
.wide_action_buttons {
	margin: 0 auto;
	margin-top: 1em;
	max-width: 800px;
	display: flex;
	flex-direction:row;
	justify-content: flex-end;
	align-items: center;
}
.wide_action_buttons button {
	margin-left: 0.5em;
}

.icon {
	height: auto;
	margin: -0.2em;
}

/* ---- CUSTOMER AREA ---- */

#main_container {
	display: flex;
	flex-direction: column;
	margin-top: 3em;
	border-left: 1px #bbbbbb solid;
	border-right: 1px #bbbbbb solid;
	border-bottom: 1px #bbbbbb solid;
	background: #eeeecc;
	min-height: 200px;
	padding-bottom: 2em;
	min-width: 800px;
	max-width: 800px;
}
#main_container #tabs {
	padding: 0;
	top: -2em;
	position: relative;
	height: 2em;
	display: flex;
	flex-direction: row;
	width: calc(100% + 2px);
	margin-left: -1px;
}
#main_container #tabs ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	width: 100%;
}
#main_container #tabs ul li {
	height: 2em;
	width: 25%;
	display: flex;
	border-left: 1px #bbbbbb solid;
	border-right: 1px #bbbbbb solid;
	border-top: 1px #bbbbbb solid;
	border-radius: 5px 5px 0 0;
}
#main_container #tabs ul li a {
	text-decoration: none;
	display: flex;
	height: 100%;
	padding: 0;
	margin: 0;
	align-items: center;
	width: 100%;
}
#main_container #tabs ul li a img {
	width: 35px;
	margin-left: 10px;
}
#main_container #tabs ul li a span {
	width: 125px;
}
#main_container #tabs ul li a:hover {
	background: #ddddcc;
}
#main_container #tabs ul .current_tab, #main_container #tabs ul .current_tab a:hover {
	background: #eeeecc;
	color:#888888;
}

#main_container fieldset {
	margin-left: 1em;
	margin-right: 1em;
	border: 0;
}
#main_container fieldset legend {
	font-weight: bold;
	text-decoration: underline;
	border: 0;
}
#main_container fieldset p {
	margin: 0;
	margin-left: 1em;
}
#toggle_password_img {
	margin: 0;
	display: block;
	margin-bottom: 5px;
}
.remark {
	font-size: 0.8em;
	font-style: italic;
}
.tracking_wrapper, .adress_wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	border-top: 3px #dddddd solid;
	border-bottom: 3px #dddddd solid;
	margin: 1em 0;
	background: #ffffff;
	text-decoration: none;
	color: #000000;
	font-weight: normal;
}
.send_parcel {
	padding: 0.5em 1em;
	margin-top: 1em;
	margin-bottom: 1em;
}
.send_parcel_wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	border-top: 2px #dddddd solid;
	border-bottom: 0px #dddddd solid;
	margin: 0;
	background: #ffffff;
	color: #000000;
	height: 3em;
	width: 100%;
}
.send_parcel_wrapper:hover {
	text-decoration: none;
	background: #bbbbbb;
}
.send_parcel_wrapper .step_button, .send_parcel_overview_adress, .details_row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: left;
	width: 100%;
    padding: 0 1em;
    margin-bottom: 1em;
}

.send_parcel_overview_adress {
	width: calc(100% - 2em);
}
.details_row {
	width: calc(100% - 2em);
}
.send_parcel_content_wrapper:first-child .send_parcel_overview_adress{
	border-top: 0;
}
.send_parcel_overview_adress .adress_type_label, .send_parcel_content_wrapper .detail_label {
	width: 15%;
	font-style: italic;
	font-size: 0.8em;
	font-weight: bold;
}
.send_parcel_overview_adress .adress_resume, .send_parcel_content_wrapper .detail_values {
	text-align: left;
	margin: 0.5em 0;
	flex: 1;
}
.send_parcel_overview_adress .edit_parcel_step {
	border: 0;
	background: transparent;
	height: auto;
	margin: 0 0 0 2em;
	padding: 0;
	cursor: pointer;
	align-self: center;
}

.send_parcel_content_wrapper {
	display: flex;
	flex-direction: column;
	align-items: start;
	margin: 0;
	padding: 0.5em 0;
	color: #000000;
	font-weight: normal;
	width: calc(100% - 1em); /* parent width - padding */
	height: auto;
	padding: 0.5em;
	border-top: 2px #dddddd solid;
	background: #ffffff;
}
.send_parcel_content_wrapper input, .send_parcel_content_wrapper textarea {
	max-width: 180px;
	min-width: 180px;
}
.send_parcel_content_wrapper select {
	padding: 0 0 0 0.8em;
	min-width: 206px;
	max-width: 206px;
}
.send_parcel_content_wrapper button {
	border: 0;
	width: 3em;
	height: 2em;
	margin-left:0.5em;
	align-self: end;
}
.send_parcel_content_wrapper .select_types {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0.5em 0;
	color: #000000;
	font-weight: normal;
	width: calc(100% - 1em); /* parent width - padding */
	height: auto;
	padding: 1em 0.5em;
}
.send_parcel_content_wrapper .defined_adress {
	text-align: center;
	flex: 1;
	width: 100%; 
}
.send_parcel_content_wrapper_text {
	text-align: left;
}
.send_parcel_step_ok {
	background: #99ff00;
}
.send_parcel_step_ok:hover {
	background: #66aa00;
}
.send_parcel_step_edit {
	background: #fff222;
}
.send_parcel_all_steps_ok {
	background: #fff222;
}
.send_parcel_all_steps_ok:hover {
	background: #ffffff;
}
.send_parcel_disabled {
	color: #bbbbbb;
	cursor: default;
}
.send_parcel_disabled:hover {
	color: #bbbbbb;
	cursor: default;
	background: #ffffff;
}
.send_parcel .field_wrapper label {
	margin-top: 0.7em;
	margin-left: 1em;
}
.field_wrapper {
	display: inline-block;
}
.tracking_wrapper:hover .adress_wrapper:hover {
	border-top: 3px #666666 solid;
	border-bottom: 3px #666666 solid;
	text-decoration: none;
	color: #000000;
	font-weight: normal;
}
.adress_wrapper {
	padding: 0.5em 0;
	display: flex;
	justify-content: space-between;
}
.adress_wrapper button {
	width: 20%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.adress_wrapper a img {
	margin: 0 0.5em;
}
.adress_wrapper span {
	margin: 0;	
}
.adress_contents_wrapper {
	width: 65%;
}
.adress_icons_wrapper {
	width: 15%;
	text-align: right;
}
.adress_icons_wrapper button {
	background: transparent;
	border: 0;
	margin: 0 0.2em;
	display: inline-block;
	width: 20px;
	height:20px;
	padding: 0;
}

.button_with_text {
	background: transparent;
	border: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	cursor: pointer;
}
.button_with_text img {
	margin-right: 0.5em;
}
.button_with_text span {
	margin-bottom: 0;
}

.track_parcel input[name="collapse"] {
	display: none;
}
.track_parcel input[name="collapse"]:checked ~ .tracking_details {
	max-height: 1000px;
	border-bottom: 3px #dddddd solid;
	transition: max-height 0.6s;
}
.tracking_wrapper {
	display: flex !important;
	text-align: center;
	position: relative;
	margin-top: 0 0.5em;
	font-size: 1em;
	text-transform: none;
	cursor: pointer;
}
.tracking_wrapper:hover {
	text-decoration: none;
	color:#000000;
}
.tracking_wrapper div {
	width: 18%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.twrap_without_icons {
	margin: 0.5em 0;
}
.tdet_without_icons {
	margin-top: -0.6em !important;
}
.twrap_without_icons div {
	height: 2.3em;
}
.tracking_wrapper div img {
	height: 25px;
	margin-top: 0.5em;
}
.tracking_wrapper div:first-child {
	width: 28%;
}
.tracking_status span, .tracking_status_ok span  {
	margin-top: 0.5em;
	width: 100%;
}
.tracking_status_ok, .tracking_status_ok span {
	background: #99ff00;
}
.tracking_status {
	color:#999999 ;
}
.tracking_status img {
	filter: opacity(50%);
}
.tracking_empty {
	padding: 1em 0;
}
.tracking_details {
	max-height: 0;
	overflow: hidden;
	transition: 0.2s;
	border-bottom: 0;
	margin-top: -1.1em;
	background: #ffffff;
	text-decoration: none;
	color: #333333;
	font-weight: normal;
}
.tracking_details h2 {
	font-size: 1.5em;
	padding: 0.5em;
	margin: 0;
}
.tracking_details div {
	display: flex;
	justify-content: space-between;
	border-top: 1px #cccccc solid ;
	padding: 0.5em 0;
	align-items: center;
}
.tracking_details div span {
	width: 45%;
	text-align: left;
	padding-left: 0.5em;
	margin: 0;
}

.ico_home_1 {
	background-image: url('icons/24_home_1.png');
}
.ico_home_0 {
	background-image: url('icons/24_home_0.png');
}
.ico_home_0:hover {
	background-image: url('icons/24_home_on.png');
}

.ico_invoice_1 {
	background-image: url('icons/24_invoice_1.png');
}
.ico_invoice_1:hover {
	background-image: url('icons/24_invoice_off.png');
}
.ico_invoice_0 {
	background-image: url('icons/24_invoice_0.png');
}
.ico_invoice_0:hover {
	background-image: url('icons/24_invoice_on.png');
}

.ico_delete {
	background-image: url('icons/24_delete.png');
}
.ico_delete:hover {
	background-image: url('icons/24_delete_hover.png');
}
.ico_delete_disabled {
	background-image: url('icons/24_delete_disabled.png');
}
.remarks {
	color:#666666;
	font-style: italic;
}
.ico_cancel {
	background: #eeeecc;
	background-image: url('icons/24_cancel.png');
}
.ico_cancel:hover {
	background-image: url('icons/24_cancel_hover.png');
}
.ico_validate {
	background: #eeeecc;
	background-image: url('icons/24_validate.png');
}
.ico_validate:hover {
	background-image: url('icons/24_validate_hover.png');
}
.send_parcel_content_wrapper .ico_validate {
	background: url('icons/24_validate.png'), #99ff00;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
}
.send_parcel_content_wrapper .action_buttons {
	display:flex;
	justify-content: space-evenly;
	width:100%;
	margin-bottom: 1em;
}
.send_parcel_content_wrapper .send_parcel_wrapper_save {
	background: url('icons/24_validate.png'), #99ff00; 
	background-position: center;
	background-repeat: no-repeat;
	height: 3em;
	width: 5em;
	margin-top: 1em;
	cursor: pointer;
}
.send_parcel_content_wrapper .send_parcel_wrapper_cancel {
	background: url('icons/24_return.png'), #ff8040; 
	background-position: center;
	background-repeat: no-repeat;
	height: 3em;
	width: 5em;
	margin-top: 1em;
	cursor: pointer;
}
.send_parcel_content_wrapper .send_parcel_wrapper_reset {
	background: url('icons/24_cancel.png'), #ff3333; 
	background-position: center;
	background-repeat: no-repeat;
	height: 3em;
	width: 5em;
	margin-top: 1em;
	cursor: pointer;
}
#password_forgotten, #start_page_register, #start_page_login {
	background: no-repeat;
	border: 0;
	color: #888888;
	cursor: pointer;
	font-weight: bold;
	font-size: 1.1em;
}
#password_forgotten:hover, #start_page_register:hover, #start_page_login:hover {
	color:#333333;
	text-decoration: underline;
}
#settings, #logs {
	border-collapse: collapse;
	margin: 1em;
	border-top: 2px #bbbbbb solid;
	border-bottom: 2px #bbbbbb solid;
}
#settings tr:nth-child(even), #logs tr:nth-child(even) {
	background: #ffffff;
}
#settings th, #logs th {
	text-align: right;
	padding: 0.3em 0.6em;
	border-left: 2px #bbbbbb solid;
	border-right: 2px #bbbbbb solid;
}
#settings td, #logs td {
	text-align: left;
	padding: 0.3em 0.6em;
	border-left: 2px #bbbbbb solid;
	border-right: 2px #bbbbbb solid;
}
#settings td span {
	display: inline-block;
	min-width: 3em;
	min-height: 1.2em;
	border: 1px #bbb solid;
	position: relative;
	left: 1.2em;
	top: 0.3em;
}
#settings .cat, #logs .title {
	text-align: center;
	background: #fff200;
}
#settings input {
	min-width: 400px;
}
#settings textarea {
	width: 400px;
}
#logs blockquote {
	margin: 0 0 0 2em;
}
.actions_buttons {
	text-align: left;
}
.edit_button, .save_button, .cancel_button {
	width: 33px;
	height: 33px;
	border: 1px #bbb solid;
	border-radius: 4px;
	padding: 0;
	padding-top: 3px;
	margin: 0;
	margin-left: 2em;
	cursor: pointer;
}
.edit_button:hover, .save_button:hover, .cancel_button:hover {
	background: #bbbbbb;
}
.edit_button {
	background: #ffffff;
}
.save_button {
	background: #99ff00}
.cancel_button {
	background: #ff8040}
.settings_comments {
	color: #666666;
	font-weight: normal;
	font-size: 0.9em;
}
label {
	position: absolute;
	margin-top: -1.4em;
	color: #555555;
	font-size: 0.7em;
	margin-left: -19.7em;
	text-transform: uppercase;
	display: none;
}
input:hover + label, input:focus + label {
	display: inline;
}
.details_row .details_dimensions {
	min-width: 45px;
	max-width: 45px;
}
.details_row .details_time label {
	margin-left: -17.5em;
	display: inline;
	color: #333333;
}
.details_row .details_remarks {
	max-width: 390px;
	min-width: 390px;
}
.from_to {
	font-weight: bold;
	font-size: 2em;
	width: 2em;
}
.tracking_rows {
	width: 90%;
	border-collapse: collapse;
	margin: 0 auto;
}
.tracking_rows tr span {
	position: absolute;
	left: calc(50% - 10em);
	width: 20em;
	border-left: 3px #dddddd solid;
	border-right: 3px #dddddd solid;
	border-bottom: 3px #dddddd solid;
	background: #eeeecc;
	text-align: center;
	margin-top: 1.8em;
	padding-top: 0.5em;
	border-radius: 0 0 10px 10px;
	transform: scale(0);
	transition: transform 0.5s;
	z-index: 10;
}
.tracking_rows tr span img {
	max-width: 18em;
}
.tracking_rows tr:hover span {
	transform: scale(1);
	transition: transform 0.5s;
}
.tracking_rows th {
	padding-left: 1em;;
}
.tracking_rows tr:nth-child(even) {
	background: #eeeecc;
}

.track_parcel .search_block {
	background: #d9d9af;
	padding: 0;
	padding-top: 1.5em;
	margin-bottom: 1.5em;
	display: flex;
	flex-flow: wrap;
	justify-content: space-between;
}
.track_parcel .search_block .search_btn, .track_parcel .search_block .reset_btn {
	background: #d9d9af;
	border: 0;
	cursor: pointer;
}
.track_parcel .search_block .search_btn:hover {
	background: #d9d9af;
}
.track_parcel .search_block .reset_btn {
	width: 100%;
	font-size: 0.8em;
	color: #333333;
}
.track_parcel input[type=date], .track_parcel input[type=text], .track_parcel select {
	background: transparent;
	border: 0;
	border-radius: 0;
}
.track_parcel input[type=text] {
	border-bottom: 1px #333333 solid;
	margin-left: 0.2em;
}
.track_parcel select {
	border: 0;
	margin-right: 2em;
	color: #888888;
	font-weight: bold;
	background: url('icons/arr_down.png') no-repeat right;
    -webkit-appearance: none;
    background-position-x: 7em;
    width: 9em;
    min-width: 9em;
    max-width: 9em;
}
.track_parcel input[type=date] {
	width: 8em;
	min-width: 8em;
	max-width: 8em;
	height: 1.4em;
}
.track_parcel input[type=text] {
	width: 15em;
	min-width: 15em;
	max-width: 15em;
	height: 1.5em;
}
.track_parcel input[type=submit] {
	width: 5em;
	min-width: 5em;
	max-width: 6em;
	background: #fff200;
	height: 2em;
	padding: 0;
}
.track_parcel label {
	display: inline;
}
.track_parcel label[for=search_text] {
	margin-left: -20em;
}
.track_parcel label[for=search_date_from] {
	margin-left: -10.5em;
}
.track_parcel label[for=search_date_to] {
	margin-left: -10.5em;
}
.controls {
	margin: 0 !important;
	width: 100%;
	height: 1em;
	display: flex;
	justify-content: space-between;
	color: #888888;
}
.controls button {
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #888888;
}
.controls button:hover {
	color: #333333;
}
.pagination {
	width: 100%;
	text-align: center;
	margin-top: 1em !important;
}
.pagination button {
	width: 2em;
	text-align: center;
}
.pagination .current_page {
	background: #fff200 ;
	font-weight: bold;
}

.overlayed_form {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #666666;
	z-index: 100;
	outline: 9999px solid rgba(0,0,0,0.7);
	background: #fff200;
	border-top: 4px #aaa solid;
	border-bottom: 4px #aaa solid;
	display: flex;
	flex-direction: column;
	padding-top: 2em;
	font-weight: bold;
}
.overlayed_form #buttons {
	background: #ffffff;
	width: calc(100% - 4em);
	margin-top: 2em;
	padding: 2em;
}
.overlayed_form #ok {
	background: #99ff00;
	width: 165px;
	height: 45px;
	padding: 0;
	border: 0;
	font-weight: bold;
}
.overlayed_form #cancel {
	background: #ff8040;
	width: 165px;
	height: 45px;
	padding: 0;
	border: 0;
	font-weight: bold;
}
#details_radio {
	display: flex;
	height: 150px;
}
.normal_input {
	min-width: 3em !important;
	height: 0;
}
.normal_label {
	position: relative;
	margin-top: 0;
	color: #000000;
	font-size: 1em;
	margin-left: 0;
	text-transform: none;
	display: inherit;
}
.inf {
	visibility: hidden ;
	position: absolute;
	margin-top: 3em;
	margin-left: 1em;
}
.not_centered {
	align-self: flex-start;
	margin-top: 1em;
}
input[name=package_type]:checked + .inf {
	visibility: visible ;
}
#error_404 {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-top: 5em;
}
#error_404 img {
	margin-bottom: 2em;
	align-self: center;
	flex: 0 0 auto;
}
#error_404 a {
	color: #ff8040;
}
#view_limit {
	cursor: pointer;
}
#reload_button {
	position: fixed;
	top: calc(50vh - 25px);
	left: calc(50vw + 385px);
}
#reload_button button {
	height: 50px;
	width: 50px;
	margin: 0;
	border-radius: 0 15px 15px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}