/* @override  http://alan_slot5/css/app.css
	http://alan_slot5/css/mobile/app.css */

body {
	font: 16px "Helvetica", Arial, sans-serif;
	background: #c5ccd3;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
.hide {
	display: none !important;
}
.UIPage {
	background: #c5ccd3;
}
.UIPageSection {
	margin: 10px;
}
.UIPageSection
#home,
#clients,
#products,
#products-category,
#orders-chooseclient,
#orders-history,
#notices,
#notices-view {
	background-color: #fff;
}

/* @group Aimations */
@-webkit-keyframes highlight {
	0% { background-color: #fff }
	50% { background-color: #feb; }
	100% { background-color: #fff }
}
.ANHighlight {
	-webkit-animation-name: highlight;
	-webkit-animation-duration: 400ms;
	-webkit-animation-iteration-count: 3;
}
/* @end */



/* @group Toolbar */
.UIToolbar {
	height: 44px;
	line-height: 44px;
	background: #224d6a url("../../images/mobile/toolbar-bg.png") repeat-x;
	position: relative;
}
.UIToolbarTitle {
	position: absolute;
	overflow: hidden;
	left: 50%;
	width: 170px;
	margin: 0 0 0 -85px;
	padding: 0;
	color: #fff;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	text-overflow: ellipsis;
	text-shadow: 0px -1px 0 rgba(0, 0, 0, 0.7);
	white-space: nowrap;
}
body.landscape .UIToolbarTitle {
	margin-left: -125px;
	width: 250px;
}

/* Buttons */
.button {
	position: absolute;
	overflow: hidden;
	top: 7px;
	right: 6px;
	padding: 0 5px;
	height: 30px;
	line-height: 30px;
	max-width: 60px;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
	text-shadow: rgba(0, 0, 0, 0.5) 0px -1px 0;
	text-overflow: ellipsis;
	text-decoration: none;
	white-space: nowrap;
	-webkit-border-image: url("../../images/mobile/toolbar-button.png") 0 5 0 5;
	border-width: 0 5px;
}
.button.done {
	-webkit-border-image: url("../../images/mobile/toolbar-button-done.png") 0 5 0 5;
}
.button.active {
	-webkit-border-image: url("../../images/mobile/toolbar-button-pressed.png") 0 5 0 5;
}

/* Left button */
.button.left {
	left: 6px;
	right: auto;
}

/* Add button */
.button.add {
	padding: 0 3px;
	font-size: 26px;
	line-height: 24px;
}

/* Back button */
.button.back {
	left: 6px;
	right: auto;
	padding: 0 3px 0 0;
	border-width: 0 5px 0 15px;
	-webkit-border-image: url("../../images/mobile/toolbar-button-back.png") 0 5 0 15;
}
.button.back.active {
	-webkit-border-image: url("../../images/mobile/toolbar-button-back-pressed.png") 0 5 0 15;
}
/* @end */

/* @group Basic content */
.UITitle {
	font-size: 17px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.UIPreTitle {
	font-size: 14px;
	color: #888;
}
.UISubtitle {
	color: #666;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.3em;
	margin: 10px 10px 6px;
	padding: 0 10px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
table {
	width: 100%;
	border-collapse: collapse;
}
input[type="checkbox"] {
	padding: 10px;
}
/* @end */

/* @group Buttons */
.UIConfirmButton,
.UIDeleteButton {
	display: block;
	margin: 15px 10px 10px;
	height: 44px;
	line-height: 44px;
	text-align: center;
	font-size: 20px;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
	font-weight: bold;
	border-width: 0 6px;
}
.UIConfirmButton {
	-webkit-border-image: url("../../images/mobile/button-confirm.png") 0 6;
}
.UIConfirmButton.active {
	-webkit-border-image: url("../../images/mobile/button-confirm-pressed.png") 0 6;
}
.UIDeleteButton {
	-webkit-border-image: url("../../images/mobile/button-delete.png") 0 6;
}
.UIDeleteButton.active {
	-webkit-border-image: url("../../images/mobile/button-delete-pressed.png") 0 6;
}
/* @end */

/* @group Tabs */
.UITabs {
	height: 44px;
	margin: 15px 10px;
	font-size: 17px;
}
.UITabsItem {
    -webkit-box-sizing: border-box;
	float: left;
	display: block;
	width: 34%;
	padding: 0 10px;
	height: 43px;
	line-height: 41px;
	text-align: center;
	font-weight: bold;
	color: #888;
	text-shadow: 0 1px 0 #fff;
	text-decoration: none;
	border: 1px solid #999;
	border-top-color: #aaa;
	background: #eee -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ccc));
	-webkit-background-clip: padding-box;
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.UITabsItem:first-child {
	width: 33%;
	border-right: 0;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}
.UITabsItem:last-child {
	width: 33%;
	border-left: 0;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
}
.UITabsItemSelected {
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
	border-color: #0a5ab4;
	border-top-color: #003a7f;
	border-bottom-color: #1d89f1;
	background: #0175cd url("../../images/mobile/tabs-bg.png");
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 5px rgba(0, 0, 0, 0.4) inset;
}
/* @end */

/* @group No Items */
.UINoItems {
	padding: 30px 20px;
	text-align: center;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.UINoItemsTitle {
	font-size: 17px;
	color: #4b556c;
}
.UINoItemsMessage {
	margin-top: 0.5em;
	font-size: 14px;
	color: #5a5f6c;
}
/* @end */

/* @group Secondary toolbar */
.UISecondaryToolbar {
	margin: 0;
	padding: 5px;
	border-bottom: 1px solid #999;
	background: #eee -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.1)));
	position: relative;
	-webkit-box-shadow: 0 1px 0 #fff inset, 0 1px 0 rgba(0, 0, 0, 0.07);
}

/* Pager */
.UIPager {
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
}
.UIPagerText {
	color: #364650;
	text-shadow: 0 1px 0 #fff;
	margin-left: 44px;
	margin-right: 48px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 17px;
}
.UIPagerButton {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 44px;
}
.UIPagerLeftButton {
	left: 0;
}
.UIPagerRightButton {
	right: 0;
}
.UIPagerButton .UISprite {
	margin-top: 14px;
}

/* Search box */
.UISearchBox {
	display: table;
	width: 100%;
}
.UISearchBoxInputCell,
.UISearchBoxButtonCell {
	display: table-cell;
	vertical-align: top;
}
.UISearchBoxButtonCell {
	width: 1em;
	padding-left: 5px;
}
.UISearchBoxInputContainer {
	position: relative;
	height: 30px;
	font-size: 14px;
	border-width: 0 15px 0 26px;
	-webkit-border-radius: 15px;
	-webkit-border-image: url("../../images/mobile/searchbox-input.png") 0 15 0 26 stretch stretch;
}
.UISearchBoxInput {
	border: 0;
	background: transparent url(""); /* Needed */
	position: absolute;
	top: 1px;
	bottom: 0;
	left: 3px;
	right: 15px;
	font: 14px/1em Helvetica Neue, Helvetica, sans-serif;
}
.UISearchBoxClear {
	width: 24px;
	height: 24px;
	position: absolute;
	border: 0;
	right: -11px;
	top: 3px;
	background: url("../../images/mobile/searchbox-clear.png") no-repeat center center;
	display: none;
}
.UISearchBoxButton {
	background: -webkit-gradient(linear, left top, left bottom, from(#469ce0), to(#1966c7));
	padding: 6px 15px;
	border: 1px solid #124a91;
	border-radius: 20px;
	font: bold 14px/1em Helvetica Neue, Helvetica, sans-serif;
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 0 rgba(255, 255, 255, 0.5);
}
/* @end */

/* @group Sprites */
.UISprite {
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("../../images/mobile/sprites.png") no-repeat top left;
}

/* Logo */
.UISpriteAppLogo {
	width: 280px;
	height: 65px;
	background-position: -120px 0;
}

/* Icons */
.UISpriteTaskIcon { background-position: 0 0; }
.UISpriteMilestoneIcon { background-position: 0 -16px; }
.UISpriteEventIcon { background-position: 0 -32px; }

/* White arrows */
.UISpriteRightArrow,
.UISpriteLeftArrow {
	width: 9px;
	height: 11px;
	vertical-align: -1px;
	margin: 0 1px
}
.UISpriteRightArrow { background-position: -32px 0; }
.UISpriteLeftArrow { background-position: -32px -11px; }

/* Pager arrows*/
.UISpritePagerLeftArrow,
.UISpritePagerRightArrow {
	width: 12px;
	height: 16px;
}
.UISpritePagerLeftArrow { background-position: -32px -22px; }
.UISpritePagerRightArrow { background-position: -32px -38px; }

/* Messages bullets*/
.UISpriteReadBullet {
	background-position: -60px 0;
	width: 14px;
	height: 14px;
}
.UISpriteUnreadBullet {
	background-position: -60px -14px;
	width: 14px;
	height: 14px;
}
/* List icons */
.UISpriteListArrow {
	background-position: -60px -28px;
	width: 10px;
	height: 13px;
}
.UIListItemAnchor.active .UISpriteListArrow {
	background-position: -60px -41px;
}
.UISpriteListActionArrow {
	background-position: -60px -54px;
	width: 29px;
	height: 29px;
}
.UIListItemAnchor.active .UISpriteListActionArrow {
	background-position: -60px -83px;
}
.UISpriteListLoader {
	background: url("../../images/mobile/list-loading.gif") no-repeat center center;
	width: 25px;
	height: 20px;
}
.UISpriteWhiteLoader {
	background: url("../../images/mobile/loader-icon.gif") no-repeat center center;
	width: 32px;
	height: 32px;
}
/* @end */

/* @group Loader */
#loader-inner {
	z-index: 100;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 80px;
	padding: 10px;
	margin-left: -45px;
	margin-top: -30px;
	background-color: rgba(0, 0, 0, 0.75);
	text-align: center;
	color: #fff;
	-webkit-border-radius: 10px;
}
#loader .UISpriteWhiteLoader {
	margin: 0.25em 0;
}
/* @end */

/* @group Lists */
/* Header */
.UIListHeader {
    line-height: 1em;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
	font-size: 17px;
	margin-top: -1px;
    padding: 2px 10px;
    border-top: 1px solid #707d85;
    border-bottom: 1px solid #979da4;
    background: #8f9faa -webkit-gradient(linear, left top, left bottom, from(#8f9faa), to(#b6bfc7));
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

/* List */
.UIListItem {
	border-bottom: 1px solid #e0e0e0;
	background-color: #fff;
	list-style: none;
}
.UIListItemInner {
	display: table;
	width: 100%;
	margin: 0;
	padding: 0;
}
.UIListItemAnchor {
	text-decoration: inherit;
	color: inherit;
}
.UIListItemAnchor.UIListItemInner.active {
	background: #015de6 -webkit-gradient(linear, left top, left bottom, from(#058cf5), to(#015de6));
	color: #fff;
}
.UIListItemCell {
	display: table-cell;
	vertical-align: middle;
	padding: 10px 5px;
}
.UIListItemCell:first-child {
	padding-left: 10px;
}

/* Icon */
.UIListItemIconCell {
	width: 16px;
}
.UIListItemIconCell .UISprite {
	vertical-align: -3px;
}

/* Checkbox cell */
.UIListItemCheckboxCell {
	width: 10px;
}

/* Picture cell */
.UIListItemPictureCell {
	padding: 0 5px 0 0 !important;
	width: 60px;
}
.UIListItemPicture {
	display: block;
	width: 60px;
}

/* Label cell*/
.UIListItemLabelCell {
	text-align: right;
	width: 80px;
	vertical-align: top;
}
.UIListItemLabel {
	color: #516691;
	font-size: 13px;
	font-weight: bold;
}
.UIListItemAnchor.active .UIListItemLabel {
	color: #fff;
}

/* Text cell*/
.UIListItemTextCell {
	max-width: 1em; /* Works, I don't know why */
}
.UIListItemTitle {
	font-weight: bold;
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.UIListItemText {
	display: block;
	white-space: normal;
	text-overflow: ellipsis;
	overflow: hidden;
}
.UIListItemMetadata {
	display: block;
	color: #666;
	font-size: 14px;
	line-height: 1.3em;
	white-space: normal;
}
.UIListItemAnchor.active .UIListItemMetadata {
	color: #fff;
}

/* Preview label cell */
.UIListItemPreviewLabelCell {
	padding-left: 0;
	text-align: right;
	max-width: 0.7em; /* Works, I don't know why */
}
.UIListItemPreviewLabel {
	color: #369;
	font-size: 14px;
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.UIListItemAnchor.active .UIListItemPreviewLabel {
	color: #fff;
}

/* Badge cell */
.UIListItemBadgeCell {
	padding-left: 0;
	text-align: right;
	max-width: 0.7em; /* Works, I don't know why */
}
.UIListItemBadge {
	display: inline-block;
	background-color: #98afc6;
	border-radius: 50px;
	padding: 0 0.5em 0.1em;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	min-width: 1em;
}
.UIListItemAnchor.active .UIListItemBadge {
	background-color: #fff;
	color: #015de6;
}
.UIListItemRedBadge {
	background-color: #c00;
}

/* Disclosure cell */
.UIListItemDisclosureCell {
	width: 9px;
	padding-right: 10px;
}
.UIListItemDisclosureCell .UISpriteListArrow {
	vertical-align: -2px;
}
.UIListItemDisclosureCell .UISpriteListActionArrow {
	vertical-align: -3px;
}

/* "Load more" list item */
.UIListLoadMoreItem .UIListItemTextCell {
	text-align: center;
}
.UIListLoadMoreItem .UISpriteListLoader {
	vertical-align: -5px;
	display: none;
}
.UIListLoadMoreItem .UIListItemTitle {
	color: #069;
	display: inline-block;
}
.UIListLoadMoreItem .UIListItemAnchor.active .UISpriteListLoader {
	display: inline-block;
}
.UIListLoadMoreItem .UIListItemAnchor.active .UIListItemTitle {
	color: #fff;
}
/* @end */

/* @group Padded content lists */
.UIPaddedContent {
}
.UIPaddedContent .UITitle {
	margin: 10px 10px 6px;
	padding: 0 10px;
	color: rgb(76, 86, 108);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.UIPaddedContent .UIList {
	margin: 10px 10px 17px 10px;
	border: 1px solid #999;
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	-webkit-border-radius: 8px;
}
.UIPaddedContent .UIListItem {
	border-color: #ccc;
}
.UIPaddedContent .UIListItem:first-child,
.UIListItem:first-child .UIListItemPicture {
	-webkit-border-top-left-radius: 8px;
	-webkit-border-top-right-radius: 8px;
}
.UIPaddedContent .UIListItem:last-child,
.UIListItem:last-child .UIListItemPicture {
	-webkit-border-bottom-left-radius: 8px;
	-webkit-border-bottom-right-radius: 8px;
	border-bottom: none;
}
.UIPaddedContent .UIListItem:first-child .UIListItemAnchor {
	-webkit-border-top-left-radius: 7px;
	-webkit-border-top-right-radius: 7px;
}
.UIPaddedContent .UIListItem:last-child .UIListItemAnchor {
	-webkit-border-bottom-left-radius: 7px;
	-webkit-border-bottom-right-radius: 7px;
}
/* @end */

/* @group List: Fields */
.UIListFieldItem input[type="text"],
.UIListFieldItem input[type="password"],
.UIListFieldItem input[type="number"],
.UIListFieldItem input[type="tel"],
.UIListFieldItem input[type="email"],
.UIListFieldItem input[type="url"],
.UIListFieldItem textarea,
.UIListFieldItem select {
    border: 0;
    background: transparent url("../.png"); /* Needed */
    font: normal 17px Helvetica;
    padding: 0;
    display: inline-block;
    margin-left: 0px;
    width: 100%;
}
.UIListFieldItem textarea {
	min-height: 120px;
    padding: 0;
}
.UIListFieldItem input[type="checkbox"],
.UIListFieldItem input[type="radio"] {
    margin: 0;
    color: rgb(50,79,133);
    padding: 10px;
}
.UIListFieldItem input[type="checkbox"]:after,
.UIListFieldItem input[type="radio"]:after {
    content: attr(title);
    font-size: 17px;
    display: block;
    width: 246px;
    margin: -10px 0 0 18px;
    vertical-align: 10px
}

/* Highlight (Required fields) */
.UIListFieldItemHighlighted {
	background-color: #fff8e3;
}
/* @end */

/* @group Item header */
.UIItemHeader {
	padding: 10px 15px 10px 100px;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #999;
	text-shadow: 0 1px 0 #fff;
	min-height: 74px;
	background: #eee -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.1)));
	-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
	position: relative;
}
.UIItemHeaderImg {
	background-color: #fff;
	position: absolute;
	left: 15px;
	padding: 4px;
	border: 1px solid #999;
	-webkit-border-radius: 5px;
	-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.UIItemHeader .UITitle,
.UIItemHeader .UISubtitle {
	margin: 0;
	padding: 0.25em 0;
}
/* @end */

/* @group Page: Login */
#login .UISpriteAppLogo {
	display: block;
	margin: 20px auto;
}
#login .UITitle {
	text-align: center;
	color: #c00;
	font-size: 16px;
}
/* @end */

/* @group Page: Home */
#home .UISpriteAppLogo {
	display: block;
	margin: 20px auto;
}
/* @end */

/* @group Page: View client */
#clients-view .UIListItemLabelCell {
	width: 90px;
}
/* @end */

/* @group Page: Product list */
#products-category .notAvailable {
	color: #c00;
	background-color: #f6f6f6;
}
#products-category .qtyCell {
	width: 1px;
}
#products-category .qtyField {
	font-size: 1em;
	padding: 0.25em;
	width: 2.5em;
	text-align: center;
}
/* @end */


/* @group Page: Product form */
#form-product .product {
	margin: 15px 0;
}
#form-product .product img {
	display: block;
	margin: 0 auto;
	width: 160px;
	height: 160px;
	background-color: #fff;
	padding: 4px;
	-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
/* @end */

/* @group Page: View order */
#orders-view .UIListItemPreviewLabelCell {
	padding-right: 10px;
}
#orders-view .total .UIListItemTextCell {
	padding-right: 10px;
	text-align: right;
}
#orders-view .total .UIListItemTitle {
	font-weight: normal;
}
#orders-view .total .UIListItemText,
#orders-view .total .UIListItemMetadata {
	color: #7b8ea1;
}
#orders-view p {
	margin: 10px 15px;
	text-align: center;
	font-size: 0.8em;
	line-height: 1.3em;
	color: #4c5863;
}
/* @end */

/* @group Page: View notice */
#notices-view .UIContent {
	padding: 10px;
}
#notices-view p {
	margin-top: 1em;
	line-height: 1.4em;
}
/* @end */

/* @group Page: Settings */
#settings .UIListItemLabelCell {
	width: 3em;
}
/* @end */