/* MODIFICACIONS DEL GRAPELLI */

header#grp-header {
    position: fixed;
    width: 85%;
    background-color: rgb(244, 243, 238);
}

header#grp-header #grp-navigation {
    color: #969696;
    background-image:none;
}

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

header#grp-header #grp-navigation a:hover {
    color: rgb(51,51,51);
}

header#grp-header #grp-navigation ul li.grp-collapse.grp-open > ul {
    background-color: rgb(244, 243, 238);
    border-top: 1px solid white;
}

header#grp-header #grp-navigation ul#grp-user-tools , header#grp-header #grp-navigation ul#grp-user-tools > li{
    border-left: 1px solid white;
}

header#grp-header #grp-navigation ul li.grp-collapse.grp-open > ul li {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

body.grp-login .grp-module-login h1 span.grp-current-page {
    border-color: #969696;
    background-image: linear-gradient(#969696, #969696);
}

#grp-content {
    top: 60px;
}

#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;
}

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

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

.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, table thead th a {
    color: rgb(51,51,51);
}

a:hover, table thead th a:hover {
    color: #000;
}

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

.grp-object-tools li a, .grp-object-tools li input[type="submit"] {
    border: 1px solid #969696;
    opacity: 1;
    background: linear-gradient(#969696, #969696) repeat scroll 0% 0% transparent;
    border-radius: 30px !important;
    color: #fff;
    display: block;
    padding: 4px 15px;
    font-weight: bold;
    box-shadow: none;
}

.grp-object-tools li a:hover, .grp-object-tools li input[type="submit"]:hover {
    border: 1px solid #373737 !important;
    background: linear-gradient(#5E5E5E, rgb(51,51,51)) repeat scroll 0% 0% transparent;
}

/* MODIFICACIONS DEL JQUERY UI */
.ui-front {
    z-index: 1000;
}

/* General */

.clear {
    clear: both;
}

.numeric {
    text-align: right;
}
* {
    font-family: Lato, Arial, sans-serif !important;
}

strong, strong * {
    color: rgb(51,51,51) !important;
}

a.href-link {
    color: #309bbf !important;
}

/* PAGE STRUCTURE */

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

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

#logo_container {
    position: fixed;
    height: 200px;
    width: 15%;
    background-color: rgb(244, 243, 238);
    box-sizing:border-box;
      -moz-box-sizing:border-box;
      -webkit-box-sizing:border-box;
    border-right: 5px solid rgb(244, 243, 238);

    display: -webkit-box;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flexbox;
	display: flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
	-webkit-align-items: center;
	-moz-align-items: center;
	align-items: center;

    -webkit-box-pack: center;
    -ms-flex-pack: center;
	-webkit-justify-content: center;
	-moz-justify-content: center;
	justify-content: center;
}

#logo {
    max-width: 120px;
    max-height: 120px;
    width: 100%;
    margin: 0 auto;
}

.menu {
    background-color: rgb(244, 243, 238);
    position: fixed;
    top: 200px;
    bottom: 0;
    width: 15%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    overflow: auto;
    border-top: 1px solid gainsboro;
    padding-top: 11px;
}

.menu ul {
    margin: 0px 0px 0px 15px;
    padding: 0px;
}

.menu li {
    list-style-type: none;
    width: 100%;
}

.menu li a {
    padding: 8px 5px;
    font-size: 14px;
    display: block;
    color: rgb(150, 150, 150);
}

.menu li a:hover {
    color: rgb(51,51,51);
    font-weight: 600;
}

.menu li a.selected {
    color: rgb(51,51,51);
    font-weight: 600;
}

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

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

/* HEADER */

.select-language {
    float:right;
    line-height: 20px;
    padding-right: 20px;
}

.select-language li {
    display: inline-block;
    margin: 7px 5px 0px 0px;
}

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

/* HEADER: basket (pending order) */
.header-separator {
    float: right;
    height: 36px;
    width: 2px;
    background: white;
    margin: 0 25px;
}
.basket-container {
    float: right;
    height: 30px;
    width: 30px;
    padding-top: 7px;
    cursor: pointer;
}

/* Account Managment */
.account-wrapper, .account-wrapper .grp-submit-row, .account-wrapper *:not(input) {
    background: rgb(244, 243, 238) !important;
    border: 0px !important;
}

.account-wrapper  .grp-current-page {
    display: none !important;
}

.account-wrapper  h1 {
    padding: 0px !important;
}

.account-wrapper .logo img {
    height: 170px;
    width: 170px;
    margin: auto;
    display: block;
}

.account-wrapper .errornote {
    color: #bf3030 !important;
    padding-bottom: 2px !important;
    padding-top: 10px !important;
}

.account-wrapper .login-recovery-opts p {
    font-size: 13px !important;
}

.account-wrapper h1 {
    font-size: 15px !important;
    margin-bottom: 10px;
}

.account-wrapper .grp-description--centered {
    text-align: center;
}

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


body.grp-login .grp-submit-row li {
    width: 100%;
}
body.grp-login div.grp-module > *:first-child {
    margin-top: 10px !important;
    padding-top: 0px !important;
}

body.grp-login .grp-submit-row li input {
    text-transform: uppercase;
    border-radius: 0px !important;
    background: rgb(68, 68, 68);
    border: 0px;
    color: white;
    width: 100%;
    box-shadow: none;
}

body.grp-login {
    background: rgb(244, 243, 238);
}

body.grp-login .select-language {
    padding: 0px;
}

body.grp-login .select-language a {
    padding: 0px;
    color: #969696;
}

body.grp-login .grp-module-login {
    background: transparent !important;
}

body.grp-login .grp-module-login .grp-module .grp-row {
    padding: 6px 0px !important;
}

body.grp-login .grp-module-login .grp-module label {
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: bold;
}

body.grp-login .grp-module-login .grp-module .grp-description {
    margin: 0px !important;
    padding-bottom: 10px;
}

.login-recovery-opts {
    /* background: #fafafa; */
}
.login-recovery-opts .grp-description {
    font-size: 12px !important;
}
.login-recovery-opts .grp-description a {
    text-decoration: underline;
}

/* Users */
.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 {
    width: 100%;
}

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

/* General configuration */

#sync-dialog {
    text-align: center;
}

#sync-dialog {
    padding-top: 30px;
}

.sync-buttons {
    position: absolute !important;
    top: 15px;
    right: 20px;
}

/* Images */

.images 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;
}

.images ul li.selected {
    background-image: linear-gradient(#5E5E5E, rgb(51,51,51));
    border: 1px solid #c3c3c3;
}

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

.images-toolbar {
    position: absolute;
    top: 85px;
    right: 20px;
}

.images-toolbar input[type="text"] {
    width: 200px;
    display: inline-block;
    vertical-align: top;
}

#images-toggle-properties {
    margin-left: 40px;
    background: url("../images/info.22bfe9ff24b5.png") no-repeat;
    width: 23px;
    height: 23px;
    display: inline-block;
    vertical-align: top;
}

#images-toggle-properties.selected {
    background: url("../images/info_pressed.a2818acab277.png") no-repeat;
}

.image-properties {
    display: inline-block;
    vertical-align: top;
    width: 300px;
    border: 1px solid #c3c3c3;
}

.image-properties h2 {
    background-color: rgb(51,51,51);
    color: white;
    text-align: center;
    padding: 3px;
}

.image-properties table {
    width: 100%;
    border: none;
}

.image-properties table th {
    background-color: rgb(51,51,51);
    color: white;
    background-image: none;
    border: none;
    border-radius: 0px;
}

.image-list-item .list-item-tools a {
    color: white;
    padding: 3px;
}

.image-list-item .list-item-tools {
    top: auto;
    background-color: #969696;
    text-align: center;
}

.image-list-item, .productorder-add-gallery-list .product, .list-item {
    width: 80px;
    vertical-align: middle;
    position: relative;
    display: inline-block;
    margin: 15px;
}

.upload-message {
    font-size: 14px;
    font-weight: 700;
    margin: 20px;
}

#image-upload-succeed-message {
    color: green;
}

#image-upload-failed-message {
    color: red;
}

.dropzone {
    border: 1px dashed rgb(51,51,51);
}

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

/* Catalog list */

.catalog-list table {
    margin: -1px;
}

.catalog-group {
    border-radius: 5px;
    padding: 3px 5px;
    box-shadow: 0px 2px 3px 0px rgba(183, 183, 183, 0.6);
    display: inline-block;
	margin-top: 5px;
}

.catalog.grp-row-even .catalog-group {
    background-color: white;
}

.catalog.grp-row-odd .catalog-group {
    background-color: #f4f4f4;
}

.catalog-actions {
    padding: 10px 20px;
}

.catalog-button {
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
}

.catalog-button.disabled {
    pointer-events: none;
    cursor: none;
    opacity: 0.5;
}

.catalog-button.catalog-action-delete {
    margin-right: 0;
}

/* Category list */
.category-list {
    text-align: center;
}

.category-list-item {
    width: 170px;
    display: inline-block;
    margin: 20px;
    margin-bottom: 50px;
    border: 1px solid rgb(244, 243, 238);
    position: relative;
    vertical-align: top;
}

.category-list-item:hover {
    margin-bottom: 20px;
}

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

.category-list-item-data {
    margin: 10px;
}

.category-list-item-data p {
    font-size: 13px;
    font-weight: bold;
    margin-top: 10px;
}

.category-list-item-tools {
    display: none;
    background-color: #969696;
    width: 100%;
}

.category-list-item-tools a {
    color: white;
    display: inline-block;
    width: 45%;
    padding: 3px;
}

/* Category detail */

.options_container {
    position: absolute;
    top: -60px;
    right: 0px;
    width: 100%;
    min-height: 36px;
    background-color: white;
    text-align: right;
    border-bottom: 2px solid rgb(244, 243, 238);
}

.option {
    margin: 8px 240px;
    color: rgb(150, 150, 150);
    font-weight: 600;
}

.options_button {
    position: absolute;
    top: -24px;
    right: 20px;
    min-height: 30px;
    z-index: 800;
    color: #969696;
    padding: 5px 10px;
}

.options_button:hover {
    cursor: pointer;
}

.options_button p, .options_button img {
    float: left;
}

.options_button img {
    margin: 3px 10px;
}

.search_container {
    text-align: right;
    padding-right: 30px;
    margin-bottom: 30px;
}

.search_container p {
    font-size: 14px;
    text-align: left;
    color: rgb(150, 150, 150);
    font-weight: 600;
}

.search_container span {
    color: rgb(51,51,51);
}

.search_container input {
    width: 320px;
}

.search_item a {
    font-size: 12px;
    color: rgb(150, 150, 150) !important;
    background: none repeat scroll 0% 0% white !important;
}

.search_item a:hover {
    font-size: 12px;
    border-color: rgb(150, 150, 150) !important;
    background: none repeat scroll 0% 0% rgb(230, 230, 230) !important;
}

.productorder-list {
    text-align: center;
}

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

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

.productorder-list-item .product-code {
    font-weight: bold;
}

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

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

.list-item-tool {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    cursor: pointer;
}

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

.list-item p {
    width: 100%;
    word-break: break-all;
    font-size: 11px;
}

.list-item-tool.productorder-action-move {
    cursor: grab;
}

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

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

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

.product_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;
}

.product_detail img {
    padding: 2px;
}

.detail_back a {
    color: #969696;
}

.detail {
    padding: 30px 80px;
    float: left;
    color: #969696;
    width: 85%;
}

.detail_image, .detail_info {
    display: inline-block !important;
    vertical-align: top;
    box-sizing: border-box;
}

.detail_image {
    width: 60%;
    padding-right: 5%;
}

.detail_info {
    width: 35%;
}

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

.product_info {
    border-top: 1px solid #b9b9b9;
    padding: 5%;
}

.product_info p {
    padding: 0.5% 0%;
}

.product_code {
    font-weight: 600;
    color: rgb(51,51,51);
}

.product_info .base_price {
    margin-left: 5px;
	font-size:11px;
	text-decoration:line-through;
}

.product_quantity {
    width: 60% !important;
}

.product_master, .product_intern {
    font-size: 0.9em;
}

.product_stock {
    font-style: italic;
}
.product_stock_bold {
    font-weight: bold;
    color: #f09700;
}

.product-list-item-price {
    width: 50px;
}

.detail_message {
    position: absolute;
    top: 70px;
    left: 62%;
    padding: 10px 20px;
    border-radius: 3px;
    width: 25%;
    z-index: 100;
    background-color: white;
}

.message_green {
    color: #20A750;
    border: 1px solid #20A750;
}

.message_yellow {
    color: #FFCA1C;
    border: 1px solid #FFCA1C;
}

.message_red {
    color: #C5171F;
    border: 1px solid #C5171F;
}

.add_order {
    display: inline-block;
    cursor: pointer;
    margin-left: 5%;
    vertical-align: middle;
}

.bx-next, .bx-prev {
    display: inline-block;
    position: absolute;
    width: 30px;
    height: 73px;
    top: 300px;
}

.bx-prev {
    left: 20px;
    background: url("../images/prev.f1386f437d99.png") no-repeat top right;
}

.bx-next {
    right: 20px;
    background: url("../images/next.f25cc2ed6c13.png") no-repeat top right;
}
.bx-prev:hover, .bx-next:hover { background-position: bottom; }

/* Images */
#filedrag-header {
	text-align:center;
}

.thumbnail {
    height: 80px;
    width: 80px;
    float:left;
    margin: 2px;
}

.thumbnail-selected {
    outline: 2px solid rgb(0, 0, 0);
}

.loading {
    clear:both;
    text-align: center;
}

/* Dialogs */

.dialog-title {
    margin-bottom: 10px;
}

.dialog-error {
    color: red;
}

.dialog-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;
    line-height: 25px;
}

.dialog-multiselectable {
    width: 250px;
}

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

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

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

.dialog-form-line textarea {
    width: 100%;
   resize: none;
}

/* Order sheet */

#btn-confirm-order {
    background: linear-gradient(#1e8b25, #206d26);
}
#btn-confirm-order:hover {
    background: linear-gradient(#206d26, #204723);
}

#order-info {
    float: left;
    width: 60%;
}

#order-info-first, #order-info-second  {
    float: left;
    font-size: 0.9em;
}

#order-info-first {
    width: 59%;
}

#order-info-first {
	border-right: 1px solid rgb(221, 221, 221);
}

#order-info-second {
    width: 40%;
}

#order-info .c-1 {
    width: 55%;
    padding-right: 5%;
}

#order-info .c-2 {
    width: 40%;
}

#order-comments {
    float: left;
    width: 38%;
    margin-left: 2%;
}

#order-comments div {
    min-height: 228px;
}

#order-comments textarea {
    margin: 4%;
    width: 92%;
    height: 160px;
   resize: none;
}

.order-select {
    width: 100%;
    font-size: 10px;
}

.floating-button {
    position: absolute !important;
    top: 2px;
    right: 12px;
}

.duplicate-order {
    position: absolute !important;
    top: 2px;
    right: 70px;
}

.right-button {
    position: absolute;
    right:5px;
}

.order-line-add {
    top: 2px;
    right: 100px;
}

.order-line-price .base_price {
	font-size:10px;
	text-decoration:line-through;
}

.order-line-image {
    padding: 0px;
    vertical-align: middle;
}

.order-line-delete img{
    padding-left: 10px;
}

/*
    News
*/

.list-entry {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid rgb(244, 243, 238);
}

.list-entry h2 {
    font-size: 14px;
}

.list-entry img, .list-entry .list-entry-content {
    display: inline-block;
    vertical-align: middle;
}

.list-entry img {
    display: inline-block;
    width: 20%;
    margin-right: 2%;
}

.list-entry .list-entry-content {
    width: 75%;
}

.news-date {
    font-style: italic;
    font-size: 11px;
    color: rgb(153, 153, 153);
    margin-bottom: 5px;
}

.news-title {
    font-size: 18px;
}

.news-content {
    margin-top: 20px;
}

.news-content p {
    margin-bottom: 10px;
}

.news-content a {
    text-decoration: underline;
    font-weight: bold;
}

.news-container {
    margin-top: 30px;
}


/*
    Pagination
*/
.pagination {
    text-align: left;
    margin-top: 20px;
    font-size: 12px;
}

.pagination .current {
    padding: 2px 4px;
    border: 1px solid #666666 !important;
    color: white;
    background-color: #666666;
}

.pagination a {
    padding: 2px 4px;
    border: 1px solid #666666 !important;
    color: #666666;
    cursor: pointer;
}

.pagination a:hover {
    color: white;
    background-color: #666666;
}

.pagination .selected a {
    color: white;
    background-color: #666666;
}

/*
    Packaging
*/

.productorder-list.decoration-list {
    text-align: left;
}

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

.decoration-item .productorder-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%);
}

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

.showing_image {
    float: left;
    width: 90%;
    margin-left: 5%;
}

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

.no-border{
    border: none !important;
}

/* DOCUMENTS */
.document-list-item {
    vertical-align: top;
    text-align: center;
}

.document-list-item-image {
    width: 80%;
    margin-top: 20px;
}
