body {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.0125rem;

    height: 100vh;
    position: relative;
}

/* GLOBAL DEFAULTS */
a:not(.btn), .btn.btn-link {
    text-decoration: none;
}
a:not(.btn):hover, .btn.btn-link:hover {
    text-decoration: underline;
}

ul li {
    list-style-type: square;
    padding: 1px 0;
}

dt {
    font-weight: bold;
    margin-top: 4px;
}

/* TEXT STYLES & MODIFIERS */
.small {
    font-size: 12px;
}

/** This rule is not scalable, we should refactor it to handle icon color properly */
a[role=button]:not(.btn-secondary):not(.action-link):not(.simple-icon-button) > .fa {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}
.dropdown-item > .fa {
    color: var(--bs-body-color) !important;
}


.tooltip-semi-wide div.tooltip-inner,
.tooltip-semi-wide + .tooltip div.tooltip-inner {
    text-align: left;
    min-width: 280px;
    max-width: 420px;
    white-space:pre-wrap;
}

.tooltip-wide div.tooltip-inner,
.tooltip-wide + .tooltip div.tooltip-inner {
    text-align: left;
    min-width: 320px;
    max-width: 100%;
    white-space:pre-wrap;
}

.clear {
    clear: both;
}

.nowrap {
    white-space: nowrap;
}

/** TODO: replace occurrences by table-bordeless from bs5 */
.table.borderless td, .table.borderless tr { border: none; }

/* ACTIONS */

.actions span.all,
.actions span.action-counter,
.actions span.clear,
.actions span.question {
    margin: 0 0.5em;
    display: none;
}


/* PAGINATOR */
.paginator {
    padding: 3px 0 !important;
    margin: 0 !important;
}
.paginator a:first-child,
.paginator span:first-child {
    margin-left: 10px;
}
.paginator a,
.paginator span {
    padding: 3px 5px;
    margin-right: 5px;
    min-width: 20px;
    display: inline-block;
    border: 1px solid #DDD;
}
.paginator a.selected {
    background-color: var(--bs-primary);
    border: var( --bs-primary-bg-subtle);
    color: var(--bs-white);
}


.Select .Select-control,
.Select .Select-input {
    height: 32px;
}

.Select .Select-placeholder {
    line-height: 32px;
}


.Select.size-sm .Select-control,
.Select.size-sm .Select-input {
    height: 28px;
}

.Select.size-sm .Select-placeholder,
.Select.Select--single.size-sm .Select-value {
    line-height: 28px !important;
}


/* CHANGELIST */

#changelist .results {
    overflow: auto;
    margin-bottom: 10px;
    min-height: 500px;
    max-height: 70vh;
    margin: 0 0 10px 0;
}

#changelist .results table {
    margin-bottom: 0;
    background-color: var(--bs-body-bg);
}

.list-result-header {
    background: var(--bs-tertiary-bg);
    border-radius: 5px 5px 0 0;
    padding: 7px 7px 0 7px;
}

#changelist .results-count {
    display: inline-block;
    color: #555;
}

#changelist .table thead {
    background-color: var(--bs-tertiary-bg);
}

#changelist .table thead th,
#changelist .table thead th a {
    color: #666;
    font-weight: 400;
}

#changelist .results .table tbody {
    border-right: 1px solid var(--bs-table-border-color);
}
#changelist .results .table td.action-checkbox {
    border-left: 2px solid var(--bs-table-border-color);
}

#changelist .results .table th.column-order_col {
    width: 32px;
}

#changelist .results .table tr.row1:not(.selected) td,
#changelist .results .table tr.row1:not(.selected) th {
    background-color: var(--bs-table-striped-bg);
}

#changelist .results .table tr:hover td,
#changelist .results .table tr:hover th,
#changelist .results .table tr.row1:hover td,
#changelist .results .table tr.row1:hover th {
    background-color: rgba(var(--bs-primary-rgb), 0.09);
}

.results table#result_list tr.selected td,
.results table#result_list tr.selected th {
    background-color: rgba(var(--bs-primary-rgb), 0.13);
}

#changelist .results tr.dragging {
    background-color: #d3eaf5;
}

.floatThead-table thead {
    background: #fff;
}

/* DATE DRILLDOWN */

.change-list ul.toplinks {
    display: inline-block;
    padding: 3px;
    margin: 0;
}

.change-list ul.toplinks li {
    padding: 3px 10px 3px 0;
    font-weight: bold;
    list-style-type: none;
    display: inline-block;
}

.change-list a.toplinks-date-back {
    color: #999;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
    padding: 5px 10px 3px 0;
}

.change-list a.toplinks-date-back:focus,
.change-list a.toplinks-date-back:hover {
    color: #036;
}

.change-list.archived-list .changelist-inner,
#content.view_object.archived-object {
    background: repeating-linear-gradient(45deg,
      var(--bs-body-bg),
      var(--bs-body-bg) 10px,
      rgba(166, 166, 166, 0.1) 10px,
      rgba(166, 166, 166, 0.1) 20px
    )
}

.results .table tbody th,
.results .table tbody td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--bs-table-border-color);
}

.results table#result_list .action-checkbox-column {
    width: 30px;
}

#result_list .progress {
    margin-bottom: 0;
}

.field-contract_amount,
.field-amount_ht_flavored,
.field-amount_ttc_flavored,
.field-total_ht_flavored,
.field-total_ttc_flavored {
    text-align: right;
}

.results table#result_list tr.project-cancelled,
.projects-table.project-cancelled,
.projects-table tr.project-cancelled {
    color: #555;
    text-decoration: line-through;
}

.projects-table-container .accordion-button.align-accordion-end::after {
    margin-left: 15px;
}

.projects-table-filters span {
    display: inline-block;
    margin-left: 3px;
    color: #444;
}
.projects-table-filters span i.fa {
    margin-right: -3px;
}

/* TABLES */
#changelist-form #excel-export-modal .modal-dialog {
    margin-top: 60px;
}
#changelist-form #excel-export-modal .modal-body {
    padding: 0 0 1px 0;
}
#changelist-form #excel-export-modal .block-choices-with-icon .btn {
    white-space: normal;
    padding: 25px 10px;
    border-radius: 0 0 5px 5px;
}
#changelist-form #excel-export-modal .block-choices-with-icon .btn:hover {
    box-shadow: none;
}
#changelist-form #excel-export-modal .block-choices-with-icon .fa {
    font-size: 1.33em;
}

#changelist-form #excel-export-modal .block-choices-with-icon small {
    display: inline-block;
    margin-top: 10px;
}

#changelist table thead th {
    vertical-align: middle;
    white-space: nowrap;
}

#changelist table thead th .text a {
    display: block;
    cursor: pointer;
}

/* SORTED TABLES */
#changelist thead th.sorted .text {
    margin-right: 50px;
}

#changelist thead th.sorted a.sortremove {
    visibility: hidden;
}

#changelist table thead th.sorted:hover a.sortremove {
    visibility: visible;
}

#changelist table thead th.sorted .sortoptions {
    float: right;
}

#changelist table thead th.sorted .sortpriority {
    font-size: .7em;
}

#changelist table thead th.sorted .sortoptions a {
    display: inline-block;
    vertical-align: middle;
    outline: none;
}

#changelist table thead th.sorted .sortoptions a.sortremove:after {
    font-family: 'FontAwesome';
    content: '\f00d';
    margin-right: 5px;
}

#changelist table thead th.sorted .sortoptions a.ascending:after {
    font-family: 'FontAwesome';
    content: '\f0d8';
}

#changelist table thead th.sorted .sortoptions a.descending:after {
    font-family: 'FontAwesome';
    content: '\f0d7';
}

/* ORDERABLE TABLES */

#changelist table.orderable tbody tr td:hover {
    cursor: move;
}

#changelist table.orderable-initalized .order-cell, body>tr>td.order-cell {
    display: none;
}

/* FORMS */
input[type="number"].text-end {
    padding-right: 1px;
}
/** Reset bootstrap CSS buggy rule **/
input[type="date"].form-control, input[type="time"].form-control {
    line-height: 1;
}
.FormRow label {
    margin-bottom: 5px;
}

.FormRow label input[type="radio"] {
    float:left;
    margin-top:-3px;
    margin-right: 5px;
}

.datepicker { font-size: 12px; }

.form-control.number-as-textfield {
    -moz-appearance: textfield;
}
.form-control.number-as-textfield::-webkit-outer-spin-button,
.form-control.number-as-textfield::-webkit-inner-spin-button {
 -webkit-appearance: none;
 margin: 0;
}

/* enable absolute positioning */
.input-group-text.tt-action {
    background-color: #fff;
    height:18px;
}

.input-group-text.add-sign {
    cursor: pointer;
    color: darkgreen;
    font-size: 0.85em;
}

.input-group-text.add-sign.disabled {
    color: #888;
    cursor: default;
}

/** typeahead **/
.tt-hint {
  color: #999
}

.tt-menu {    /* used to be tt-dropdown-menu in older versions */
  width: 422px;
  margin-top: 2px;
  padding: 4px 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.2);
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
  -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
     -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
          box-shadow: 0 5px 10px rgba(0,0,0,.2);
  max-height: 250px;
  overflow-y: scroll;
}

.tt-suggestion {
  padding: 3px 20px;
  line-height: 24px;
}

.tt-suggestion.tt-cursor,.tt-suggestion:hover {
  color: #fff;
  background-color: #0097cf;

}

.tt-suggestion p {
  margin: 0;
}

/* MESSAGES & ERRORS */
ul.messagelist {
    padding: 0 0 5px 0;
    margin: 0;
}

ul.messagelist li {
    display: block;
    padding: 4px 5px 4px 25px;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.2em;
}

/** Make a correspondance between the Django "error" tag and BS5 "danger" style */
ul.messagelist li.alert-error {
    --bs-alert-color: var(--bs-danger-text-emphasis);
    --bs-alert-bg: var(--bs-danger-bg-subtle);
    --bs-alert-border-color: var(--bs-danger-border-subtle);
    --bs-alert-link-color: var(--bs-danger-text-emphasis);
}

ul.errorlist {
    margin: 0 !important;
    padding: 0 !important;
}

.error_message, .errorlist li {
    font-size: 12px !important;
    display: block;
    padding: 5px;
    margin: 4px 0 3px 0;
    font-weight: bold;
    color: #a94442;
}

.errorlist li:last-child {
    border-bottom: 1px solid #a94442;
}

.errorlist li a {
 	color: white;
    text-decoration: underline;
}

td ul.errorlist {
    margin: 0 !important;
    padding: 0 !important;
}

td ul.errorlist li {
    margin: 0 !important;
}

.errors {
    background: #ffc;
}

.errors input, .errors select, .errors textarea {
    border: 1px solid red;
}

/* PAGE STRUCTURE */
.breadcrumbs {
    margin-top: 10px;
    padding: 0 30px;
    color: #444;
}
.breadcrumbs a {
    color: #245480;
}
#content {
    height: 100%;
    padding: 10px 30px 10px 30px;
}

#header {
    width: 100%;
}

#content-main {
    float: left;
    width: 100%;
}

#container {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

#footer {
    height: 50px;

    opacity: 0.75;
    clear: both;
    padding: 10px;
    border-top-style:solid;
    border-top-width:1px;
    border-color:#cccccc;
    color:#666666;
}
#footer:hover {
    opacity: 1;
}

/* COLUMN TYPES */
.dashboard #content {
    width: 500px;
}

/** Financial dashboard (manager view) **/

#artistsChart {
    float:left;
    margin-right: 50px;
    margin-top: 20px;
}

#artistsChartLegend {
    margin-top: 50px;
}


/** Align select2 style to bootstrap */
.select2.select2-container {
    border: none;
    box-shadow: none;
}
.select2.select2-container .select2-selection {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}
.select2.select2-container .select2-selection.select2-selection--single {
    height: 34px;
    line-height: 1.5;
}
.select2-container .select2-dropdown {
    border-left-color: var(--bs-border-color);
    border-right-color: var(--bs-border-color);
    border-bottom-color: var(--bs-border-color);
}

.select2.select2-container.select2-container--default .select2-selection__arrow {
    top: 4px;
}
.select2.select2-container .select2-selection.select2-selection--single .select2-selection__rendered {
    line-height: 34px;
    padding: 0 .75rem;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
    white-space: normal;
}
.select2-container--default .select2-selection__placeholder {
    color: var(--bs-secondary-color) !important;
}

.select2-container .select2-search__field:focus {
    border-color: #e391b1;
    outline: 0;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0 0 .225rem rgba(199,34,99,.25);
}

.select2-container-multi, .select2-container-multi.form-control {
    height:auto !important; /* Avoid any limited height determined by Bootstrap */
}


/** fix margin with btn-group, not correctly handled in bs3 */
.modal-footer .btn + .btn-group { margin-left: 5px; }


/** reorder grip */
.reorder-grip {
    width: 5px;
    cursor: grab;
    background: url(
        data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAYAAAB/qH1jAAAAD0lEQVQImWNggIAGNBoBABYiAQHqt5zVAAAAAElFTkSuQmCC
    ) repeat;
}

.reorder-grip:active {
    cursor: move;
}


.artist-row:hover td.noHover, .planning-row:hover td.noHover {
    text-decoration: none;
}

.view_object tr.first-date-row > td {
    border-top: 2px solid #ddd;
}

.view_object tr.first-date-row:first-child > td {
    border-top: none;
}

.view_object .helptext {
    color: #777;
    font-size: 0.9em;
    display: block;
}

.planning-header {
    padding: 10px;
    margin: auto 0;
    background-color: var(--bs-tertiary-bg);
}


.planning-manager-filters label {
    width: 130px;
    color: #444;
}

.event-types-selector {
    text-align: left;
}

.event-types-selector .type-select {
    padding: 5px 8px;
    border:none;
    border-bottom: 1px solid #aaa;
    background-color: #f2f2f2;
}

.event-types-selector .type-select:hover {
    cursor: pointer;
}

.event-types-selector .type-select.selected {
    border: 1px solid #aaa;
    border-bottom: none;
    background-color: white;
    color: #000;
}


.event-types-filter {
    white-space: nowrap;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.distribution-filters .type-filter,
.project-engagements-list .type-filter {
    height: 32px;
    line-height: 26px;
    white-space: nowrap;
}

.type-filter {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-right: none;
    background-color: white;

   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;
    user-select: none;
}

.type-filter:first-child:last-child {
    border-radius: 6px;
}

.type-filter:first-child {
    border-radius: 6px 0 0 6px;
}

.type-filter:last-child {
    border-right: 1px solid #ccc;
    border-radius: 0 6px 6px 0;
}

.type-filter:hover {
    cursor: pointer;
}

.type-filter ul li {
    padding-right: 5px;
}

.sub-type-filter {
    margin-left: 10px;
}

.type-filter.unselected, .sub-type-filter.unselected {
    color: #acacac;
}

.type-filter.unselected .fa, .sub-type-filter.unselected .fa {
    color: #9d9d9d;
}

.venue-planning-legend {
    color: #666;
    margin-top: 60px;
}

.venue-planning-legend .employee-status {
    border: 1px solid #ddd;
    max-width: 200px;
    padding: 8px;
}
.venue-planning-legend .employee-status-intermittent {
    border-left: 3px solid #fb9902;
}
.venue-planning-legend .employee-status-permanent {
    border-left: 3px solid #0392ce;
}

.vertical-columns-selector {
    width: 100%;
    margin-top: 10px;
}

.vertical-columns-selector td.column-select {
    width: 40%;
}
.vertical-columns-selector td.column-select select {
    height: 250px;
    padding: 6px 3px;
}
.vertical-columns-selector td.buttons {
    text-align: center;
}
.vertical-columns-selector td.buttons a {
    margin: 3px 0;
}

.modal.planning-event-modal-form .modal-dialog {
    width: 80%;
    max-width: 1000px;
}

.planning-event-modal-form ul.panel-nav {
    margin-left: -35px;
}

.planning-event-modal-form ul.panel-nav li {
    display: inline-block;
    width: 50%;
    text-align: center;
    line-height: 2;
    background-color: #fafafa;
    border: 1px solid #ddd;

    font-variant: small-caps;
}

.planning-event-modal-form ul.panel-nav li:hover {
    cursor: pointer;
}

.planning-event-modal-form ul.panel-nav li.active {
    font-weight: bold;
    background-color: #ededed;
}

.planning-event-modal-form .participants-panel .participants-selector li {
    margin-left: -40px;
    padding: 6px;
    border: 1px solid #ccc;
    border-bottom: none;
}
.planning-event-modal-form .participants-panel .participants-selector li:last-child {
    border-bottom: 1px solid #ccc;
}
.planning-event-modal-form .participants-panel .participants-selector li:hover {
    cursor: pointer;
    background-color: #eaeaea;
}

.planning-event-modal-form .input-day-overlap-warning {
    color: #554;
    position: absolute;
    right: 40px;
    z-index: 1000;
    font-size: 0.85em;
    top: 8px;
}

.planning-event-modal-form .tab-technicians .form-group {
    margin-bottom: 10px;
}
.planning-event-modal-form .tab-technicians .form-group p.text-muted {
    margin-bottom: 0;
}
.planning-event-modal-form .tab-technicians .service-group {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #777;
    border-radius: 4px;
}
.planning-event-modal-form .tab-technicians .service-group .service-container {
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    padding: 2px 4px;
}
.planning-event-modal-form .tab-technicians .service-group .service-container .fa {
    margin-right: 10px;
}
.planning-event-modal-form .tab-technicians .service-group .row {
    min-height: 30px;
}
.planning-event-modal-form .tab-technicians .offset-hint,
.employee-weekly-technical-planning-modal .days table .time-cell .offset-hint {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}
.planning-event-modal-form .tab-technicians .service-group .customize-time,
.employee-weekly-technical-planning-modal .days table .customize-time {
    cursor: pointer;
    color: #666;
    font-size: 0.8rem;
}

.planning-add-links {
    margin: 10px 0;
}
.planning-add-links a, .planning-add-links span {
    margin: 0 6px;
}
.planning-add-links .view-more-btn {
    border: 1px solid #9b0045;
    border-radius: 10px;
    padding: 2px 5px;
    font-size: 13px;
    user-select: none;
}
.planning-add-links #activity-types-popover {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #B9B9B9;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    padding: 5px;

    max-height: 310px;
    overflow-y: auto;
}

.table.planning-add-form tr td {
    padding: 3px 5px;
}

.project-planing-add-links {
    position: sticky;
    top: 0;
    background-color: #fdfdfd;
    z-index: 500;
    border-bottom: 2px solid #ededed;
    padding: 6px 6px 6px 12px;
}

.project-planing-add-links .btn-group.float-end {
    margin-top: 5px;
}


table tr.planning-row:nth-of-type(odd):not(:hover) td:not(.planning-date) {
  background-color: #f6f6f6;
}

.planning-row {
    color: #444;
}

.planning-row td {
    color: inherit;
}
.planning-row.grayed-out td,
.participant-row.grayed-out td {
    opacity: 0.5;
}

.planning-row td.planning-date,
.planning-row tr.inline-editable:hover > td.planning-date {
    color: #000;
    background-color: #fff !important;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    width: 150px;
    opacity: 1;
}

.planning-row td.planning-date .duplicate-zone {
    display: none;
    margin-top: 10px;
    position: relative;
}
.planning-row td.planning-date:hover .duplicate-zone {
    display: block;
}

.planning-row td.planning-date .duplicate-zone.popover-active {
    display: block;
}
.planning-row td.participants-count {
    white-space: nowrap;
}

.planning-row td > a {
    color: inherit;
}

.planning-row.inline-editable td > a:hover {
    text-decoration: underline;
}

.planning-row .planning-row-project-prefix {
    line-height: 0.75;
    margin: 0 0 1px 0;
    font-size: 0.95em;
    font-style: italic;
}

.planning-row .event-notes {
    max-height: 3.75em;
    margin: -8px;
    padding: 8px;
    overflow: hidden;
    white-space: pre-line;
    text-overflow: ellipsis;
}

.planning-row .event-notes:hover {
    overflow: visible;
    max-height:none;
}

.change-participation-link {
    vertical-align: middle;
    text-align: center;
    font-variant: small-caps;
    background-color: #fff;
    width: 100px;
}

.planning-row.grayed-out .change-participation-link {
    opacity: 1;
}

.change-participation-row.disabled {
    background-color: #f0f0f0;
    color: #555;
    font-style: italic;
    cursor: not-allowed;
}

.change-participation-link.pointer:hover {
    background-color: #f3f3f3;
    color: #000;
    opacity: 1;
}

.change-participation-link.participate-active {
    background-color: #D7F9D9 !important;
}
.change-participation-link.not-participate-active {
    background-color: #FCD8D6 !important;
}

.change-participation-link.disabled {
    background-color: #f0f0f0;
    cursor: not-allowed
}

/* Rows background color according to event type */
.planning-row .planning-date {
    background-color: #fff;
}

/** Artists block **/
.status-filters {
    display: inline-block;
    margin: 0 0 15px -30px;
}

.status-filters li:hover {
    cursor: pointer;
}

.status-filters li {
    display: inline-block;
    height: 30px;
    padding: 0 3vw;
    line-height: 30px;
    font-variant: small-caps;

    border: 1px solid #ccc;
    background-color: #fafafa;
}
/* Avoid double border between two items */
.status-filters li + li { border-left: none; }

.status-filters li.selected {
    background-color: #ddd;
}

.table .artist-list-month-name,
.table .artist-list-general-header {
    background-color: #fff;
}

.table .artist-list-month-name > th {
    border-bottom: none;
    line-height: 1;
    margin-bottom: -10px;
}
.table .artist-list-general-header > th {
    border-top: none;
}

.table .artist-list-general-header th input[type="checkbox"] {
    margin: 0 0 0 0;
}

.table .availability-cell {
    width: 30px;
}
.table .availability-cell:hover {
    cursor: pointer;
}
.table .availability-header {
    position: relative;
    text-align: center;
    width: 30px;
    padding: 4px;
    text-overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
}
.table .availability-header.outbound {
    background-color: #dfdfdf;
    opacity: 0.4;
}

@media (max-width: 1150px) {
    .table .availability-header,
    .table .availability-cell {
        width: 10px;
        font-size: 0.8em;
        white-space: normal;
    }
}

@media (max-width: 800px) {
    .table .availability-header,
    .table .availability-cell {
        font-size: 0.75em;
    }
}


.table .availability-arrow {
    text-align: center;
    color: #333;
    font-size: 1.25em;
}

.table .availability-arrow .fa {
    margin: 0 -10px;
    padding: 0 10px;
    cursor: pointer;
}

.table .availability-arrow.left {
    position: absolute;
    left: -15px;
}
.table .availability-arrow.right {
    position: absolute;
    right: -15px;
}


/** Engagement status label colors **/
h4 .label {
    display: inline-block;
    margin-left: 10px;
    font-size: 10px;
}

.label {font-size: 80%;}
.status-draft {
    background-color: #337AB7;
}

.status-to-establish, .status-unnamed {
    background-color: #D9534F;
}

.status-to-establish,
.status-not-applicable {
    background-color: #999;
}

.status-to-generate {
    background-color: #C3BE45;
}

.account-readonly,
.status-to-confirm,
.status-to-sign,
.status-confirm-pending,
.status-established {
    background-color: #F0AD4E;
}

.account-guest,
.status-partial-confirmed {
    background-color: #53CBC6;
}

.status-waiting-to-send,
.status-employee-signed,
.status-employer-signed {
    background-color: #ADC40D;
}

.account-standard,
.status-paid,
.status-confirmed,
.status-signed,
.status-sent {
    background-color: #5CB85C;
}

.account-revoked,
.status-archived,
.status-not-available {
    background-color: #777;
}

.account-tour-manager,
.status-signing-declined,
.status-not-selected {
    background-color: #444;
}

.pagination a {
    cursor: pointer;
}


/****** Inlines forms *******/

.react-inline-form {
    max-width: 700px;
}

.react-inline-form.react-inline-full-width {
    max-width: none;
    width: 100%;
}
.react-inline-form.react-inline-form-lg {
    min-width: 700px;
    max-width: 900px;
}
.react-inline-form-sm {
    min-width: 400px;
    max-width: 500px;
}

.react-inline-form, .inline-form {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--bs-tertiary-bg);
    background-color: var(--bs-secondary-bg);
}

.react-inline-form .no-left-padding {
    padding-left: 0;
}
.react-inline-form .no-right-padding {
    padding-right: 0;
}

.react-inline-form .Select.is-disabled > .Select-control {
    background-color: #eee;
    cursor: not-allowed;
}

.react-modal-form .row,
.react-inline-form .row,
.form.row-spacing .row {
    padding-bottom: 3px;
}

.react-inline-form .actions {
    margin-top: 8px;
}

.twitter-typeahead, .tt-hint, .tt-input, .tt-menu {
    width: 100%;
}
.twitter-typeahead, .tt-hint, .tt-input {
    display: block !important;
}
/** Fix usage of typeahead with a input-group-text before */
.input-group > .twitter-typeahead {
   flex: 1 1 auto;
   width: auto;
}

.bs-switch-container.inline-container {
    display: inline-block;
 }
.bootstrap-switch-container{ white-space:nowrap; }
.react-inline-form .bootstrap-switch .bootstrap-switch-handle-off,
.react-inline-form .bootstrap-switch .bootstrap-switch-handle-on,
.react-inline-form .bootstrap-switch .bootstrap-switch-label {
    padding: 3px 12px;
}

.react-form-errors-intro {
    background-color: #ffd9d8;
    border-left: 5px solid #ce4844;
    padding: 5px 10px;
}

.has-error .select2 .select2-selection,
.has-error .Select, .has-error > input {
  border: 1px #a94442 solid;
}



/*** TinyMCE custom dialog box ****/
.mce-toolbar, .mce-top-part .mce-btn {
    background-color: rgb(245, 245, 245) !important;
}
.mce-container .mce-merge-fields {
    width: 100%;
    overflow: auto;
}

/* Set back bootstrap properties overriden by mce aggressive rules */
.tox-dialog__body-content {
    border-left: 1px solid #ededed !important;
    padding-left: 5px !important;
}
.tox-dialog__body-content .merge-field {
    padding: .5rem;
    font-size: 1rem;
}

.tox-dialog__body-content .merge-field:hover {
    cursor:pointer;
    background-color: #f6f6f6;
}

.tox-dialog__body-content .merge-field .help-text {
    color: #666;
    font-size: 90%;
}

#tinymce-image-browser .image {
    height: 210px;
    text-align: center;
}

#tinymce-image-browser .image:hover {
    transition: all 0.5s 0.1s;
    cursor: pointer;
    background-color: #FFECE0;
}

#tinymce-image-browser .image.selected {
    transition: all 1s;
    border: 1px solid green;
    background-color: #e4ffe8;
}

#tinymce-image-browser .image .img-line {
    display:block;
    line-height: 180px;
}

#tinymce-image-browser .image .img-line img {
    border: 1px solid #ccc;
}


#tinymce-image-browser .image:hover .fa-times {
    color: #444;
}

#tinymce-image-browser .image .fa-times {
    float:right;
    font-size: 1.75em;
    color: #ddd;
    margin-top: 10px;
}

#tinymce-image-browser .image.pending-deletion {
    opacity: 0.5;
    background-color: #ddd;
}

#tinymce-image-browser .image img {
    max-width: 90%;
    max-height: 190px;
}


.simple-icon-button {
    border: none;
    background: none;
}

.simple-icon-button:focus {
    border: 1px dotted grey;
}

.simple-icon-button .fa-times {
    font-size: 1.25em;
    color: var(--bs-danger-text-emphasis);

}
.simple-icon-button .fa-check {
    font-size: 1.25em;
    color: var(--bs-success-text-emphasis);
}

.svg-icon-yes {
    display: inline-block;
    background: url('../admin/img/icon-yes.svg') no-repeat center;
    width: 16px;
    height: 16px;
}
.svg-icon-yes.disabled {
    background: none;
    background-color: #777;
    mask: url('../admin/img/icon-yes.svg') no-repeat center;
}

.svg-icon-no {
    display: inline-block;
    background: url('../admin/img/icon-no.svg') no-repeat center;
    width: 16px;
    height: 16px;
}
.svg-icon-search-address {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../images/icon-search-address.svg') no-repeat center;
}

.Select.is-open {
    z-index: 999;
}

/* Manually apply background to TD so column text doesn't overlap the content of the table */
.table-striped > tbody > tr:nth-of-type(odd) > td.sticky-left-col {
    background-color: #f9f9f9;
}
.table-striped > tbody > tr:nth-of-type(even) > td.sticky-left-col {
    background-color: white;
}

.sticky-left-col {
    position: sticky;
    left: 0;
    background-clip: border-box;
}

/**
 * Mention autocompleter in JS components
 */
.tribute-container {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  max-height: 300px;
  max-width: 500px;
  overflow: auto;
  display: block;
  z-index: 999999;

  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 5px 3px;
  box-shadow: 0px 0px 15px 2px rgba(38, 21, 35, 0.33);
}

.tribute-container ul {
  margin: 0;
  margin-top: 2px;
  padding: 0;
  list-style: none;
}
.tribute-container li {
  padding: 5px 7px;
  cursor: pointer;
}
.tribute-container li.highlight {
  background: #e3e3e3;
  color: #4f2b4a;
}
.tribute-container li span {
  font-weight: bold;
}
.tribute-container li.no-match {
  cursor: default;
}
.tribute-container .menu-highlighted {
  font-weight: bold;
}
span[role="mention"] {
    color: #0067d1;
    font-weight: 600;
}

.signrequest-sign-box {
    color:white;
    background-color: white;
}

.pims-logo:before{
    background: url('../accounts/images/pims-logo.svg') no-repeat center;
    background-size: 100% 100%;
    width: 30px;
    height: 12px;
    content: " ";
    display: inline-block;
}


.draggable-multi-value:hover {
    cursor: move;
}


/*******************************************************************/
/******                Inline tasks list & form               ******/
/*******************************************************************/
#tasks-list ul.tasks {
    padding-left: 0px;
    margin-bottom: 5px;
}

#tasks-list ul.tasks li {
    margin-left: -5px;
    padding: 0 5px;
    font-size: 1em;
    line-height: 1.75em;
    border-bottom: 1px dotted #ddd;
}

#tasks-list ul.tasks li:hover {
    cursor: pointer;
    background-color: #ffe8d9;
}

#tasks-list ul.tasks li.done {
    text-decoration: line-through;
    color: #999;
}

#tasks-list ul.tasks li .label {
    position: relative;
    top: -2px;
}

#tasks-list ul.tasks li .done-box {
    margin-right: 0.5em;
}

#tasks-list ul.tasks .assigned-to {
    color: #777;
    float:right;
    font-size: 0.85rem;
}

#tasks-list .pagination {
    margin: 5px 0;
}
