/* === POPUP LAYOUT === */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "72", Arial, sans-serif;
    background: #f5f7fa;
}

#container{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.accordion{
    overflow-x: hidden;
}

.btn_open{
   display: none; 
}

#div_btn_apply{
    display: flex;
    justify-content: center;
    margin: 8px 0px 0px 0px;
}

.template-input-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #eff4f9;
    margin-top: 5px;
}

.btnSavePal{
    margin-bottom: 5px;
}

#popup-main {
    display: flex;
    height: 100vh;
    width: 100%;
    padding: 10px;
    gap: 15px;
    overflow-x: hidden !important; /* CRITIQUE : bloque scrollbar horizontale */
}

/* === PANELS === */
.panel-left,
.panel-middle,
.panel-right {
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* CORRECTION CRITIQUE : overflow visible sur panels avec tooltips */
.panel-left,
.panel-right {
    overflow: visible !important; /* Permet aux tooltips de sortir DU PANEL */
    position: relative;
    z-index: 10;
}

.panel-left {
    display: flex;
    flex-direction: column;
    max-width: 25%;
}

.panel-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 400px;
    overflow: hidden; /* Middle panel reste scrollable normalement */
}

.panel-right {
    display: flex;
    flex-direction: column;
    min-width: 20%;
    max-width: 30%;
}

/* === TEMPLATES PANEL === */
.save-template-section {
    padding: 12px 15px;
    background: #346187;
    border-radius: 8px;
    color: white;
    margin-bottom: 12px;
}

.template-input {
    width: 95%;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: "72", Arial, sans-serif;
    margin-bottom: 8px;
}

.btn-save-template {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: #2a4e6b;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "72", Arial, sans-serif;
}

#save_template, #template-name{
    font-weight: bold;
}

.btn-save-template:hover {
    background: #24425c;
}

.templates-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.serviceName{
    font-size: 13px;
}
/* === NOUVELLE STRUCTURE SCROLL TEMPLATES === */
.templates-list-outer {
    /*flex: 1;*/
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0 10px 0px 10px;
    box-sizing: border-box;
    margin-bottom: 5px;
}
.detailed-template-outer,.detailed-template-inner{
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 50%;
    display: none;
}
.templates-list-inner {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 0 0; /* Padding top pour séparation header */
}

.template-card {
    background: white;
    border: 1px solid #e8eef5;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: default;
    position: relative;
}

.template-card:hover {
    border-color: #346187;
    box-shadow: 0 2px 8px rgba(52, 97, 135, 0.12);
}

.template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-name {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.template-name strong {
    color: #346187;
    font-size: 14px;
    font-weight: 600;
}

.template-badge {
    background: #346187;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.template-actions {
    display: flex;
    gap: 6px;
    margin-right: 10px;
}

.bloc_det_temp_l1{
    font-size: 13px;
}
.disp_temp_title_l1{
    font-weight: bold;
    margin-left: 5px;
}

.bloc_det_temp_l2{
    padding: 5px 10px;
}
.disp_temp_title_l2{
    text-decoration: underline;
}

.bloc_det_temp_l3{
    display: flex;
    justify-content: space-between;
}
.disp_temp_title_l3{
    margin-right: 10px;
}

.det-template-header{
    padding: 5px 10px 0px 10px;
    background: #eff4f9;
    color: #346187;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.det-template-header-info{
    background: #eff4f9;
    color: #346187;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

.downl_templ{
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjM0LjYwODAwMDAwMDAwMDAwNCAwIDIxOS43MTIwMDE3NjAwMDg0MyAyODguOTI5IiBvcGFjaXR5PSIxIiB3aWR0aD0iMjE5LjcxMjAwMTc2MDAwODQzIiBoZWlnaHQ9IjI4OC45MjkiPgoJCQoJCTxwYXRoIGQ9Ik0xODEuOTY5LDE1Mi4wNTRjLTUuMTY3LTQuMzI0LTEyLjg2OS0zLjY1NS0xNy4xOTgsMS41MDdsLTguMTA0LDkuNjU0VjEyLjIwNSBDMTU2LjY2Nyw1LjQ2NiwxNTEuMjA2LDAsMTQ0LjQ2Miwwcy0xMi4yMDUsNS40NjYtMTIuMjA1LDEyLjIwNXYxNTEuMDE2bC04LjA5OS05LjY1NGMtNC4zMy01LjE1Ni0xMi4wMi01Ljg0Mi0xNy4xOTgtMS41MDcgYy01LjE2Miw0LjM0LTUuODM2LDEyLjAzNy0xLjUwMSwxNy4xOThsMjkuNjU5LDM1LjM0M2MwLjA5OCwwLjExNCwwLjIyMywwLjE5NiwwLjMyNiwwLjMxYzAuMzU5LDAuMzk3LDAuNzUxLDAuNzY3LDEuMTU5LDEuMTA0IGMwLjIzOSwwLjIwNywwLjQ2OCwwLjQxMywwLjcxOCwwLjU5OGMwLjQ1MSwwLjMyNiwwLjkzLDAuNjA0LDEuNDMsMC44NjVjMC4yNDUsMC4xMzYsMC40NzksMC4yODMsMC43MzQsMC40MDIgYzAuNTcxLDAuMjU2LDEuMTc1LDAuNDQxLDEuNzg0LDAuNjA0YzAuMjEyLDAuMDU0LDAuNDA4LDAuMTQxLDAuNjI2LDAuMTljMC44MzIsMC4xNzksMS42OTIsMC4yODMsMi41NzMsMC4yODMgYzAuODg3LDAsMS43NDYtMC4xMDMsMi41NzgtMC4yODNjMC4yMTItMC4wNDksMC40MTMtMC4xMzYsMC42MjUtMC4xOWMwLjYwOS0wLjE2OSwxLjIxMy0wLjM0OCwxLjc4NC0wLjYwNCBjMC4yNTYtMC4xMiwwLjQ5LTAuMjY3LDAuNzM0LTAuNDAyYzAuNDk1LTAuMjYxLDAuOTc5LTAuNTQ0LDEuNDMtMC44NjVjMC4yNS0wLjE4NSwwLjQ3OS0wLjM5MiwwLjcxOC0wLjU5OCBjMC40MDgtMC4zNDMsMC43OTQtMC43MDcsMS4xNTMtMS4xMDRjMC4xMDMtMC4xMTQsMC4yMjgtMC4xOSwwLjMyNi0wLjMxbDI5LjY1OS0zNS4zNDMgQzE4Ny44MTEsMTY0LjA5MSwxODcuMTM2LDE1Ni4zOTUsMTgxLjk2OSwxNTIuMDU0eiBNMjMwLjU4NCwyODguOTI5SDU4LjM1Yy0xMy4wOTIsMC0yMy43NDItMTAuNjUtMjMuNzQyLTIzLjczNlY5Mi45NTQgYzAtMTMuMDg2LDEwLjY1LTIzLjczNiwyMy43NDItMjMuNzM2aDQ0LjI0N2M2LjczOSwwLDEyLjIwNSw1LjQ2NiwxMi4yMDUsMTIuMjA1cy01LjQ2NiwxMi4yMTEtMTIuMjA1LDEyLjIxMUg1OS4wMTl2MTcwLjg4NSBoMTcwLjg5VjkzLjYyOGgtNDIuNTkzYy02Ljc0NCwwLTEyLjIwNS01LjQ2Ni0xMi4yMDUtMTIuMjExYzAtNi43MzksNS40NjEtMTIuMjA1LDEyLjIwNS0xMi4yMDVoNDMuMjYyIGMxMy4wOTIsMCwyMy43NDIsMTAuNjUsMjMuNzQyLDIzLjczNnYxNzIuMjQ0QzI1NC4zMjUsMjc4LjI3OSwyNDMuNjc2LDI4OC45MjksMjMwLjU4NCwyODguOTI5eiIgZmlsbD0iI2ZmYTUwMCIvPgoJCTwvc3ZnPg==");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 17px 17px;
	top: 0px;
	right: 0px;
	position: relative;
	width: 22px;
	height: 22px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}
.downl_templ:hover{
	opacity: 1;
}

.input_templ{
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjM3IDAuMzY3NDk2OTk3NTk3NTk3NDYgMjIwIDI5Mi42MzI1MDMwMDI0MDI0IiBvcGFjaXR5PSIxIiB3aWR0aD0iMjIwIiBoZWlnaHQ9IjI5Mi42MzI1MDMwMDI0MDI0Ij4KCQkKCQk8cGF0aCBkPSJNMTg2IDQwIDE1NiA0bC0yLTFhMTIgMTIgMCAwIDAtMTUgMGwtMSAxaC0xbC0yOSAzNmExMiAxMiAwIDEgMCAxOCAxNWw4LTl2MTUxYTEyIDEyIDAgMSAwIDI1IDBWNDZsOCA5YTEyIDEyIDAgMSAwIDE5LTE1bTQ3IDI1M0g2MXEtMjItMi0yNC0yM1Y5N3EyLTIxIDI0LTIzaDQ0YTEyIDEyIDAgMSAxIDAgMjRINjF2MTcxaDE3MVY5OGgtNDJhMTIgMTIgMCAwIDEgMC0yNGg0M2MxMyAwIDI0IDEwIDI0IDIzdjE3M2MwIDEzLTExIDIzLTI0IDIzIiBmaWxsPSIjZmZhNTAwIi8+CgkJPC9zdmc+");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 17px 17px;
	top: 0px;
	right: 0px;
	position: relative;
	width: 22px;
	height: 22px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}
.input_templ:hover{
	opacity: 1;
}

.delete_templ{
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjQgMiAyNCAyOCIgb3BhY2l0eT0iMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI4Ij4KCQkKCQk8cGF0aCBkPSJNMjAsNVYyaC04djNINHY0aDI0VjVIMjB6IE0xOSw1aC02VjNoNlY1eiBNNywzMGgxOGwxLTIwSDZMNywzMHogTTIwLDE0aDF2MTJoLTFWMTR6IE0xNywxNGgxdjEyIGgtMVYxNHogTTE0LDE0aDF2MTJoLTFWMTR6IE0xMSwxNGgxdjEyaC0xVjE0eiIgZmlsbD0iI2ZmMDAwMCIvPgoJCTwvc3ZnPg==");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 17px 17px;
	top: 0px;
	right: 0px;
	position: relative;
	width: 22px;
	height: 22px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}
.delete_templ:hover{
	opacity: 1;
}

.load_tmpl{
    margin-right: 5px;
}

.btn_tmpl{
    display: flex;
    flex-direction: row;
}
.btn-action {
    padding: 2px 5px;
    /*border: 1px solid #346187;*/
    border-radius: 4px;
    background: white;
    color: #346187;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #346187;
    color: white;
    /*border: 1px solid #ffffff;*/
}

.template-desc {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* === SETTINGS PANEL === */
.panel-middle {
    display:flex;
    flex-direction: column;
    overflow-y: hidden;
    padding: 5px;
    justify-content: space-between;
}

#settings-container {
    display:flex;
    flex-direction: column;
    overflow-y: auto;
}

.panel-middle > :first-child > :nth-child(2){
    flex: 1 1 auto;
    overflow-y: auto;
}

/* === LOCKS PANEL === */
.locks-header {
    padding: 12px 10px;
    background: #346187;
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.locks-header-title{
    display: flex;
    align-items: center;
    flex-direction: row;
}
.badge_list{
    display: flex;
    align-items: center;
}
.count-badge {
    background: #e7a83c;
    border-radius: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    margin-right: 10px;
    margin-left: 3px;
    margin-bottom: 8px;
}

.template-separator {
    text-align: center;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}
.template-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent 5%, #346187 50%, transparent 95%);
  transform: translateY(-50%);
}
.template-separator span {
    background-color: white;
    position: relative;
    z-index: 1;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === NOUVELLE STRUCTURE SCROLL LOCKS === */
.locks-content-outer {
    flex: 1;    
    display: flex;
    overflow-y: auto;
    position: relative;
    padding: 0 5px 12px 5px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: space-between;
}

.locks-content-inner {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0 0 0;
}

.btn-clear-locks{
    display: none;
}

.lock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px 10px 10px;
    background: #f0f4f8;
    border-radius: 4px;
    border-left: 3px solid #346187;
    transition: all 0.2s ease;
    position: relative;
    font-size: 13px;
}

.lock-item:hover {
    background: #e4eaf5;
}

.lock-item-name {
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
}

.lock-details{
    display: flex;
}

.lock-val-details{
    margin-right: 5px;
    margin-left: 5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-items: center;
}

.div_lockbtn{
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
}

.lock-item-btn, .btn-clear-locks {
    width: 20px;
    height:20px;
    border: none;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3; /* Au-dessus du tooltip */
}

.lock-item-btn:hover {
    background: #c82333;
}

.lock-item.source-user {
    border-left: 3px solid #10d42a;
}

.lock-item.source-template {
    border-left: 3px solid #e6451d;
}

.lock-item.source-clipboard {
    border-left: 3px solid #6634db;
}

/* === APPLY BUTTON === */
.apply-section {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e6ed;
}

.btn-apply {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background: #346187;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "72", Arial, sans-serif;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 97, 135, 0.2);
}

/* === EMPTY STATES === */
.empty-state {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
}

/* === SCROLLBARS (sur les nouveaux containers) === */
.templates-list-inner::-webkit-scrollbar,
.settings-container::-webkit-scrollbar,
.locks-content-inner::-webkit-scrollbar {
    width: 6px;
}

.templates-list-inner::-webkit-scrollbar-track,
.settings-container::-webkit-scrollbar-track,
.locks-content-inner::-webkit-scrollbar-track {
    background: #f8fafc;
}

.templates-list-inner::-webkit-scrollbar-thumb,
.settings-container::-webkit-scrollbar-thumb,
.locks-content-inner::-webkit-scrollbar-thumb {
    background: #346187;
    border-radius: 3px;
}

.template-tooltip,
.property-tooltip {
    position: fixed !important;
    background: #2c5282;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    z-index: 2147483647 !important; 
    pointer-events: none;
    max-width: 280px;
    overflow: hidden;    
    display: none;
    font-family: "72", Arial, sans-serif;
    line-height: 1.3;
}

#breadcrumb {
    z-index: 100; 
}






/* === MODAL CONFIRMATION === */
.modal-confirm {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-confirm.active {
    display: flex !important;
}

.modal-confirm-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-confirm-header {
    padding: 10px 24px;
    background: #346187;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-confirm-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(90vh - 160px);
    background: #f8fafc;
}

/* === TABLE CONFLICTS === */
.conflicts-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.conflict-table-header {
    background: #346187;
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid #2a4e6b;
}

.table_no_conflict{
    background: #f1f4f8;
    color: #476184;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 10px;
    text-align: center;
    border-bottom: 2px solid #f1f4f8;
}
.conflict-table-row {
    border-bottom: 1px solid #e2e8f0;
}

.conflict-table-row:last-child {
    border-bottom: none;
}

.conflict-table-cell {
    padding: 10px 16px;
    background: white;
    font-size: 13px;
    vertical-align: middle;
    min-height: 50px;
}

/* Alternance de couleurs pour meilleure lisibilité */
.conflict-table-row:nth-child(even) .conflict-table-cell {
    background: #f8fafc;
}

/* Cellule Setting (nom + checkbox) */
.setting-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 250px;
}

.setting-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.setting-id {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
}

.setting-apply {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-apply input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.setting-apply label {
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

/* Type-specific rendering */
.type-text {
    font-family: monospace;
    font-size: 12px;
    color: #475569;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
    position: relative;
}

.type-number {
    font-family: monospace;
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.type-boolean {
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-boolean input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: not-allowed;
    transform: scale(1.2);
}

.type-color {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.pickr-container {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-value-text {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
}

.type-font {
    font-family: monospace;
    font-size: 12px;
    color: #475569;
}

.modal-confirm-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-modal {
    padding: 5px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: "72", Arial, sans-serif;
    transition: all 0.2s ease;
}

.btn-modal-cancel {
    background: #e2e8f0;
    color: #475569;
}

.btn-modal-cancel:hover {
    background: #cbd5e1;
}

.btn-modal-apply {
    background: #346187;
    color: white;
}

.btn-modal-apply:hover {
    background: #2a4e6b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 97, 135, 0.3);
}

/* Tooltip pour le texte tronqué */
.grid-tooltip {
    position: fixed;
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 400px;
    z-index: 2147483647;
    pointer-events: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

/*finalement : pas pratique
.n4v-toolbar {
    position: sticky !important;
    top: 0px;
    z-index: 100;
}*/

/* Responsive */
@media (max-width: 768px) {
    .conflicts-cards-grid {
        grid-template-columns: 1fr;
    }
}

.nav{
    margin: 0px 10px 0px 10px;
}
.n4v-region-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.n4v-region-tabs .nav-link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link.active {
    font-weight: 600;
    background: #fff;
    z-index: 2;
}
.nav-link:not(.active) {
    opacity: 0.7;
}

.interactionBtnArea {
    width: 70px;
    height: 32px;
    border-radius: 4px;
    /* border: #ccc 1px solid; */
    position: fixed;
    right: 10px;
    top: 130px;
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.ceInteractBtnPopup{
	width: 30px;
	height: 30px;
	border-radius: 4px;
    border: #ccc 1px solid;
}

.ceInteractBtnPopup:hover{
	background-color: #29292933;
}

.ceInteractBtnPopup.active{
	background-color: #346187;
    color: #fff;
}

#tutorialBtn:hover > svg {
    transform: none !important;
}

#firstApplyInfo {
    font-size: 12px;
    font-weight: bold;
}

/* ---- styles du composant ComboSelector ---- */
:root{
    --bg:#f7f6f3; --fg:#1c1c1a; --muted:#6b6a64;
    --line:#d9d7cf; --line-strong:#b9b6ab;
    --accent:#346187; --accent-soft:#eff4f9;
    --field:#fff; --radius:8px;
}
.cs-root{
    position:relative;
    width: 95%;
    margin-bottom: 5px;
}
.cs-input{
    width:100%; padding:2px 12px; font:inherit; color:var(--fg);
    background:var(--field); border:1px solid var(--line-strong);
    border-radius:var(--radius); outline:none;
    transition:border-color .15s, box-shadow .15s;
}
.cs-input:focus{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.cs-list{
    position:absolute; z-index:20; bottom:calc(100% + 4px); left:0; right:0;
    margin:0; padding:4px; list-style:none;
    background:#fff; border:1px solid var(--line); border-radius:var(--radius);
    box-shadow:0 -8px 24px rgba(0,0,0,.10); max-height:240px; overflow:auto;
}
.cs-list[hidden]{display:none}
.cs-item{
    border-radius:6px; cursor:pointer; white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis;
}
.cs-item[aria-selected="true"], .cs-item:hover{background:var(--accent-soft)}
.cs-item mark{background:transparent; color:var(--accent); font-weight:600}
.cs-empty{padding:8px 10px; color:var(--muted); font-size:13px; cursor:default}

/* ---------------------- */
/* partie tooltip changes */
/* ---------------------- */

.badge-tooltip-main {
    position: fixed;
    display: none;
    background: #2c5282;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: "72", Arial, sans-serif;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    z-index: 2147483647;
    width: 90%;
    max-height: 750px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    line-height: 1.3;
}
.badge-tooltip-main::-webkit-scrollbar { width: 5px; }
.badge-tooltip-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.4); border-radius: 3px; }
.badge-tooltip-region {
    font-weight: bold;
    color: #ffd580;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 2px 0;
    margin-top: 4px;
    font-size: 11px;
}
.badge-tooltip-region:first-child { margin-top: 0; }
.badge-tooltip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.badge-tooltip-item:last-child { border-bottom: none; }
.badge-tooltip-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.badge-tooltip-val {
    flex: 0 0 auto;
    /*max-width: 100px;*/
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}
.badge-tooltip-empty {
    font-style: italic;
    opacity: 0.85;
    text-align: center;
    padding: 4px 0;
}

/* Edit modal */

.edit-color-swatch {
    width: 22px;
    height: 22px;
    border: 1px solid #888;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
}
.font-flag-btn {
    width: 22px;
    height: 22px;
    font-size: 11px;
    border: 1px solid #346187;
    background: white;
    color: #346187;
    border-radius: 3px;
    cursor: pointer;
}
.font-flag-btn.active {
    background: #346187;
    color: white;
}
.edit-font-editor, .pickr-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}