@charset "utf-8";

*{
	margin:0;
	padding:0;
	outline:0;
}
body{
	color:#003a7e;
	font:11px tahoma;
}
ul, ol {
	list-style:none;
}
a{
	color:#003a7e;
	outline:0;
	text-decoration:none;
}
a:hover {
	color:#003a7e;
}
img, input, select, textarea, fieldset {
	border:0;
    margin-left: 4px;
}
strong{
	font-weight: bold;
}
div, ul, ol, li, p{
	position:relative;
}

.clear {
	clear:both;
	height: 0;
	line-height: 0;
	font-size: 0;
}
.hide {
	position:absolute;
	left:-9998px;
}
.right { text-align: right; }
.center { text-align: center; }

input[type=text], textarea, select { border: 1px solid #888; padding: 2px; }
input[type=text][readonly="readonly"] { background-color: #888; border-color: #888; }

label.error { color: red; margin-left: 3px; } 
/* Edit Content
--------------------------*/
body > div > div > div > div {
    margin: 5px;
}

.main-menu {
    padding: 5px;   
}
.main-menu ul { text-align: right; }
.main-menu li { display: inline-block; }
.main-menu li a { padding: 5px 10px; font-weight:bold; display:block; }
.main-menu li a:hover { background-color: #89afd3; }

.wraper {
    text-align: center;
}

table {
    border-right: 1px solid #E9E7E7;
    border-bottom: 1px solid #E9E7E7;
}
thead td { text-align:center; font-weight:bold; }
tr { }
td {
    border-left: 1px solid #E9E7E7;
    border-top: 1px solid #E9E7E7;
    padding: 3px;
}
td.image, td.update { text-align:center; }
td.image, td.update { width: 200px }
td.image img, td.image p { float: left; margin: 0; }
td.image p { 
    margin-left: 5px;
    text-align: left;
    width: 130px;
}

.sendtran{
	    background-color: #3b5998;
    border: 1px solid #808080;   
    padding: 3px 5px;
    cursor: pointer;
    color: #d8dfea;
    font-size: 12px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
	-webkit-appearance: none;
    display: inline-block;
}

.buttons { text-align: center; padding: 10px; }
input[type="button"],  input[type="submit"], input[type="reset"]{
    background-color: #3b5998;
    border: 1px solid #808080;   
    padding: 3px 5px;
    cursor: pointer;
    color: #d8dfea;
    font-size: 12px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    display: inline-block;
}

a.button-add, a.button-back, a.button-edit, a.button-photo,
a.button-delete, a.button-size, a.button-color, 
#edit-form input.submit, 
#edit-form input.cancel,
input.button-add, input.button-edit, input.button-delete,  input.button-cancel, a.cancel, 
#sizes-form input[type="button"] {
    background-color: #3b5998;
    border: 1px solid #808080;   
    padding: 3px 5px;
    /*margin-bottom: 5px;*/
    cursor: pointer;
    color: #d8dfea;
    font-size: 12px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    display: inline-block;
    line-height: 16px;
}

a.button-add, a.button-back { float: right; margin: 0 0 5px 5px; }
a.button-color, a.button-edit, a.button-delete, a.button-photo { margin-left: 5px; }
#sizes-form input[type="button"] { width: 40px; font-size: 10px; }
form h3 { margin-bottom: 5px; padding: 0 3px; font-size: 11px; border-bottom: solid 1px #003a7e; }
form li { margin-bottom: 3px; }
form li > label { font-weight: bold; }
#edit-form li.button { margin: 20px 0; text-align: center; }
#edit-form label { width: 20%; text-align:right; display: inline-block; padding: 0 3px; }
#edit-form input[type=text], #edit-form input[type=file] { width: 500px; margin-left: 4px; }
#edit-form select { width: 150px; }
#edit-form textarea { width: 610px; display:block; margin: 0 auto; }
#edit-form input.cancel { margin-left: 5px; }

#sizes-dialog input[type="text"], #colors-dialog input[type="text"] { width: 290px; }
.product-detail { margin: 10px 0 5px 0; }
.product-detail img, .color-detail img, .photo-detail img { width: 100px; }
.product-detail > div, .color-detail > div, .photo-detail > div { 
    left: 110px;
    position: absolute;
    top: 0;
}
.product-detail p.name, .product-detail p.code, .color-detail p.name, .photo-detail p.name  { margin-bottom: 5px; }
.product-detail > div > p > span, .color-detail > div > p > span, .photo-detail > div > p > span { padding-left: 4px; }

#edit-color-box { margin-top: 10px; }
#edit-color-box label, #edit-photo-box label {
    display: inline-block;
    width: 60px;
}
#edit-color-box input[type="text"], #edit-photo-box input[type="text"] { width: 200px; }

/*order*/
#products th{
	font-size:12px;	
}
#products .image { text-align: left; }
#products .image > div {
    height: 50px;
    overflow: hidden;
    position: relative;
}
#products .image img {
    position: absolute;
    left: 0;
    top: 0;
}
#products .image p {
    font-size: 11px;
    left: 55px;
    width: 200px;
}
#products .image p {
    font-size: 10px;
    left: 55px;
    width: 200px;
}
#products .image p.product-name {
    color: #003A7E;
    font-weight: bold;
}
#products .image p .title {
    font-weight: bold;
}

.tools {
    padding: 10px;
    border: 1px solid #E9E7E7;
    margin: 10px  0;
}

/* preorder */
.order-form {
    /*margin: 20px auto;
    position: relative;
    width: 385px;*/
}
.order-form form > div { width: 400px; margin: 0 auto; }
.order-form form > div > ul {  }
.order-form h3 { margin-bottom: 10px; background-color: #E9E7E7; padding: 5px; }

#form-order li { margin-bottom: 5px; } 
#form-order li label.form-lbl { 
    float: left;
    font-size: 11px;
    font-weight: bold;
    width: 100px; 
    margin: 4px;
} 
#form-order li input, #form-order li textarea { width: 270px; } 
#form-order input[type="submit"] {
    background-color: #3B5998;
    border: 1px solid #808080;
    border-radius: 3px 3px 3px 3px;
    color: #D8DFEA;
    cursor: pointer;
    padding: 2px 3px;
    margin-left: 100px;
}
a.add-product, a.delete-product {
    background-color: #3B5998;
    border: 1px solid #808080;
    border-radius: 3px;
    color: #D8DFEA;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    line-height: 20px;
    padding: 0 5px;
    position: relative;
    right: 0px;
}

#find-product {
    position:absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}
#product-dialog {
    position:absolute; 
    top: 50%; 
    left: 50%;
    margin: -150px 0 0 -190px;
    width: 380px; 
    min-height: 130px; 
    border: 1px solid #003A7E; 
    background-color:#FFFFFF;
    padding: 10px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
}
#product-dialog > div { height: 120px; position: relative; }
#product-dialog input { margin-left: 0; width: 100px; }
#product-dialog div.image { margin-left: 0; position: absolute; top: 10px; left: 10px; margin: 0; width: 120px; height: 120px; }
#product-dialog div.image img { margin: 0; }
#product-dialog div.detail {
    left: 120px;
    position: relative;
    width: 260px;
    margin: 0;
    height: auto;
}
#product-dialog > a {
    background-color: #003A7E;
    color: #FFFFFF;
    height: 18px;
    line-height: 18px;
    position: absolute;
    right: 5px;
    text-align: center;
    top: 5px;
    width: 18px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
}

#product-dialog li { min-height: 22px; margin-bottom: 5px; }
#product-dialog li label.form-lbl { 
    float: left;
    font-size: 12px;
    font-weight: bold;
    margin: 4px;
    text-align: right;
    width: 70px;
} 
#product-dialog li span { 
    color: #333333;
    float: left;
    font-size: 12px;
    font-weight: bold;
    margin: 4px;
    text-align: left;
    width: 175px;
    margin-right: 0;
    overflow: hidden;
    height: 14px;
    line-height: 14px;
} 
#product-dialog li p { 
    float: left;
    width: 175px;
}       
a.select-color, a.select-size {
    border: 2px solid #808080;
    cursor: pointer;
    display: inline-block;
    padding: 3px;
    margin: 0 2px 2px 0;
}
a.select-color.selected, a.select-size.selected {
        border-color: #cccccc;
	background:#3b5998;
	color:#FFF
}

#order-detail {

}
#order-detail > div { width: 400px; margin: 0 auto; }
#order-detail h3 { margin-bottom: 10px; background-color: #E9E7E7; padding: 5px; }
#order-detail ul {  }
#order-detail li { margin-bottom: 5px; min-height: 23px; } 
#order-detail li label.form-lbl { 
    float: left;
    font-size: 11px;
    font-weight: bold;
    width: 100px; 
    margin: 4px;
} 
#order-detail li input, #form-order li textarea { width: 270px; } 
#order-detail input[type="submit"] {
    background-color: #3B5998;
    border: 1px solid #808080;
    border-radius: 3px 3px 3px 3px;
    color: #D8DFEA;
    cursor: pointer;
    padding: 2px 3px;
    margin-left: 100px;
}
#order-detail li span {
    float: left;
    font-size: 11px;
    margin: 4px;
    width: 250px;
}

@media screen and (max-width:400px) {  /*384px*/
    .order-form form > div {
        width: 100%;
    }
    #products .image p {
        width: 115px;
    }
    #form-order li input, #form-order li textarea {
        width: 70%;
    }
    #form-order li label.form-lbl {
        width: 25%;
    }
    #form-order input[type="submit"] {
        margin-left: 4px;
    }

    #product-dialog {
        height: auto;
        padding-bottom: 15px;
        margin: -220px 0 0 -160px;
        width: 300px;
    }
    #product-dialog div.image {
        margin: 0 auto;
        position: relative;
        top: auto;
        left: auto;
    }
    #product-dialog div.detail {
        left: 0px;
        position: relative;
        top: 10px;
        width: 320px;
    }
     #product-dialog li {
        height: 25px;
    }
    #product-dialog li label.form-lbl {
        width: 130px;
    }
}

form .highlight{
		border:1px solid #C43B1D;
		padding-top:5px;
		padding-bottom:5px;
		background:#fff9d7;
}