:root {
    --tblr-primary: #6BCFAE;
    --tblr-border-color: #b8bec8;
    --tblr-border-color: #b8bec8;
}

.form-check-input {
    border-color: #b8bec8;
}
.bo-logo {
    height: 80px;
    width: auto;
}
.bo-login-logo {
    height: 150px;
    width: auto;
}

/* region AUTHENTIFICATION */

.bo-auth-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #0b2450 url('../img/static/login-fd.jpg') center / cover no-repeat fixed;
}

.bo-auth-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bo-auth-page {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.bo-auth-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 850px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
}

.bo-auth-visual {
    flex: 0 0 500px;
    width: 500px;
    min-height: 450px;
    background: url('../img/static/login-desktop.webp') center / cover no-repeat;
}

.bo-auth-form-container {
    display: flex;
    flex: 0 0 350px;
    width: 350px;
    min-height: 450px;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.05);
}

.bo-auth-logo {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.bo-auth-logo img {
    display: block;
    width: 100%;
    max-width: 300px;
    max-height: 90px;
    object-fit: contain;
}

.bo-auth-heading {
    width: 100%;
    padding: 10px 15px;
    color: var(--tblr-body-color);
    border-radius: 8px;
}

.bo-auth-form-container .input-group-text i {
    color: var(--tblr-primary);
}

.bo-auth-password-group .form-control {
    padding-right: 2.75rem;
    border-top-right-radius: var(--tblr-border-radius);
    border-bottom-right-radius: var(--tblr-border-radius);
}

.bo-auth-password-group > .bo-auth-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    width: 2.75rem;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    transform: none;
}

.bo-auth-form-container .was-validated .form-control:invalid,
.bo-auth-form-container .form-control.is-invalid {
    padding-right: calc(1.5em + 0.75rem);
    background-color: rgba(211, 46, 83, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.bo-auth-form-container .was-validated .invalid-feedback {
    display: none;
}

.bo-auth-form-container .was-validated #password:invalid,
.bo-auth-form-container #password.is-invalid {
    padding-right: 2.75rem;
    background-image: none;
}

@media (max-width: 768px) {
    .bo-auth-page {
        padding: 10px;
    }

    .bo-auth-content-wrapper {
        display: block;
        max-width: 410px;
    }

    .bo-auth-visual {
        width: 100%;
        height: 180px;
        min-height: 180px;
        background-image: url('../img/static/login-mobile.jpg');
        background-position: center top;
    }

    .bo-auth-form-container {
        width: 100%;
        min-height: 0;
        padding: 25px 20px 30px;
        box-shadow: none;
    }

    .bo-auth-logo {
        min-height: 80px;
    }

    .bo-auth-logo img {
        max-height: 80px;
    }
}

/* endregion */

/* region DOCUMENTATION ADMIN */

.knowledge-article-modal.show {
    background: rgba(31, 41, 55, 0.18);
}

.knowledge-article-modal .modal-dialog {
    width: calc(100% - 4rem);
    max-width: 78rem;
    height: min(80vh, 50rem);
    margin: 2rem auto;
}

.knowledge-article-modal .modal-content {
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.28);
}

.knowledge-article-modal form {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.knowledge-article-modal .modal-body {
    min-height: 0;
}

.knowledge-editor .tox-hugerte {
    border-color: var(--tblr-border-color);
}

.knowledge-editor .tox-hugerte.is-invalid {
    border-color: var(--tblr-danger);
}

.knowledge-editor .tox-hugerte.is-invalid + .invalid-feedback,
.knowledge-editor textarea.is-invalid + .invalid-feedback {
    display: block;
}

[data-knowledge-admin] .table td:last-child {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .knowledge-article-modal .modal-dialog {
        width: calc(100% - 1rem);
        height: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

}

/* endregion */

/* region DOCUMENTATION */

body.bo-knowledge-active {
    overflow: hidden;
}

body.bo-knowledge-active .page-wrapper > .footer {
    display: none;
}

.knowledge-workspace {
    display: flex;
    min-height: 36rem;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.knowledge-toolbar {
    flex: 0 0 auto;
}

.knowledge-workspace__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.knowledge-workspace__column {
    min-height: 0;
    height: 100%;
}

.knowledge-sidebar,
.knowledge-document {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.knowledge-sidebar__scroll,
.knowledge-reader {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.knowledge-sidebar__scroll {
    flex: 1 1 auto;
}

.knowledge-reader {
    flex: 1 1 auto;
    scroll-behavior: smooth;
}

.knowledge-reader > [id] {
    scroll-margin-top: 1rem;
}

.knowledge-tree__project + .knowledge-tree__project {
    border-top: 1px solid var(--tblr-border-color);
}

.knowledge-tree__project-title,
.knowledge-toc__title {
    padding: 0.75rem 1rem;
    color: var(--tblr-secondary-color);
    font-size: 0.75rem;
    font-weight: var(--tblr-font-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.knowledge-tree__toggle,
.knowledge-tree__article,
.knowledge-toc__link {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    color: var(--tblr-body-color);
    border: 0;
    background: transparent;
    text-align: left;
    text-decoration: none;
}

.knowledge-tree__toggle {
    padding: 0.45rem 0.75rem 0.45rem calc(1rem + (var(--knowledge-depth) * 1rem));
}

.knowledge-tree__article {
    padding: 0.45rem 0.75rem 0.45rem calc(2.75rem + (var(--knowledge-depth) * 1rem));
}

.knowledge-tree__toggle:hover,
.knowledge-tree__article:hover,
.knowledge-toc__link:hover {
    color: var(--tblr-primary);
    background: var(--tblr-bg-surface-secondary);
}

.knowledge-tree__article.active {
    color: var(--tblr-primary);
    background: var(--tblr-active-bg);
    box-shadow: inset 3px 0 0 var(--tblr-primary);
}

.knowledge-tree__chevron {
    width: 0.75rem;
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.knowledge-tree__toggle[aria-expanded="false"] .knowledge-tree__chevron {
    transform: rotate(-90deg);
}

.knowledge-tree__folder {
    width: 1rem;
    color: var(--tblr-secondary-color);
}

.knowledge-tree__empty {
    padding: 0.35rem 0.75rem 0.35rem calc(2.75rem + (var(--knowledge-depth) * 1rem));
    color: var(--tblr-secondary-color);
    font-size: 0.75rem;
}

.knowledge-toc {
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--tblr-border-color);
}

.knowledge-toc__link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.35;
}

.knowledge-toc__link--level-2 {
    padding-left: 1.25rem;
}

.knowledge-toc__link--level-3 {
    padding-left: 2rem;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    body.bo-knowledge-active {
        overflow: auto;
    }

    body.bo-knowledge-active .page-wrapper > .footer {
        display: block;
    }

    .knowledge-workspace {
        height: auto !important;
        overflow: visible;
    }

    .knowledge-workspace__body {
        overflow: visible;
    }

    .knowledge-workspace__column {
        height: auto;
    }

    .knowledge-sidebar {
        max-height: 32rem;
    }

    .knowledge-document {
        height: auto;
    }

    .knowledge-reader {
        overflow: visible;
    }
}

/* endregion */



/* ==========================================================================
   DASHBOARD BO
   ========================================================================== */

/* --------------------------------------------------------------------------
   Cards logos : Tools + Sites perso
   -------------------------------------------------------------------------- */

.dashboard-logo-card {
    background: var(--tblr-bg-surface);
}

.dashboard-logo-card .card-body {
    padding: 1rem 1.5rem;
}

.dashboard-logo-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dashboard-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    line-height: 1;
}

.dashboard-logo-image {
    display: block;
    width: auto;
    height: 42px;
    max-width: 90px;
    object-fit: contain;
}


/* --------------------------------------------------------------------------
   Cards principales PRO / PERSO
   -------------------------------------------------------------------------- */

.dashboard-main-card {
    background: var(--tblr-bg-surface);
}

.dashboard-tabs-header {
    background: var(--tblr-bg-surface);
}

.dashboard-tab-body {
    padding: 0.5rem;
}


/* --------------------------------------------------------------------------
   Zone scrollable
   Environ 6 lignes visibles
   -------------------------------------------------------------------------- */

.dashboard-scroll {
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* --------------------------------------------------------------------------
   Lignes de liens / documents
   -------------------------------------------------------------------------- */

.dashboard-links-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-links-row-single {
    grid-template-columns: 1fr;
}

.dashboard-row-alt .dashboard-link-item,
.dashboard-row-alt .dashboard-document-item {
    background: #e9ecef;
}


/* --------------------------------------------------------------------------
   Liens
   -------------------------------------------------------------------------- */

.dashboard-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    min-width: 0;

    padding: 0.6rem 0.85rem;

    background: #fff;

    border: var(--tblr-border-width)
    var(--tblr-border-style)
    var(--tblr-border-color);

    border-radius: var(--tblr-border-radius);
}

.dashboard-link-main {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;
    width: 28px;

    font-size: 1.125rem;
}

.dashboard-link-label {
    min-width: 0;

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

    font-weight: 600;
}


/* --------------------------------------------------------------------------
   Icônes Local / Préprod / Prod
   -------------------------------------------------------------------------- */

.dashboard-env-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    flex: 0 0 auto;
}

.dashboard-env-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
}

.dashboard-env-links a[title="Local"] {
    color: var(--tblr-body-color);
}

.dashboard-env-links a[title="Préprod"] {
    color: var(--tblr-warning);
}

.dashboard-env-links a[title="Production"] {
    color: var(--tblr-success);
}


/* --------------------------------------------------------------------------
   Documents
   -------------------------------------------------------------------------- */

.dashboard-document-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    min-width: 0;

    padding: 0.6rem 0.85rem;

    background: #fff;

    border: var(--tblr-border-width)
    var(--tblr-border-style)
    var(--tblr-border-color);

    border-radius: var(--tblr-border-radius);

    color: inherit;
    text-decoration: none;
}

.dashboard-document-item:hover {
    color: inherit;
    text-decoration: none;
}

.dashboard-document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;
    width: 38px;

    font-size: 1.25rem;
}

.dashboard-document-text {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.dashboard-document-text strong,
.dashboard-document-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-document-text small {
    color: var(--tblr-secondary);
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .dashboard-scroll {
        height: auto;
        max-height: 282px;
    }

}

@media (max-width: 767.98px) {

    .dashboard-links-row {
        grid-template-columns: 1fr;
    }

    .dashboard-logo-list {
        gap: 1rem;
    }

    .dashboard-logo-icon {
        font-size: 2.2rem;
    }

}



 .jira-epic-dot {
     display: inline-block;
     width: 15px;
     height: 15px;
     min-width: 0;
     min-height: auto;
     padding: 0;
     border-radius: 100rem;
     vertical-align: baseline;
     flex: 0 0 15px;
 }


.jira-column {
    min-height: 280px;
    max-height: 650px;
    overflow-y: auto;
    padding-right: 5px;
}


.jira-ticket {
    cursor: grab;
    border-top-width: 5px !important;
    border-top-style: solid !important;
}


.jira-ticket:active {
    cursor: grabbing;
}


.jira-ticket .card-body {
    padding: 8px 10px 9px;
}


.jira-ticket-key {
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 3px;
}


.jira-ticket-title {
    font-size: 12px;
    line-height: 1.25;
    font-weight: normal;
    margin: 0;
}


.jira-progress-label {
    width: 14px;
    flex: 0 0 14px;
    font-size: 11px;
    font-weight: 600;
}


.jira-progress-count {
    width: 38px;
    flex: 0 0 38px;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}


.jira-progress-percent {
    width: 30px;
    flex: 0 0 30px;
    font-size: 11px;
    text-align: right;
}

.bo-menu-icon {
    display: inline-flex;
    width: 1.75rem;
    flex: 0 0 1.75rem;
    align-items: center;
    justify-content: center;
    margin-right: 0.15rem;

}

.bo-menu-icon i {
    font-size: 20px !important;
}

.dashboard-logo-card a:hover,
a.dashboard-logo-card:hover {
    text-decoration: none;
}
.footer {
    padding-top: 0;
}

.dashboard-document-item {
    text-align: left;
    justify-content: flex-start;
}

.dashboard-document-text {
    text-align: left;
    align-items: flex-start;
}

.darjust-layout {
    display: grid;
    grid-template-columns: 15fr 85fr;
    gap: 1rem;
    align-items: start;
}

.darjust-nav {
    min-width: 0;
}

.darjust-nav .nav {
    align-items: stretch;
}

.darjust-nav .nav-link {
    display: flex !important;
    width: 100%;
    min-width: 0;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    color: inherit;
}

.darjust-nav .nav-link .card-body {
    display: flex !important;
    width: 100%;
    padding: .7rem .8rem;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.darjust-nav .nav-link .card-body > .d-flex {
    display: flex !important;
    width: 100%;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.darjust-nav .nav-link .fw-semibold {
    flex: 1;
    text-align: left !important;
}

.darjust-nav .nav-link.disabled {
    opacity: .4;
    cursor: not-allowed;
}

.darjust-content {
    min-width: 0;
}

.darjust-infos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.darjust-logo-preview {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}

.darjust-logo-preview img {
    display: block;
    max-width: 90%;
    max-height: 130px;
    object-fit: contain;
}

.darjust-univers-json {
    max-height: 600px;
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    font-size: .875rem;
}

.darjust-content .card-header {
    min-height: 48px;
}

.darjust-content .card-body {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.darjust-content .card-footer {
    padding-top: .6rem;
    padding-bottom: .6rem;
}

.darjust-process-overlay {
    --darjust-overlay-background: rgba(0, 0, 0, .70);
    --darjust-overlay-blur: 2px;
    --darjust-loader-width: min(360px, 78vw);
    --darjust-loader-spinner-color: #e62b26;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--darjust-overlay-background);
    backdrop-filter: blur(var(--darjust-overlay-blur));
}

.darjust-process-overlay.is-active {
    display: flex;
}

.darjust-process-loader {
    position: relative;
    width: var(--darjust-loader-width);
    aspect-ratio: 566.97 / 242.73;
}

.darjust-process-loader__wordmark {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
}

.darjust-process-loader__spinner {
    position: absolute;
    top: 21.09%;
    left: 54.66%;
    display: flex;
    width: 18.06%;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    color: var(--darjust-loader-spinner-color);
    font-size: calc(var(--darjust-loader-width) * .135);
    line-height: 1;
    transform: translate(-50%, -50%);
}

.darjust-process-loader__spinner i {
    animation: darjust-loader-spin 1.4s linear infinite;
    transform-origin: center;
}

@keyframes darjust-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    .darjust-layout {
        grid-template-columns: 1fr;
    }

    .darjust-infos-grid {
        grid-template-columns: 1fr;
    }
}

#description-rewrite-modal {
    background-color: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(2px) !important;
}
