.span100 {
    display: inline-block;
    width: 100px;
}
.spanfixed {
    display: inline-block;
}
.amagarTitolsMenuPetit {
    display: none;
}
@media (min-width: 600px) {
    .amagarTitolsMenuPetit {
        display: inline !important;
    }
}
.check-radiobtn {
    visibility:hidden;
}
.input-seleccionat {
    background-color: lightyellow;
}
.text-readonly {
    background-color: #e4e7ea;
}
.text-vermell {
    color:red;
}
.text-verd {
    color:green;
}
.text-groc {
    color:yellow;
}
.text-blau {
    color: #0478a1;
}
.border-blau {
    border: 2px solid #0478a1;
}
.text-fons-vermell {
    background-color: red;
}
.text-fons-verd {
    background-color: green;
}

.text-fons-groc {
    background-color: yellow;
}

.divHidden {
    display: none;
}
.border-red {
    border: 1px solid #c8ced3;
    padding: 10px;
    margin-top: 5px;
    height:70px;
}
.border-green {
    border: 1px solid #4dbd74;
    padding: 10px;
    margin-top: 5px;
    height: 70px;
}
.ITEM_SUSTI_SUB {
    color: blue;
}

.ITEM_SUSTI {
    color: red;
}

.hr-prima {
    margin:0px;
}
.td-art {
    padding-left: 15px;
    padding-right: 15px;
}
.td-art-info {
    float:left;
    padding-right:20px;
}
.table-art {
    margin-left: -15px;
    margin-right: -15px;
    width: 100%;
}
@media (max-width: 950px) {
    .table-art {
        margin-left: -5px !important;
        margin-right: -5px !important;
        width: 100% !important;
    }
    .td-art {
        padding: 5px !important;
    }
}

.btn-menu {
    width: 100%;
    max-width: 500px;
    margin-bottom: 5px;
    text-align: left;
    display: block;
}

.label-cap {
    width: 140px;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite;
}

@-webkit-keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

@keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: .2em
}

@-webkit-keyframes spinner-grow {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0)
    }

    50% {
        opacity: 1
    }
}

@keyframes spinner-grow {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0)
    }

    50% {
        opacity: 1
    }
}

.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    -webkit-animation: spinner-grow .75s linear infinite;
    animation: spinner-grow .75s linear infinite
}

.spinner-grow-sm {
    width: 1rem;
    height: 1rem
}

.nowrapobj {
    display: inline-block;
    white-space: nowrap;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
}

@media only screen and (max-width: 600px) {
    .mobilecard {
        width: 100%;
    }

    .mobilegroup {
        width: 100%;
    }
}

@media only screen and (min-width: 600px) {
    .mobilecard {
        width: 100%;
    }

    .mobilegroup {
        width: 100%;
    }
}

@media only screen and (min-width: 768px) {
    .mobilecard {
        width: 50%;
    }

    .mobilegroup {
    }
}

.nofocus:focus {
    outline: none;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8) none 50% / contain no-repeat;
    cursor: pointer;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
}

    #overlay.open {
        visibility: visible;
        opacity: 1;
    }

    #overlay:after { /* X button icon */
        content: "\2715";
        position: absolute;
        color: #fff;
        top: 10px;
        right: 20px;
        font-size: 2em;
    }

.sidebar-visible {
    margin-left: 0px !important;
}

.sidebar-invisible {
    margin-left: -200px !important;
}

/*@media (max-width: 991.98px) {
    .app-body {
        margin-top: 0px !important;
    }
}*/

.nav-item-hidden, .nav-item-hiddenEst {
    visibility: hidden;
    display: none;
}

.nav-item-show, .nav-item-showEst {
}
/*@media (min-width: 576px) and (min-width: 992px) {
    html:not([dir="rtl"]) .sidebar-lg-show.sidebar-fixed .main, html:not([dir="rtl"]) .sidebar-lg-show.sidebar-fixed .app-footer {
        margin-left: 250px !important;
    }
    .sidebar-fixed .sidebar, .sidebar .sidebar-nav, .sidebar .nav {
        width: 250px !important;
    }
}*/
/*dl {
    border: 3px double #ccc;
    padding: 0.5em;
}*/
.radio-toolbar input[type="radio"] {
    display: none;
}

.radio-toolbar label {
    display: inline-block;
    background-color: #c8ced3;
    padding: 10px 20px;
    font-family: Arial;
    font-size: 16px;
    border: 2px solid #c8ced3;
    border-radius: 4px;
}

.radio-toolbar input[type="radio"]:checked + label {
    background-color: #50ad31;
    border-color: #50ad31;
    color: #fff;
}

.radio-toolbar label:hover {
    background-color: #dfd;
}

.dropdown-crm-item, .dropdown-crm {
    background-color: #50ad31 !important;
    color: white !important;
}

    .dropdown-crm-item:hover {
        background-color: #bafaa5 !important;
        color: black !important;
    }


.btn-crmnobackground {
    background-color: transparent !important;
    color: black;
}

.form-control-small {
    width: auto !important;
}

.sidebar .nav-link {
    padding: 1.3rem 1rem !important
}

dt {
    color: green;
}

    dt::after {
        content: ":";
    }

.enlinea dt, .enlineaGran dt {
    float: left;
    clear: left;
    text-align: right;
    font-weight: bold;
    color: green;
}

.enlineaGran dt {
    width: 150px;
}

.enlinea dt {
    width: 100px;
}

.checkbox-gran {
    transform: scale(2);
    width: 20px;
    "
}

.enlinea dd, .enlineaGran dd {
    margin: 0 0 0 110px;
    padding: 0 0 0.5em 0;
}


@media (max-width: 950px) {
    .main .container-fluid {
        padding: 0 1px !important;
    }

    .hidetextauto {
        visibility: hidden;
        display: none;
    }

    .card-body {
        padding: 10px !important;
    }
}

.formatnumero {
    text-align: right;
}

.formatnumerobadge {
    text-align: right;
    float: right;
    margin: 8px;
    display: inline-block;
    vertical-align: middle;
}

:root {
    --primary: #50ad31;
}

a {
    color: #50ad31;
}
/*nav-link, a {
    color:#FFFFFF!important;
}
    a:hover {
        color: #408b27;
    }*/


.margeminim {
    margin: 3px;
}

.btn-tactil {
    height: 50px;
    line-height: 35px;
}

.table-primary,
.table-primary > th,
.table-primary > td {
    background-color: #ceeec3;
}

.table-hover .table-primary:hover {
    background-color: #bee9af;
}

    .table-hover .table-primary:hover > td,
    .table-hover .table-primary:hover > th {
        background-color: #bee9af;
    }

.form-control:focus {
    color: #5c6873;
    background-color: #fff;
    border-color: #ade39c;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.25);
}


.btn:focus, .btn.focus {
    box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.25);
}

.bg-primary {
    background-color: #50ad31 !important;
}

.btn-unpressed {
    border-color: #50ad31 !important;
}

.btn-label {
    border-color: #c8ced39e !important;
    background-color: #c8ced39e !important;
    text-align: left;
    cursor: default !important;
}

.btn-primary {
    background-color: #50ad31 !important;
    border-color: #50ad31 !important;
}

    .btn-primary:hover {
        background-color: #499f2d !important;
        border-color: #408b27 !important;
    }

    .btn-primary:focus, .btn-primary.focus {
        box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.5) !important;
    }

    .btn-primary.disabled, .btn-primary:disabled {
        background-color: #50ad31 !important;
        border-color: #50ad31 !important;
    }

    .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        background-color: #408b27 !important;
        border-color: #377722 !important;
    }

        .btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.5) !important;
        }

.btn-outline-primary {
    color: #50ad31 !important;
    border-color: #50ad31 !important;
}

    .btn-outline-primary:hover {
        background-color: #50ad31 !important;
        border-color: #50ad31 !important;
    }

    .btn-outline-primary:focus, .btn-outline-primary.focus {
        box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.5) !important;
    }

    .btn-outline-primary.disabled, .btn-outline-primary:disabled {
        color: #50ad31 !important;
    }

    .btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active,
    .show > .btn-outline-primary.dropdown-toggle {
        background-color: #50ad31 !important;
        border-color: #50ad31 !important;
    }

        .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-outline-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.5) !important;
        }

.btn-link {
    color: #50ad31 !important;
}

    .btn-link:hover {
        color: #408b27 !important;
    }


.dropdown-item.active, .dropdown-item:active {
    background-color: #50ad31 !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #50ad31 !important;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgba(80, 173, 49, 0.25) !important;
}

.custom-control-input:active ~ .custom-control-label::before {
    background-color: #ceeec3 !important;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #50ad31 !important;
}


.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
    background-color: #50ad31 !important;
}

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: rgba(80, 173, 49, 0.5) !important;
}

.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before {
    background-color: rgba(80, 173, 49, 0.5) !important;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #50ad31 !important;
}

.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
    background-color: rgba(80, 173, 49, 0.5) !important;
}

.custom-select:focus {
    border-color: #ade39c !important;
    box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.5) !important;
}

    .custom-select:focus::-ms-value {
        color: #5c6873;
    }

.custom-file-input:focus ~ .custom-file-label {
    border-color: #ade39c;
    box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.25);
}

    .custom-file-input:focus ~ .custom-file-label::after {
        border-color: #ade39c;
    }

.custom-range::-webkit-slider-thumb {
    background-color: #50ad31;
}


    .custom-range::-webkit-slider-thumb:focus {
        outline: none;
        box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgba(80, 173, 49, 0.25);
    }

    .custom-range::-webkit-slider-thumb:active {
        background-color: #ceeec3;
    }

.custom-range::-moz-range-thumb {
    background-color: #50ad31;
}

    .custom-range::-moz-range-thumb:focus {
        box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgba(80, 173, 49, 0.25);
    }

    .custom-range::-moz-range-thumb:active {
        background-color: #ceeec3;
    }

.custom-range::-ms-thumb {
    background-color: #50ad31;
}

    .custom-range::-ms-thumb:focus {
        box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgba(80, 173, 49, 0.25);
    }

    .custom-range::-ms-thumb:active {
        background-color: #ceeec3;
    }

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #50ad31;
    color: #fff
}

.page-link {
    color: #50ad31;
}

    .page-link:hover {
        color: #408b27;
    }

    .page-link:focus {
        box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.25);
    }

.page-item.active .page-link {
    background-color: #50ad31;
    border-color: #50ad31;
    color: #fff;
}


.badge-primary {
    background-color: #50ad31;
}

    .badge-primary[href]:hover, .badge-primary[href]:focus {
        background-color: #408b27;
    }

.alert-primary {
    color: #2e631c;
    background-color: #def4d7;
    border-color: #ceeec3;
}

    .alert-primary hr {
        border-top-color: #bee9af;
    }

    .alert-primary .alert-link {
        color: #1c3c11;
    }

.progress-bar {
    background-color: #50ad31;
}

.list-group-item.active {
    background-color: #50ad31;
    border-color: #50ad31;
}

.list-group-item-primary {
    color: #2e631c;
    background-color: #ceeec3;
}

    .list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus {
        color: #2e631c;
        background-color: #bee9af;
    }

    .list-group-item-primary.list-group-item-action.active {
        background-color: #2e631c;
        border-color: #2e631c;
    }





a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
    background-color: #408b27 !important;
}

.border-primary {
    border-color: #50ad31 !important;
}

.text-primary {
    color: #50ad31 !important;
}

a.text-primary:hover, a.text-primary:focus {
    color: #408b27 !important;
}

.aside-menu .nav-tabs .nav-link.active {
    color: #50ad31;
}

.btn-ghost-primary {
    color: #50ad31;
}

    .btn-ghost-primary:hover {
        background-color: #50ad31;
        border-color: #50ad31;
    }

    .btn-ghost-primary:focus, .btn-ghost-primary.focus {
        box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.5);
    }

    .btn-ghost-primary.disabled, .btn-ghost-primary:disabled {
        color: #50ad31;
    }

    .btn-ghost-primary:not(:disabled):not(.disabled):active, .btn-ghost-primary:not(:disabled):not(.disabled).active,
    .show > .btn-ghost-primary.dropdown-toggle {
        background-color: #50ad31;
        border-color: #50ad31;
    }

        .btn-ghost-primary:not(:disabled):not(.disabled):active:focus, .btn-ghost-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-ghost-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem rgba(80, 173, 49, 0.5);
        }

.callout-primary {
    border-left-color: #50ad31;
}

    .callout-primary h4 {
        color: #50ad31;
    }

*[dir="rtl"] .callout.callout-primary {
    border-right-color: #50ad31;
}

.card.bg-primary {
    border-color: #377722 !important;
}


    .card.bg-primary .card-header {
        background-color: #53b332;
        border-color: #377722;
    }

.card-accent-primary {
    border-top-color: #50ad31;
}

.list-group-item-accent-primary {
    border-left: 4px solid #50ad31;
}

.modal-primary .modal-content {
    border-color: #50ad31;
}

.modal-primary .modal-header {
    background-color: #50ad31;
}

.nav-fill .nav-link.active {
    border-top: 2px solid #50ad31;
}

.sidebar .nav-link.active .nav-icon {
    color: #50ad31;
}

.sidebar .nav-link:hover {
    background: #50ad31;
}

    .sidebar .nav-link:hover .nav-icon {
        color: #fff
    }

.sidebar .nav-link.nav-link-primary {
    background: #50ad31;
}

    .sidebar .nav-link.nav-link-primary:hover {
        background: #53b332;
    }

@media (min-width: 992px) {
    .sidebar-minimized .sidebar .nav-item:hover > .nav-link {
        background: #50ad31;
    }

    .sidebar-minimized .sidebar .nav-link:hover {
        background: #50ad31;
    }

    .sidebar-minimized .sidebar .nav > .nav-dropdown:hover {
        background: #50ad31;
    }
}

.switch-primary .switch-input:checked + .switch-slider {
    background-color: #50ad31;
    border-color: #408b27;
}

    .switch-primary .switch-input:checked + .switch-slider::before {
        border-color: #408b27;
    }

.switch-outline-primary .switch-input:checked + .switch-slider {
    border-color: #50ad31;
}

    .switch-outline-primary .switch-input:checked + .switch-slider::before {
        border-color: #50ad31;
    }

    .switch-outline-primary .switch-input:checked + .switch-slider::after {
        color: #50ad31;
    }

.switch-outline-primary-alt .switch-input:checked + .switch-slider {
    border-color: #50ad31;
}

    .switch-outline-primary-alt .switch-input:checked + .switch-slider::before {
        background-color: #50ad31;
        border-color: #50ad31;
    }

    .switch-outline-primary-alt .switch-input:checked + .switch-slider::after {
        color: #50ad31;
    }

.ie-custom-properties {
    --primary: #50ad31;
}

.was-validated .form-control:invalid, .form-control.input-validation-error, .was-validated
.custom-select:invalid,
.custom-select.input-validation-error {
    border-color: #f86c6b;
}

    .was-validated .form-control:invalid:focus, .form-control.input-validation-error:focus, .was-validated
    .custom-select:invalid:focus,
    .custom-select.input-validation-error:focus {
        border-color: #f86c6b;
        box-shadow: 0 0 0 0.2rem rgba(248, 108, 107, 0.25);
    }

    .was-validated .form-control:invalid ~ .invalid-feedback,
    .was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.input-validation-error ~ .invalid-feedback,
    .form-control.input-validation-error ~ .invalid-tooltip, .was-validated
    .custom-select:invalid ~ .invalid-feedback,
    .was-validated
    .custom-select:invalid ~ .invalid-tooltip,
    .custom-select.input-validation-error ~ .invalid-feedback,
    .custom-select.input-validation-error ~ .invalid-tooltip {
        display: block;
    }

.was-validated .form-control-file:invalid ~ .invalid-feedback,
.was-validated .form-control-file:invalid ~ .invalid-tooltip, .form-control-file.input-validation-error ~ .invalid-feedback,
.form-control-file.input-validation-error ~ .invalid-tooltip {
    display: block;
}

.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.input-validation-error ~ .form-check-label {
    color: #f86c6b;
}

.was-validated .form-check-input:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.input-validation-error ~ .invalid-feedback,
.form-check-input.input-validation-error ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.input-validation-error ~ .custom-control-label {
    color: #f86c6b;
}

    .was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.input-validation-error ~ .custom-control-label::before {
        background-color: #fee5e5;
    }

.was-validated .custom-control-input:invalid ~ .invalid-feedback,
.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.input-validation-error ~ .invalid-feedback,
.custom-control-input.input-validation-error ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.input-validation-error:checked ~ .custom-control-label::before {
    background-color: #fa9c9c;
}

.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.input-validation-error:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 1px #e4e5e6, 0 0 0 0.2rem rgba(248, 108, 107, 0.25);
}

.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.input-validation-error ~ .custom-file-label {
    border-color: #f86c6b;
}

    .was-validated .custom-file-input:invalid ~ .custom-file-label::after, .custom-file-input.input-validation-error ~ .custom-file-label::after {
        border-color: inherit;
    }

.was-validated .custom-file-input:invalid ~ .invalid-feedback,
.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.input-validation-error ~ .invalid-feedback,
.custom-file-input.input-validation-error ~ .invalid-tooltip {
    display: block;
}

.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.input-validation-error:focus ~ .custom-file-label {
    box-shadow: 0 0 0 0.2rem rgba(248, 108, 107, 0.25);
}

/* Calendari */
#script-warning {
    display: none;
    background: #eee;
    border-bottom: 1px solid #ddd;
    padding: 0 10px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    color: red;
}

#loading {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
}
/* Calendari */
/* Cell Styles
------------------------------------------------------------------------*/

/* <th>, usually */
/*
.fc-state-highlight > div > div.fc-day-number {
    background-color: #50ad31;
    color: #FFFFFF;
}

.fc-state-default {
    border-color: #50ad31;
    color: #50ad31;
}

.fc-state-hover,
.fc-state-down,
.fc-state-active,
.fc-state-disabled {
  background-color: #eff9eb;
}

.fc-state-hover {
  color: #50ad31;
}

.fc-state-down,
.fc-state-active {
  background-color: #50ad31;
}

.fc-state-disabled {
  background-color: #eff9eb;
  border: 1px solid #eff9eb;
  color: #50ad31;
}

  .fc-event.chill {
    background-color: #f3dcf8;
  }

  .fc-event.info {
    background-color: #c6ebfe;
  }

  .fc-event.important {
    background-color: #FFBEBE;
  }

  .fc-event.success {
    background-color: #BEFFBF;
  }

.fc-border-separate tr.fc-last th {
  border-bottom-width: 1px;
  border-color: #cdcdcd;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
}

.fc-widget-header .fc-agenda-divider-inner {
  background: #eee;
}

.fc-sun, .fc-sat {
  color: #b8b8b8;
}

.fc-week .fc-day:hover .fc-day-number {
  background-color: #B8B8B8;
  border-radius: 50%;
  color: #FFFFFF;
  transition: background-color 0.2s;
}

.fc-week .fc-day.fc-state-highlight:hover .fc-day-number {
  background-color: #50ad31;
}

.fc-button-today {
  border: 1px solid rgba(255,255,255,.0);
}*/
