﻿/* Ajoutez dans votre fichier CSS */
.timeout-dialog-popup {
    font-family: 'Segoe UI', Arial, sans-serif !important;
}

.timeout-dialog-popup .swal2-title {
    color: #f44336 !important;
    font-size: 24px !important;
}

.timeout-keep-alive-btn {
    padding: 12px 30px !important;
    font-size: 16px !important;
}

.timeout-sign-out-btn {
    padding: 12px 30px !important;
    font-size: 16px !important;
}

#timeout-countdown {
    display: inline-block;
    min-width: 40px;
    animation: pulse 1s infinite;
}

@font-face {
    font-family: 'BalletSign';
    src: url('/Fonts/Ballet/Ballet_24pt-Regular.ttf') format('woff2'), 
        url('/Fonts/Ballet/Ballet_28pt-Regular.ttf') format('woff'), 
        url('/Fonts/Ballet/Ballet_48pt-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LicoriceSign';
    src: url('/Fonts/Licorice/Licorice-Regular.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CherishSign';
    src: url('/Fonts/Cherish/Cherish-Regular.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZeyadaSign';
    src: url('/Fonts/Zeyada/Zeyada-Regular.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.text-initial:hover{
    cursor: pointer;
}
.table-signataire {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    margin-top: 30px;
}
.table-signataire tr{
    font-size: 14px !important;
}
.btn-my-sign-action .dropdown-toggle {
    margin-left: -5px;
    border-radius: 0px 8px 8px 0px;
    text-decoration: none;
    background-color: #ff6b35;
    color: white;
}

.btn-my-sign-action .dropdown-toggle:focus{
    border: 0px;
    z-index: 1000
}

.dropdown-toggle:hover {
    border: 0px;
    z-index: 1000
}

.btn-my-sign-action .dropdown-item{
    font-size: 18px;
    color: black;
}
.content-area {
    padding: 0;
    margin: 0;
    min-height: 100%;
    background-color: #e8e8e8;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.hide-element{
    display: none !important;
}
.show-element{
    display: flex !important;
}

#menuTemplatetree .jstree-search {
    font-size: 16px !important;
    font-weight:700 !important;
}
.my-toast {
    font-size: 12px;
    font-weight: 100;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    border-radius: 5px;
}
.my-icon {
    color: white;
}
.close {
    border: none;
    color: red;
}
.sbBtnBlk {
    float: right;
}

    .sbBtnBlk .btn {
        padding: 0 15px 0 0;
        margin: 0;
        position: relative
    }

    .sbBtnBlk .sbBtn {
        color: #fff;
        background: transparent !important;
        border: none !important;
        padding: 7px 20px 7px 18px;
        display: inline-block;
    }

    .sbBtnBlk span .fa {
        cursor: pointer;
        border: 1px solid rgba(255,255,255,0.5);
        background: none;
        color: rgba(255,255,255,0.8);
        padding: 2px 2px 0px 0px;
        border-radius: 100%;
        width: 20px;
        height: 20px;
        text-align: center;
        position: absolute;
        top: 7px;
        right: 9px;
    }

    .sbBtnBlk a {
        color: #fff;
    }


html {
    font-size: 13px;
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.toggle-btn {
    background: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

.top-bar {
    background: #f0f0f0;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

.panel-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}




/* new css */
.signatory-box {
    position: relative;
    border: 2px solid orange;
    background-color: orange;
    border-radius: 1px;
    padding: 30px 20px;
    text-align: center;
    width: 150px;
    font-size: 18px;
    font-weight: 500;
    margin: 20px;
}

.signatory-controls {
    position: absolute;
    top: -40px;
    right: -2px;
    background: white;
    border: 2px solid orange;
    padding: 5px 8px;
    border-radius: 1px;
    display: flex;
    gap: 5px;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.signatory-controls i:hover {
    cursor: pointer;
}
.msg {
    margin-top: 5px;
    padding: 5px;
    font-weight: bold;
}
.msg-success{
    color: green;
}
.msg-error {
    color: red;
}
button {
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;

}

button a {
    color: #333;
    text-decoration: none;
}

td a {
    color: #007bff;
    margin: 0 5px;
    text-decoration: none;
}

svg {
    width: 20px;
    height: 20px;
    transition: fill 0.3s ease;
}



/* Modal signer diagram */

.modal-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 650px;
    width: 100%;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.legend-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.status-completed {
    background-color: #7CB342;
}

.status-pending {
    background-color: #FF9800;
}

.status-not-started {
    background-color: #9E9E9E;
}
.status-isdraft {
    background-color: #9E9E9E;
}
.status-notstarted {
    background-color: #9E9E9E;
}

.status-declined {
    background-color: #D32F2F;
}

.status-recalled {
    background-color: #2196F3;
}

.status-deleted {
    background-color: #F44336;
}

.badge-delegation {
    background-color: #000;
}

.badge-review {
    background-color: #000;
}

.badge-signer {
    background-color: #000;
}

.badge-cc {
    background-color: #424242;
}

.document-name {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}
.diagram-doc-status{
    padding-inline: 8px;
    border-radius: 5px;
    height: 20px;
    min-width: 50px;
    color: white;
    font-size: 12px !important;
}
.workflow-table {
    width: 100%;
    height: 100%;
}

.workflow-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.workflow-table-bady{
    margin-top: 20px;
}
.column-title {
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-align: center;
    padding-bottom: 15px;
}

.workflow-table td {
    text-align: center;
    padding: 0 10px;
    position: relative;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    margin-top:2rem;
}

.workflow-node {
    position: relative;
    min-width: 90px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor : pointer;
}

.node-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.workflow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

.arrow-line {
    width: 2px;
    height: 25px;
    background-color: #BDBDBD;
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #BDBDBD;
    margin-top: -1px;
}

.horizontal-arrow {
    display: inline-flex;
    align-items: center;
    margin: 15px auto;
}

.horizontal-line {
    width: 40px;
    height: 2px;
    background-color: #BDBDBD;
}

.horizontal-head {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #BDBDBD;
    margin-left: -1px;
}

.completion-node {
    width: 90px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.checkmark {
    font-size: 38px;
    color: white;
    font-weight: 300;
}

.workflow-cell-originator {
    vertical-align: top;
    position: relative;
}

.node-with-arrow-line {
    position: relative;
}

    /* Flèche entre le premier AD (Originator) et le deuxième AD (Signatories) */
    .node-with-arrow-line::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -179px;
        width: 179px;
        height: 2px;
        background-color: #BDBDBD;
        transform: translateY(-50%);
        z-index: 0;
    }

    .node-with-arrow-line::before {
        content: '';
        position: absolute;
        top: 50%;
        right: -100px;
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 8px solid #BDBDBD;
        transform: translateY(-50%);
        z-index: 1;
    }

.workflow-cell-signatories {
    vertical-align: top;
    position: relative;
}

.last-node-with-arrow {
    position: relative;
}

    .last-node-with-arrow::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -179px;
        width: 179px;
        height: 2px;
        background-color: #BDBDBD;
        transform: translateY(-50%);
    }

    .last-node-with-arrow::before {
        content: '';
        position: absolute;
        top: 50%;
        right: -100px;
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 8px solid #BDBDBD;
        transform: translateY(-50%);
    }

.workflow-cell-completed {
    vertical-align: bottom;
}



/* grant acces template */
.form-page {
    background-color: #fff;
    padding-inline: 20px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.label-access {
    margin-bottom: 10px;
}

.label-access span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.manage-templates-selection {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.manage-templates-selection > div:not(.v-or-partition) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 100px; 
    min-width: 250px;
}

.manage-templates-selection label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
}

.manage-templates-selection .select-access-temp {
    width: 100% !important;
}

/* Forcer Select2 à être responsive */
.select2-container {
    width: 100% !important;
}

.select2-selection {
    width: 100% !important;
}

.v-or-partition {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    margin-top: 28px;
    flex: 0 0 auto;
}

.v-or-partition span {
    font-weight: bold;
    color: #666;
    font-size: 14px;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-access-container {
    margin-top: 20px;
}

/* Pagination Styles */
.pagination .disabled {
    display: none;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-top: 1px solid #e8ecef;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #6c757d;
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .pagination a {
        text-decoration: none;
    }

.pagination-btn {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    background: white;
    color: #475a6d;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 38px;
    text-align: center;
}

    .pagination-btn:hover:not(:disabled):not(.active) {
        background: #f8f9fa;
        border-color: #adb5bd;
    }

    .pagination-btn.active {
        background: #475a6d;
        color: white;
        border-color: #475a6d;
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .pagination-btn.arrow {
        font-weight: bold;
    }

.pagination-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6c757d;
}

.items-per-page select {
    padding: 6px 30px 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

/* error message */
.msg {
    font-weight: normal;
    text-align: center;
    align-content: center;
    margin-inline: 10px;
    padding: 10px;
    border-radius: 5px;
}

.msg-success {
    background-color: #d4edda;
    color: #155724;
}

.msg-error {
    background-color: #f8d7da;
    color: #721c24;
}
#homePageTab a{
    text-decoration : none;
    color : white;
}