/* MODIFICACIONS DEL GRAPELLI */

header#grp-header {
    position: fixed;
    width: 85%;
    background: #4372BA;
    color: #E0E0E0;
}

header#grp-header #grp-navigation a {
    color: #ffffff;
}

#grp-content {
    top: 80px;
}

#grp-content-container {
    margin-top: 25px;
}

.grp-results table {
	border-top: 0px none;
    border-left: 0px none;
    border-bottom: 0px none;
}

.grp-fixed-footer {
    position: static;
    border-radius: 3px 3px 3px 3px;
}

.grp-search-button {
    margin: 0 0 0 -25px;
    padding: 0;
    width: 25px;
    height: 25px;
}

div.grp-readonly {
    border: none;
}

input[type=submit], input[type=button], button {
    padding: 0.1em 1.5em;
    margin: 0;
    width: auto;
}

input[type="submit"] {
    background-image: linear-gradient(#c3c3c3, #9e9e9e);
    border: 1px solid #b9b9b9;
}

.ui-sortable .ui-sortable-helper {
     width:auto !important;
}

.grp-module h2 {
    line-height: 23px;
}

.grp-row input[type="text"], .grp-row textarea {
	width: 85%;
}

a {
    color: #158ece;
}

a.grp-button, button.grp-button, input.grp-button[type="button"] {
    background-image: linear-gradient(#c3c3c3, #9e9e9e);
    border: 1px solid #b9b9b9;
}

table thead th a {
    color: #158ece;
}


/* MODIFICACIONS DEL JQUERY UI */
.ui-front {
    z-index: 1000;
}
/*.ui-widget-header {
    background-image: linear-gradient(rgb(51, 51, 51), rgb(34, 34, 34));
}*/

/* PAGE STRUCTURE */

#container {
    position: relative;
    width: 100%;
    min-width: 760px;
    padding: 0;
}

#menu_container {
    position: relative;
    float:left;
    width: 200px;
    z-index: 1000;
}

#logo_container {
    position: fixed;
    height: 200px;
    width: 15%;
    background-image: linear-gradient(rgb(51, 51, 51), rgb(0, 0, 0));
}

#logo {
    width: 66%;
    position: absolute;
    top:50%;
    left:50%;
    margin-top:-33%;
    margin-left:-33%;
}

#usell_menu {
    background-color: rgb(230, 230, 230);
    position: fixed;
    top: 200px;
    bottom: 0;
    width: 15%;
}

#usell_menu ul {
    margin: 20px 0 0 15px;
    padding: 0px;
}

#usell_menu li {
    list-style-type: none;
    width: 100%;
}

#usell_menu li a {
    display: block;
    padding: 15px 5px;
    font-size: 16px;
    color: rgb(150, 150, 150);
}

#usell_menu li a:hover {
    color: rgb(55, 55, 55);
    font-weight: bold;
}

#content_container {
    margin-left: 15%;
    width: 85%;
    float:left;
}

#footer {
    clear: both;
    padding: 10px;
}

/* HEADER */

#header a:link, #header a:visited {
    color: white;
}

#header a:hover {
    text-decoration: underline;
}

#branding h1 {
    padding: 0 10px;
    font-size: 18px;
    margin: 8px 0px;
    font-weight: normal;
    color: #FFFFFF;
}

#branding h2 {
    padding: 0 10px;
    font-size: 14px;
    margin: -8px 0 8px 0;
    font-weight: normal;
    color: #ffc;
}

#grp-user-options-container{
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.2em 10px;
    font-size: 11px;
    text-align: right;
}

/* Login */
#id_password, #id_username {
	width:100%;
}

/* General configuration */

#sync-button {
    position: absolute !important;
    top: 15px;
    right: 20px;
}

.list-messages {
    margin-top: 30px;
    text-align:center;
}

#list-error {
    color: rgb(255,0,0);
}

/* Dialogs */
.dialog-form {
    margin-top: 20px;
    padding: 10px 5px;
    font-size: 12px;
}

.form-line {
    clear:both;
    padding: 5px 0;
    vertical-align: middle;
}

.dialog-label {
    float: left;
    width: 30%;
    margin-right:25px;
    text-align: right;
    line-height: 25px;
}

.required {
    font-weight: bold;
}

.dialog-text {
    width: 20% !important;
    margin: 0;
    padding: 0;
    text-align: right;
    line-height: 25px;
}

.dialog-text-medium {
    width: 40% !important;
    margin: 0;
    padding: 0;
    text-align: right;
    line-height: 25px;
}

.dialog-text-long {
    width: 60% !important;
    margin: 0;
    padding: 0;
    text-align: right;
    line-height: 25px;
}

.dialog-search-line {
    width: 100%;
    margin: 5px 0px 10px 0px;
}

.dialog-search-line input[type="text"] {
    width: 60%;
}

.dialog-table {
    min-width: 100%;
}

/* Product import */
.import-dialog p {
    margin: 10px 0px;
}

.import-dialog input {
    margin-left: 100px;
    margin-bottom: 20px;
}

.import-template p, .import-template a {
    display: inline-block;
    float: left;
    padding-right: 40px;
}

.import-result table, .import-barcodes-result table {
    width: 100%;
}

.import-result, .import-barcodes-result {
    text-align: center;
}

/* Shop detail */

.right {
    text-align: right;
}

.shop-extra-info {
    clear: both;
    padding-top: 40px;
}

.shop-extra-info ul li {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border: 1px solid #969696;
    -moz-border-radius: 10px 10px 0px 0px;
    -webkit-border-radius: 10px 10px 0px 0px;
    border-radius: 10px 10px 0px 0px;
    color: white;
    background-color: #969696;
    cursor: pointer;
}

.shop-extra-info ul li.selected {
    background-image: linear-gradient(#5E5E5E, #444);
    border: 1px solid #444;
}

.shop-extra-info-container {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #444;
    margin: 0px 0px 20px 0px;
    padding: 10px;
    text-align: center;
}

.shop-extra-info-container table {
    margin: -1px !important;
}

/* PDF icon on list and detail */
.field-pdf_icon img, .pdf_icon img {
    width: 50px;
}

/* Dropzone */
.dropzone {
    border: 1px dashed #444;
}

.dz-message {
    font-size: 16px;
}

.dz-message--show {
    display: block;
}

/* Screensavers */
.imageorder-list {
    text-align: center;
}

.imageorder-list-item {
    width: 150px;
    vertical-align: middle;
    position: relative;
    display: inline-block;
    margin: 20px;
    position: relative;
}

.imageorder-list-item:hover {
    box-shadow: 0px 2px 3px 0px rgba(183, 183, 183, 0.6);
}

.imageorder-list-item:hover > .imageorder-list-item-tools {
    display: block;
}

.imageorder-list-item-tools {
    display: none;
    position: absolute;
    top: 0px;
    right: 0px;
    text-align: right;
    width: 100%;
}

.imageorder-list-item-tool {
    float: right;
    margin-left: 5px;
    cursor: pointer;
}

.imageorder-first {
    margin-left: 0;
}

.imageorder-first.enabled {
    position: absolute;
    top: 0px;
    left: 0px;
    cursor: pointer;
    z-index: 99;
}

.imageorder-first.disabled {
    float: left;
    cursor: pointer;
}

.imageorder-list-item.ui-selecting {
    outline: 2px solid rgb(0, 0, 0);
}

.imageorder-list-item.ui-selected {
    outline: 2px solid rgb(0, 0, 0);
}

.image_detail {
    position: absolute;
    background-color: white;
    width: auto;

    -webkit-box-shadow: 0 0 20px rgba(0,0,0, .75);
    -moz-box-shadow: 0 0 20px rgba(0,0,0, .75);
    box-shadow: 0 0 20px rgba(0,0,0, .75);

    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius:8px;
}

.image_detail img {
    padding: 2px;
}

.showing_image p {
    width: 100%;
    box-sizing: border-box;
}

.detail_image img, .showing_image img {
    width: 100%;
}

.detail_back a {
    color: #969696;
}

.detail {
    padding: 30px;
}

.imageorder-list.image-list {
    text-align: left;
}

.imageorder-list-item.image-item {
    width: 300px;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.image-item .imageorder-list-item-image{
    position: absolute;
    left: 50%;
    top: 50%;
    height: 100%;
    width: auto;
    -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}

.image-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0 10px;
    background: white;
    box-sizing: border-box;
}

.pagination-div {
    margin: 1rem;
    width: 425px;
}

.pagination {
    margin: 1.5rem;
    width: 400px;
}

.page-number {
    margin-right: 3px;
    padding: 0.75rem;
    border: 1px solid #bdbdbd;
    background-image: linear-gradient(#eeeeee,#e0e0e0);
}
