/*-------------------------------------------*/
/*                                           */
/*                Variables                 */
/*                                           */
/*-------------------------------------------*/

:root {
    --header-height:  48px;
    --panel-width: 390px;
    --panel-button-color: #777777;

    /** Main Orfeo colors. Emphase variants are used for text/links colors **/
    --color-lipstick: #c72263;
    --color-lipstick-emphase: #9b0045;
    --color-grape: #712A64;
    --color-grape-emphase: #522b4a;

    /** Reserved for hover on selectionnable/editable elements **/
    --color-salmon: #ffdbc7;

    --bg-dark: #575250;

    --teal-100: #d2f4ea;
    --teal-250: #A5E9D5;
    --teal-500: #20c997;
    --red-100: #f8d7da;
    --red-250: #F1AEB4;
    --red-500: #dc3545;
    --gray-100: #f8f9fa;
    --gray-250: #E6E8EB;
    --gray-500: #adb5bd;

    --font-dark: #000000;
    --gray-700: #949494;

    --hubspot-chat-zindex: 9990;

    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
}

[data-bs-theme=dark] {
    --color-salmon: #7c5e4d;
    --color-lipstick-emphase: #cb416b;
}

@media (max-width: 1250px) {
    :root {
        --panel-width: 320px;
    }
}


/*-------------------------------------------*/
/*                                           */
/*             General styles                */
/*                                           */
/*-------------------------------------------*/
div.label {
    background-color: inherit;
    text-shadow: inherit;
    display: inline-block;
    text-align: left;
}

ul li {
    list-style-type: none;
}

ul.bull li {
    list-style-type: circle;
}

tr.FormRow td {
    vertical-align: middle;
    padding: 5px;
}

.color-block {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 2px;
    margin-bottom: -2px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.color-input {
    position: relative;
    display: inline-block;
    height: 30px;
    line-height: 30px;  /** center vertically the text */
}

.input-group .color-input {
    line-height: 16px;  /** center vertically the text */
}


.color-picker {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 999;

    padding: 10px;
    border: 1px solid #aaa;
    background-color: #eee;
    width: 230px; /* (24 + 3) * 6 per line + 20px of padding*/
    line-height: 19px;
}

.color-picker .color-picker-tools {
    float:right;
    font-weight: bold;
    color: #666;
    text-align: center;
    line-height: 2;

    margin-top: -8px;
    margin-right: -5px;
    font-size: 13px;
}

.icon-picker .close-picker {
    float:right;
    font-weight: bold;
    color: #666;

    margin-top: -8px;
    margin-right: -5px;
    font-size: 1.25em;
}

.color-picker .color-block {
    float:left;
    width: 23px;
    height: 23px;
    margin-right: 1px;
    border-radius: 2px;
    margin-bottom: 1px;
}

.cursor-default {
    cursor: default !important;
}

.icon-picker {
    padding: 0 6px 10px 6px;
    border: 1px solid #aaa;
    background-color: #eee;
    width: 240px;

    white-space: normal;
    text-align: left;
    line-height: 22px;
}

.icon-picker .search-header {
    display: flex;
    padding: 4px 0;
}

.icon-picker .search-header .form-control {
    height: 26px;
    font-size: 14px;
}

.icon-picker .search-header .close-picker {
    padding: 10px 6px;
}

.icon-picker .icons {
    max-height: 200px;
    overflow: auto;
}


.input-group-text .icon-input,
.input-group-text .color-input {
    margin: -8px -12px;
    padding: 8px 12px;
}
/* Enforce inherit color for icon */
.input-group-text .icon-input a[role="button"] .fa {
    color: inherit;
}

.icon-input {
    display: inline-block;
    width: 37px;
    position: relative;
}
.icon-input a,
.icon-input a:hover {
    color: inherit;
}

.icon-input a .dropdown-toggle::after {
    vertical-align: 0;
    margin-right: 4px;
}

/** Make the dropdown-toggle appear only on group hover **/
.input-group .input-group-text .icon-input .dropdown-toggle {
    visibility: hidden;
}
.input-group:hover .input-group-text .icon-input .dropdown-toggle {
    visibility: visible;
}

.icon-picker i {
    margin: 4px;
    width: 28px;
    text-align: center;
    border: 1px solid transparent;
}

.icon-picker i:hover, .icon-picker i.current {
    color: #337ab7;
    box-shadow: #bbb 0px 1px 3px;
}
.icon-picker i:hover {
    border-bottom: 1px solid #bdbdbd;
}


/** used in campaign detail view, blocks generated in JS */
.pie-legend li span {
   display: inline-block;
   width: 15px;
   height: 12px;
   margin-right: 4px;
}

.pie-legend li {
    text-align: left;
    margin-right: 20px;
}


.balance-badge .circle {
    display: inline-block;
    vertical-align: middle;
    border-radius: 20px;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: -0.15rem;
    margin-right: 0.20rem;
}
.balance-badge.debt         { background-color: var(--red-100); }
.balance-badge.debt .circle { background-color: var(--red-500); }
.balance-badge.zero         { background-color: var(--gray-100); }
.balance-badge.zero .circle { background-color: var(--gray-500); }
.balance-badge.credit         { background-color: var(--teal-100); }
.balance-badge.credit .circle { background-color: var(--teal-500); }


/*-------------------------------------------*/
/*                                           */
/*         Generic Holidays colors           */
/*                                           */
/*-------------------------------------------*/
.holiday-zone-A { background-color: #f4764c; }
.holiday-zone-B { background-color: #509acf; }
.holiday-zone-C { background-color: #73d159; }
/* .holiday-national { background-color: #bbb9ff !important; } */

/*-------------------------------------------*/
/*                                           */
/*             Button styles                 */
/*                                           */
/*-------------------------------------------*/

div#buttons {
    padding: 5px 0;
}

div.buttons {
    margin-right: 10px;
    display: inline-block;
}

.buttons .btn {
    margin-right: 5px;
}

.buttons div.btn-group .divider {
    margin: 2px auto;
}

.buttons div.btn-group li.disabled,
.buttons div.btn-group li.disabled a:hover {
    cursor: default;
}

.buttons div.btn-group input {
    background-color: inherit;
    font-variant: inherit;
    font-weight: inherit;
    border-style: inherit;
    border-width: inherit;
    color: #333333;
    padding-left: 20px;
    text-align: left;
    width: 100%;
}

.buttons div.btn-group input:hover {
    background-color: #007FBE;
    border-color: inherit;
    color: white;
}

.buttons input {
    background-color: #F2F2F2;
    background-image: none;
    min-width: 100px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    vertical-align: middle;
    font-variant: small-caps;
    margin-right: 10px;
    font-weight: bold;
    color: #666666;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    border-color: #cccccc;
    border-radius: 5px;
}

.buttons input:hover {
    border-color: #666666;
    color: #333333;
}

.buttons input:active {
    background-image: none;
}

.icon  {
    width: 24px;
    height: 24px;
    display: inline-block;
    background: center no-repeat;
}

.search-address-btn {
    position: absolute;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    top: 1px;
    left: -35px;
    padding: 2px 5px;
}


/** Allow buttons to be placed inside a button group **/
.dropdown-menu > li > button {
    display: block;
    color: #333;
    white-space: nowrap;
    background: none;
    border: none;
    text-align: left;
    min-width:100%;
}

#buttons .dropdown-menu > li > a,
#buttons .dropdown-menu > li > button {
    padding: 7px 15px;
}

.dropdown-menu > li > button:focus, .dropdown-menu > li > button:hover {
    background-color: #E8E8E8;
    background-image: linear-gradient(to bottom, #F5F5F5 0px, #E8E8E8 100%);
    background-repeat: repeat-x;
}

.dropdown-menu > li > a.disabled {
    color: #777;
    cursor: not-allowed;
}
.dropdown-menu > li > a.disabled:hover {
    text-decoration: none;
    background-color: transparent;
    background-image: none;
}

/*-------------------------------------------*/
/*                                           */
/*      Bootstrap switch customization       */
/*                                           */
/*-------------------------------------------*/
.bootstrap-switch-onSwitch {
    background-color: #6C9C6D;
    color: #fff;
}
.bootstrap-switch-offSwitch {
    background-color: #B67776;
    color: #fff;
}

/*-------------------------------------------*/
/*                                           */
/*      Bootstrap tooltip customization       */
/*                                           */
/*-------------------------------------------*/
.tooltip {
    z-index: 99999 !important;
}

/*-------------------------------------------*/
/*                                           */
/*         Inline editable style             */
/*                                           */
/*-------------------------------------------*/
.inline-editable {
    margin: -8px; /* Expand the box to have the whole cell colored */
    padding: 8px;
}
td > div.inline-editable {
    min-height: 36px;
}

.inline-editable.row {
    margin: -6px -15px; /* Special case */
    padding: 6px 0px;
}

.inline-editable:hover:not(.read-only),
.inline-editable:hover:not(.read-only) td {
    cursor: pointer;
    background-color: var(--color-salmon);
}

/*****/
.inline-editable .denormalization-hint {
    float: right;
}
.inline-editable .denormalization-hint a {
    visibility: hidden;
    color: #666;
}
.inline-editable:hover .denormalization-hint a {
    visibility: visible;
}

/*-------------------------------------------*/
/*                                           */
/*         Special warning banner            */
/*                                           */
/*-------------------------------------------*/

.trial-mode-banner, .pending-operation-banner {
    background: #FCF8E3;
    color: #967740;
    padding: 7px;
    text-align: right;
}


.outdated-browser-warning {
    background-color: #ffe9eb;
    color: #461b1f;
    padding: 10px;
    line-height: 1.25;
}

/*-------------------------------------------*/
/*                                           */
/*          Subscription invoices            */
/*                                           */
/*-------------------------------------------*/
.subscriptions-container {
    position: relative;
    margin: 20px 0 40px;
}
.subscriptions-list::before {
    content: '';
    margin: 0 0 0 17px;
    height: 100%;
    width: 1px;
    display: block;
    position: absolute;
}
.subscriptions-list .subscription .status-icon {
    vertical-align: top;
    width: 32px;
    height: 32px;
    padding: 8px;
    text-align: center;
    float: left;
    border-radius: 50%;
    background: #eee;
    border: 1px solid #fff;
    box-shadow: 0 0 1px #ccc;
    position: relative;
}
.subscriptions-list .subscription {
    margin: 15px 0;
}
.subscriptions-list .subscription .inner {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    position: relative;
    margin-left: 45px;
    padding: 6px;
}

.subscriptions-list .subscription.current .status-icon {
    color: green;
    background-color: #f2faf2;
}

.subscriptions-list .subscription .inner {
    color: #444;
}
.subscriptions-list .subscription.current .inner {
    background-color: #f2faf2;
    color: #333;
}


/*************************************************************/
/***                                                       ***/
/***                   Unpaid invoices                     ***/
/***                                                       ***/
/*************************************************************/
.table .unpaid-invoice > th {
   font-size: 1.5em;
   padding-top: 45px;
   border-top: none;
}

.table .unpaid-invoice:first-child > th {
    padding-top: 10px;
}

.unpaid-invoice.less_30_days {
    color:green;
}

.unpaid-invoice.between_30_60 {
    color:orangered;
}

.unpaid-invoice.more_60_days {
    color:darkred;
}

/*-------------------------------------------*/
/*                                           */
/*               Invoice change list         */
/*                                           */
/*-------------------------------------------*/
.positive-balance-invoice {
    color: var(--bs-indigo);
}

.negative-balance-invoice {
    color: var(--bs-red);
}

/*-------------------------------------------*/
/*                                           */
/*               Header styles               */
/*                                           */
/*-------------------------------------------*/

.header {
    color: #fff;
    background-color: var(--color-grape);
    height: var(--header-height)
}

/* Header > Branding */
#branding * {
    float: left;
    /* Align vertically with the same value as the .header height */
    line-height: var(--header-height);
    padding: 0;
    margin: 0;
}
#branding #logo {
    display: block;
    width: 50px;
    height: var(--header-height);
    background: transparent url(../images/logo-circle-white.svg) no-repeat 50% 50%;
    background-size: 80% 80%;
}

#branding h1 {
    font-size: 18px;
    width: 90%;
    height: var(--header-height);
    overflow: hidden;
    font-variant: small-caps;
}
#branding h2 {
    font-size: 14px;
    font-weight: normal;
    font-variant: normal;
    font-size: small;
}

/** Customise header on restrained accounts so we can easily determine when some features are disabled */
.restriction-mode-sandbox #branding #logo {
    background: transparent url(../images/logo-sandbox-white.svg) no-repeat 50% 50%;
    margin: 0 6px 0 4px;
}
.restriction-mode-sandbox:after {
    content: "Espace de formation";
    position: fixed;pointer-events: none;
    bottom: 20%;
    left: 15vw;
    white-space: nowrap;
    right: 0;
    font-size: 8vw;
    line-height: 1;
    font-variant: small-caps;
    opacity: 0.1;
    transform: rotate(-20deg);
    transform-origin: bottom left;
    z-index: 999999999;
}

/* Header > Menu */
#menu {
    display: flex;
    height: 100%;
    padding: 0;
    margin: 0;
}
#menu li {
    display: inline-block;
    font-size: 13px;
}
#menu li a,
#menu li span {
    display: block;
    float: left;
    /* Align vertically with the same value as the .header height */
    height: var(--header-height);
    line-height: var(--header-height);
    padding: 0 10px;
    color: #fff;
}
#menu li a:hover,
#menu li.Selected a {
    text-decoration: underline;
}
#user-tools a.Selected, #menu li.Selected a {
    background: #F5F5F5;
    color: var(--color-lipstick-emphase);
    text-decoration: none;
}
#menu li.Selected:not(.Initial-selection) a {
    text-decoration: underline;
}

#content-container {
    flex-grow: 1;
}

#content-container.menu-hover {
    transition: opacity 0.33s ease-in;
    opacity: 0.4;
}

/* Header > User tools */
#user-tools {
    float: right;
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 0px;
}

#user-tools > * {
    float: left;
    height: var(--header-height);
    padding: 0 12px;
}

#user-tools .header-settings {
    border-right: 1px solid #777;
}

#user-tools .link-icon i {
    font-size: 22px;
    line-height: var(--header-height);
    color: white;
}
#user-tools .link-icon.Selected i {
    color: var(--color-grape)!important;
}
#user-tools .link-icon:hover i {
    color: #dcdcdc;
}

#user-tools .link-icon {
    position: relative;
}
#user-tools .link-icon .badge {
    background-color: #e9534f;
    position: absolute;
    right: -2px;
    top: 5px;
    font-size: 11px;
}

#user-tools #account-dropdown {
    color: #fff;
}

#user-tools .user-name-info {
    height: inherit;
}

#user-tools .user-name-info .user-photo {
    width: 32px;
    min-height: 32px;
    border-radius: 100%;
    display: inline;
    background-color: #fff;
}

#user-tools .user-name-info i.fa {
    margin-top: -3px;
    color: #666;
    background-color: #fff;
    width: 32px;
    height: 32px;
    font-size: 21px;
    padding: 5px 7px;
    border-radius: 100%;
}
#user-tools .user-name-info a {
    display: block;
    font-size: 0.9em;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff;
}
#user-tools .user-name-info:hover a {
    color: #dadada;
}

#user-tools a, #user-tools .btn-link {
    color: var(--color-grape-emphase);
}
#user-tools a:hover, #user-tools .btn-link:hover {
    color: var(--color-lipstick-emphase);
}

#user-tools .dropdown-menu {
    z-index: 9999;
}
#user-tools .dropdown-menu > li > a {
    line-height: 1.7;
}

@media (max-width: 1250px) {
    #menu li a,
    #menu li span {
        padding: 0 0.7vw;
    }

    #menu {
        float: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #user-tools {
        float: none;
        display: block;
        position: static;
        background-color: #999;
        width: 100%;
        text-align: right;
        height: var(--header-height);
    }
    #user-tools a,
    #user-tools form {
        float: none;
        display: inline-block;
    }
    #user-tools .dropdown {
        float: right;
        text-align: left;
    }
}

/*-------------------------------------------*/
/*                                           */
/*            Two columns layout             */
/*                                           */
/*-------------------------------------------*/
.account-two-columns-layout {
    display: flex;
}
.account-two-columns-layout .two-columns-sidebar {
    padding-top: 8px;
    min-width: 200px;
    width: 250px;
    margin-right: 15px;
}
.two-columns-content {
    padding-top: 8px;
    flex-grow: 1;
}

.org-profile-card {
    display: inline-block;
    width: 420px;
    min-height: 80px;
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    margin: 0px 16px 10px 0;
    background: linear-gradient(#fcfcfc, #f7f7f7);
    padding: 10px 8px;

    vertical-align: top;
}
.org-profile-card ul {
    margin-left: -35px;
}

.org-profile-card .empty-box {
    display: block;
    float: right;
    width: 80px;
    height: 50px;
    padding-top: 5px;
    color: white;
    font-size: 2em;
    background-color: var(--bs-secondary-bg);
    text-align: center;
    border-radius: 5px;
    margin-left: 10px;
}

/*-------------------------------------------*/
/*                                           */
/*               Secondary menu              */
/*                                           */
/*-------------------------------------------*/

div#menu-secondary {
    background: var(--bs-tertiary-bg);
    padding: 0 0 0 30px;
    min-height: 41px;
}
div#menu-secondary ul {
    padding: 10px 10px 10px 0;
    margin: 0;
}
div#menu-secondary ul li {
    display: inline;
}
div#menu-secondary ul li a {
    color: var(--bs-text-body);
}
div#menu-secondary ul li a:hover {
    text-decoration: underline;
}
div#menu-secondary ul li.Selected a {
    color: var(--color-lipstick-emphase);
}

div#menu-secondary ul li.cl-arrows {
    font-size: calc(var(--bs-body-font-size) * 1.1);
    margin-right: 10px;
}

div#menu-secondary ul li.cl-arrows a {
    color: var(--color-grape);
    display: inline-block;
    padding: 10px;
    margin: -10px;
}
div#menu-secondary ul li.cl-arrows a:focus {
    outline: none;
}

div#menu-secondary ul:after {
    clear: both;
    display: table;
    content:' ';
}

.assistance-bubble {
    z-index: 999;
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 50px;
    height: 50px;
    padding: 12px;
    border-radius: 50%;
    background-color: var(--color-grape);
    opacity: 0.7;
}

.assistance-bubble .fa {
    font-size: 26px;
    color: #fff;
}

.assistance-bubble .extra {
    position: absolute;
    color: #fff;
    top: 0;
    bottom: 0;
    padding: 6px 20px;
    left: 0;
    width: 0px;
    visibility: hidden;
    background-color: var(--color-grape);
    border-radius: 30px 0 0 30px;
}

.assistance-bubble:hover {
    opacity: 0.9;
    border-radius: 0 50% 50% 0;
}
.assistance-bubble:hover > .fa {
    display: none;
}
.assistance-bubble:hover .extra {
    visibility: visible;
    white-space: nowrap;
    width: 100px;
    left: -100px;
}
.assistance-bubble:hover .extra a {
    display: inline-block;
    margin: 4px 20px 0 0;
}

.support-popover-content-inner {
    margin: -8px;
}
.support-popover-content-inner a {
    position: relative;
    display: block;
    padding: 3px 25px 10px 5px;
    text-decoration: none;
    color: var(--color-lipstick-emphase);
}

.support-popover-content-inner a > h5 {
    color: #333;
    margin-bottom: 5px;
}

.support-popover-content-inner a .fa-angle-right {
    position: absolute;
    display: none;
    top: 6px;
    right: 2px;
    font-size: 2em;
    color: #666;
}

.support-popover-content-inner a:hover .fa-angle-right {
    display: block;
}

/*-------------------------------------------*/
/*                                           */
/*          object form styles               */
/*                                           */
/*-------------------------------------------*/
form.object-form span.field-warning {
    color: red;
    font-weight: bold;
    padding-left: 10px;
}

form.object-form legend {
    font-size: 12px;
    line-height: normal;
    width: auto;
    border-width: 0px;
    margin-bottom: 0px;
}

.ajax-loading-spinner {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999999;
}
.ajax-loading-spinner .badge {
    font-size: 1em;
}

.form-group label { padding-right: 5px; }

/*-------------------------------------------*/
/*                                           */
/*              Search input                 */
/*                                           */
/*-------------------------------------------*/
.quick-search-input {
    position: relative;
}
.quick-search-input input {
    padding-left: 28px;
}
.quick-search-input i.fa {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 100;
    color: #aaa;
}

/*-------------------------------------------*/
/*                                           */
/*             Dynamic list                  */
/*                                           */
/*-------------------------------------------*/
#changelist .vertical-divider {
    display: inline-block;
    margin: 6px 10px;
    border-left: 1px solid #ccc;
    height: 20px;
}
#changelist .vertical-divider:before {
  content: " ";  /** enforce the divider to being displayed by adding a space as content */
  white-space: pre;
}
#changelist .vertical-divider:first-child, #changelist .vertical-divider:last-child {
    display: none;
}

#available-lists, .quick-filter-form input {
    width: 250px;
}

.list-filtering {
    padding: 8px 0;
}

.list-filtering.filter-active {
    border: 1px solid #B6BEC4;
}

.list-filtering .total {
    margin-right: 10px;
}

.quick-filtering {
    min-height: 35px;
    display: flex;
}

.quick-filtering * {
    display: inline-block;
}

.quick-filter-form { /** allows to place search icon absolutely **/
    position: relative;
}
.quick-filter-form:only-child {
    border: none;
}

.quick-filter-form input {
    padding-left: 25px;
    height: 32px;
}

.quick-filter-form button {
    position: absolute;
    left: 4px;
    top: 4px;
    background: none;
    border: none;
}
.quick-filter-form button .fa {
    color: #777;
}

.quick-filter-result {
    padding: 3px 0 0 10px;
}

.quick-filter-result a {
    display: inline-block;
    padding: 3px 10px;
}

.table-dynamic-list-first-col {
    width: 90px;
}

.dynamic-list-modal .modal-dialog {
    width: 90vw;
    max-width: 950px;
}

#filter-editor-table td {
    vertical-align: top;
    border-top: none;
    border-bottom: 1px solid #ddd;
}

#filter-editor-table tr:last-child td {
    border-bottom: none;
}

/** Geolocalisation filter related**/
.gps-filter span {
    margin: auto 5px;
}

.gps-filter .sugg-input {
    margin-left: -5px;
    width: 100%;
}

/*-------------------------------------------*/
/*                                           */
/*               Filters                     */
/*                                           */
/*-------------------------------------------*/

div#action-zone {
    color: #666666;
    vertical-align: middle;
    padding: 10px 30px 0px;
}

div#action-zone #buttons,
div#action-zone .actions {
    display: inline-block;
}

div#action-zone .actions {
    line-height: 44px;
}

div#object-header {
    float: left;
    font-size: large;
    font-weight: bold;
    padding: 0 20px 10px 0px;
}

/* #filters */

select.filter-select {
    height: auto;
    line-height: normal;
}

select.multiple-filter {
    width: 200px;
}

div#list-header {
    color: #666666;
    font-weight: bold;
    padding-left: 6px;
    margin-top: 8px;
}


/*-------------------------------------------*/
/*                                           */
/*               View object                 */
/*                                           */
/*-------------------------------------------*/

div.view_object .datepicker td {
    vertical-align: middle;
}

div.view_object thead th {
    border-left: none;
    border-right: none;
}

div.view_object span.object-type {
    font-weight: bold;
    font-size:1.1em;
    color: darkblue;
}

.tag-list {
    padding-left: 15px;
    margin-left: 15px;
    border-left: 1px #999 solid;
}

.tag-list .badge {
    display: inline-block;
    margin-right: 5px;
}

div.object-tags {
    margin-top: 10px;
    margin-bottom : 20px;
}

div.object-tags span.object-group {
    display: inline-block;
    margin-left: 15px;
}

/*********** entity changelist *************/
.structure-periods-table .results tbody tr > td.text-center {
    width: 6%;
    padding: 0;
}

.structure-periods-table .results tbody tr > td i.fa {
    visibility: hidden;
    text-align: center;
    height: 24px;
    font-size: 2rem;
    color: #ccc;
}

.structure-periods-table .results tbody tr > td:hover i.fa {
    visibility: visible;
}

.structure-periods-table .results tbody tr > td i.fa:hover {
    cursor: pointer;
    color: #666;
}

@media (max-width: 992px) {
    .structure-periods-table .results tbody tr > td i.fa {
        font-size: 1.2rem;
    }
}

.entity-period {
    width: 100%;
    height: 44px;
    padding-top: 10px;
    border-left: 1px solid var(--bs-border-color);
}

.structure-periods-table .results tbody tr td .entity-period.active {
    background: #81C781;
}

.structure-periods-table .results tbody tr td .entity-period .fa-times,
.structure-periods-table .results tbody tr td .entity-period.active .fa-check {
    display: none;
}

.structure-periods-table .results tbody tr td .entity-period.active .fa-times {
    display: block;
}


.entity-periods-selector {
    margin-top: 5px;
}
.entity-periods-selector > a {
    color: #333;
    display: inline-block;
    text-align: center;
    width: 8%;
    min-width: 45px;
    border-radius: 0px;
    margin-right: 0.25%;
    padding: 5px 7px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

.entity-periods-selector > a.active {
    background-color: #FF4F4F;
    color: #eee;
}

.programming-period .month-name {
    background-color: #FC4F4F;
    color: #fff;
    font-size: 0.85em;
    margin-right: 6px;
}


#createEntityModal .show-categories-tags-fields,
#createEntityModal .show-categories-tags-fields a {
    color: #666;
    text-decoration: none;
    outline: none;
}

#createEntityModal .show-categories-tags-fields .fa {
    margin-left: 5px;
}

.icon-18 {
    display: inline-block;
    padding: 0;
    width: 18px;
    height: 18px;
    margin: 1px 0 -3px 0;
}
.icon-18.icon-excel {
    background: url('../images/excel-icon-64.png') no-repeat;
    background-size: 18px;
}

/* Force the cursor to be always the same even when it is hovering over text */
.prospectlist-progress {
    cursor: default;
}
.prospect-list-bottom-buttons {
    margin-top: 40px;
}

.prospect-list-bottom-buttons > * {
    margin-right: 5px;
}

.prospectlist-filters {
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--bs-gray-200);
    border-radius: 5px;
}

.spectacle-prospect-list-header {
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: -15px;
    margin-bottom: 10px;
}
.spectacle-prospect-list-header h2 {
    margin: 2px 0;
    font-size: 1.2em;
}

a.inline-external-link {
    text-decoration: none;
    margin-left: 10px;
}
.inline-external-link span       { display: none;         }
.inline-external-link:hover span { display: inline-block; }


/************** entity header **************/
@media(min-width: 1000px) {
    .entity-two-columns-layout {
        display: flex;
    }
    .entity-generic-column {
        flex: 1;
        min-width: 570px;
        border-right: 1px solid #cfcfcf;
        padding: 0 3px;
    }
    .entity-main-column {
        flex: 2;
    }
}

/** smartphone view **/
@media(max-width: 1000px) {
    .entity-two-columns-layout {
        display: block;
    }
    .entity-generic-column {
        display: block;
    }
    .entity-main-column {
        display: block;
    }
}

.entity-main-column-section {
    padding: 10px;
    border-top: none;
    min-height: 500px;
}

.entity-main-column-tabs {
    padding-left: 0;
    margin-left: 0;
    font-size: 0; /** avoid space between <li> blocks */
    background-color: #eee;
    border-bottom: 1px solid #cfcfcf;
}
.entity-main-column-tabs li {
    display: inline-block;
    padding: 0 15px;
    min-width: 100px;
    height: 38px;
    line-height: 38px;
    font-size: var(--bs-body-font-size);
    margin: 0;
    text-align: center;
    background-color: #eee;
    border-right: 1px solid #cfcfcf;
}

.entity-main-column-tabs li.active {
    background-color: #fff;
    font-weight: bold;
    border: 1px solid #ccc;
    border-left: none;
    border-bottom: none;
}
.entity-main-column-tabs li:hover {
    cursor: pointer;
    background-color: #fcfcfc;
}


.balance-badge {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    display: table;
    border-radius: 7px;
}

.entity-main-column-section i.fa-file-pdf-o { font-size: 1.1rem; }
i.fa-file-pdf.not-available { color: #bbb }
i.fa-file-pdf.not-available:hover { cursor: not-allowed; }


.entity-tags {
    display: table;
    margin-top: -5px;
}

.entity-type {
    display: table-cell;
    font-weight: bold;
    font-size: 1.1em;
    color: darkblue;
    padding-right: 10px;
}

.tag-list {
    display: table-cell;
    padding-left: 10px;
}

.user-category {
    padding: 0 10px;
}

.entity-type + .tag-list,
.user-category + .tag-list {
    border-left: 1px #999 solid;
}

.tag-list .label {
    margin-right: 5px;
    display: inline-table;
}

.entity-photo {
    position: absolute;
    right: 0;
    top: -10px;
    min-width: 130px;
    height: 100px;
    text-align: center;
    border: 1px solid transparent;
}

.hardware-photo{
    position: relative;
    min-width: 130px;
    height: 100px;
    text-align: center;
    border: 1px solid transparent;
}

.photo-manager img {
    max-height: 100px;
    max-width: 130px;
    border: 1px solid #666;
    margin:0;
    padding:0;
}

.photo-manager .upload-hover {
    display: none;
    z-index: 25;
}

.photo-manager:hover:not(.readonly) {
    transition: all 0.3s 0.1s;
    background: rgba(0,0,0,0.5);
    border: 1px solid black;
}

.photo-manager:hover img {
    transition: all 0.5s 0.1s;
    z-index: 10;
    opacity: 0.33;
}

.photo-manager:hover .upload-hover {
    display: block;
    position: absolute;
    top:10px; bottom:0; left:0; right:0;
    color: #ddd;
    font-weight: bold;
}

.photo-manager .upload-hover.edition {
    line-height: 1.8em;
    text-align: left;
}

.photo-manager .upload-hover.add {
    cursor: pointer;
}
.photo-manager .upload-hover.edition a {
    padding: 10px;
    color: #ddd;
    cursor: pointer;
}

.photo-manager .upload-hover.add i.fa {
    font-size: 52px;
}

.photo-manager .missing-photo i.fa {
    font-size: 68px;
}

.bottom-buttons {
    margin-top: 15px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}



/**
 * Object header block represents the main information about the object: title, category, tags...
 * This zone is usually editable and may contained a form allowing to edit those main infos
 */
.object-header-block {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    padding: 8px;
    min-height: 100px;
    margin-bottom: 10px;
}
.object-header-block.inline-editable {
    margin: 0;
    margin-bottom: 10px;
}
.object-header-block .inline-editable {
    min-height: 100px;
}
.object-header-block h2 {
    margin-top: 0;
}

.object-header-block.has-tabs-below {
    margin-bottom: 0;
}

/*
 * The form is encapsulated inside a gray block. We extend the form AND
 * mitigate borders to have a better visual.
 */
.object-header-block form.react-inline-form {
    max-width: none;
    margin: -8px;
    border: none;
    border-radius: 0;
    border-right: 1px solid var(--bs-border-color);
}

.object-title-code {
    float: left;

    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;

    width: 62px;
    height: 60px;
    margin-top: 8px;
    margin-right: 10px;
    border-radius: 4px;

    text-align: center;
    color: #eaeaea;
    font-weight: bold;
    font-size: 19px;
    word-wrap: break-word;
}

.object-title-code.entity {
    background-color: #0B0B61;
}
.object-title-code.spectacle,
.object-label-code.spectacle {
    background-color: var(--color-lipstick);
}

.label.object-label-code.spectacle {
    display: inline-block;
    min-width: 35px;
    max-width: 50px;
}

.employee-recap-hours-filters {
    padding: 20px 10px;
    margin: 10px 0;
    background-color: rgb(246, 246, 246);
}

.employee-recap-hours-table {
    max-width: 1200px;
}
.employee-recap-hours-table tr.second-header th {
    padding-top: 2px;
    padding-bottom: 2px;
    width: 12%;
    text-align: center;
}
.employee-recap-hours-table > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}
.employee-recap-hours-table > tbody > tr:nth-of-type(even) {
    background-color: white;
}


.worked-days-statistics-table .component-line-label {
    font-style: italic;
    padding-left: 25px;
}



/** TODO: remove those following rules onces all panels have been converted to accordions **/
.panel-group .panel-heading {
    background-image: linear-gradient(to bottom, #fafafa 0, #efefef 100%);
    cursor: pointer;
    font-variant: small-caps;
}

.panel-group .panel {
    border-color: #eee;
}

.panel-group .panel-body {
    padding: 6px 15px;
}

.panel-group .panel-heading .panel-title {
    font-size: 18px;
    position: relative;
}

.panel-group .panel-heading .panel-title a {
    display: block;
    padding-left: 10px;
    height: 20px;
}

.panel-group .panel-heading .panel-title a:after {
    font-family: 'FontAwesome';
    content: "\f078";
    position: absolute;
    left: -8px;
    top: 0px;
    color: #666;
    font-size: 12px;
    width: 14px;
    text-align: center;
    margin-top: 2px;
}
.panel-group .panel-heading .panel-title .collapsed:after {
    /* symbol for "collapsed" panels */
    margin-top: 4px;
    content: "\f054";
}


/*-------------------------------------------*/
/*                                           */
/*              Merge entities               */
/*                                           */
/*-------------------------------------------*/

.deduplicate-card {
    margin:5px 5px 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fcfcfc;
    position: relative;
    min-height: 140px;
    min-width: 400px;
}

.deduplicate-card .category-tags {
    margin-top: -8px;
}

.deduplicate-card.selected { background-color: #E3FCE6; }
.deduplicate-card:hover    { cursor: pointer; }

.deduplicate-card h4 {
    border-bottom: 1px solid #eee;
    font-size: 1.25em;
}

ul.deduplicate-entity-infos {
    clear:right;
    margin-left: -30px;
}

.deduplicate-selection-zone {
    background-color: #F9E6D5;
    position: absolute;
    left:0;
    right:0;
    bottom: 0;
}
.deduplicate-card.selected .deduplicate-selection-zone { background-color: #A0EBA9; }

.deduplicate-selection-zone .selection-label {
    text-align: center;
    font-weight: bold;
    padding: 3px 0;
}

/* Entity name color */
.deduplicate-card h4 a { color: #6F8699; }
.deduplicate-card.selected h4 a { color: #337BB7; }

.deduplicate-card .if-selected   { display: none;  }
.deduplicate-card .if-unselected { display: block; }
.deduplicate-card.selected .if-selected   { display: block; }
.deduplicate-card.selected .if-unselected { display: none;  }

/*-------------------------------------------*/
/*                                           */
/*               Global search               */
/*                                           */
/*-------------------------------------------*/

/********* Menu form ************/

.menu-search-input {
    width: 180px;
    height: 34px;

    background: none;
    border: 1px solid #777;
    border-radius: 8px;
    padding-left: 10px;
    color: #fcfcfc;
    transition: width 0.5s;
    -webkit-transition: width 0.5s;
    z-index: 2000;
    padding-left: 32px;
    outline: none;
}

@media (max-width: 1250px) {
    .menu-search-input {
        width: 220px;
    }
    #header-search {
        text-align: left;
    }
    .menu-search-input {
        margin-left: 5px;
        color: #fff;
        padding-left: 28px;
        width: 180px;
    }
    .search-inline-results {
        margin-top: -2px;
        margin-left: 3px;
    }
}

.header-search {
    position: relative;
    top: 8px; /* (48 - 34) / 2*/
}
#user-tools .header-search { padding-left: 0; }

/* Make the container handle the background so the icon looks white */
.header-search > div {
    border-radius: 5px;
}
.header-search .fa-search {
    cursor: text;
    position: absolute;
    top: 4px;
    left: 0px;
    z-index: 900;
    font-size: 18px;
    color: #777;
    width: 36px;
    height: 36px;
    text-align: center;
    margin-top: 2px;
}

.menu-search-input {
    background-color: rgba(255, 255, 255, 0.85);
}

.menu-search-input::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #777;
}
.menu-search-input::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    #777;
   opacity:  1;
}
.menu-search-input:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #777;
}
.menu-search-input::-ms-input-placeholder { /* Microsoft Edge */
   color: #777;
}

.menu-search-input:hover {
    background-color: rgba(255, 255, 255, 1);
}

.menu-search-input:focus {
    width: 250px;
    font-size: inherit;
    background-color: #fff;
    color: #333;
}

.menu-search-input:focus + .fa { color: #666; z-index:9999 }


/********* Inline result list ************/
.search-inline-results {
    z-index: 9999;
    position: absolute;
    top: 36px;
    left: 0;
    width: 380px;
    overflow: hidden;
    right: 15px;
    background-color: #fff;
    color: #333;

    border: 1px solid #ccc;
    border-radius: 0 0 8px 8px;
    padding: 0;
}

.search-inline-results section > h4 {
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
    color: #fff;
}
#user-tools .search-inline-results section > h4 a {
    display: block;
    font-size: var(--bs-body-font-size);
    padding: 8px 6px 10px;
    margin: 0;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.5rem;
    color: #333;
    text-decoration: none;
}

#user-tools .search-inline-results section > h4:hover {
    background-color: #f3f3f3;
}

#user-tools .search-inline-results section > h4 a:hover {
    color: #661c3f;
}
#user-tools .search-inline-results section > h4 a:hover span {
    color: #b03798;
}

.search-inline-results section > h4 span {
    color: #888;
}

.search-inline-results section > ul {
    margin: 0;
}

.search-inline-results section li a {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 0 0 10px;
    line-height: 26px;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 0;
}

.search-inline-results section li .additionnal-info {
    font-size: 0.8rem;
    color: #666;
    padding-right: 16px; /* let space for the right arrow at the end of line */
    margin-top: -14px; /* stick the element to the text above */
}
.search-inline-results section li .additionnal-info .badge {
    margin-left: 4px;
}

.search-inline-results section ul { padding:0 }
.search-inline-results section li {
    margin: 0;
    min-height: 32px;
    position: relative;
    border: 1px solid transparent;
}

.search-inline-results section li em {
    font-style: normal;
    font-weight: bold;
}

.search-inline-results section li:hover,
.search-inline-results section li:focus,
.search-inline-results section li.hover {
    left: -1px;
    right: 0;
    padding-left: 1px;
    border-left: 1px solid var(--color-lipstick);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.search-inline-results section li:hover:after,
.search-inline-results section li:focus:after,
.search-inline-results section li.hover:after {
    font-family: 'FontAwesome';
    content: '\f105';
    position: absolute;
    right: 5px;
    top: 1px;
    font-size: 26px;
}


/********* Result list page ************/
div#content.global-search {
    margin-top: 10px;
}

.global-search .main-form {
    margin: auto;
    width: 50%;
    min-width: 800px;

    background-color: #fafafa;
    padding: 20px 50px 0;
    border-radius: 10px;

    margin-bottom: 30px;
}

@media (max-width: 1000px) {
    .global-search .main-form {
        width: 100%;
        padding: 20px 1vw;
        min-width: 0;
    }
}


.global-search .main-form .search-input {
    position: relative;
}

.global-search .main-form input[type=text] {
    height: 38px;
    padding-left: 25px;
}

.global-search .main-form .fa {
    position: absolute;
    top: 10px;
    left: 8px;
}

.global-search .empty-results {
    text-align: center;
    font-size: 1.3em;
    margin-top: 20vh;
    color: #666;
}

.search-indices {
    margin-top: 8px;
}

.search-indices .search-filter {
    display: inline-block;
    border-bottom-style: solid;
    border-bottom-width: 4px;
    border-bottom-color: #f1f1f1;
}

.search-indices .search-filter.disabled {
    pointer-events: none;
}

.search-indices .search-filter a {
    display: block;
    padding: 8px 20px;
}

.search-indices .search-filter.disabled a {
    color: #aaa;
}

.search-indices .search-filter:hover {
    background-color: #f3f3f3;
    border-left-color: #f3f3f3;
}

.search-indices .search-filter a {
    color: #000000;
    cursor: pointer;
}

.search-indices .search-filter.selected {
    border-bottom-style: solid;
    border-bottom-width: 4px;
    border-bottom-color: var(--color-lipstick);
}

.search-results {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.search-results .result-item {
    position: relative;
    width: 20%;
    min-width: 400px;
    border: 1px solid #ededed;
    margin: 18px 1vw;
    background-color: #fcfcfc;
    height: 130px;
    overflow: hidden;
    box-shadow: 0px 2px 5px 0px rgba(60,60,60,0.2);
}

@media (max-width: 600px) {
    .search-results .result-item {
        width: 100%;
        min-width: 0;
        margin: 8px 0;
    }
}

.search-results .result-item:hover {
    background-color: #f3f3f3;
    border: 1px solid #dfdfdf;
    box-shadow: 0px 4px 6px 3px rgba(65, 64, 64, 0.2);
}

.search-results .result-item a {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    color: #333;
    text-decoration: none;

    padding: 10px;
}

.search-results .result-item .fa {
    float: left;
    color: #bbb;
    font-size: 66px;
    margin: 10px 20px 0 0;
}

/* special cases */
.search-results .result-item .entity-type {
    margin: -10px 0 5px 0;
    font-size: 0.95em;
    opacity: 0.9;
}

/*-------------------------------------------*/
/*                                           */
/*               Filter bar                  */
/*         (search + list manager)           */
/*                                           */
/*-------------------------------------------*/
#available-lists-menu {
    margin-left: 10px;
    display: inline-block;
}

#available-lists + .select2-container {
    margin-top: -2px;
}

#available-lists + .select2-container .select2-selection {
    height: 34px;
}

#available-lists + .select2-container .select2-selection__rendered {
    line-height: 32px;
}

#available-lists + .select2-container .select2-selection__arrow {
    height: 28px;
}

.larger-select2-dropdown {
    min-width: 450px;
}

.favorite-star-hover {
    margin-right: 5px;
    transition: 0.3s transform;
}

.favorite-star-hover:hover {
    transform: scale(1.2);
}

.list-filters-actions {
    display: inline-block;
}

.list-filters-actions .label {
    margin-right: 10px;
    font-size: 90%;
    padding: 4px;
}

.result-count {
    margin-right: 5px;
    line-height: 36px;
}


/*-------------------------------------------*/
/*                                           */
/*         object-form styles                */
/*                                           */
/*-------------------------------------------*/

form.object-form label {
    display: inline-block;
}

form.object-form fieldset textarea.form-control {
    height: 30px;
}

div.clear {
    clear: both;
}

.select2-container.form-control {
    margin-left: 0px;
    padding:6px 0px; /* no padding left/right otherwise the select2 is not aligned */
}

/* select2 set a black border in this case, which is ugly in our design... Force it to the original color */
#container .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #aaa;
}

div#confirmation-box {
    margin-left: 15px;
    margin-right: 15px;
}

div#confirmation-box p.footer {
    margin-top: 10px;
}

div#confirmation-box p.footer .btn {
    width: 120px;
}

div#confirmation-box p.footer a.btn-danger {
    color: white;
}


/*-------------------------------------------*/
/*                                           */
/*         object-view styles                */
/*                                           */
/*-------------------------------------------*/
div.object-view {
    padding: 0px;
}

div.object-view h2 {
    color: #454545;
    font-variant: small-caps;
    margin-bottom: 20px;
}

div.object-view fieldset {
    border-style: solid;
    border-width: 1px;
    border-color: #cccccc;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fdfdfd;
}

/*-------------------------------------------*/
/*                                           */
/*    Related objects on structure pages     */
/*                                           */
/*-------------------------------------------*/
.related-card {
    max-width: 520px;
    margin: 10px;
    margin-left: 0;
    overflow:hidden;

    border: 1px solid #c9c9c9;
    border-radius: 5px;
}

.related-card.inline-editable {
    margin: 8px 0;
    padding: 2px 10px;
}

.related-card.inline-editable:hover {
    background: var(--color-salmon);
}

.related-card.orderable {
    padding: 7px 14px 7px 24px;
}


/*-------------------------------------------*/
/*                                           */
/*               Miscellaneous               */
/*                                           */
/*-------------------------------------------*/
.star i {
    cursor: pointer;
}

.star i.fa-star-empty {
    color: gray;
}

.star i.fa-star {
    color: #E47000;
}

#inline-contact-infos .contact-info {
    line-height: 1.5;
}

.contact-infos-list > div {
    display: inline-block;
    width: 50%;
}

.contact-infos-list > a {
    margin-right: 10px;
}

.contact-infos-list a,
#inline-contact-infos .contact-info a,
div.contact-card .contact-info a {
    color: #555;
}
.contact-infos-list a .fa,
#inline-contact-infos .contact-info a .fa,
div.contact-card a .fa {
    color: #555;
}

.reorder-icon {
    width: 20px;
}

.reorder-icon .fa-bars {
    font-size: 1em;
    color: #888;
    cursor: ns-resize;
}

.related-card.contact-card {
    padding: 7px 14px 7px 24px;
}

div.contact-card .contact-name strong {
    font-size: 1.1em;
    line-height: 1.5;
}

.contact-card .fa-bars {
    visibility: hidden;
    margin-top: 4px;
    margin-left: -25px;
    padding-left: 9px;
    padding-bottom: 20px;
    float: left;
    color: #444;
    cursor: move;
}
.contact-card:hover .fa-bars { visibility: visible; }
.contact-card .fa-bars:hover { color: #333; }

.contact-card p.contact-name {
    margin-bottom: 0.3em;
}
.contact-card .contact-name a {
    padding: 5px 10px 5px 0;
    margin: -5px -5px -5px 0;
}

.contact-card p.contact-infos {
    margin-bottom: 0;
}

.empty-list-placeholder {
    text-align: center;
    color: #666;
    font-size: 1.3em;
    padding: 50px 0;
}

.related-card.venue-card > .inline-editable {
    margin: 0;
}

.related-card.venue-card h5 {
    margin-bottom: 5px;
    font-size: 1.15em;
}

.related-card.venue-card p {
    margin-bottom: 4px;
}

.related-card.venue-card .files {
    border-top: 1px solid #ddd;
    padding: 4px 10px;
}

.related-card.venue-card .files p {
    text-overflow: hidden;
    white-space: nowrap;
    width: 49%;
    margin: 2px 0.5% 2px 0;
    display: inline-block;
}
.related-card.venue-card .files p a {
    font-size: 0.9em;
}

.related-card.venue-card .files p i.fa-file-text-o {
    margin-right: 5px;
}

.related-card.venue-card .files p i.fa-trash {
    margin: 0 10px;
    cursor: pointer;
}

.related-card.venue-card .files p.add-link a {
    text-decoration: none;
    color: #444;
}

.related-card.venue-card .files p.add-link a:hover {
    cursor: pointer;
    color: #222;
}

/*-------------------------------------------*/
/*                                           */
/*            Directory views                */
/*                                           */
/*-------------------------------------------*/

.object-header-block .metainfo-block > span {
    display: block;
}

.table.directory-table {
    margin-bottom: 5px;
    table-layout:fixed;
}

.table.directory-table td, .table.directory-table th {
    border: none;
    border-bottom: 1px solid #e0e0e0;
}

.table.directory-table tr:last-child td {
    border-bottom: none;
}

.table.directory-table .inline-editable .fa {
    color: #444;
}

.table.directory-table .web-info-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#contact-structures .contact-infos {
    line-height: 1.6;
}

/* Contact view list */
.dropdown-toggle.emailing-dropdown::after {
    position: absolute;
    bottom: 8px;
    left: 27px;
}
.contact-infos-inline-form .emailing.dropdown-menu > li {
    padding: 2px 10px;
}

.contact-infos .contact-info {
    display: block;
}

.contact-info .no-emailing-icon {
    position: relative;
}
.contact-info .no-emailing-icon .fa-times {
    position: absolute;
    left: 8px;
    bottom: -3px;
    color: #CE0000 !important;
}

#contact-structures .structure-form {
    margin: 10px 0;
}

#contact-structures .structure-form .add-links-line {
    margin: 10px 4px 8px;
}

.contact-structure-details .contact-info {
    margin-left: 10px;
}

.web-addresses-form .web-line {
    display: flex;
    margin-bottom: 4px;
}
.web-addresses-form .web-line .input-group {
    flex-grow: 1;
}
.web-addresses-form .web-line .trash-container {
    flex-grow: 0;
    align-self: center;
    text-align: center;
    width: 32px;
}
/*-------------------------------------------*/
/*                                           */
/*             Calendar view                 */
/*                                           */
/*-------------------------------------------*/
#month-navigator span.month-name {
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    line-height:30px;
    vertical-align:middle;
    text-align: center;
    display: inline-block;
    margin: 0 1vw;
}

#month-navigator.weekly-planning .month-name {
    min-width: 270px;
}

.mr-1vw25 {
    margin-right: 1.25vw;
}

#month-navigator .change-period-link {
    margin: 0 5px;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 800px) {
    #cal-grid {
        clear:both;
    }

    #cal-grid .month-row {
        width: auto;
    }

    #month-navigator {
        width: 100%;
    }

    #month-navigator #current_month_year {
        display: inline-block;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    #calendar-view {
        flex-direction: column;
    }

    div#leftbar {
        width: auto;
        max-width: none;
    }

    div#infos {
        margin-left: 0;
        margin-right: 5px;
    }

    div#infos #gridcontainer {
        margin-right: 0;
    }
}

/*-------------------------------------------*/
/*                                           */
/*               Entity view                 */
/*                                           */
/*-------------------------------------------*/

div#content.entity-view {
    margin: 0px;
}

.nearby-points h4 {
    font-size: 1.3em;
    padding-bottom: 2px;
    border-bottom: 1px solid #ddd;
}

.nearby-points .results {
    margin-top:10px;
    margin-left:-25px;
}

.nearby-points .results .letter {
    display: inline-block;
    text-align: center;
    width: 1.75rem;
    margin-right: 3px;
}

.nearby-points .results .distance {
    float:right;
    color: #666;
}

.nearby-points .results .view-more {
    margin-top: 10px;
}

.not-indexed-warning { display: none; }
.not-indexed-warning .alert {
    padding: 10px 8px 2px 8px;
    font-size: 0.9em;
}
.not-indexed-warning .more-information { border-bottom: 1px dotted #ccc; }
.not-indexed-warning .more-information:hover { cursor: help; }

.tooltip.indexation-warning .tooltip-inner {
    max-width: 350px;
    width: 350px;
    padding: 10px;
    text-align: left;
}

.grayed-out-bg {
    background: repeating-linear-gradient(45deg,
      var(--bs-body-bg),
      var(--bs-body-bg) 10px,
      var(--bs-tertiary-bg) 10px,
      var(--bs-tertiary-bg) 20px
  )
}

.grayed-out-bg table td,
.table .grayed-out-bg > * {
    background-color: transparent;
}

/*-------------------------------------------*/
/*                                           */
/*        Engagement inline edition          */
/*                                           */
/*-------------------------------------------*/
.table tbody + tbody {
    border-top-width: 1px;
}

/*** Engagement table ***/
.table .section-title {
    font-weight: bold;
    font-size: 1.125rem;
    background-color: #f5f5f5;
}
.table .section-title > td {
    background-color: #f5f5f5;
}
.table .section-content {
    background-color: #fff;
    /** Enforce text breaking when long URL are pasted in those sections */
    overflow-wrap: break-word;
    word-break: break-word;
}

.inline-html ul li {
    list-style-type: circle;
}

.view_object td.inline-simple, .view_object .inline-simple {
    white-space: pre-line; /* Allow newline */
}

.inline-html div.editzone, .inline-simple div.editzone {
    min-height: 36px; /* size of a blank line */
}

.engagement-informations-form label {
    color: #666;
    font-size: 0.95em;
    margin-bottom: -3px;
}

.entity-address-container {
    margin: -8px 8px 3px -8px;
    padding: 8px;
    border: 1px solid #DADADA;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}
.entity-address-container.external-readonly {
    background-color: #ececec;
}
.entity-address-action-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#inline-engagement-show-periods {
    font-variant: normal;
    font-weight: normal;
}
#inline-engagement-show-periods { font-size: 0.8em; color: #333; }
#inline-engagement-show-periods a {
    font-variant: small-caps;
    color: inherit;
    margin-left: 10px;
    padding: 5px 0;
}
#inline-engagement-show-periods a:hover {
    text-decoration: none;
    cursor: pointer;
}
#inline-engagement-show-periods .active {
    font-weight: bold;
}

#inline-periods .period-form { margin: 10px 0; }
#inline-periods .period-line td { border: none; }
#inline-periods tr td:first-child { white-space: nowrap; }
#inline-program .program-outer-line { padding: 1px 0; }
#inline-program .program-outer-line .reorder-icon {
    visibility: hidden;
}

#inline-program .program-outer-line:hover .reorder-icon {
    visibility: visible;
}

#inline-expenses > div,  #inline-artists > div,
#inline-organizer > div, #inline-recording > div {
    margin: -8px;
    padding: 8px;
    min-height: 36px;
}

div.view_object #inline-artists tr td { border-bottom: none; }

/** Set a clear line for separating fees detail and global line **/
div.view_object #inline-fees td,
div.view_object #inline-commissions td { border: none; }
div.view_object #inline-fees tfoot tr td { border-top: 1px solid #aaa; }


tr.expense-line .reorder-icon { visibility: hidden; }
tr.expense-line:hover .reorder-icon { visibility: visible; }

/*-------------------------------------------*/
/*                                           */
/*             Login form                    */
/*                                           */
/*-------------------------------------------*/

form#login-form div#signup-row {
    padding-top: 30px;
    padding-left: 150px;
}


/*-------------------------------------------*/
/*                                           */
/*             Views                    */
/*                                           */
/*-------------------------------------------*/
div.form-view-footer {
    padding-top: 25px;
    color: #999999;
}

div.form-view-footer ul li {
    list-style-type: circle;
    margin-left: 15px;
    padding-top: 2px;
    padding-bottom: 2px;
}

/*-------------------------------------------*/
/*                                           */
/*    Views                                  */
/*                                           */
/*-------------------------------------------*/
/* Deprecated: stop using it and favor role="button" in your components */
.pointer {
    cursor: pointer;
}

a.pointer .fa-remove, a.pointer .fa-arrows-v {
    color: #999;
}
a.pointer:hover .fa-remove, a.pointer:hover .fa-arrows-v {
    color: #333;
}

a.action-link {
    cursor: pointer;
    color: var(--color-lipstick-emphase);
}

a.action-link.disabled {
    cursor: not-allowed;
    color:  var(--bs-secondary-color);
    text-decoration: none;
}

.project-survey-state.disabled {
    opacity: 0.75;
}
.project-survey-state.disabled a.action-link {
    pointer-events: none;
    background-color: #f9f9f9;
}

.project-survey-state.disabled a.action-link:hover {
    cursor: not-allowed;
}

.icon-action {
    cursor: pointer;
    display: inline-block;
    width:22px;
    height:24px;
    line-height: 24px;
    margin:0;
    text-align: center;
}


h3 a.action-link {
    line-height: 24px;
}

a.action-link-with-right-margin {
    margin-right: 20px;
}

div.action-bar {
    padding-top: 12px;
    padding-bottom: 18px;
}

div.invite-artist {
    display: inline-block;
    margin-left: 5px;
}
div.invite-artist h4 {
    margin-top: 4px;
}

.information-block {
    margin-bottom: 25px;
}

.production-export-title {
    margin-top: 8px;
}

.production-export-title,
.information-block > h4 {
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 2px;
}

.information-block h4.modal-title {
    border:none;
}

.information-block h4 .action-link {
    margin-top:5px;
}

.information-block h4 .add-link {
    font-size: 0.9rem;
    margin-left: 10px;
}
.information-block h4 .add-link::before {
    font-family: 'FontAwesome';
    content: '\f067  ';
    margin:0;
}

.information-block h5 .action-link {
    margin-top:5px;
}

.information-block h5 .add-link {
    font-size: 0.8rem;
    margin-left: 10px;
}
.information-block h5 .add-link::before {
    font-family: 'FontAwesome';
    content: '\f067  ';
    margin:0;
}

/*-------------------------------------------*/
/*                                           */
/*   Notes                                   */
/*                                           */
/*-------------------------------------------*/
ul.notes {
    margin-left: 0px;
    padding-left: 0px;
}

ul.notes li {
    cursor: pointer;
    padding: 6px 4px 6px 0;
    border-bottom: 1px dotted var(--bs-border-color);
}
ul.notes li:last-child {
    border-bottom: none
}

ul.notes li .note-content {
    white-space: pre-wrap;
    min-height: 30px;
    margin-bottom: 0px;
}

ul.notes li .note-structure-person {
    color: #777;
    margin: 0;
    font-size: 0.95em;
    padding-bottom: 5px;
}

ul.notes li .note-structure-person a {
    color: #777;
}

ul.notes li textarea {
    min-height: 100px;
}

ul.notes div.note-metainfo {
    float:right;
    text-align:right;
    font-size: 0.85em;
    padding: 0 0 8px 15px;
}

ul.notes li span.created_by {
    color: #777;
}

ul.notes li span.creation_date {
    color: #999999;
}

ul.notes span.creation_infos {
    display: inline-block;
    width: 250px;
}

ul.notes span.edit_buttons {
    float: right;
}

ul.notes li:hover {
    cursor: pointer;
    background-color: var(--color-salmon);
}

form#add-note {
    padding: 10px;
    border-radius: 5px;
    background-color: var(--bs-secondary-bg);
    margin-bottom: 15px;
}

#add-note p[contenteditable].form-control {
    margin-bottom: 3px;
    height: auto;
    min-height: 80px;
    max-height: 280px;
    overflow: auto;
    /* Prevent Webkit browsers to append <div> as breaklines: https://stackoverflow.com/a/24689420 */
    display: inline-block;
}

/*-------------------------------------------*/
/*                                           */
/*               Planning                    */
/*                                           */
/*-------------------------------------------*/
.dropdown-menu .icon {
    display: inline-block;
    width: 20px;
    text-align: center;
}

.project-engagements-list .progress {
    height: 26px;
    margin-bottom: 8px;
}
.project-engagements-list .progress .progress-bar {
    line-height: 26px;
}

.collapse-all-action {
    background-color: #eee;
    color: #555;
    border: 1px solid #ccc;
    line-height: 26px;
    font-size: 1.1em;
    text-align: center;
    display: inline-block;
    border-radius: 2px;
    width: 34px;
    height: 34px;
}

.category-dropdown-table .category-header h4,
.category-dropdown-table .category-header .mass-actions {
    display: inline-block;
    margin: 0;
}

.category-dropdown-table tr.category-header td {
    border-color: transparent;
    vertical-align: bottom;
}
.category-dropdown-table .category-header h4 {
    padding-top: 25px;
    width: 100%;
    max-width: 700px;
}
.category-dropdown-table .category-header h4 .fa {
    width: 24px;
    text-align: left;
}
.category-dropdown-table .category-header h4 .badge {
    margin-left: 7px;
}

.category-dropdown-table .table tr.no-engagement td {
    padding: 5px;
}

.default-engagements-table tr.employee-first-line:hover > td[rowspan] {
    background-color: white;
}

.default-engagements-table tr.employee-first-line > td {
    border-top: 2px solid #ddd;
}

.modal.employee-engagement-modal .payroll-manager-container hr {
    height: 10px;
    margin: 15px -15px 10px -15px;
}

.modal.employee-engagement-modal .projects-summary {
    padding: 10px 5px;
    background-color: #F0F0F0;
    display: flex;
    justify-content: space-between;
    margin: 0 -15px;
}
.modal.employee-engagement-modal .projects-summary .project-selector {
    max-width: 33%;
    flex: 1;
    margin-left: 15px;
}
.modal.employee-engagement-modal .projects-summary .totals {
    flex: 1;
    color: #666;
    text-align: end;
    margin-right: 30px;
}

.table tr.pay-lines-month-line th {
    background: #f0f0f0;
    text-transform: capitalize;
}

.inline-editable:hover tr.pay-lines-month-line th {
    background: none;
}

/*-------------------------------------------*/
/*                                           */
/*            Stored documents               */
/*                                           */
/*-------------------------------------------*/
.table.stored-documents td {
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid #eee;
}

.table.stored-documents .text-muted { font-size: 1em; }

.stored-documents .actions {
    text-align: center;
    width: 150px;
}
.stored-documents .actions a {
    padding: 4px 8px;
    margin-right: 5px;
}

.stored-documents .actions a:hover {
    text-decoration: none;
    color: #204F79;
}



/*-------------------------------------------*/
/*                                           */
/*               Production                  */
/*                                           */
/*-------------------------------------------*/
.project-add-modal .place_unknown_checkbox {
    margin-top: 10px;
}
.project-add-modal .place_unknown_checkbox label {
    margin-left: 3px;
    color: #999;
}
.project-add-modal .place_unknown_checkbox:hover label {
    color: #666;
}

.project-add-panel {
    width: var(--panel-width);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1040;
    margin-left: 12px;
    border-left: 1px solid #f0f0f0;
    background-color: #fcfcfc;
    overflow-x: hidden;
    box-shadow: 4px 1px 8px 3px rgba(0,0,0,0.38);
}

.project-add-panel .toggle-btn, .project-add-modal .toggle-btn {
    border: solid 1px var(--panel-button-color);
    color: var(--panel-button-color);
    border-radius: 5px;
    margin-left: 15px;
    padding: 5px;
    margin-bottom: 10px;
    background-color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.project-add-panel .toggle-btn.selected, .project-add-modal .toggle-btn.selected {
    background-color: var(--panel-button-color);
    background-color: var(--panel-button-color);
    color: #fff;
}

.project-add-panel button.btn-close {
    margin-right: 15px;
}

.project-add-panel .buttons button, .project-add-panel .buttons button {
    margin-left: 5px;
}

.panel-content {
    margin: 2vh 12px;
}

.panel-content h4 {
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.panel-content .event-type-selector {
    margin-top: 5px;
    margin-bottom: 5px;
}

.project-topbar {
    padding: 10px;
    display: flex;
}

.project-topbar .inline-editable {
    margin: -10px;
    padding: 10px;
}

.project-topbar .inline-editable a {
    color: #666;
    text-decoration: none;
}
.project-topbar .inline-editable a:active,
.project-topbar .inline-editable a:hover {
    text-decoration: underline;
}

.project-topbar > .inline-editable,
#booker-spectacle-topbar .project-topbar > div {
    flex: 1;
}

.project-topbar .project-general-infos {
    flex-grow: 0.7;
    margin-right: 15px;
}
.project-topbar .project-general-infos .project-cancelled h2 {
    text-decoration: line-through;
}
/* Make the hover take the full height */
.project-topbar .project-internal-infos {
    display: flex;
    flex: 1;
    min-width: 450px;
}
.project-topbar .project-internal-infos > .inline-editable {
    flex: 1;
}

.project-topbar .project-dates {
    font-size: 1.2em;
}
.project-topbar {
    background-color: #F8F8F8;
    border: 1px solid #ececec;
}

@media (max-width: 900px) {
    .project-topbar {
        flex-direction: column;
    }
}

.project-general-view {
    background-color: #fff;
}

.project-general-view #signRequestModal .helptext {
    display: block;
    color: #777;
    font-size: 0.9em;
    margin-top: -5px;
}

.project-general-view #signRequestModal h5 {
    margin: 0 0 8px;
    font-size: 1.08em;
}

.project-general-view #signRequestModal h5 i.fa {
    margin-right: 4px;
    color: #4f4f4f;
}


.project-general-view #signRequestModal fieldset + fieldset {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 10px;
}


/******* Booker specifics ******/
.project-topbar .project-dates-venue {
    font-size: 1.2em;
}

.project-topbar .project-dates-venue > .venue,
.project-topbar .project-dates-venue > .dates {
    display: inline-block;
    border-right: 1px #999 solid;
    padding-right: 15px;
    margin-right: 15px;
}

.project-topbar p {
    margin: 5px 0;
    line-height: 1.5;
}

.project-topbar .form p {
    margin: 7px 0;
}

.project-topbar .project-handler {
    font-size: 0.9em;
    color: #666;
}

#inline-project-performances .performance-line > span:first-child {
    display: inline-block;
    width: 16em;
}
#inline-project-performances .performance-line > a.pims-link {
    margin-right: 10px;
}

.stack-container .table {
    margin: 10px 0;
}

.stack-container .table .cell{
    border: 1px solid #ddd;
}

.stack-container h5 {
    font-weight: bold;
    font-size: 16px;
}

/******* ******/
.project-topbar h2 { margin: 5px 0; }
.project-topbar div.object-tags { margin: 0;}

.panel-tabs, .project-tabs {
    background-color: var(--bs-secondary-bg);
    margin: 0;
    border-bottom: 1px solid var(--bs-border-color);
}
.project-tabs {
    margin-bottom: 10px;
}

.panel-tabs {
    margin: -2px 0 15px 0;
}

.panel-tabs li:first-child, .project-tabs li.navigation-item:first-child {
    margin-left: -30px;
}
.panel-tabs li, .project-tabs li.navigation-item {
    display: inline-block;
    font-size: 1em;
    line-height: 1.75em;
    margin-left: -5px;
    border-right: 1px solid #ddd;
    user-select: none;
}

.project-tabs li.documents {
    margin-right: 0;
    border-left: 1px solid #ddd;
    border-right: none;
}

.panel-tabs li a, .project-tabs li.navigation-item a {
    display: block;
    padding: 5px 18px;
    width: 100%;
}
.panel-tabs li a:not(.action-link),
.project-tabs li.navigation-item a:not(.action-link) {
    color: var(--bs-body-color);
}


.panel-tabs li:hover, .project-tabs li.navigation-item:hover {
    cursor: pointer;
    background-color: #fbfbfb;
}
.project-tabs li:hover a.navigation-item:not(.action-link) {
    text-decoration: none;
}

.panel-tabs li.selected, .project-tabs li.selected {
    /** Move the link a little bit to "hide" the ul border to get the impression of a tab selected **/
    position: relative;
    bottom: -1px;
    background-color: var(--bs-body-bg);
    font-weight: bold;
    border: 1px solid #ccc;
    border-bottom: 1px solid white;
}
.panel-tabs li.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.panel-tabs li.disabled:hover a {
    text-decoration: none;
}

.project-tabs li.selected a {
    color: var(--bs-body-color);
}

.project-tabs li.selected a:after {
    float:right;
    color: #666;
    content: "";
}

.project-tabs .document-toolbox-link {
    display: none;
}

/**** Production documents dropdown ****/
.project-documents-toolbox {
    display: none;
    position: absolute;
    top: -1px;
    right: 0;
    width: 320px;
    background-color: #fff;
    z-index: 990;

    line-height: 2em;
    box-shadow: 2px 2px 5px -2px #bbb,
    -2px 2px 5px -2px #bbb;
    border: 1px solid #ddd;
}

.project-documents-toolbox.open {
    display: block;
}

.project-documents-toolbox .icon {
    width: 200px;
}

.project-documents-toolbox .documents-links-group {
    padding: 5px 15px;
}

.project-documents-toolbox .documents-links-group > a,
.project-documents-toolbox .documents-links-group div
{
    clear: both;
    height: 32px;
    line-height: 32px;
    margin-top: 10px;
    display: block;
    width: 100%;
}


.project-documents-toolbox .documents-links-group img {
    margin-right: 8px;
    float: left;
    width: 26px;
}


.view_object p.event-metainfos {
    font-size: 1.25em;
}

.color-preview {
    display:inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/***************************************/
/*                                     */
/*           Casting manager           */
/*                                     */
/***************************************/
.distrib-mode-switcher {
    margin: 5px 0;
}

.distrib-mode-switcher div {
    text-align: center;
    display: inline-block;
    border: 1px solid #ddd;
    padding: 6px 12px;
    width: 120px;
}

.distrib-mode-switcher div:hover {
    cursor: pointer;
    border-color: #c9c9c9;
}

.distrib-mode-switcher div.selected {
    background-color: #cfcfcf;
}


.casting-stats-graph {
    margin: 20px 10px 0;
}

.casting-stats-graph canvas {
    float: left;
    height: 90px;
}

.casting-stats-graph ul {
    display: inline-block;
    line-height: 80px; /* make it vertically aligned with the canvas */
    padding-left: 10px;
}

.casting-stats-graph li {
    display: inline-block;
    margin-right: 40px;
}

.casting-table-wrapper {
    width: 100%;
    max-height: 95vh;
    overflow: auto;
}

.table.casting-table {
    margin-top: 12px;
}

.table.casting-table td {
    padding: 4px;
    line-height: 26px;
}

.table.casting-table thead th {
    border-bottom: none;
    border-right: 1px solid #ececec;
    background-color: white;
}

.table.casting-table thead th:last-child {
    border-right: none;
}

.casting-table .cast-group > tr:first-child {
    font-size: 1.1em;
    background-color: #dfdfdf;
    font-variant: small-caps;
}

.casting-table .cast-group + .cast-group {
    border-top: 2px solid #c9c9c9;
    border-left: none;
}

.casting-table .cast-group > tr:first-child form {
    font-size: 1em;
    font-variant: normal;
}

.casting-table .cast-group > tr:first-child .fa {
    cursor: pointer;
}

/** Edit / delete buttons **/
.casting-table .cast-group .group-action-icons {
    display: none;
    margin-left: 2vw;
}
.casting-table .cast-group .group-action-icons a {
    color: inherit;
    padding: 4px 8px;
}
.casting-table .cast-group .group-action-icons a:hover {
    cursor: pointer;
}
.casting-table .cast-group:hover .group-action-icons {
    display: inline-block;
}

/** Order buttons **/
.casting-table .order-icons {
    position: relative;
    width: 20px;
}
.casting-table .order-icons a {
    color: black;
    font-size: 18px;
}
.casting-table .order-icons a:hover {
    color: #2222aa;
}

.casting-table .order-icons .move-up:only-child,
.casting-table .order-icons .move-down:only-child {
    top: 10px;
}
.casting-table .order-icons .move-up {
    position: absolute;
    top: 0;
}
.casting-table .order-icons .move-down {
    position: absolute;
    bottom: 2px;
}

/* Set visibility of order icons according to what is being hovered */
.casting-table .cast-group .group-header .order-icons {
    float: right;
    height: 40px;
    line-height: 20px;
    margin: -9px 0;
    visibility: hidden;
}
.casting-table .cast-group:hover .group-header .order-icons {
    visibility: visible;
}

.casting-table .cast-role-name .order-icons {
    float: right;
    height: 40px;
    line-height: 20px;
    margin: -8px;
    visibility: hidden;
}
.casting-table .cast-role-name:hover .order-icons {
    visibility: visible;
}

.casting-table .cast-group .entity-cell .order-icons {
    margin: -5px;
    float: right;
    height: 34px;
    line-height: 16px;
    visibility: hidden;
}
.casting-table .cast-group .entity-cell:hover .order-icons {
    visibility: visible;
}


/******/
.table.casting-table .role-line > th,
.table.casting-table .role-line > td {
    border-top-width: 2px;
}

.casting-table .cast-role-name { position: relative; }

.table.casting-table .add-role-participant-line td {
    line-height: 18px;
}

.casting-table .add-role-participant-line a {
    color: #777;
    font-weight: normal;
}

.casting-table td.empty-casting {
    padding: 40px 0;
}

.casting-table td.unnamed-days-cells {
    background: #f9f9f9;
}

.casting-table .empty-casting > .fa-users {
    font-size: 1.75em;
    margin-bottom: 20px;
}

.casting-table .empty-casting > .description-text {
    text-align: left;
    margin: 0 auto 30px;
    width: 650px;
}

.casting-table .empty-casting > .description-text ol {
    margin-top: 15px;
}
.casting-table .empty-casting > .description-text li {
    line-height: 1.75;
}

.add-castrole-group {
    margin-left: 3px;
}


.casting-table .project-divider {
    width: 8px;
}

.spectacle-bulk-participations-update td.checkbox-cell {
    text-align: center;
    vertical-align: middle;
}

.spectacle-bulk-participations-update td.checkbox-cell:hover,
.spectacle-bulk-participations-update thead th:hover {
    cursor: pointer;
    background-color: #ffeade;
}



/***************************************/
/*   Radio choices with help text      */
/***************************************/
.radio-with-help-text {
    display:block;
    border: 1px solid #ccc;
    padding: 5px 10px;
    color: #333;
    border-radius: 4px;
}

.radio-with-help-text:hover {
    cursor: pointer;
    background-color: #fafafa;
}

.radio-with-help-text .help-text {
    margin-left: 20px;
}



/*********************************/
#email-association-wizard form table th {
    vertical-align: top;
}

#email-association-wizard form table th label {
    margin: 10px 20px 0 0;
}

.email-manager h4 > .add-link:before {
    content: "\f040  ";
}

.email-list .thread {
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-bottom: 8px;
}

.email-list .thread-header {
    margin: 0;
    padding: 5px;

    display: flex;
}

.email-list .thread-header .subject {
    flex: 1;
}

.email-list .thread-header .date {
    width: 70px;
}

.email-list .email-line {
    padding: 4px 5px 2px;
    border-top: 1px solid #ddd;
    color: #444;
    margin: 0;
}
.email-list .email-line:hover {
    background-color: #E6EBF2;
    cursor: pointer;
}
.email-list .email-line:last-child {
    border-bottom: none;
}

.email-list .email-preview {
    text-overflow: ellipsis;
    overflow: hidden;
    height: 20px;
    padding: 0;
    padding-left: 2px;
    padding-right: 18px;
    margin: 0;
}

.email-list .email-preview .fa-paperclip {
    margin-right: -18px;
    text-align: right;
}

.email-list .email-preview abbr {
    color: #666;
    border-bottom: none;
    text-decoration: none;
}


/**************************************************************/
/*                                                            */
/*           View of a expanded message, common to            */
/*                       several pages                        */
/*                                                            */
/**************************************************************/
.email-full-message {
    border: 1px solid #ececec;
    margin: 0;
}
.email-full-message .email-headers {
    background-color: #f0f0f0;
    padding: 5px;
}

.email-full-message .email-headers:hover {
    cursor: pointer;
}

.email-full-message .email-headers .main-row {
    height: 24px;
}

.email-full-message .thread-actions {
    cursor: default;
}

.email-full-message .thread-actions a {
    padding: 3px 5px;
    margin-left: 3px;
    color: #888;
}

.email-full-message .sending-alert-report {
    color: #856404;
    margin: 5px -6px -5px;
    padding: 5px;
}

.email-full-message .sending-alert-report > p {
    margin: 0;
}

.email-full-message .email-body {
    padding: 5px;
    max-height: 450px;
    overflow: auto;
}

.email-full-message .email-body.html-iframe {
    border: none;
    width: 100%;
    height: 450px;
}

.email-full-message .email-body.text-body {
    white-space: pre-wrap;
}

.email-full-message .email-body li {
    list-style-type: disc;
    margin-left: -10px;
}

.email-attachments li {
    margin-left: -20px;
    font-size: 1em;
}

/* Free some space between the composer of a new message and the e-mail list*/
.email-composer + .email-list {
    margin-top: 20px;
}

.email-body-composer {
    background-color: #fff;
    padding: 10px 7px;
    border: 1px solid #ccc;
    min-height: 200px;
    max-height: 380px;
    overflow: auto;
}

.email-body-composer, .email-body-composer:active, .email-body-composer:focus {
    outline: none;
}

.attachment-zone {
    margin-top: 8px;
}
.attachment-zone li {
    margin-left: -25px;
}



/*************************************************************/
/***                                                       ***/
/***                    E-MAIL INBOX                       ***/
/***                                                       ***/
/*************************************************************/
.email-inbox {
    margin-top: 10px;
}
.email-inbox .header-boxes .box {
    display: inline-block;
    border: 1px solid var(--bs-secondary-bg);
    font-size: 0.925rem;
    font-weight: var(--font-semibold);
    padding: 10px 15px;
    min-width: 225px;
}
.email-inbox .header-boxes .box.selected {
    background-color: var(--bs-secondary-bg);
}
.email-inbox .header-boxes .box .badge {
    float: right;
}

/* Set a little hover effect on the not selected box to get the impression of clickable */
.email-inbox .header-boxes .box:not(.selected):hover {
    cursor: pointer;
    border-color: #dbdbdb;
    background-color: var(--bs-tertiary-bg);
}

.email-inbox .col-done-marker {
    vertical-align: middle;
    font-size: 2em;
    text-align: right;
}

.email-inbox .inbox-list {
    margin: 20px 0;
}

.email-inbox .inbox-list .item,
.email-inbox .inbox-list .item-header {
    display: flex;
}

.email-inbox .inbox-list .item:hover {
    background-color: var(--bs-gray-200);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.email-inbox .inbox-list .item {
    border-bottom: 1px solid #ddd;
}

.email-inbox .inbox-list .item-header {
    border-bottom: 1px solid #ddd;
}

.email-inbox .inbox-list .item-header .col {
    font-weight: bold;
}

.email-inbox .inbox-list .item .col,
.email-inbox .inbox-list .item-header .col {
    padding: 6px 3px;
}

/** fixed width columns */
.email-inbox .inbox-list .col-action {
    width: 32px;
    text-align: center;
}
.email-inbox .inbox-list .col-done-marker {
    width: 52px;
    text-align: center;
}
.email-inbox a.mark-as-done { color: #999; }
.email-inbox a.mark-as-done:hover {
    color: green;
    transition: ease 0.66s;
}

.email-inbox .inbox-list.mode-done a.mark-as-done { color: green; }
.email-inbox .inbox-list.mode-done a.mark-as-done:hover { color: #999; }

.email-inbox .inbox-list .col-date {
    min-width: 120px;
}

.email-inbox .inbox-list .col-expe {
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-inbox .inbox-list .col-subject {
    flex: 3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-inbox .inbox-list .item-expanded {
    border-left: 1px solid var(--color-lipstick);
    box-shadow: 2px 0px 5px 2px #ddd;
    margin: 30px 0;
}

.email-inbox .inbox-list .item-expanded h4 {
    padding: 10px;
    margin: 0;
}
.email-inbox .inbox-list .item-expanded h4:hover {
    cursor: pointer;
}

/*************************************************************/
/***                                                       ***/
/***                    Custom fields                      ***/
/***                                                       ***/
/*************************************************************/
.custom-field-choices-list li {
    position: relative;
    margin-left: -60px;
}

.custom-field-choices-list i.fa-trash {
    position: absolute;
    font-size: 1.2em;
    z-index: 999;
    top: 10px;
    right: 8px;
    cursor: pointer;
}
.custom-field-choices-list .reorder-icon {
    position: fixed;
    margin-top: 5px;
}
.custom-field-choices-list .input-container {
    margin-left: 20px;
}

.custom-fields-table {
    width: 100%;
    margin-bottom: 10px;
}
.custom-fields-table td {
    vertical-align: top;
    word-break: break-all;
}

div.view_object .custom-fields-table td {
    border: none;
}
.custom-fields-table tr td:first-child {
    color: var(--bs-secondary-color);
    padding-top: 8px;
}

.custom-fields-table .inline-editable {
    padding-bottom: 10px;
}
.custom-fields-table .add-link-line td {
    padding-top: 7px;
}

.custom-fields-table .form {
    margin: 7px -5px;
}

.opportunitystatus-line > div {
    display: inline-block;
    min-height: 50px;
}

.opportunitystatus-line .ordering-icon {
    cursor: ns-resize;
    padding: 8px;
    vertical-align: middle;
    visibility: hidden;
}
.opportunitystatus-line:hover .ordering-icon {
    visibility: visible;
}

.opportunitystatus-line .opportunitystatus-block {
    clear: both;
    padding: 8px;
}

.opportunitystatus-line .opportunitystatus-block form {
    margin: -8px;
}

.opportunitystatus-add-form form,
.opportunitystatus-line .opportunitystatus-block {
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 480px;
}

.opportunitystatus-add-form {
    margin: 10px 25px 20px;
}
.opportunitystatus-form > * {
    margin-top: 8px;
}

.table.opportunity-table {
    max-width: 100%;
    margin-bottom: 10px;
}
.table.opportunity-table tr td {
    height: 22px;
    padding: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}


@media print {
    /**
     * CSS properties used only when a user wants to print the page
     */
 .header,
 #user-tools,
 #menu-secondary,
 #action-zone,
 #footer,
 .assistance-bubble {
    display: none;
}

/* override bootstrap default style that append href URL to all <a> tags */
a[href]:after { content: none !important; }

.action-link, .icon-action { display: none; }
}

/* reduce padding over content in mobile context */
@media (max-width: 800px) {
    div#action-zone {
        padding: 10px 2vw 0;
    }
    #content {
        padding: 0 2vw;
    }
}

.event-type-header {
    font-size: 1.25em;
    color: #444;
    margin: 0 0 10px 0;
}

.event-type-header .color-input {
    display: inline-block;
}


#planning-participants-modal .modal-dialog {
    width: 700px;
}

/************ IMPORTER *****/
.importer-association-form {
    display: flex;
    flex-direction: column;
}

.importer-association-form #column-association-header {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    display: flex;
    background-color: #fff;
    z-index: 2;
}

.importer-association-form .excel-column dl, .excel-column dt {
    cursor: pointer;
}
.importer-association-form .excel-column dt {
    padding: 3px 5px 0px;
}

.importer-association-form .excel-column dt i.fa { color: #ccc; margin-top: 3px; }
.importer-association-form .excel-column dt:hover i.fa { color: #666; }
.importer-association-form .excel-column dd { display: none; }

.importer-association-form .association-line {
    padding: 8px 0;
    display: flex;
}
.importer-association-form .association-line dd { padding-left: 5px; }
.importer-association-form .association-line .tooltip-inner { width: 350px; }
.importer-association-form .fields-association { margin-top: 30px; max-width: 1200px; }
.importer-association-form .fields-association optgroup {
    font-weight: bold;
    color: #111;
}
.importer-association-form .fields-association option[disabled] {
    font-style: italic;
}
.importer-association-form .fields-association .status-empty {
    border-left: 3px solid #fff;
    background-color: #fff;
}
.importer-association-form .fields-association .status-ignore {
    border-left: 3px solid gray;
    background: #f6f6f6;
}
.importer-association-form .association-line.status-ignore {
    background: repeating-linear-gradient(45deg,
      #fff,
      #fff 10px,
      rgba(166, 166, 166, 0.1) 10px,
      rgba(166, 166, 166, 0.1) 20px
  );
}

.importer-association-form .association-line.hide-lines-ignored.status-ignore { display: none; }
/* Hide ignore link for already ignored links */
.importer-association-form .fields-association .status-ignore .mark-line-as-ignored { display: none; }
.importer-association-form .fields-association .association-line .mark-line-as-non-ignored { display: none; }
.importer-association-form .fields-association .association-line.status-ignore .mark-line-as-non-ignored { display: block; }

.importer-association-form .fields-association .status-set {
    border-left: 3px solid #3fbc48;
    background-color: #f2fff2;
}
.importer-association-form .global-status {
    margin: 20px 0;
}
.importer-association-form .fields-association .global-status > div {
    padding: 10px;
    font-size: 1.25em;
    text-align: center;
    border:none;
}

.importer-association-form .global-status .status-empty strong {
    color: #f15435;
}
.importer-association-form .global-status .status-ignore strong {
    color: #333;
}
.importer-association-form .global-status .status-set strong {
    color: #27a630;
}


/** CSS when a file is dragged over the attachment zone */
.drag-zone {
    position: relative;
    min-height: 150px;
}
.drag-zone-inner {
    position: absolute;
    top:0;
    bottom:0;
    border: 2px dashed #b0bfc5;
    border-radius: 10px;
    margin: -8px -10px;
    width: 100%;
    background: rgba(180, 190, 200, 0.6);
    text-align: center;
}
.drag-zone-inner p {
    pointer-events: none;
    position:relative;
    top: 40%;
}
.drag-zone-inner .fa {
    font-size: 50px;
    color: #666;
}


#existing-attachments li,
#add-files-zone li {
    margin-left: -30px;
}

#existing-attachments li {
    line-height: 1.75em;
}

#existing-attachments li i {
    margin-left: 5px;
}

#add-files-zone li input {
    display: inline-block;
    margin-right: 10px;
}

/******************************************************/
@keyframes PlaceHolderShim {
    from { background-position: -468px 0; }
    to { background-position: 468px 0; }
}
.placeholder-line-loading {
    animation: PlaceHolderShim 1.5s infinite;
    background: #f6f7f8;
    background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
    background-size: 1000px 104px;
    height: 18px;
    margin: 10px 0;
}
@keyframes PlaceHolderShim {
    from { background-position: -468px 0; }
    to { background-position: 468px 0; }
}


/********************
    Preview box for bulk email sending
    ********************/
.preview-box {
    border: 1px solid #efefef;
    border-radius: 5px;
    padding: 0 15px 10px;
}

.preview-box .title {
    line-height: 22px;
    margin: 0 -15px 5px;
    padding: 4px 10px;
    background: #ececec;
}
.preview-box .preview-selector {
    margin-top: 5px;
}
.preview-box .preview-selector i {
    font-size: 1.3em;
}

.email-metainfo td {
    line-height: 22px;
    padding-right: 25px;
}

.preview-box .email-preview { display: none; }
.preview-box .email-preview.selected { display: block; }

.preview-box .email-preview-content {
    border: 1px solid #ddd;
    margin: 10px -3px 10px;
    padding: 3px 5px;
    background-color: #fafafa;
    min-height: 250px;
}

.s3-attachments-list {
    margin-bottom: 0;
}
.s3-attachments-list li {
    margin-left: -2rem;
    line-height: 1.15;
}

.s3-attachments-list li span {
    vertical-align: baseline;
}
.s3-attachments-list li .attachment-filename {
    display: inline-block;
    width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s3-attachments-list .progress {
    margin-bottom: 0;
}

#opportunities-list {
    margin: 15px 0;
}

.table tr.structureperson-archived {
    background-color: #fff4e2;
}


.inline-type-switcher { display: inline; }

.inline-type-switcher a {
    cursor: pointer;
    text-decoration: none;
    color: #666;
    margin-left: 8px;
    margin-right: 3px;
}

.inline-type-switcher a.active {
    color: #404040;
}


/**************************/
.invitation-block.inline-editable {
    border-bottom: 1px solid #ddd;
    margin: 0;
}

.invitation-block p {
    margin-top: 3px;
    margin-bottom: 0px;
}

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

.label.label-invit-confirmed {
    background-color: #5CB85C;
}

.label.label-invit-declined {
    background-color: #777;
}

/***************************************/

#accountdoc-general-info .table.inline-editable {
    margin: 0;
}
#accountdoc-general-info .table tr > td:first-child {
    width: 180px;
}

#accountdoc-general-info tbody.internal-notes {
    border-top: 2px solid #dadada;
}
#accountdoc-general-info table:not(:hover) .internal-notes {
    background-color: #f0f0f0;
}

#payment_delay_row .due-date-shown {
    color: #477A47;
}
#payment_delay_row .due-date-hidden {
    color: #aaa;
    text-decoration: line-through;
}

#layout-preview .modal-dialog {
    width: 800px;
}
.pdf-preview .modal-dialog .modal-body {
    height: 800px;
    padding: 5px 0;
}
.pdf-preview .modal-dialog .modal-content embed {
    height: 750px;
}

#accountdoc-lines tr .reorder-icon .fa-bars {
    visibility: hidden;
}

#accountdoc-lines tr:hover .reorder-icon .fa-bars {
    visibility: visible;
}

.tinymce-toolbar  { position: relative; }
.tinymce-toolbar > * {
    position: absolute;
}

/*************************/
.prospectlist-form {
    max-width: 800px;
}

.prospectlist-form-status {
    margin-left: -24px;
}

.prospectlist-form-status i.fa-trash {
    font-size: 1.1em;
    z-index: 9;
    cursor: pointer;
}



/************************************/
.project-blocks .block {
    max-width: 800px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 20px 0;
    padding: 0 10px;
}

.project-blocks .block h5,
.layout-manager .block h5 {
    padding-top: 0;
}

.project-blocks .block h5 {
    background-color: #eee;
    padding: 5px 0 5px 10px;
    margin: 0 -10px 10px;
}

.block .fa-bars:hover {
    cursor: ns-resize;
}

.layout-manager .fa-trash {
    font-size: 1.2em;
    margin-right: 5px;
}

.layout-manager .fa-fade {
    opacity: 0;
    color: green;
    transition: opacity 4s ease-in;
}

.layout-manager .block {
    clear: both;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    min-height: 50px;
    margin-bottom: 5px;
}

.layout-manager .block .options {
    margin-left: -35px;
    margin-bottom: 0;
}

.layout-manager .block h5 {
    border-bottom: none;
    padding-left: 15px;
}

.layout-manager .block.options-expanded h5 {
    border-bottom: 1px solid #e9e9e9;
}


.layout-manager .block .block-header a {
    margin-left: 10px;
}

.layout-manager .block .options {
    margin-left: -30px;
    margin-bottom: 10px;
}

.layout-manager .block .options li {
    line-height: 1.25em;
}
.layout-manager .block .options .dropdown-menu {
    max-height: 300px;
    overflow: auto;
}

.layout-manager .block.disabled .options {
    display: none;
}

.layout-manager .notes-positions-inputs label {
    margin: 0 25px 0 5px;
}

.layout-manager .block.disabled {
    opacity: 0.5;
    background-color: #dedede;
}

.layout-manager .roadmap-document-container {
    max-width: 800px;
    margin:auto;
}

.layout-manager .roadmap-document-navigation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

.layout-manager .roadmap-document-navigation-button.left{
    margin-right: 15px;
}
.layout-manager .roadmap-document-navigation-button.right{
    margin-left: 15px;
}

#project-roadmaps-manager .ghost-roadmap-row {
    background-size: 10px 10px;
    background-image: repeating-linear-gradient(45deg, #ddd 0, #ddd 1px, #ffffff 0, #ffffff 50%);
}


.inbox .email-line-leave {
  opacity: 1;
}

.inbox .email-line-leave.email-line-leave-active {
  opacity: 0.01;
  transition: opacity 300ms ease-in;
}



/*****************************/
/*     Entity availability   */
/*****************************/
.entity-availability-calendar {
    display: flex;

  flex-wrap: wrap;
}
.entity-availability-calendar .day-picker-container {
    background-color: var(--bs-body-bg) !important;
}

.entity-availability-calendar .attendance-form {
    min-width: 380px;
    max-width: 400px;
}
.availabilities-legend-container {
    width: 100%;
    display: flex;
    align-items: baseline;
}

@media(min-width: 1750px) {
    .entity-availability-calendar .attendance-form {
        float: right;
        max-width: 40%;
    }
}
@media(max-width: 1750px) {
    .entity-availability-calendar .attendance-form {
        max-width: 100%;
    }
}

.availabilities-legend-container {
    display: flex;
    align-items: baseline;
}

.availabilities-legend {
    margin-left: -30px;
}
.availabilities-legend li {
    display: inline-block;
    margin-right: 15px;
}

.budget-object-recap-totals {
    margin: 10px 0 20px;
}
.budget-object-recap-totals .budget-aggregate-block-tooltip {
    margin: 0 20px 0 0;
    font-size: 1.05rem;
    background-color: #f3f1ed;
    padding: 8px;
    box-shadow: 1px 2px 1px #ccc;
}

.budget-object-recap-table.table tbody td {
    vertical-align: middle;
}

.budget-aggregate-block-tooltip {
    display: inline-block;
}
.budget-aggregate-block-tooltip + .budget-aggregate-block-tooltip {
    margin-left: 6px;
}

.budget-aggregate-block {
    text-align: left;
    position: relative;
    width: 130px;
    height: 38px;
    padding: 4px;
    line-height: 1;
    white-space: nowrap;
}
.budget-aggregate-block.expense {
    --mode-color: var(--red-500);
    --mode-color-alt: var(--red-250);
}
.budget-aggregate-block.income {
    --mode-color: var(--teal-500);
    --mode-color-alt: var(--teal-250);
}
.budget-aggregate-block.result {
    --mode-color: var(--gray-500);
    --mode-color-alt: var(--gray-250);
}

.budget-aggregate-block-tooltip .tooltip-inner {
    text-align: right;
}
.budget-aggregate-block-tooltip .tooltip-inner span {
    float:left;
    width: 65px;
    text-align: left;
}
.budget-aggregate-block i {
    font-size: 24px;
    margin-right: 4px;
    float: left;
    color: var(--mode-color);
}
.budget-aggregate-block span.legend {
    margin-top: -2px;
    font-size: 0.80em;
    display: block;
    font-weight: bold;
}

.budget-aggregate-block .progression-bar {
    position: absolute;
    bottom: -5px;
    left: -1px;
    right: -1px; /* make the border of the main block covered by the progress bar */
    height: 6px;
    border: 1px solid var(--mode-color-alt);
    border-radius: 4px;
    background: repeating-linear-gradient(-45deg,
      #fff,
      #fff 2px,
      var(--mode-color-alt) 3px,
      var(--mode-color-alt) 6px
    );
}
.progression-bar > div {
    height: 100%;
    background-color: var(--mode-color);
}

.budget-list-header {
    height: 24px;
}

.budget-list-header .right-actions {
    display: flex;
    justify-content: right;
}
.budget-list-header .right-actions > * {
    margin-left: 15px;
}


.budget-group h4 a.action-link {
    font-size: 0.95rem;
    margin-left: 15px;
}

.budget-group + .budget-group {
    margin-top: 25px;
}

.budget-group-section {
    --group-height: 40px;

    display: flex;
    width: 100%;
    border-top: 1px solid var(--bg-dark);
    height: var(--group-height);
    line-height: var(--group-height);
    background-color: #fcfcfc;
    align-items: center;
}

.budget-group-section div {
    flex: 1;
}

.budget-group-section .amounts-cell {
    text-align: right;
}

.budget-group-section .amounts-cell span.amount {
    width: 3.5em;
    display: inline-block;
    white-space: nowrap;
}

.budget-group-section div.balance {
    flex-basis: 200px;
    flex-grow: 0;
    display: flex;
    justify-content: center;
}
.budget-group-section .balance-badge {
    float: right;
    line-height: 1.5rem;
    padding-left: 8px;
    padding-right: 8px;
}

.budget-group-section div.order-and-fold {
    flex-basis: 26px;
    text-align: center;
    flex-grow: 0;
}
.budget-group-section div.add-link a {
    font-size: 0.9em;
}
.budget-group-section div.group-name {
    flex-grow: 2;
}
.budget-group-section div.forecast .amount a[role="button"] {
    display: none;
}
.budget-group-section div.forecast .amount:hover span {
    display: none;
}
.budget-group-section div.forecast .amount:hover a[role="button"] {
    display: inline-block;
}

.budget-group-section div.forecast {
    position: relative;
    flex-basis: 100px;
    flex-grow: 0;
}

.budget-group-section div.forecast label {
    position: absolute;
    left: 4px;
    top: -2px;
    color: #666;

    line-height: 1;
    font-size: 0.75rem;
    z-index: 2;
    background-color: white;
    padding: 0 4px;
}
.budget-group-section div.forecast input {
    position: relative;
    height: calc(var(--group-height) - 12px);
    bottom: -2px;
    text-align: right;
    padding-right: 20px;
}
.budget-group-section div.forecast input + .currency {
    position: absolute;
    top: -4px;
    right: 0.5em;
    color: #666;
    z-index: 3;
}

.budget-group-section div.forecast .forecast-form-wrapper form {
    position: absolute;
    line-height: 1;
    top: 48px;
    right: -50px;
    width: 250px;
    z-index: 2;
    height: 70px;
    background-color: #dfdfdf;
}

.budget-group .aggregate-line {
    background-color: #dfdfdf;
}


.budget-group-table {
    border-bottom: 1px solid var(--bg-dark);
    margin-bottom: 0;
}
.budget-group-table thead th {
    background-color: var(--bg-dark);
    color: #fff;
    white-space: nowrap;
}
.budget-group-table thead th .fa-angle-up,
.budget-group-table thead th .fa-angle-down {
    margin-left: 5px;
}

.budget-lines-list .category {
    margin-bottom: 30px;
}

#budget-summary .recap-table .amounts-cell {
    width: 13vw;
}

#expense-detail-view {
    margin-top: 40px;
}

#expense-detail-view .general-info {
    max-width: 750px;
}

#expense-detail-view .expense-lines {
    margin: 15px 0;
}


.event-neighbors {
    border: 1px solid #ccc;
    border-top:none;
    margin: -10px 0 15px 0;
    padding: 10px 0;
}

.event-neighbors h3, .event-neighbors h4 {
    margin-top: 0;
}

.event-neighbors h3 { line-height: 1.3; }

.event-neighbors .before,
.event-neighbors .after {
    display: inline-block;
    margin-top: 12px;
    font-size: 1.25em;
}

.event-neighbors #artist-participation-infos {
    margin-bottom: 10px;
}



.casting-table .header-main .project-title {
    text-align: center;
    border-left: 3px solid #ccc;
}

.casting-table .header-days th {
    height: 20px;
    padding: 3px;
    text-align: center;
}


.casting-table .header-day,
.casting-table .content-day {
    width: 40px;
    max-width: 40px;

    overflow: hidden;
    white-space: nowrap;
}

.casting-table .content-day.member {
    background: #538c2b;
    border:none;
}

.casting-table .header-day.first-project-day,
.casting-table .content-day.first-project-day {
    border-left: 3px solid #ccc;
}


#address-selection-accordion .accordion-body {
    padding: var(--spacing-5);
}

.address-selection-helper {
    padding: var(--spacing-5);
    margin-bottom: var(--spacing-2);
    background: var(--bs-tertiary-bg);
}

.address-selection-helper > select,
.address-selection-helper > input[type=submit] {
    display: inline;
    margin-left: 10px;
}

.address-selection-checkboxes {
    margin-left: -30px;
    margin-bottom: 0;
    -webkit-columns: 400px 3;
    -moz-columns: 400px 3;
    columns: 400px 3;
}

.address-selection-checkboxes .entity-block {
    margin-bottom: 15px;
    padding: 5px 10px;
    border-left: 2px solid;
    width: 100%;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;         /* Firefox */
    break-inside: avoid-column;  /* IE 11 */
    display: inline-block;  /* needed for FF 20+ */
}

.address-selection-checkboxes .entity-block .entity-name {
    margin: 5px 0 8px;
    font-weight: 500;
    font-size: 1.08em;
}

.address-selection-checkboxes .entity-block ul {
    margin-left: -20px;
}

.address-selection-checkboxes .entity-block.one-selected {
    border-color: green;
    background-color: rgba(5, 200, 5, 0.05)
}

.address-selection-checkboxes .entity-block.none-selected {
    border-color: red;
    background-color: rgba(200, 5, 5, 0.05)
}

.address-selection-checkboxes .entity-block.many-selected {
    border-color: blue;
    background-color: rgba(5, 5, 200, 0.05)
}



/***********************************/
#organizer-survey-contact-selector .input-group {
    margin-bottom: 3px;
}
.survey-diff-table .choice-line > td input[type="radio"] { display: none; }

/** first column should never be colored **/
.survey-diff-table .choice-line td:nth-child(1) { background-color: white; }
.survey-diff-table.to-validate .choice-line:not(.unchanged) > td:nth-child(n + 2):hover {
    cursor: pointer;
    box-shadow: -3px -3px 15px 3px #e6e6e6;
}

.survey-diff-table .choice-line:not(.unchanged) > td {
    color: #444;
}
.survey-diff-table .choice-line:not(.unchanged) > td.selected {
    color: #000;
    background-color: rgba(60, 240, 40, 0.12);
}

.survey-diff-table .choice-line:not(.unchanged) > td:nth-child(n + 2) {
    position: relative;
}

.survey-diff-table .choice-line:not(.unchanged) > td.selected:nth-child(n + 2):after {
    font-family: 'FontAwesome';
    position: absolute;
    top: 5px;
    right: 5px;
    content: "\f00c";
}


/** If the line as only added data, we should have a toggle effect instead of switching lines */
.survey-diff-table .choice-line.new > td.selected:nth-child(2) {
    background: none;
}
.survey-diff-table .choice-line.new > td.selected:nth-child(2):after {
    content: "";
}
.survey-diff-table .choice-line.new > td:nth-child(3):after {
    font-family: 'FontAwesome';
    position: absolute;
    top: 5px;
    right: 5px;
    content: "\f00c";
    opacity: 0.33;
}
.survey-diff-table .choice-line.new > td.selected:nth-child(3):after {
    opacity: 1;
}

/**** */
.survey-diff-table .choice-line.removed > td:nth-child(3):before {
    font-family: 'Inter', sans-serif;
    color: #666;
    content: "(vide)";
}

.contract-financial-total {
    border-top: 2px solid #ccc;
}
.contract-financial-total td {
    font-weight: bold;
}

.project-provisional-table {
    width: 100%;
    border: none;
    max-width: 800px;
}
div.view_object .project-provisional-table td {
    line-height: 2;
    vertical-align: top;
    border-left: none;
    border-right: none;
}

form > .project-provisional-table {
    max-width: none;
}

form > .project-provisional-table td {
    border: none;
}

/*-----------------------------------------*/
/*     ProjectContract status progress     */
/*     (similar to subscriptions list)     */
/*-----------------------------------------*/
.project-contract-progress {
    margin-left: -8px;
}
.project-contract-progress .progress-item .status-icon {
    vertical-align: top;
    width: 28px;
    height: 28px;
    padding: 2px;
    text-align: center;
    float: left;
    border-radius: 50%;
    background: #eee;
    border: 1px solid #fff;
    box-shadow: 0 0 1px #ccc;
    position: relative;
}

.project-contract-progress .progress-item .status-icon i {
    font-size: 12px;
}

.project-contract-progress .progress-item {
    margin: 4px 0;
}

.project-contract-progress .progress-item .inner {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    margin-left: 34px;
    padding: 5px 4px;
}
.project-contract-progress .progress-item .inner:after {
    display: table;
    content: " ";
    clear: both;
}

.project-contract-progress .progress-item .status-icon,
.project-contract-progress .progress-item .inner {
    color: #666;
    position: relative;
}

.project-contract-progress .progress-item .inner time {
    float:right;
    color: #666;
    text-align: right;
}

.project-contract-progress .progress-item .inner .progress-links {
    display: none;
}

/*** pending state **/
.project-contract-progress .progress-item.pending .status-icon {
    color: teal;
    background-color: #e2fae2;
}
.project-contract-progress .progress-item.pending .inner {
    color: teal;
}
/*** done state **/
.project-contract-progress .progress-item.done .inner {
    color: green;
}
.project-contract-progress .progress-item.done .status-icon {
    color: green;
    background-color: #e2fae2;
}

#generate-contract-modal-form input[type="checkbox"] {
    float: left;
    margin-right: 3px;
}

#directoryOptionsModal .modal-body input[type="checkbox"] {
    float: left;
    margin-right: 3px;
}

/** on link hover **/
.project-contract-progress .progress-item .inner:hover {
    box-shadow: 1px 2px 3px 0px #eee;
}
.project-contract-progress .progress-item .inner:hover .progress-links {
    display: inline-block;
    position: absolute;
    left: 150px;
    padding-right: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.75);
}

.project-contract-progress .progress-item .progress-links a {
    display: inline-block;
    padding: 5px 15px;
    margin: -5px -5px -5px -15px;
}
.project-contract-progress .progress-item .progress-links a:focus { outline: none; }

.project-contract-progress .progress-item .progress-links a { color: #666; }
.project-contract-progress .progress-item.done .progress-links a:hover { color: darkred; }
.project-contract-progress .progress-item .inner .progress-links a:hover { text-decoration: none; }


/* color switch depending of done yet or not */
.project-contract-progress .progress-item.next-step-link .status-icon {
    background: none;
    border: none;
    box-shadow: none;
}
.project-contract-progress .next-step-link .inner {
    border: none;
    padding: 3px 4px;
}


/*************************************************************/
/***                                                       ***/
/***                   PRODUCT UPDATES                     ***/
/***                                                       ***/
/*************************************************************/
.product-updates {
    margin-top: 10px;
}

.product-updates .item {
    box-shadow: 2px 0px 5px 2px #ddd;
    margin: 30px 0;
    padding: 10px;
}

.product-updates .item h3 {
    font-size: 1.5rem;
    margin-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #efefef;
}

.product-updates .item {
    border-bottom: 1px solid #ddd;
}

.product-updates .item.unread {
    border-left: 6px solid #AFBDE8;
    position: relative;
}

.product-updates .item .float-end.text-muted {
    line-height: 2;
}
.product-updates .item .publication-date {
    display: inline-block;
    margin-right: 20px;
    padding-left: 10px;
}
.product-updates li {
    list-style: unset;
}

/*************************************************************/
/***                                                       ***/
/***              Parallel workflows buttons               ***/
/***                                                       ***/
/*************************************************************/
.block-pdf-contract {
    padding: 6px 8px;
    display: block;

    border-bottom: none;
    color: inherit;
}

.block-choices-with-icon {
    display: flex;
}
.block-choices-with-icon > a,
.block-choices-with-icon > button {
    padding: 15px 1vw;
    flex: 1;
    display: block;
    text-align: center;
    border: 1px solid #ddd;
    color: #333;
}
.block-choices-with-icon > a .fa { color: #333 !important; }

.block-choices-with-icon > a:not(.disabled):hover,
.block-choices-with-icon > button:not([disabled]):hover {
    text-decoration: none;
    box-shadow: 2px 1px 2px #ddd;
    background-color: #efefef;
}

.block-choices-with-icon > a.disabled,
.block-choices-with-icon > button[disabled] {
    color: #666;
    cursor: not-allowed;
    text-decoration: none;
}

.project-engagements-mass-creation .table.table-condensed {
    padding: 4px;
}

.project-engagements-mass-creation .table-model-selection td.artist-cell {
    border-left: 2px solid rgb(224, 192, 61);
}
.project-engagements-mass-creation .table-model-selection td.artist-cell.no-models {
    border-left: 2px solid rgb(217, 83, 79);
}
.project-engagements-mass-creation .table-model-selection td.artist-cell.line-selected {
    border-left: 2px solid rgb(92, 184, 92);
}
.project-engagements-mass-creation .table-model-selection tr:hover td:not(.artist-cell) {
    cursor: pointer;
    background-color: #ececec;
}

.project-engagements-mass-creation .table-model-selection td.model-name-cell {
    color: #666;
}
.project-engagements-mass-creation .table-model-selection td.model-name-cell.selected {
    color: #333;
}

.results .table tr.creditnote {
    background-color: #f8e4ec;
    color: #30132A;
}



/*************************************************************/
/***                                                       ***/
/***                     Widget                            ***/
/***                                                       ***/
/*************************************************************/
.multi-checkbox-selector {
    position: relative;
}

.multi-checkbox-selector .input-summary {
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 4px;
    background-color: white;
    color: rgb(85, 85, 85);
    position: relative;
    user-select: none;
    overflow: hidden;
}

.multi-checkbox-selector .input-summary:before {
    content: "▿";
    color: rgb(85, 85, 85);
    position: absolute;
    right: 6px;
}

.multi-checkbox-selector .input-summary:hover {
    cursor: pointer;
}
.multi-checkbox-selector.disabled .input-summary {
    background-color: #eee;
    cursor: not-allowed;
}

.multi-checkbox-selector .inner-selector {
    position: absolute;
    top: 33px;
    width: 100%;
    z-index: 9999;

    background-color: white;
    border: 1px solid rgb(204, 204, 204);

    padding: 6px;
}

.multi-checkbox-selector .inner-selector .input-group {
    width: 100%;
    margin-bottom: 2px;
}

.multi-checkbox-selector .inner-selector ul {
    min-height: 30px;
    max-height: 300px;
    overflow: auto;
}
.multi-checkbox-selector .inner-selector ul li {
    margin-left: -30px;
    line-height: 18px;
}

.multi-checkbox-selector .inner-selector ul li label {
    margin-bottom: 0;
    display: inline;
}

.multi-checkbox-selector .inner-selector ul li input[type=checkbox],
.multi-checkbox-selector .inner-selector ul li input[type=radio] {
    margin-right: 4px;
}

.multi-checkbox-selector .inner-selector ul li {
    margin-left: -28px;
}

.multi-checkbox-selector .inner-selector ul li.select-all-line {
    font-size: 90%;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid #ddd;
}



/****
    Orchestra distribution grid styles
    ****/

.sticky-grid-wrapper {
    width: 100%;
    max-height: 80vh;
    overflow-y: scroll;
    border: 1px solid #E3E4E4;
    border-left: none;
    margin-bottom: 10px;
}

.sticky-grid {
    width: 100%;
    display: grid;
    line-height: 2;
    grid-auto-rows: minmax(1lh, auto);
}

.sticky-grid > .odd {
    background: #fff;
}
.sticky-grid > .even {
    background: #f1f1f1;
}

/** Header definition **/
.sticky-grid div.sticky-row {
    color: black;
    background-color: #F9F9FA;
    position: sticky;
    top: 0;
    padding: 5px;
    border-bottom: 1px solid #E3E4E4;
    min-height: 100px;
    display: flex;
    align-items: center;
}
.sticky-grid div.sticky-row.header-cell {
    border-right: none;
    border-left: none;
    padding: 0;
}
.sticky-grid div.sticky-row.header-cell.first-col {
    border-left: 1px solid #ccc;
}

.sticky-grid div.sticky-row.header-cell div {
    transform: rotate(-45deg);
    transform-origin: bottom left;
    position: absolute;
    left: 60px; /** fixed size for the services cells */
    bottom: 0px;
    width: 250%; /** larger than the header height but it allows us to have a border bottom */
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #ccc;

    line-height: 1.2;
    font-size: 0.9em;
}

.sticky-grid div.sticky-row.header-cell.cast-cell div {
    padding-bottom: 0.2em;
}

.sticky-grid div.sticky-row.header-cell div.add-link {
    border-bottom: none;
}

.sticky-grid div.sticky-row.header-cell div.add-link a {
    color: var(--gray-500);
    text-decoration: underline;
    margin-left: 0.9em;
}

/** Definition of first column **/
.sticky-grid div.sticky-row.sticky-column {
    z-index: 20;
}

.sticky-grid div.sticky-column {
    position: sticky;
    left: 0;
    z-index: 10;
}

.sticky-grid div .inline-editable {
    margin: 0; /* cancel default inline-editable negative margin effect */
    padding: 2px 4px;
    min-height: 30px;
}

.orchestra-distribution div.sticky-column.cell-artist,
.project-inventory-table div.sticky-column.cell-hardware-item {
    left: 32px; /** offset for the checkbox column **/
    border-right: 1px solid #ccc;
    z-index: 600;
}
.orchestra-distribution div.substituted {
    background-color: lightpink !important;
}
.orchestra-distribution div.cell-artist.substituted > a {
    color: red;
}
.orchestra-distribution div.cell-artist.substituted.fully-substituted > a {
    text-decoration: line-through;
}
.orchestra-distribution .cell-notes {
    border-right: 1px solid #ccc;
}
.orchestra-distribution div.sticky-row.sticky-column {
    background-color: white;
}
.orchestra-distribution div.changing-seat {
    border-top: 1px dashed #ccc;
}

/** Line seprator to display the role name **/
.orchestra-distribution .role-name {
    grid-column: 1 / 3;
    height: 40px;
    margin: 0;
    line-height: 2;
    padding-left: 10px;
    background-color: #dceef4;
    position: sticky;
    left: 0;
    z-index: 100;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #777;
}
.orchestra-distribution .role-name .headcount {
    font-size: 0.85em;
    margin-left: 18px;
}

.orchestra-distribution .role-name .role {
    color: #333;
}
.orchestra-distribution div.role-name-end-line {
    grid-column: 3 / -1; /** colspan on the whole line */
    background-color: #dceef4;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
}


/** Cell definitions **/
.sticky-grid div.cell-service {
    text-align: center;
    border-right: 1px solid #ccc;
    border-left: 1px solid #ccc;
}
.sticky-grid div.cell-checkbox {
    text-align: center;
    border-left: 3px solid transparent;
}
.sticky-grid div.cell-artist a[role="button"] {
    visibility: hidden;
    margin: 0 6px;
}
.sticky-grid div.cell-artist:hover a[role="button"] {
    visibility: visible;
}

/* Employee type color hint re-used in several places **/
.orchestra-intermittent-selection .results-list tr.status-intermittent,
.orchestra-distribution .cell-checkbox.status-intermittent {
    border-left-color: #fb9902;
}
.orchestra-intermittent-selection .results-list tr.status-permanent,
.orchestra-distribution .cell-checkbox.status-permanent {
    border-left-color: #0392ce;
}
.orchestra-intermittent-selection .results-list tr.status-unknown,
.orchestra-distribution .cell-checkbox.status-unknown {
    border-left-color: #ccc;
}

.orchestra-intermittent-selection .results-list {
    max-height: 50vh;
    overflow: auto;
    margin-top: 15px;
}

.orchestra-intermittent-selection .results-list tr {
    margin-left: -40px;
    padding: 4px;
    line-height: 24px;
    color: #444;
    border-bottom: 1px solid #eaeaea;
}
.orchestra-intermittent-selection .results-list tbody tr {
    border-left: 2px solid transparent;
}

.orchestra-intermittent-selection .results-list tbody tr:hover.available td {
    cursor: pointer;
    color: #333;
    background-color: #D9F3FD;
}
.orchestra-intermittent-selection .results-list tbody tr:hover.unavailable td {
    background-color: #eee;
    color: #333;
}


.orchestra-intermittent-selection .results-list th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #eee;
}


.orchestra-distribution div.sticky-column.sticky-row.cell-checkbox {
    border-left: 1px solid #E3E4E4;
}

.orchestra-distribution div.cell-artist,
.orchestra-distribution div.cell-notes,
.orchestra-distribution div.cell-payrollextra {
    border-right: 1px solid #ccc;
    margin: 0px !important;
}

.orchestra-distribution div.cell-notes .edit-popin {
    position: static;
    padding: 8px;
    z-index: 9999;
}
.orchestra-distribution div.cell-notes .edit-popin p { margin-bottom: 0; }
.orchestra-distribution div.cell-notes .edit-popin input { width: 100%;  }

.orchestra-distribution .cell-service.grid-content {
    line-height: 30px;
}
.orchestra-distribution .cell-service.grid-content.editable:hover {
    background-color: var(--color-salmon) !important;
}

.orchestra-distribution div.cell-service.modified,
#participationModificationConfirm div.modified button {
    background-color: #dd802c;
    color: white;
}

.orchestra-distribution div.cell-trash {
    line-height: 30px;
    padding-left: 8px;
}

.orchestra-distribution .not-participate {
    color: red;
}

.orchestra-distribution .cell-service.grid-content.editable:hover,
.employee-status-filter:hover {
    cursor: pointer;
}

.orchestra-distribution .permanent-solist {
    background-color: #E6E6E6;
}
.orchestra-distribution .permanent-solist:hover {
    cursor: not-allowed;
}

.orchestra-distribution .permanent-solist.inline-editable:hover,
.orchestra-distribution .permanent-solist .inline-editable:hover
{
    cursor: not-allowed;
    background-color: #E6E6E6 !important;
}

.distribution-filters .input-group,
.distribution-filters .d-flex {
    margin-right: 16px;
}

.distribution-filters .dropdown-types-choices .selector {
    position: absolute;
    z-index: 2000;
    background-color: white;
    width: 150px;
    box-shadow: 0px 1px 3px #ccc;
}
.distribution-filters .dropdown-types-choices .selector ul {
    margin-bottom: 0;
}
.distribution-filters .dropdown-types-choices .selector li {
    margin-left: -35px;
    padding: 2px 5px;
}
.distribution-filters .dropdown-types-choices .selector li:hover {
    cursor: pointer;
}
.distribution-filters .dropdown-types-choices .selector .btn-link {
    float:right;
}

.employee-status-filter { margin-left: -35px; }
.employee-status-filter .intermittent .color-block  { background-color: #fb9902; }
.employee-status-filter .permanent .color-block     { background-color: #0392ce; }
.employee-status-filter .disabled .color-block {
    background-color: #ccc
}


.two-columns-modal .select-grid
{
    display: grid;
    grid-gap: 10px;
    width: 100%;
    grid-template-columns: 1fr   50px 1fr 50px;
}

.two-columns-modal .buttons {
    padding: 140px 8px;
}

.two-columns-modal .buttons .btn {
    margin-bottom: 20px;
}

.two-columns-modal .column {
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: inset -1px -1px 4px #dfdfdf;

    height: 400px;
    overflow: auto;
}

.two-columns-modal .column h5
{
    margin: 0;
    padding: 2px 4px;
    font-size: 1rem;
    line-height: 1.75;
    background-color: #ddd;
}

.two-columns-modal .column ul
{
    margin-left: -32px;
    margin-bottom: 0;
}

.two-columns-modal .column ul li.disabled
{
    font-style: italic;
    color: #555;
    background-color: #f0f0f0;
}


.two-columns-modal .column li {
    padding: 0 5px;
    line-height: 1.5;
    user-select: none;
}

.two-columns-modal .column ul li:hover {
    cursor: default;
}
.two-columns-modal .column ul li.selected {
    background-color: #C9EDED;
}


.orchestra-roles-definition-container {
    max-height: 75vh;
    overflow: auto;
}
table.orchestra-roles-definition tbody td {
    padding: 4px;
}
.orchestra-roles-definition .first-of-section td {
    border-top-width: 4px;
}
.orchestra-roles-definition .group-col {
    width: 1px;  /** make it take the less space possible */
}
.orchestra-roles-definition tr td input {
    height: 24px;
}

.modal.orchestra-program-element-manager .modal-dialog {
    --bs-modal-width: 1100px;
}


.mass-deduplicate-table tr {
    border-bottom: 1px solid #ddd;
}
.mass-deduplicate-table td {
    padding: 0 8px 5px;
    vertical-align: top;
}
.mass-deduplicate-table td:hover {
    cursor: pointer;
}
.mass-deduplicate-table td.unselectable:hover {
    cursor: not-allowed;
}
.mass-deduplicate-table td.success {
    background-color: rgb(208, 233, 198);
}
.mass-deduplicate-table .tags-list {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9em;
    max-width: 500px;
    overflow: hidden;
}

.cancelled {
    text-decoration: line-through;
}
.bold {
    font-weight: var(--font-semibold);
}
.italic {
    font-style: italic;
}
.dashed-border {
    border-width: 1px;
    border-style: dashed !important;
}
.hatched {
    background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAADklEQVQImWNgQAVpZHAANBABmbxk9n0AAAAASUVORK5CYII=') repeat;
}

thead.hidden-thead {
    visibility: collapse;
}

thead.hidden-thead th {
    border: none !important;
}

.large-modal .modal-dialog {
    max-width: 1150px;
}
.scrollable-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.sort-option {
    cursor: pointer;
}

.sort-active {
    font-weight: bold;
    text-decoration: underline;
}

.work-project-history .history-event-line td:first-child {
    border-left: 3px solid #ddd;
}
.work-project-history .history-event-line td {
    padding-left: 12px;
    font-style: italic;
}

.floatingConfirm {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 700;
    width: 30vw;
    min-width: 500px;
    background-color: #616264;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-engagement-btn {
    cursor: pointer;
}

.place-address-select .group-label {
    background-color: #c4c4c4;
    color: white;
    font-size: 16px;
    border-radius: 2px;
    padding: 10px 12px;
    font-weight: bold;
}

.place-address-select .group-label .counter {
    border-radius: 20px;
    background-color: white;
    color: #777;
    padding: 2px 10px;
    font-weight: normal;
    font-size: 14px;
}


.lateral-panel {
    position: fixed;
    z-index: calc(var(--hubspot-chat-zindex) + 10);
    right: 0;
    top: 0;
    bottom: 0;
    width: 360px;
    padding: 4px 10px;

    display: flex;
    flex-direction: column;

    background-color: var(--bs-body-bg);
    box-shadow: 0px 1px 18px 1px rgba(66,66,66,0.67);
    -webkit-box-shadow: 0px 1px 18px 1px rgba(66,66,66,0.67);
    -moz-box-shadow: 0px 1px 18px 1px rgba(66,66,66,0.67);
}

.lateral-panel-header {
    border-bottom: 2px solid #ddd;
    display: flex;
    margin-bottom: 8px;

    height: 40px;
}
.lateral-panel-header h2 {
    margin: 10px 0;
    font-size: 1.33rem;
    flex-grow: 1;
}
.lateral-panel-header .btn-close {
    position: relative;
    top: 8px;
}

.lateral-panel-content {
    flex-grow: 1;
    overflow: auto;
}
.lateral-panel-footer {
    margin-top: 10px;
}
.lateral-panel-footer .buttons {
    float: right;
}
.lateral-panel-footer .buttons button {
    margin: 0 4px;
    width: 36px;
    height: 36px;
    padding: 0;
}
.lateral-panel-footer .buttons button .fa {
    font-size: 1.33rem;
}




/*** Budget forms **/
.lateral-panel .receipts-list {
    margin: 15px 0;
}
.lateral-panel .receipts-list .receipt-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    height: 32px;
    margin-bottom: 4px;
    align-items: center;
}

.lateral-panel .receipts-list .receipt-item .file-icon {
    flex-shrink: 1;
    width: 26px;
    border-right: 1px solid #ddd;
    text-align: center;
    margin-right: 4px;
}

.lateral-panel .receipts-list .receipt-item i.fa-trash {
    flex-shrink: 1;
    width: 24px;
    text-align: center;
}


.lateral-panel .receipts-list .receipt-item .file-link {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
}

.lateral-panel .form-group {
    margin-bottom: 8px;
}

.lateral-panel .form-group label {
    margin-bottom: 0px;
    font-size: 0.8rem;
    color: #444;
}

.lateral-panel .amounts {
    position: relative;
}
.lateral-panel .amounts input + .currency {
    position: absolute;
    top: 27px;
    right: 0.5em;
    color: #666;
}
.lateral-panel .amounts input {
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: right;
    padding-right: 1.33em;
}

.lateral-panel .group-details h3 {
    font-size: 1.33rem;
    margin: 10px 0 5px;
}

.lateral-panel .group-details h3 a.action-link {
    font-size: 0.8rem;
    margin-left: 5px;

}

.lateral-panel .group-details h5 {
    font-weight: bold;
    font-size: 0.9rem;
    margin: .3rem 0;
}

.lateral-panel .group-details fieldset {
    border: 1px solid #666;
    padding: 0px 5px 5px 5px;
    margin-bottom: 8px;
}

/* Disable up/down arrows on number field since they are relatively small */
.lateral-panel .repartitions input[type=number]::-webkit-outer-spin-button,
.lateral-panel .repartitions input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.lateral-panel .repartitions .row {
    margin-bottom: 6px;
}

.lateral-panel .repartitions input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: right;
    padding-right: 1.5em;
}
.lateral-panel .repartitions .percentage-field:after {
    content: "%";
    position: absolute;
    top: 0;
    color: #666;
    line-height: 28px;
    right: 0.5em;
    font-size: 1em;
}

.lateral-panel .repartitions .repartition-container {
    border: 1px solid #777;
    border-radius: 4px;
    display: flex;
    padding: 10px;
}

.lateral-panel .repartitions .repartition-parent {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lateral-panel .repartitions .repartition-form {
    flex-grow: 1;
    min-width: 0;
    margin-right: 10px;
}

.lateral-panel .repartitions .repartition-amounts-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    min-width: 0;
    margin-top: 5px;
}
.lateral-panel .repartitions .repartition-percentage {
    flex: 1;
    position: relative;
}
.lateral-panel .repartitions .repartition-amounts {
    display: flex;
    flex: 3;
    align-items: flex-end;
    margin-left: 15px;
}
.lateral-panel .repartitions .repartition-amounts .form-group {
    margin-bottom: 0;
    margin-left: 5px;
    position: relative;
}


/* Notifications center */
#notifications-center {
    position: absolute;
    margin: 10px;
    width: 550px;
    max-height: 50vh;
    min-height: 300px;
    z-index: 1001;
    right: 30px;
    min-width: 200px;
    background-color: white;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3)) drop-shadow(0px 12px 24px rgba(0, 0, 0, 0.2));
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}
@media(max-width: 1100px) {
    #notifications-center {
        width: 50vw;
    }
}

.file-signature-icon-badge,
#notification-center-opener .icon-badge:after {
    content: " ";
    position: absolute;
    background-color: #E94A4C;
    height: 1rem;
    top: 0.5rem;
    right: 0.5rem;
    width: 1rem;
    border-radius: 50%;
    font-size: x-small;
    text-align: center;
    color: white;
}

#notifications-center .notifications-center-header {
    color: #1A1F36;
    display: flex;
    justify-content: space-between;
    padding: 16px;
    align-items: center;
}

#notifications-center .notifications-center-header .notifications-center-title {
    font-size: 20px;
    font-weight: bold;
}

#notifications-center .notifications-center-header .notifications-center-mark-as-read {
    color: #1A1F36;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#notifications-center .notifications-center-filters {
    padding: 12px 16px 0 16px;
    border-bottom: 3px solid #D4C5BE;
    display: flex;
    align-items: center;
}

#notifications-center .notifications-center-filters .notification-center-tab {
    padding: 10px;
    padding-top: 0;
    margin-right: 20px;
    color: #777;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    margin-bottom: -2px;
}
#notifications-center .notifications-center-filters .notification-center-tab.active {
    color: black;
    border-bottom: 3px solid black;
}

#notifications-center .notifications-center-filters .notification-center-tab span {
    padding: 1.5px 6px;
    font-size: 14px;
    background-color: #777;
    color: white;
    border-radius: 2px;
}

#notifications-center .notifications-center-filters .notification-center-tab.active span {
    background-color: black;
}

#notifications-center .notification-center-config-icon {
    margin-left: auto;
    color: #777;
}

#notifications-center .notification-center-empty {
    text-align: center;
    font-size: 16px;
    padding-top: 20px;
}

#notifications-center .notification-center-list {
    overflow-y: scroll;
}

#notifications-center .notification-center-item {
    background-color: #F3F1ED;
    border-bottom: 2px solid #D4C5BE;
    padding: 16px;
    text-decoration: none;
}

#notifications-center .notification-center-item.read {
    background-color: white;
}
#notifications-center .notification-center-item.with-link {
    cursor: pointer;
}

#notifications-center .notification-center-item .notification-center-item-title {
    color: #1A1F36;
    font-size: 16px;
}

#notifications-center .notification-center-item .notification-center-item-date {
    color: #777;
}

#notifications-center .notification-center-item .notification-center-item-body {
    color: #1A1F36;
    margin-top: 8px;
}

#notifications-center .notification-center-item .notification-center-item-body .quote {
    padding-left: 8px;
    border-left: 4px #D4C5BE solid;
}

#notifications-center .notification-center-item .notification-task-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#snackbars-container .snackbars-container {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1001;
    visibility: hidden;
}
#snackbars-container .snackbars-container.show {
    visibility: visible;
    animation: slidein 0.5s;
}
@keyframes slidein {
    from {bottom: -86px; opacity: 0;}
    to {bottom: 24px; opacity: 1}
}

#snackbars-container .snackbar-container {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3), 0px 12px 24px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    width: 400px;
    padding: 12px 8px 12px 16px;
    background-color: white;
    display: flex;
    flex-direction: row;
    margin-top: 10px;
}

#snackbars-container .snackbar-content-container {
    margin: 0 12px;
    flex-grow: 1;
}

#snackbars-container .snackbar-title {
    font-weight: bold;
}

#snackbars-container .snackbar-link a {
    font-weight: bold;
    cursor: pointer;
}

#snackbars-container .snackbar-icon-container div {
    width: 20px;
    height: 20px;
}
#snackbars-container .snackbar-icon-container .icon-info {
    background: url('../images/notifications/success.svg') no-repeat;
}
#snackbars-container .snackbar-icon-container .icon-bullhorn:before {
    font-family: 'FontAwesome';
    content: "\f0a1";
    font-size: 18px;
    color: #AB8DFF;
}
#snackbars-container .snackbar-icon-container .icon-alert {
    background: url('../images/notifications/warning.svg') no-repeat;
}
#snackbars-container .snackbar-icon-container .icon-error {
    background: url('../images/notifications/alert.svg') no-repeat;
}

.email-recipient__menu {
    z-index: 2 !important;
}

/* Replace dropped bootstrap class */
.pre-scrollable {
  max-height: 340px;
  overflow-y: scroll;
}

tr.planning-modal-candidate.selected {
    background-color: #99ccff;
}
tr.planning-modal-candidate.selected > * {
    background-color: #99ccff;
}

tr.planning-modal-candidate:hover {
    background-color: #ccc;
}
tr.planning-modal-candidate:hover > * {
    background-color: #ccc;
}

.form-input-inline {
    /* class to add to bootstrap inputs to be able to use them in inline form (e.g. in RuleForm) */
    width: unset;
    display: inline;
}

.short-input-inline {
    /*
    Class to make sure time inputs and number inputs have the appropriate width
    in inline forms
    */
    max-width: 5em;
}

.ellipsis-options{
    width: 38px;
    font-size: large;
}
.ellipsis-options a i {
    color: var(--bs-gray-600) !important;
}

/* Chips */
.chip-content {
    background-color: var(--gray-250);
    color: var(--font-dark);
    font-weight: var(--font-medium);
}

.close-cross {
    color: var(--gray-700)
}


/*-------------------------------------------*/
/*                                           */
/*           Electronic signature            */
/*                                           */
/*-------------------------------------------*/
#embed-signing-modal {
    width: 100%;
    border: 1px solid var(--bs-gray-400);
}
#embed-signing-modal iframe {
    min-height: 65vh !important;
}

.electronic-signature-modal-body .column-left{
    border-right: 1px solid var(--bs-gray-400);
    overflow-y: auto;
    max-height: 65vh;
}
.electronic-signature-modal-body .column-left .remove-annex-button i{
    color: var(--bs-gray-600)!important;
}

.electronic-signature-modal-body hr{
    margin-top: 2px;
    height: 2px;
    border: none;
    background-color: var(--bs-gray-600);
}
.electronic-signature-modal-body .tinymce-container {
    height: 100% !important;
    overflow: hidden !important;
}

.electronic-signature-preview #iframe-loading {
    /* Absolute position */
    left: 0;
    position: absolute;
    top: 30px;

    /* Take full size */
    height: 100%;
    width: 100%;

    /* Center */
    align-items: center;
    display: flex;
    justify-content: center;
}

.category-dropdown-table .signature-state-cell{
    height: 100%;
    gap: 10px;
    margin-right: 10px;
}

/**********
* Buttons
***********/
.btn.btn-white-bg {
    --bs-btn-bg: #FFF;
    --bs-btn-border-color: hsl(0, 0%, 80%);
}

.oo-filters-select.values-selected {
    border-color: var(--bs-primary);
    border-width: 2px;
}

.oo-filters-select.values-selected > svg {
    fill: var(--bs-primary);
}

.oo-filters-select.dirty {
    /* Lipstick version : rgba(199, 34, 99, 0.3)*/
    border-color: rgba(13, 110, 253, 0.3);
}
.oo-filters-select.dirty:after {
    position: absolute;
    top: 0;
    right: -.30rem;
    transform: translate(0, -50%);
    padding: .30rem;
    background-color: #E49B62;
    border-radius: 50%;
    content: "" !important;
    border: none;
}

.btn.selected {
    border-color: var(--bs-primary);
}

.btn.selected > svg {
    fill: var(--bs-primary);
}


/*************
* Icon Button
**************/

.oo-icon-button:not(:hover) {
    background-color: transparent;
    border-color: transparent;
}

.oo-icon-button {
    display: inline-flex;
    align-items: center;
    fill: #71717a;
}

.oo-icon-button:hover {
    fill: var(--bs-body-color);
    background-color: var(--bs-secondary-bg);
}

.oo-icon-button.danger:hover svg {
    fill: var(--bs-danger);
    transition: fill .25s ease-out;
}

/*************
* Strike effect
*************/

.strike-through {
    position: relative;
    --strike-through-width: 1px;
}

.strike-through::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto 0;
    background-color: currentColor;
    height: var(--strike-through-width);
    transition: none;
    width: 0;
}

.strike-through.active::after {
    width: 100%;
    transition: width .5s ease;
}

/*************
* Toast
***************/

.oo-selection-toast {
    position: fixed;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    background-color: var(--bs-body-color);
    color: var(--bs-white);
    padding: .25rem 1rem;
    column-gap: .5rem;
    border-radius: .25rem;
    opacity: 1;
    transition: all .25s ease-in;
    transition-property: opacity, transform;
    --bs-dropdown-box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.08);
    box-shadow: var(--bs-dropdown-box-shadow);
    text-wrap: nowrap;
}

.oo-selection-toast:not(.show) {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
}

/*************
* Collapsible Menu
**************/

.oo-collapsible-menu {
    transition: gap .35s ease;
    background-color: var(--bs-body-bg);
}

.oo-collapsible-menu:has(div.collapsed) {
    gap: 0 !important;
}

.oo-collapsible-icon {
    transition: transform .35s ease;
}

.oo-collapsible-menu div.collapsed .oo-collapsible-icon{
    transform: rotateZ(-.25turn);
}

/*************
* Collapsible Menu New
**************/

.oo-collapsible .oo-caret {
    transition: transform .35s ease;
}

.oo-collapsible .collapsed .oo-caret {
    transform: rotateZ(-.25turn);
}

/********************
* Search Bar
**********************/

.oo-searchbar {
    position: relative;
    width: 100%;
    max-width: 300px;
    --oo-icon-padding: 0.75rem;
}

.oo-searchbar > label {
    position: absolute;
    line-height: 0;
    height: fit-content;
    top: 0;
    bottom: 0;
    margin: auto 0;
    font-size: 0.875rem;
    padding: 0 var(--oo-icon-padding);
}

.oo-searchbar > input {
    padding-left: calc(1em + 2 * var(--oo-icon-padding))
}

a[disabled], a.disabled {
    pointer-events: none;
}


/******************
 * FILTERS SELECT *
 ******************/

/* Masking Bootstrap pseudo-element to use our own */
.oo-filters-select .dropdown-toggle::after,
.oo-dropdown .dropdown-toggle::after
 {
    content: none
}

.oo-calendar-dropdown {
    min-width: 275px;
}

.oo-filters-select .dropdown-menu {
    --bs-dropdown-min-width: 13.75rem;
    --bs-dropdown-border-color: var(--bs-border-color);
    --bs-dropdown-padding-y: .5rem;
    --bs-dropdown-box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.08);
    box-shadow: var(--bs-dropdown-box-shadow);
}

.oo-filters-select .dropdown-header {
    --bs-dropdown-header-padding-x: .75rem;
    --bs-dropdown-header-padding-y: .5rem;
}

.oo-filters-select .dropdown-header .btn {
    --bs-btn-border-width: 0;
}

.oo-filters-select .dropdown-item {
    --bs-dropdown-item-padding-x: .75rem;
    --bs-dropdown-item-padding-y: .25rem;
}

.oo-filters-select .dropdown-item.oo-dropdown-search {
    --bs-dropdown-item-padding-x: .5rem;
    --bs-dropdown-item-padding-y: .5rem;
}

.oo-filters-select .dropdown-divider {
    --bs-dropdown-divider-margin-x: .75rem;
    --bs-dropdown-divider-margin-y: .25rem;
    margin-left: var(--bs-dropdown-divider-margin-x);
    margin-right: var(--bs-dropdown-divider-margin-x);
}

.oo-filters-select .dropdown-menu > ul.overflow-auto {
    max-height: 250px;
}

.oo-filters-select .children-option {
    margin-left: 12px;
}

.no-after-content::after {
    content: none !important;
}

.oo-switch {
    display: flex;
    background-color: #EEF0F3;
    border-radius: 800px;
}

.oo-switch > div {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-weight: 600;
}

.oo-switch > div.selected {
    background-color: #FFF;
    border: 1px solid #E4E4E7;
    border-radius: 800px;
}

.oo-switch > div:not(.selected) {
    color: #556987;
}

.oo-generic-snackbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

/*-------------------------------------------*/
/*                                           */
/*               Radix components            */
/*                                           */
/*-------------------------------------------*/

[data-radix-popper-content-wrapper] {
    /* Bootstrap defines a z-index hierarchy for its components,
       while Radix does not. To ensure visual consistency between
       both systems, we align Radix popovers with Bootstrap's
       popover z-index value. */
    z-index: 1070 !important;
}