a.button,
input[type="submit"],
input[type="button"] {
        display: inline-block;
        white-space: nowrap;
        background-color: #e0e0e0;
        background-image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#f1f1f1));
        background-image: -webkit-linear-gradient(top, #fcfcfc, #f1f1f1);
        background-image: -moz-linear-gradient(top, #fcfcfc, #f1f1f1);
        background-image: -ms-linear-gradient(top, #fcfcfc, #f1f1f1);
        background-image: -o-linear-gradient(top, #fcfcfc, #f1f1f1);
        background-image: linear-gradient(top, #fcfcfc, #f1f1f1);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#fcfcfc', EndColorStr='#f1f1f1');
        border: 1px solid #d8d8d8;
        padding: 3px 8px;
        margin: 0 2px 0 0;
        line-height: 12px;
        font: bold 12px Arial, Helvetica;
        text-decoration: none;
        color: #444;
        border-radius: 2px;
        cursor: pointer;
}

input[type="submit"], input[type="button"] {
	padding: 2px 8px 2px 8px;
}

a.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
        background-color: #eee;
        background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#eee));
        background-image: -webkit-linear-gradient(top, #fefefe, #eee);
        background-image: -moz-linear-gradient(top, #fefefe, #eee);
        background-image: -ms-linear-gradient(top, #fefefe, #eee);
        background-image: -o-linear-gradient(top, #fefefe, #eee);
        background-image: linear-gradient(top, #fefefe, #eee);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#fefefe', EndColorStr='#eee');
        color: #111;
        border-color: #c6c6c6;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.form th {
    padding: 3px 6px 3px 0;
    min-width: 120px;
    text-align: right;
    vertical-align: top;
    font-weight: normal;
    color: #555;
}

.form td {
    /*white-space: nowrap;*/
    color: #222222;
    padding: 1px 0;
    vertical-align: center;
}

.form input[type=text],
.form input[type=email],
.form input[type=url],
.form input[type=number],
.form input[type=password] {
    width:300px;
}

.form select {
    width:306px;
}

.form.big input[type=text], {
    width: 480px;
}

.form.big select[multiple="multiple"] {
    width: 480px;
    height: 200px;
}

.form.big select {
    width: 486px;
}

.form td textarea {
    width:300px;
    height: 80px;
}

.form td ul {
	padding: 0;
	margin: 0;
	list-style:none;
}

.form td.form-actions {
    padding: 4px 0;
}

.form .helptext {
    font-style: italic;
    color: #999;
}

div.form label {
	display: block;
	font-weight: bold;
}

td.active input {
    background-color: #E1FFCB;
}

.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;   
}

.errorlist li {
    padding: 2px;
    background: #c00;
    border-radius: 2px;
    color: #fff;
    font-size: 11px;
}

div.form-actions {
    margin: 4px 0;
}

.form-actions input {
    padding: 2px 16px;
    margin-right: 6px;
}

.form-actions input[type="submit"] {
    font-weight: bold;
}

.split-datetime input.date-input {
	width: 195px !important;
}

.split-datetime input.time-input {
	width: 18px !important;
}

.formset td {
    vertical-align:top;
}

.formset th.sort {
    width: 50px;
}

#units-formset td input {
    width:100px;
}

#options-formset th.name {
    width:200px;
}

#options-formset td input {
    width:95%;
}

#aliases-formset input {
    width:200px;
}

#aliases-formset input.priority {
    width:70px;
}

#aliases-formset input[type=checkbox] {
    width:16px;
}

#attributes-table select {
    width:200px;
}

#attr-edit-options-box {
    display:none;
}

#form-langs a.selected {
    text-decoration: none;
    color: #000;
}

div.gallery ul {
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

div.gallery li {
    position: relative;
    display: block;
    float: left;
    width: 160px;
    margin: 4px;
    height: 190px;
}

div.gallery a.imgbox {
    display: table-cell;
    width: 160px;
    height: 160px;
    vertical-align: middle;
    text-align: center;
    color: #000000;
    text-decoration: none;
    border: 1px solid #c3d3e2;
    outline: none;
}

div.gallery a.imgbox:hover {
    border: 1px solid #80abd4;
    background-color: #ecf2f7;
}

div.gallery li span.name {
    display: block;
    font-size: 11px;
    text-align: center;
}

div.gallery li a.edit {
    display: none;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 24px;
    top: 4px;
    background: url("images/image_edit.8ed5fb942da2.png") no-repeat;
    background-position: bottom;
    outline: none;
}

div.gallery a.delete {
    display: none;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 8px;
    top: 4px;
    background: url("images/image_delete.9b9bdd09ce27.png") no-repeat;
    background-position: bottom;
    outline: none;
}

div.gallery a.default {
    display: none;
    position: absolute;
    width: 16px;
    height: 16px;
    right: 40px;
    top: 4px;
    background: url("images/default.9b27f3df3d0a.png") no-repeat;
    background-position: bottom;
    outline: none;
}

div.gallery li a.edit:hover,
div.gallery li a.delete:hover,
div.gallery li a.default:hover {
    background-position: top;
}

div.gallery li:hover a.edit,
div.gallery li:hover a.delete,
div.gallery li:hover a.default {
    display:block;
}

div.add-box {
    margin:4px;
}

tr.error th {
    color: #c00;
}

tr.error td input,
tr.error td select,
tr.error td textarea {
    border: 1px solid #c00;
    background-color: #ffd9d9;
}

td.error input,
td.error select {
	border-color: #c00;
	background-color: #ffebeb;
}

td.error2 {
	background-color: #FCB8B8;
}

input.active {
	font-weight: bold;
	background-color:#E1FFCB;
}

.mini-form-box {
	display: block;
	position: relative;
}

.mini-form {
	display: none;
	position: absolute;
	right: 0;
	top: 20px;
	width: 280px;
	padding: 4px;
	background-color: #fff;
	border: 1px solid #999;
	padding: 6px;
	z-index: 10;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.mini-form label {
	display: inline-block;
	width: 170px;
	color: #777;
}

.mini-form p {
	margin: 4px 0;
	padding: 0;
	text-align: left;
}

.mini-form p.field input {
	width: 100px;	
}

.mini-form textarea {
	width: 265px;
	height: 50px;
}

.mini-form p.submit {
	text-align: right;
}

.results_on_deck {
    overflow: auto;
    max-height: 150px;
    max-width: 305px;
}

.ui-autocomplete { max-height: 250px; overflow-y: scroll; overflow-x: hidden;}

#attributes-formset tr th {
    text-align: left;
}

.sync-message {
    width: 640px;
    overflow: auto;
}
