/**********************************
 * Agri Wave
 **********************************/
/**
 * RVB white - #F2F0EC - rgb(242,240,236)
 * Colors shade of greens :
 * #192d10 - rgba(25,45,16, 1) (green dark)
 * #5db240 - rgba(93,177,63, 1) (green medium)
 * #d7db2d - rgba(215,219,45, 1) (green light)
 */

/**********************************
 * General
 **********************************/
/* Fix remaining glyphicon classes from third-party librairies */
.glyphicon {
    font-family: "Font Awesome 5 Pro";
}
#page-wrapper {
    background: url("../img/agriwave-logotype-white.png") no-repeat;
    background-size: 30%;
    background-position: 95% 95%;
    background-origin: padding-box;
    background-color: #F3F3F4;
    min-height: 130vh;
}

.widget a {
    color: white;
}

img {
    max-width: 100%;
}

html.production {
    padding-top: 20px!important;
}

html.production::before {
    display: block;
    content: attr(data-host);
    text-transform: uppercase;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000000;
    background: rgba(255, 0, 0, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -1px 0 0 rgba(0,0,0,.1) inset;
    color: white;
    text-align: center;
    font-size: small;
    line-height: 20px;
    height: 20px;
    font-weight: 200;
    letter-spacing: 0.2vw;
}

html.production ::-webkit-scrollbar {
    width: auto;
    height: auto;
}
html.production ::-webkit-scrollbar-button {
    width: 0;
    height: 0;
}
html.production ::-webkit-scrollbar-thumb {
    background: #f34600;
    border-width: 0;
    border-radius: 0;
}
html.production ::-webkit-scrollbar-thumb:hover {
    background: #f63910;
}
html.production ::-webkit-scrollbar-thumb:active {
    background: #ff542d;
}
html.production ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-width: 0;
    border-radius: 0;
}
html.production ::-webkit-scrollbar-track:hover {
    background: #f1f1f1;
}
html.production ::-webkit-scrollbar-track:active {
    background: #f1f1f1;
}
html.production ::-webkit-scrollbar-corner {
    background: transparent;
}

.loadingFrame{
    position: absolute;
    z-index: 100;
    width: 99%;
    height: 100%;
    background: white;
    opacity: 0.5;
}

/* Alert messages */
.alert-block {
    position: absolute;
    z-index: 1000;
    width: 98%;
}

/**********************************
 * Spaces
 **********************************/

.pt-5{
    padding-top: 5px;
}

.pt-10{
    padding-top: 10px;
}

.mt-5{
    margin-top:5px;
}

.mt-10{
    margin-top:10px;
}

/**********************************
 * Displays
 **********************************/
@media (min-width: 1200px) {
    .d-xl-contents {
        display: contents !important;
    }
}
/**********************************
 * Colors
 **********************************/

.text-green-light {
    color: #d7db2d;
}

a.text-green-light:hover,
a.text-green-light:focus{
    color: #898a1c;
}

.text-green-medium {
    color: #5db240;
}

a.text-green-medium:hover,
a.text-green-medium:focus{
    color: #376b26;
}

.text-green-dark {
    color: #192d10;
}

a.text-green-dark:hover,
a.text-green-dark:focus{
    color: #14240d;
}

/**********************************
 * Menu
 **********************************/
body {
    background-attachment: fixed!important;
}

.nav-header,
body.mini-navbar .nav-header {
    background: none;
}

.nav > li.active,
.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus,
.mini-navbar .nav .nav-second-level {
    background-color: #f5f5f5;
    color: #686B6D;
}

.navbar-default .nav-third-level > li.active,
.navbar-default .nav-third-level > li > a:hover,
.navbar-default .nav-third-level > li > a:focus {
    background-color: #d0d0d0;
    border: none;
}
.navbar-default .nav-third-level > li.active:hover a {
    background-color: #cacaca;
    color: #424242;
}

body:not(.mini-navbar) .nav.nav-second-level > li.active,
body:not(.mini-navbar) .navbar-default .nav.nav-second-level > li > a:hover,
body:not(.mini-navbar) .navbar-default .nav.nav-second-level > li > a:focus,
body:not(.mini-navbar) .nav .nav-second-level > a:hover,
body:not(.mini-navbar) .nav .nav-second-level > a:focus {
    margin-left: -4px;
    border-left: 4px solid #2e7b6c;
}

.nav-second-level li:last-child {
    margin-bottom: 0;
}

body:not(.fixed-sidebar):not(.canvas-menu).mini-navbar .nav li:hover > .nav-second-level,
.mini-navbar .nav li:focus > .nav-second-level {
    box-shadow: 5px 0 10px -7px #0005;
}

.nav > li.active a,
.tabs-container > .nav > li > a {
    color: #686B6D;
}

.nav > li > a,
.nav-header .text-muted {
    color: #ffffff;
}

.navbar-default .nav-second-level > li > a {
    color: #686B6D;
}

ul.nav-second-level {
    background-color: #f5f5f5;
}

/* fix */
body.mini-navbar .navbar-default .nav-second-level .nav-label,
body.mini-navbar .navbar-default .nav-second-level li a span {
    display: initial!important;
}

.nav.nav-second-level > li.active,
.navbar-default .nav.nav-second-level > li > a:hover,
.navbar-default .nav.nav-second-level > li > a:focus,
.mini-navbar .nav .nav-second-level > a:hover,
.mini-navbar .nav .nav-second-level > a:focus {
    background-color: #e1e1e1;
    color: #686B6D;
}

.logo-head-menu {
    position: absolute;
    right: 0;
    top: 2em;

    margin: auto;
    max-width: 100%;
    height: auto;
}

.img-avatar-menu {
    max-height: 65px;
}

/** Navbar buttons */
.navbar-static-top  .navbar-header {
    min-width: 200px
}

@media (max-width:1600px) {
    .navbar-static-top .navbar-top-links li:first-child {
        display: none;
    }
}

@media (max-width:1150px) {
    .navbar-static-top .navbar-top-links {
        display: none;
    }
    .navbar-static-side .navbar-top-links-replacement {
        display: block !important;
    }
    .navbar-static-side .navbar-top-links-replacement .dropdown-toggle::after {
        display: none;
    }
}

@media (min-width:1200px) and (max-width:1400px) {
    #pageTitleBlock {
        min-width: 50vw; /* Fix title position issue */
        -ms-flex-order: 2;
        order: 2;
    }
}

#pageTitleBlock {
    margin: 0 auto .5rem auto;
    text-align: center;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width:1400px) {
    #pageTitleBlock p {
        max-width: 30vw;
    }
}

/**********************************
 * Touchspin
 **********************************/
.bootstrap-touchspin .input-group-btn-vertical {
    position: initial !important;
}

/** Add col-auto */
.input-group-btn-vertical {
    padding-right: 20px;
}

/**********************************
 * Login
 **********************************/
.login-bg {
    background: #A7C957;
    background-image: url("../img/agriwave-background-login.jpg");
    background-size: cover;
}

.logo-login {
/*    margin: 2em 0;*/
    margin: 2em;
    width: 70%;
}

.panel-login {
    border-width: 0;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 150px #000;
}

.panel-header-login {
    background-color: #A7C957!important;
    color:white!important;
    border: none;
}

.panel-body-login {
    border: none;
}

.panel-body-content-login {
    max-width: 250px;
    margin:auto
}

/**********************************
 * Button
 **********************************/
.btn-flit-dark {
    background: #6A994E;
    border-color: #6A994E;
    color: #ffffff;
}

.btn-flit-light {
    background: #6A994E;
    border-color: #6A994E;
    color: #ffffff;
}

.buttonAlertMessage {
    margin-top: -0.6%;
}

.buttonAlert {
    margin-top: -2.5%;
}

/**********************************
 * Table
 **********************************/
table > caption {
    caption-side: top;
}
/* lg breakpoint */
@media (max-width: 992px) {
    table.tl-lg-fixed {
        table-layout: fixed !important;
        word-wrap: break-word;
    }
}

/** Table with multiple (t)bodies (mb) */
table.table-mb-striped tbody:nth-of-type(2n+1) tr {
    background-color: rgba(0,0,0,.05);
}

table.table-mb-hover > tbody:hover tr {
    background-color: #eef9d2;
    color: #000;
}

/**********************************
 * Forms
 **********************************/
/* https://xcellerant.wordpress.com/2015/09/17/fixing-the-width-of-a-select-2-with-a-long-value-in-a-bootstrap-form-group-or-input-group/ */
.form-group.select2-container {
    width: 100%;
    display: table;
    table-layout: fixed;
    min-width: 250px;
}

.chosen-container-single .chosen-single {
    border: 1px solid #e5e6e7;
    border-radius: 1px;
    background: inherit;
    box-shadow: inherit;
    padding: 6px 12px;
    line-height: inherit;
}

.chosen-container {
    background-color: #FFFFFF;
}

.ibox-gray-bg {
    background-color: #f9f9f9;
}

.ibox-gray-bg .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f3f3f4;
}

.checkbox-row {
    height: 59px;
}

/** Used to remove default buttons on touchspin */
.no-buttons-input-number {
    -moz-appearance: textfield;
}

/*input:not([type="checkbox"]) {*/
/*    height: 30px !important;*/
/*    padding: 5px 10px !important;*/
/*    font-size: 12px !important;*/
/*    line-height: 1.5 !important;*/
/*    border-radius: 3px !important;*/
/*}*/

/*select:not([multiple]) {*/
/*    height: 30px !important;*/
/*    padding: 5px 10px !important;*/
/*    font-size: 12px !important;*/
/*    line-height: 1.5 !important;*/
/*    border-radius: 3px !important;*/
/*}*/

/*textarea {*/
/*    font-size: 12px !important;*/
/*    line-height: 1.5 !important;*/
/*    border-radius: 3px !important;*/
/*}*/

label.required:after {
    content: " *";
    color: red;
}

.switch {
    height: 30px !important;
}

.switch-margin-family {
    float: right;
}

.form-condensed .form-group {
    margin: 0 0 5px;
}

.float-e-margins .btn {
    margin-bottom: 0;
}

.btn.pull-right {
    margin-left: 3px;
}

.margin-family-input {
    background: #FFFFFF none;
    border: 1px solid #e5e6e7;
    border-radius: 1px;
    color: inherit;
    padding: 6px 12px;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
    box-shadow: none;
    width: 80px;
}

/*.onoffswitch-inner-percent-euro:before{*/
/*content: "%";*/
/*text-align: center;*/
/*}*/
/*.onoffswitch-inner-percent-euro:after{*/
/*content: "€";*/
/*text-align: center;*/
/*}*/

textarea {
    max-width: 100%;
}

/** Used on react arrival */
.border-form{
    border: 1px solid #e5e8eb;
    padding: 2em;
    border-radius: 4px;
}
/**********************************
 * Global
 **********************************/
.margin-top-20 {
    margin-top: 20px;
}

.margin-top-40 {
    margin-top: 40px;
}

.padding-top-10 {
    padding-top: 10px;
}

.padding-top-20 {
    padding-top: 20px;
}

.padding-bottom-20 {
    padding-bottom: 20px;
}

.margin-left-20 {
    margin-left: 20px;
}

.div-sa {
    display: inline-block;
    border: 1px dashed #ed5565;
    padding: 5px;
    margin: 5px;
    float: right;
}

.block-sa {
    border: 1px dashed #ed5565;
    padding: 5px;
    margin: 5px;
}

.label-sa {
    position: relative;
    float: right;
    top: -15px;
    right: -10px;
    display: inline;
    margin-bottom: 5px;
}

/**********************************
 * Datatables
 **********************************/
@media (min-width: 768px) {
    .form-inline .form-control {
        width: 100%;
    }
}

tr.group,
tr.group:hover {
    background-color: #ddd !important;
}

/************* Override ***********/
/****** Used in accountingBundle *****/
.custom-sg-datatable .dt-buttons{
    display: block !important;
    background-color: #ddd !important;
    float: right;
}
.custom-sg-datatable .dataTables_length{
    float: left;
}
.custom-sg-datatable div.dataTables_wrapper > div.dataTables_info{
    float: left;
    position: unset !important;
}

/**********************************
 * Multi-line
 **********************************/
.pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/**********************************
 * Tabs
 **********************************/
.tabs-container .nav-tabs > li.active > a, .tabs-container .nav-tabs > li.active > a:hover, .tabs-container .nav-tabs > li.active > a:focus {
    border: 1px solid #e7eaec;
    border-bottom-color: transparent;
    background-color: #6A994E;
    color: #fff;
}

.tabs-container .tab-pane.active {
    border: 1px solid #6A994E;
}

#param-page .tabs-container .tab-pane .panel-body {
    border-top: 1px solid #e7eaec;
}

.tabs-container {
    padding-bottom: 25px;
}

/**********************************
 * List
 **********************************/

.row-eq-height {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.b-l {
    border-left: 1px solid #e7eaec;
}

/***********************************
* Custom switch
***********************************/
.switch-field {
    font-family: "Lucida Grande", Tahoma, Verdana, sans-serif;
    padding: 0;
    overflow: hidden;
}

.switch-title {
    margin-bottom: 6px;
}

.switch-field input {
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    width: 1px;
    border: 0;
    overflow: hidden;
}

.switch-field label {
    float: left;
}

.switch-field label {
    display: inline-block;
    width: 30px;
    background-color: #FFFFFF;
    color: rgba(0, 0, 0, 0.6);
    font-size: 10px;
    font-weight: normal;
    text-align: center;
    text-shadow: none;
    padding: 3px 7px;
    border: 1px solid #ffffff;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.switch-field label:hover {
    cursor: pointer;
}

.switch-field input:checked + label {
    background-color: #01B294;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: white;
}

.switch-field label:first-of-type {
    border-radius: 2px 0 0 2px;
}

.switch-field label:last-of-type {
    border-radius: 0 2px 2px 0;
}

/**********************************
 * Picture
 **********************************/
.img-thumbnail {
    max-width: 350px;
    max-height: 350px;
}

/**********************************
 * Translations
 **********************************/
.tabs-translations {
    padding-bottom: 50px;
}

/** Textarea bootstrap fix on touch devices */
/*textarea {*/
/*    position: relative;*/
/*    z-index: 0;*/
/*}*/


/**********************************
 * Accordions
 **********************************/

#accordion .panel-default{
    border: none;
    background-color: transparent;
}

#accordion .panel-default .panel-heading {
    background-color: #5db240;
}

#accordion .panel-heading {
    padding: 0;
    border: none;
    border-radius: 4px!important;
}

#accordion .panel-heading a {
    display: block;
    border: none;
    font-size: 18px;
    padding: 15px 0px 15px 30px;
    font-weight: 500;
    position: relative;
    color: #fff;
    box-shadow: none;
    transition: all 0.1s ease;
}

#accordion .panel-heading a.collapsed:after {
    content: "\f067";
}

#accordion .panel-heading a:after {
    content: "\f068";
    font-family: 'Font Awesome 5 Pro';
    text-align: center;
    position: absolute;
    left: -15px;
    top: 5px;
    color: #fff;
    background-color: #5db240;
    border: 3px solid #ffffff;
    font-size: 15px;
    width: 40px;
    height: 40px;
    line-height: 34px;
    border-radius: 50%;
    transition: all 0.3s ease 0s;
    box-shadow: 0px 2px 5px 0px rgba(25,45,16,0.2);
}

#accordion .panel-heading:hover a:after,
#accordion .panel-heading:hover a.collapsed:after {
    transform: rotate(360deg);
    background-color: #d7db2d;
}

#accordion .panel-heading a:hover {
    color: #ffffff;
    background-color: #d7db2d;
    border-radius: 4px!important;
}

#accordion .panel-body {
    line-height: 25px;
    padding: 20px;
    font-size: 14px;
    position: relative;
    border-radius: 4px!important;
    box-shadow: inset 0px 2px 50px 0px rgba(25,45,16,0.03);
    background: #EAEAEB;
}

#accordion .panel-element {
    padding: 15px;
    margin-bottom: 5px;
    border: none;
    border-radius: 4px;
    background-color: #FCFCFC;
    transition: all .2s ease;
}

#accordion .panel-element span{
    font-weight: 600;
    font-size:14px;
}

#accordion a.link-accordion .panel-element:hover{
    background-color: white;
    box-shadow: 0 2px 50px 0 rgba(25,45,16,0.03);
}

/**********************************
 * Popover
 **********************************/
.wide-popover .popover {
    max-width: 500px;
}

/**********************************
 * Select
 **********************************/
select[readonly] {
    pointer-events: none;
    touch-action: none;
}