﻿.iti{
    width: 100%;
}
.error-phone{
    border-color: red !important;
}
.logo {
    width: 200px;
}
.active-a-header {
    position: relative;
    /*background-color: red;*/
}

.active-a-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    height: 3px;
    width: 0;
    background: green;
    transform: translateX(-50%);
    animation: underline-center 0.3s ease-out forwards;
}

@keyframes underline-center {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

key-display {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border: 2px solid #e0e5ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.key-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.key-label {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-value-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e0e5ff;
}

.key-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .copy-btn:hover {
        background: #5568d3;
        transform: scale(1.05);
    }

    .copy-btn.copied {
        background: #10b981;
    }
.form-wrapper {
    width: 100%;
    background: white;
    border-radius: 10px;
    /*box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);*/
    overflow: hidden;
    margin-bottom: 150px;
    margin-top: 20px;
    padding: 3rem;
}
.badge {
    background: #77b300;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}
.language-selector {
    position: relative;
    z-index: 100;
    margin-left: 10px;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.language-selector select:hover {
    border-color: #999;
}

#documentViewContent {
    overflow-y: auto;
    background: #e8e8e8;
    height: 750px;
}

#contentPages {
    overflow-y: auto;

}

#singerContainer {
    padding: 0px;
    margin-bottom: 0px;
}


#signerContainment {
    display: block;
    padding: 10px 0px;
    margin: 0px auto;
}

.singerPortrait { 
    margin: 0 auto; 
}

.documentContainment {
    margin-bottom: 10px;
    position: relative;
}

.documentContainment:last-child {
    margin-bottom: 0px;
}

.documentVisual {
    margin: 0px;
    padding: 0px;
    overflow-y: auto;
}

/* side bar */

.powerformMain .page-control {
    top: 7px;
    right: 20px;
}
.flexiformNw > .page-sidebar {
    box-shadow: 0px 0px 1px rgba(0,0,0,0.1) !important;
    z-index: 1035;
}
.card {
    border-color: #ebebeb;
}

.card-header {
    border-bottom-color: #ebebeb;
}

.powerformLeft {
    overflow: inherit;
    /*background: red;*/
    margin: 0px;
    display: flex
}

.card {
    border-color: #ebebeb;
}

.card-header {
    border-bottom-color: #ebebeb;
}
#accordionEx .card {
    position: initial;
    margin-bottom: 0px !important;
    border: 0;
    border-radius: 0px;
}

#accordionEx .card-header {
    padding: 10px 12px 5px;
    border: none;
    margin-bottom: 0px;
    background: transparent;
}

#accordionEx .card-header h1.header-text, h2.header-text, h3.header-text, h4.header-text, h5.header-text, h6.header-text {
    font-family: emSignerFont, Helvetica, Arial, sans-serif;
    margin: 10px 0;
}

#accordionEx .card-header a.collapsed.header-collapse .header-text:after {
    font-family: 'FontAwesome';
    content: "\f104";
    float: right;
}

#accordionEx .card-body {
    padding: 10px 12px;
}

.btn-i-add-signataire .btn-i:hover{
    cursor: pointer;
}
.btn-i:hover{
    cursor: pointer;
}



/*  css  new */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}
*/
/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.logo-text {
    font-size: 24px;
    font-weight: 300;
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    padding: 8px 0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav-item.active {
        border-bottom-color: #ff6b35;
        color: #ff6b35;
    }

    .nav-item:hover {
        color: #ff6b35;
    }

.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}
body{
    overflow:hidden;
}
/* Main Layout */
.main-layout {
    display: flex;
    height: 100vh;
    width: 100% ;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    position: relative;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important: empêche le scroll sur le sidebar entier */
}

.separator {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0; /* Ne se réduit pas */
}
.separator > div {
    background-color: #f8f9ff;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.separator div div {
    font-size: 12px;
    font-weight: 800;
    color: #666;
}
.folder-tree {
    flex: 1; /* Prend tout l'espace disponible */
    overflow-y: auto; /* Active le scroll vertical uniquement ici */
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 1px;
    padding: 0px;
    margin-top: -10px;
    background-color:white;
    max-height: 70%;
}
.header-menu-tree {
    display: flex;
    justify-content: start;
    background-color: #f5f5f5;
    position: relative;
    height: 45px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .folder-name,
.sidebar.collapsed .expand-icon {
    display: none;
}

.sidebar.collapsed .folder-item {
    justify-content: center;
    padding: 8px 0;
}

.sidebar.collapsed .folder-icon {
    margin-right: 0;
}


.sidebar-toggle {
    position: absolute;
    top: 5px;
    right: 0px;
    width: 28px;
    height: 28px;
    background-color: dodgerblue;
    color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: transform 0.3s ease;
}
.sidebar-icon-search {
    position: absolute;
    top: 5px;
    right: 28px;
    width: 28px;
    height: 28px;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}
.close-input-search {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    color: white;
    display: flex;
    background-color: red;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}
.input-search-sidebar {
    top: 5px;
    left: 10px;
    width: 85%;
    max-height: 30px;
    margin-right: 0px;
    position: relative;
    border-radius: 2px;
    border-color: blue;
    padding: 10px;
}
.title-menu-tree {
    top: 8px;
    left: 10px;
    position: relative;
}
.header-menu-tree input {
    appearance: none;
    border: 1px solid #ccc; /* bordure fine */
    padding: 8px; /* espace interne */
    border-radius: 4px; /* coins arrondis */
    outline: none; /* pas de contour bleu */
}

.header-menu-tree input:focus {
    border-color: #007bff; /* change la bordure quand on clique */
}

.input-search-sidebar:focus {
    border-color: aliceblue;
}
.sidebar-icon-search:hover {
    cursor: pointer;
}
.sidebar-toggle:hover {
    background-color: #f8f9fa;
    color: black
}

.sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.sidebar-header {
    padding: 0 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 12px;
    gap: 8px;
}

    .search-box input {
        border: none;
        background: none;
        outline: none;
        flex: 1;
        font-size: 14px;
    }

.folder-tree {
    padding: 20px 0;
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .folder-item:hover {
        background-color: #f8f9fa;
    }

.folder-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    color: #ffa500;
}

.folder-name {
    font-size: 14px;
    color: #333;
}

.expand-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    color: #666;
}

/* Content Area */
.content-area {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
    /*overflow-y: hidden;*/
    overflow-y: auto;
    max-height: calc(100vh - 100px) !important;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 20px;*/
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab.active {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.tab:not(.active) {
    background-color: #333;
    border-color: #333;
    color: white;
}

.tab-count {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.tab.active .tab-count {
    background-color: rgba(255, 255, 255, 0.3);
}
.input{
    color: black !important;
    font-weight: 600;
    margin: 3px;
}
.input-sign {
    color: black !important;
    font-weight: 500;
}
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-dropdown span {
    color: black;
    font-size: 14px;
}
.filter-dropdown select {
    padding: 3px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
}

.search-btn, .export-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.search-btn:hover, .export-btn:hover {
    background-color: #f8f9ff;
    color: darkblue;
}

/* Bottom Panel */
.bottom-panel {
    position: relative;
    bottom: 20px;
    top: 10px;
    left: 10px;
    right: 30px;
    max-width: 90%;
    background-color: #333;
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bottom-panel-icon {
    width: 20px;
    height: 20px;
    background-color: #ff6b35;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.bottom-panel-text {
    font-size: 12px;
}

.bottom-panel-subtitle {
    font-size: 11px;
    color: #ccc;
}

.hide-element {
    display: none;
}
/* Responsive */
@media (max-width: 1024px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-dropdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .sidebar.collapsed {
        width: 50px;
    }

   /* .nav-menu {
        display: none;
    }*/

    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .tab {
        flex-shrink: 0;
        min-width: fit-content;
    }

   
    .table-container {
        overflow-x: auto;
    }

    .table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 10px;
    }

    .content-area {
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        position: fixed;
        top: 60px;
        left: -100%;
        height: calc(100vh - 60px);
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .sidebar.collapsed {
        width: 100%;
        left: -100%;
    }

    .main-layout {
        flex-direction: column;
        height: 100%;
        background-color: red !important;
    }

    .content-area {
        width: 100%;
        margin-left: 0;
        height: 100%;
    }

    .bottom-panel {
        position: relative;
        margin: 20px 10px;
    }
}

.dropdown-menu {
    z-index: 1050 !important;
}

table .dropdown {
    position: static;
}

table .dropdown-menu {
    position: relative;
    z-index: 1050 !important;
}


tr {
    position: relative;
}

td {
    overflow: visible;
}

/* Styles pour les dropdowns */
.dropdown {
    position: static !important;
}

.dropdown-toggle {
    position: relative;
    z-index: 1;
}

.dropdown-menu {
    position: absolute !important;
    z-index: 1050 !important;
}

/* Quand le dropdown est ouvert */
.dropdown.show {
    z-index: 1052 !important;
}

    .dropdown.show .dropdown-menu {
        z-index: 1053 !important;
    }

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    position: relative;
}

thead {
    background-color: #f8f9fa; /* Light grey header background */
    border-bottom: 1px solid #e0e0e0;
    width: 100%
}

th {
    padding: 18px 25px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: white;
    position: relative;
    white-space: nowrap;
    user-select: none;
    color: black;
}

th .fas {
    margin-left: 8px;
    color: #a0a0a0;
    transition: transform 0.2s ease-in-out;
}

th:hover .fas {
    transform: rotate(180deg); /* Simple animation for sort icon on hover */
    color: #777;
}

tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 15px 25px;
    font-size: 18px;
    color: #444;
    vertical-align: middle;
}

td input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #007bff; /* Primary color for checkbox */
}

.envelope-info strong {
    font-weight: 500;
    color: #333;
}

.view-btn {
    background-color: #007bff; /* Bootstrap primary blue */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

    .view-btn:hover {
        background-color: #0056b3; /* Darker blue on hover */
        transform: translateY(-1px);
    }

    .view-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(0, 123, 255, 0.3);
    }

    .view-btn .fas {
        margin-right: 6px;
        font-size: 12px;
    }

/* Table Footer Styles */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    background-color: #f8f9fa;
    font-size: 14px;
    color: #555;
}

.pagination-info select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-left: 8px;
    font-size: 14px;
    appearance: none; /* Remove default select arrow */
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

    .pagination-info select:focus {
        outline: none;
        border-color: #007bff;
    }

.pagination-controls {
    display: flex;
    gap: 5px;
}

.page-btn {
    background-color: #ffffff;
    color: #555;
    border: 1px solid #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .page-btn:hover:not(.disabled):not(.active) {
        background-color: #e9ecef;
        border-color: #c0c0c0;
        color: #333;
    }

    .page-btn.active {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
        cursor: default;
    }

    .page-btn.disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: #f8f9fa;
        color: #a0a0a0;
    }


