/*----------------------------------------------------------------------------------------------------------------------
Header------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.content-header {
    margin-bottom: 1rem;
}
.header-action-container .btn-action .action-label {
    display: none;
}
/*----------------------------------------------------------------------------------------------------------------------
Button------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.btn-icon {
    background: none;
    border: none;
    color: inherit;
}
/*----------------------------------------------------------------------------------------------------------------------
Table-------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.table-cell-icon {
    text-align: center;
}
.table-action-button {
    text-align: center;
}
.table-action-button .action-label {
    display: none;
}
.dashboard .table-cell-icon .icon {
    font-size: inherit !important;
    color: inherit !important;
}
.table-cell-price {
    text-align: right;
}
.table-cell-number {
    text-align: right;
}
.table-cell-img {
    text-align: center;
}
.table-cell-img img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.table-cell-img img.rounded-circle {
    border: 1px solid #dee2e6;
}
.table-cell-checkbox {
    text-align: center;
}
.table-cell-checkbox .form-check {
    padding-left: 0;
}
.table-cell-checkbox .form-check-input {
    float: none;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}
.table-dropdown-parent td, .table-dropdown-parent th {
    background-color: #EEEEEE;
}
/*----------------------------------------------------------------------------------------------------------------------
Cursor------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.cursor-pointer {
    cursor: pointer;
}
.cursor-copy {
    cursor: copy;
}
/*----------------------------------------------------------------------------------------------------------------------
Fiche-------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.fiche-header {
    display: flex;
}
.fiche-title {
    width: 100%;
}
.fiche-reference {
    font-size: 1.5rem;
}
.fiche-group-container {
    margin: 1rem 0;
}
.fiche-group-container .fiche-row {
    border-bottom: 1px solid #A3A3A3;
}
.fiche-group-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.fiche-label {
    font-weight: 600;
    width: 300px;
}
.fiche-label:after {
    content: ' :';
}
.fiche-row {
    display: flex;
}
.fiche-img-container img {
    max-width: 100%;
}
.fiche-icon-lg-container {
    text-align: center;
}
.fiche-icon-lg {
    font-size: 10rem;
}
.fiche-fichier-lg-container {
    text-align: center;
}
.fiche-fichier-lg-container i {
    font-size: 10rem;
}
.fiche-fichier-lg-container img {
    max-width: 100%;
}
.fiche-row-text .fiche-value {
    border: 1px solid #A3A3A3;
    overflow-y: scroll;
    height: 150px;
    padding: 0.5rem;
    display: block;
}
.card-body .fiche-row-text .fiche-value {
    text-align: left;
}
.card {
    overflow: visible !important;
}
/* Texte Markdown (contrats) */
.markdown > :last-child {
    margin-bottom: 0;
}
.markdown h1 {
    font-size: 1.5rem;
}
.markdown h2 {
    font-size: 1.3rem;
}
.markdown h3 {
    font-size: 1.1rem;
}
.markdown table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}
.markdown th, .markdown td {
    padding: 0.4rem 0.6rem;
    border: 1px solid #DEE2E6;
}
/*----------------------------------------------------------------------------------------------------------------------
Autocomplete------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.ts-wrapper.form-control {
    border: none !important;
    padding: 0 !important;
}
.dark-mode .ts-control {
    background: none !important;
    border: 1px solid #6c757d !important;
    color: #ffffff !important;
    box-shadow: none;
}
/* Liste déroulante opaque en mode sombre : les options du thème clair par défaut (fond blanc) sont remplacées */
.dark-mode .ts-dropdown {
    background: #343a40 !important;
    border: 1px solid #6c757d !important;
    color: #ffffff !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .4);
}
.dark-mode .ts-dropdown .option,
.dark-mode .ts-dropdown .no-results,
.dark-mode .ts-dropdown .optgroup-header {
    background: transparent;
    color: #ffffff;
}
.dark-mode .ts-dropdown .active,
.dark-mode .ts-dropdown .option:hover {
    background: #495057 !important;
    color: #ffffff !important;
}
.dark-mode .ts-control > input,
.dark-mode .ts-control .item {
    color: #ffffff !important;
}
.dark-mode .ts-control > input::placeholder {
    color: #adb5bd;
}
/*----------------------------------------------------------------------------------------------------------------------
Form--------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
form .required::after {
    content: '*';
    color: red;
}
/*----------------------------------------------------------------------------------------------------------------------
Fieldset----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
fieldset {
    padding: 1.5rem;
    border-style: solid;
    border-width: 1px;
    margin-bottom: 1.5rem;
}
fieldset legend.required::after {
    content: ' *';
    color: red;
}
fieldset legend {
    font-size: 1.5rem !important;
    padding: 0.5rem;
    width: auto;
}
fieldset legend div {
    display: inline;
}
.dark-mode fieldset {
    border-color: #6c757d;
}
/*----------------------------------------------------------------------------------------------------------------------
Sidebar nav-------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.sidebar .nav-treeview {
    transition: all ease-in-out 1s;
}
.sidebar .nav-item.menu-open .nav-treeview {
    display: block;
}
.sidebar .nav-link {
    cursor: pointer;
}
/*----------------------------------------------------------------------------------------------------------------------
Sidebar brand-----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.brand-link {
    display: flex;
    align-items: center;
}
.brand-image {
    float: none;
}
.brand-text {
    padding: 5px 5px 5px 10px;
}
/*----------------------------------------------------------------------------------------------------------------------
Card--------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.card-tools .form-group-tool,
.card-tools .badge-tool
{
    display: inline-block;
    margin-left: 8px;
    margin-right: 8px;
}
/*----------------------------------------------------------------------------------------------------------------------
List--------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
ul.list-inline {
    display: flex;
    gap: 0.25rem;
}
/*----------------------------------------------------------------------------------------------------------------------
Agenda------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.table-agenda th, .table-agenda td {
    text-align: center;
}
.table-agenda-day {
    width: calc((100% / 7) - (0.5% / 2));
}
.table-agenda-date {
    margin-bottom: 0.5rem;
}
.table-agenda-date-actuelle {
    border: 1px solid black;
    border-radius: 10px;
}
.table-agenda-evenement-container {
    height: 8rem;
    overflow: scroll;
}
.table-agenda-evenement {
    text-align: left;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}
.table-agenda-evenement-detail-icon {
    float: right;
    margin-top: 0.25rem;
}
.table-agenda-evenement-detail hr {
    margin: 0.25rem 0;
}
.table-agenda-evenement-detail p {
    margin-bottom: 0.5rem;
}
.table-agenda-cell-mois-different {
    opacity: 0.5;
}
/*----------------------------------------------------------------------------------------------------------------------
Loader------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.loader-container {
    display: none;
    text-align: center;
    padding: 4rem;
    font-size: 1.75rem;
}
html[aria-busy=true] .loader-container {
    display: block;
}
html[aria-busy=true] .content,
html[aria-busy=true] .content-header {
    display: none;
}
/* HTML: <div class="loader"></div> */
.loader {
    height: 80px;
    aspect-ratio: 1;
    display: grid;
    margin: auto;
}
.loader:before,
.loader:after {
    content: "";
    --c:no-repeat linear-gradient(#fff 0 0);
    background: var(--c), var(--c);
    background-size: 25% 50%;
    animation: l5 1.5s infinite linear;
}
.loader:after {
    transform: scale(-1);
}
@keyframes l5 {
    0%,
    5%   {background-position:33.4% 100%,66.6% 100%}
    25%  {background-position:33.4% 100%,100% 0}
    50%  {background-position:0 0,100% 0}
    75%  {background-position:0 0,66.6% 100%}
    95%,
    100% {background-position:33.4% 100%,66.6% 100%}
}
/*----------------------------------------------------------------------------------------------------------------------
Animations--------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.animation__blink {

}
.animation__blink {
    animation: animation__blink 2s linear infinite;
}
@keyframes animation__blink {
    50% { opacity: 0; }
}
/*----------------------------------------------------------------------------------------------------------------------
Blink-------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
.blink {
    animation: blinker 1.4s linear infinite;
}
@keyframes blinker {
    50% {
        opacity: 0;
    }
}
/*----------------------------------------------------------------------------------------------------------------------
Navbar dropdown---------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
/* Menus déroulants de la navbar (navbar_link_dropdown_controller.js) : apparition animée */
[data-controller~="component--menus--navbar-link-dropdown"] > .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s linear .15s;
}
[data-controller~="component--menus--navbar-link-dropdown"] > .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    [data-controller~="component--menus--navbar-link-dropdown"] > .dropdown-menu {
        transition: none;
    }
}
/* Menus toujours présents dans la page (display: block, masqués par visibility) : leur contenu ne doit jamais
   déborder de l'écran, sinon la page s'élargit en mobile (défilement horizontal, sidebar décalée). */
.main-header {
    overflow-x: clip;
}
[data-controller~="component--menus--navbar-link-dropdown"] > .dropdown-menu .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}
/* Mobile : menu pleine largeur sous la navbar */
@media (max-width: 575.98px) {
    [data-controller~="component--menus--navbar-link-dropdown"] > .dropdown-menu {
        position: fixed;
        top: calc(3.5rem + 1px);
        left: .5rem;
        right: .5rem;
        min-width: 0;
        max-width: none;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }
}
/* Mobile : la navbar ne garde que les icônes (heure et libellés masqués) pour tenir sur une ligne */
@media (max-width: 767.98px) {
    .main-header .navbar-link-label,
    .main-header .navbar-datetime {
        display: none;
    }
}
/*----------------------------------------------------------------------------------------------------------------------
Card collapse-----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
/* Bouton de repli des cards (card_collapse_controller.js) : rotation de l'icône */
.card-collapse-btn i {
    transition: transform .25s ease-in-out;
}
.card-collapse-btn[aria-expanded="false"] i {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .card-collapse-btn i {
        transition: none;
    }
}

/* Messages : fil de discussion d'une conversation */
.conversation-messages {
    height: 60vh;
}
.conversation-message-initiale {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6c757d;
    color: #fff;
    font-weight: bold;
}
/*----------------------------------------------------------------------------------------------------------------------
Listing : actions de ligne----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------*/
/* Bouton principal + menu « ⋯ » (listings/row_actions_controller.js) */
.table-actions {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}
.table-actions-container {
    display: inline-flex;
    gap: .25rem;
}
.table-actions-container > .btn-action .action-label {
    display: none;
}
/* Menu positionné en fixed par le contrôleur pour ne pas être rogné par .table-responsive */
.table-actions-menu {
    position: fixed;
    min-width: 12rem;
    padding: .25rem;
}
.table-actions-menu.show {
    display: block;
}
.table-actions-menu .btn-action {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    margin: 0 0 .25rem;
    text-align: left;
}
.table-actions-menu .btn-action:last-child {
    margin-bottom: 0;
}
.table-actions-menu .btn-action i {
    width: 1.25rem;
    text-align: center;
}
.listing-table th,
.listing-table td {
    vertical-align: middle;
}
