/* Header and navigation */

.app .container {
    margin: 0 auto;
}

.app .app-header.app-header-design-default {
    background: #698630;
    background: linear-gradient(to bottom, #698630 0%, #81a42a 100%);
    color: #ffffff;
    height: 80px;
    border-bottom: 0;
    z-index: 1031;
}

.app
    .app-header.app-header-design-default
    .app-header-logo.app-header-logo-light {
    background: url(../img/logo_square_white.png) left top no-repeat;
    height: 80px;
    width: auto;
    text-indent: inherit;
    font-size: 40px;
    font-weight: 600;
    padding-top: 35px;
    padding-left: 128px;
}

.app
    .app-header.app-header-design-default
    a.app-header-logo.app-header-logo-light,
.app
    .app-header.app-header-design-default
    a.app-header-logo.app-header-logo-light:hover,
.app
    .app-header.app-header-design-default
    a.app-header-logo.app-header-logo-light:visited {
    text-decoration: none;
    color: white;
    padding-top: 32px;
}

@media (max-width: 800px) {
    .app
        .app-header.app-header-design-default
        a.app-header-logo.app-header-logo-light {
        font-size: 0;
    }
}

@media (max-width: 475px) {
    .app
        .app-header.app-header-design-default
        .app-header-logo.app-header-logo-light {
        width: 100px;
        font-size: 0;
    }
}

.app
    .app-header.app-header-design-default
    .app-header-logo.app-header-logo-light:hover {
    background-color: transparent;
}

.app .app-navigation-horizontal {
    background: #81a42a;
}

.app .app-navigation-horizontal nav > ul {
    min-height: 52px;
}

.app .app-navigation-horizontal nav > ul > li > a {
    color: #ffffff;
}

.app .app-navigation-horizontal nav > ul > li > a:hover {
    color: #000000;
}

.app .app-navigation-horizontal nav > ul > li.openable.active > a {
    background-color: #f9f9f9;
}

.app .panel.panel-expanded {
    overflow-y: scroll;
}

.app .panel.panel-expanded .btn-toggle {
    display: none;
}

/* Fixed banner */

.app .app-content {
    padding-top: 132px;
}

.app .app-heading-page.navbar-fixed-top {
    top: 132px;
    min-height: 70px;
}

.app .app-content .page-custom {
    padding-top: 70px;
}

.panel-heading-clickable {
    cursor: pointer;
}
.dropdown,
.dropup {
    z-index: 9999;
}

.cursor-pointer {
    cursor: pointer;
}

/* Responsive */

@media (max-width: 992px) {
    .app .app-navigation-horizontal {
        display: none;
    }

    .app:not(.mobile-navigation-displayed) .app-content {
        padding-top: 80px;
    }

    .app:not(.mobile-navigation-displayed) .app-heading-page.navbar-fixed-top {
        top: 80px;
    }
}

@media (max-width: 480px) {
    .app .app-heading .heading-elements {
        margin-top: 0;
    }

    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* General */

.app .block {
    padding: 10px 15px;
}

.app-checkbox {
    margin: 5px 0;
}

.app-checkbox.disabled label span,
.app-radio.disabled label span {
    opacity: 0.5;
}

.app-checkbox label.disabled,
.app-radio label.disabled {
    cursor: not-allowed;
}

.tab-content {
    margin-top: 5px;
}

.empty-container {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.text-white {
    color: white !important;
}

select {
    cursor: pointer;
}

.input-group-btn .btn.btn-default.active,
.input-group-btn .btn.btn-default:active:focus {
    border-color: #ccd3d9;
    background: #dbe0e4;
}

div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.dataTables_paginate {
    text-align: right;
}

div.dataTables_wrapper .pagination > li {
    float: inherit;
}

/* Imbricated containers */

.container .container {
    padding-left: 0;
    padding-right: 0;
}

.row .row {
    margin-left: 0;
    margin-right: 0;
}

/* Loading */

.app .loading-layer {
    margin: 0 auto;
    padding: 20px 0;
    width: 120px;
    text-align: center;
}

.app .loading-layer .text {
    padding: 10px 0;
}

.app .failed-layer {
    margin: 0 auto;
    padding: 20px 0;
    width: 70%;
    text-align: center;
}

/* Wizard */

.wizard .anchor li a .stepDesc {
    text-transform: initial;
}

.wizard .step-content {
    height: calc(100vh - 450px);
    overflow-y: auto;
}

/* Tables */

.app .table {
    margin-bottom: 0;
}
.table > tbody > tr:first-child > th,
.table > tbody > tr:first-child > td {
    border-top: 0;
}

.app .table > thead > tr > th {
    text-transform: initial;
}

.app .table.table-selectable tbody tr[data-href] {
    cursor: pointer;
}

.app .table.table-selectable tbody tr.selected {
    background-color: #e4f0c4;
}

.app .table.table-head-green {
    border-collapse: collapse;
}

.app .table.table-head-green > thead > tr > th {
    background: #81a42a;
    color: white;
    font-size: 13px;
}

.table-responsive .table > tbody > tr > td {
    line-height: 20px;
    border-bottom: 0;
}

.table.table-small tr td,
.table.table-small tr th {
    padding: 1px 2px;
}

.table.table-small > tbody tr td,
.table.table-small > tbody tr th {
    line-height: 26px;
}

.table-small .btn-xs {
    margin-top: -4px;
}

.btn.btn-icon.btn-xs span {
    line-height: 14px;
}

.btn.btn-sm span[class^="icon-"] {
    font-size: 16px;
}

.datatable-small .form-control {
    height: 30px;
}

.datatable-small .pagination li > a,
.datatable-small .pagination li > span {
    padding: 2px;
}

.app .pagination li.active > a,
.app .pagination li.active span {
    background: #f5f5f5;
    color: #000;
}

.table-fixed {
    table-layout: fixed;
    width: auto;
}

.table-head-center th {
    text-align: center;
}

.table .app-checkbox.inline,
.table .app-radio.inline {
    margin-right: 20px;
    width: auto;
}

.table.table-small .app-checkbox.inline,
.table.table-small .app-radio.inline {
    margin-right: 10px;
}

/* Operations list */

.table-operations th:nth-child(n + 5):nth-child(-n + 7),
.table-operations td:nth-child(n + 5):nth-child(-n + 7) {
    text-align: right;
}

.table-operations th:nth-child(n + 8):nth-child(-n + 9),
.table-operations td:nth-child(n + 8):nth-child(-n + 9) {
    text-align: center;
}

/* Plan fichier */

#operation_planfichier_table {
    border: 0;
}

#operation_planfichier_table tr.warning {
    background-color: #fcf8e3;
}

#operation_planfichier_table tr.error {
    background-color: #f2dede;
}

#operation_planfichier_table thead tr th:nth-child(n + 1):nth-child(-n + 3) {
    text-align: center;
    width: 1%;
    min-width: 30px;
}

#operation_planfichier_table thead tr th:nth-child(n + 6):nth-child(-n + 7) {
    text-align: right;
    width: 3%;
    min-width: 60px;
}

#operation_planfichier_table thead tr th:nth-child(8) {
    text-align: right;
    width: 3%;
    min-width: 50px;
}

#operation_planfichier_table thead tr th:nth-child(9) {
    text-align: right;
    width: 5%;
    min-width: 80px;
}

#operation_planfichier_table tr td:nth-child(n + 1):nth-child(-n + 3) {
    text-align: center;
    background: #adcf4f;
}

#operation_planfichier_table tr td:nth-child(n + 6):nth-child(-n + 9) {
    text-align: right;
}

#operation_planfichier_table tfoot tr th:nth-child(n + 2):nth-child(-n + 4) {
    text-align: right;
}

#operation_planfichier_table tfoot tr th {
    border: 0;
}

/* Options */

.table-yes-no tr td:nth-child(n + 2) {
    min-width: 40px;
    text-align: center;
}

.table.table-small .app-checkbox,
.table.table-small .app-radio {
    float: initial;
    margin: 0 auto;
    padding-top: 3px;
}

.table.table-small .app-checkbox.disabled label span {
    cursor: not-allowed;
}

.table.table-small .app-checkbox label,
.table.table-small .app-radio label {
    padding-left: 0;
}

.table.table-small .app-checkbox label input,
.table.table-small .app-radio label input {
    position: initial;
}

/* Lotissements table */

.table tfoot tr:first-child td {
    padding-top: 10px;
}

.table tr.total td {
    background-color: white !important;
    border: 0 !important;
    font-weight: 600;
}

.table th.empty,
td.empty {
    width: 5px;
    background-color: white !important;
    border: 0 !important;
}

/* Alert */

.alert.alert-icon-block.alert-small {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-bottom: 0;
}

.alert.alert-icon-block.alert-small .alert-icon {
    padding: 5px 15px;
}

.alert.alert-icon-block.alert-small .alert-icon span {
    margin: 0;
}

/* Reports */

#operation_report_estocade_table tr td:last-child,
#operation_report_estocade_table tr th:last-child {
    text-align: right;
}

/* Sortable */
body.dragging,
body.dragging * {
    cursor: move !important;
}

.table-sortable .dragged {
    position: absolute;
    top: 0;
    opacity: 0.5;
    z-index: 2000;
}

.table-sortable tbody tr td.clickable {
    cursor: pointer;
}

.table-sortable tbody tr td.clickable.disabled {
    cursor: not-allowed;
}

.table-sortable tr.placeholder {
    display: block;
    background: red;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
}

.table-sortable tr.placeholder:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-left-color: red;
    margin-top: -5px;
    left: -5px;
    border-right: none;
}

/* DE */

.de-tables .table thead th {
    width: 200px;
}

.de-tables .table td.clickable {
    width: 150px;
}

.de-tables .table td.actions {
    width: 50px;
}

.de-tables #input_headers td.actions * {
    display: none;
}

/* Forms */

.form-horizontal-sm .control-label {
    padding-top: 0;
}

.form-horizontal-sm .form-group {
    margin-bottom: 5px;
}

/** Messages */

.app .messages .messages-item {
    margin-bottom: 10px;
}

.app .messages .messages-item:last-child {
    margin-bottom: 0;
}

.app .messages .messages-item .text {
    padding: 5px 10px;
    background: #81a42a;
    border-color: #698630;
    margin-bottom: 0;
}

.app .messages .messages-item .text:before {
    border-left-color: #81a42a;
}

.app .messages .messages-item .text:after {
    border-left-color: #81a42a;
}

.app .messages .messages-item .user > img {
    border-color: #698630;
}

.app .messages .messages-item.inbox .text {
    background: #444444;
    border-color: #222222;
}

.app .messages .messages-item.inbox .text:before {
    border-right-color: #222222;
}

.app .messages .messages-item.inbox .text:after {
    border-right-color: #444444;
}

.app .messages .messages-item.inbox .user > img {
    border-color: #222222;
}

/* Croisements table */

#operation_croisements_table td.warning {
    background-color: #fcf8e3;
}

#operation_croisements_table td.grey {
    background-color: #f5f5f5;
}

#operation_croisements_table thead tr th {
    text-align: center;
}

#operation_croisements_table thead tr th:nth-child(1) {
    width: 2%;
    min-width: 30px;
}

#operation_croisements_table thead tr th:nth-child(2) {
    width: 10%;
    min-width: 100px;
}

#operation_croisements_table thead tr th:nth-child(n + 3) {
    width: 2%;
    min-width: 30px;
}

#operation_croisements_table tr td:nth-child(1) {
    background-color: #adcf4f;
    text-align: center;
}

#operation_croisements_table tr td:nth-child(n + 3) {
    text-align: right;
}

#operation_croisements_table tr td.hover:nth-child(1) {
    background-color: #81a42a;
}

.stats-hover-table td.hover {
    background-color: #eee;
}

.stats-hover-table td.hover.current {
    background-color: #ccc;
}

.stats-hover-table tr td.hover:nth-child(1) {
    background-color: #ddd;
}

.stats-hover-table th.hover {
    background-color: #ddd;
}

.app .table.table-head-green.stats-hover-table > thead > tr > th.hover {
    background-color: #668121;
}

.stats-hover-table td.warning.hover {
    background-color: #e7e1c9;
}

.stats-hover-table td.warning.hover.current {
    background-color: #cbbc86;
}

.bootstrap-select-xs .bootstrap-select {
    min-width: 200px;
}

.bootstrap-select-xs .bootstrap-select > .dropdown-toggle {
    padding-right: 20px;
}

.bootstrap-select-xs .bootstrap-select.btn-group .dropdown-menu li a {
    line-height: 1.45;
}

.bootstrap-select-xs .bootstrap-select .bs-searchbox .form-control {
    height: 30px;
}

.croisements-compare .croisement-result {
    height: 72px;
}

.app .breadcrumb {
    padding: 0;
}

.app .breadcrumb .divider {
    display: none;
}

/* Blacklisted mode */
#blacklist_list tr.blacklisted td {
    color: #f04e51 !important;
}

#blacklist_list tr.blacklisted .if-blacklisted {
    display: block;
}

#blacklist_list tr:not(.blacklisted) .if-blacklisted {
    display: none;
}

#blacklist_list tr.partial-blacklisted td {
    color: #f69f00 !important;
}

#blacklist_list tr.partial-blacklisted .if-blacklisted {
    display: block;
}

#blacklist_list tr:not(.partial-blacklisted) .if-blacklisted {
    display: none;
}

#blacklist_list_filter,
#blacklist_list_paginate {
    display: none;
}

/* Fix dropdown menu on tables */
@media (max-width: 767px) {
    .table-responsive .dropdown-menu {
        position: static !important;
    }
}
@media (min-width: 768px) {
    .table-responsive {
        overflow: visible;
    }

    .table-responsive .dropdown-menu {
        margin-top: 0;
        min-width: 150px;
    }

    .table-responsive .dropdown-menu > li > a {
        padding: 3px 20px;
        line-height: 1.42857143;
    }
}


/* Blacklisted mode */
#operations_billing_list tr.billed .action-billing-undo {
    display: block;
}

#operations_billing_list tr:not(.billed) .action-billing-undo {
    display: none;
}

#operations_billing_list tr.billed .action-billing-done {
    display: none;
}

#operations_billing_list tr:not(.billed) .action-billing-done {
    display: block;
}