body { font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: #333; }

/* MENU */
#menubar { background: #1b1b1b; color: white; display: flex; align-items: center; justify-content: center; height: 80px; padding: 0 20px; font-size: 13px; user-select: none; flex-shrink: 0; }
.dropdown { position: relative; display: inline-block; }
.menu-btn { padding: 8px 15px; cursor: pointer; }
.menu-btn:hover { background-color: #34495e; }
.dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 220px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1000; border: 1px solid #ccc; border-radius: 0 0 4px 4px; }
.dropdown-content.show { display: block; }
.dropdown-item { color: black; padding: 10px 16px; text-decoration: none; display: block; cursor: pointer; }
.dropdown-item:hover { background-color: #f1f1f1; }
hr { border: 0; border-top: 1px solid #eee; margin: 0; }

/* TOOLBAR */
#toolbar { background: #f4f4f4; border-bottom: 1px solid #ccc; padding: 5px 10px; display: flex; align-items: center; gap: 10px; height: 40px; flex-shrink: 0; }
.icon-btn { background: white; border: 1px solid #ccc; padding: 5px 10px; cursor: pointer; border-radius: 4px; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.icon-btn:hover { background: #e2e6ea; }

/* Dropdown spécial dans la toolbar */
#toolbar .dropdown { position: relative; }
#toolbar .dropdown-content { 
    top: 100%; 
    left: 0; 
    margin-top: 2px;
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#toolbar .dropdown-content.show { display: block; }

/* LAYOUT */
#main-wrapper { display: flex; flex: 1; overflow: hidden; position: relative; width: 100%; }

/* SIDEBAR GAUCHE */
#sidebar { 
    width: 360px; 
    background: #fff; 
    border-right: 1px solid #ccc; 
    display: flex; 
    flex-direction: column; 
    z-index: 2; 
    flex-shrink: 0; 
    height: 100%; 
    position: relative;
    overflow: hidden;
    left: 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#sidebar-scroll-area { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 200px; }
#sidebar-footer { 
    left: 0 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Déplacer la sidebar et le footer ensemble quand AI sidebar est ouverte */
.ai-sidebar-open #sidebar {
    left: 0px;
}

.ai-sidebar-open #sidebar-footer {
    left: 381px !important;
}

/* Le contenu principal ne bouge pas */

/* Animation du contenu principal - pas de déplacement */
#main-content-wrapper {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RIGHT SIDEBAR (NOUVEAU) */
#right-sidebar { width: 220px; background: #1b1b1b; border-left: 1px solid #000; display: flex; flex-direction: column; z-index: 2; flex-shrink: 0; height: 100%; color: white; }
.rs-header { padding: 10px; font-weight: bold; background: #1a252f; text-align: center; border-bottom: 1px solid #444; }
#pagesList {
    flex: 1;                /* Prend tout l'espace vertical disponible */
    min-height: 200px;      /* Hauteur minimum garantie */
    overflow-y: auto;       /* Scroll si la liste est longue */
    padding: 10px;
    background-color: #1b1b1b; /* M�me fond que la sidebar */
    color: #fff;            /* Texte blanc */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-thumb { background: white; color: black; border-radius: 4px; overflow: visible; cursor: pointer; transition: 0.2s; border: 3px solid transparent; opacity: 0.8; margin-bottom: 10px; }
.page-thumb:hover { opacity: 1; }
.page-thumb.active { border: 3px solid #1b1b1b; opacity: 1; box-shadow: 0 0 10px rgba(27, 27, 27, 0.5); }
.thumb-canvas-wrap { width: 100%; height: 150px; background: #ccc; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.thumb-canvas-wrap canvas { max-width: 100%; max-height: 100%; }
.thumb-info { 
    padding: 8px 5px; 
    background: #f5f5f5; 
    font-size: 11px; 
    font-weight: 600;
    color: #1b1b1b !important;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ddd;
}
.thumb-input { width: 100%; box-sizing: border-box; font-size: 11px; padding: 3px; border: 1px solid #ccc; border-radius: 2px; }

/* ACCORD�ON (CORRIG�) */
.accordion-header { 
    background: #e9ecef; 
    padding: 10px 15px; 
    font-weight: bold; 
    font-size: 13px; 
    border-bottom: 1px solid #ddd; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: #333; 
    user-select: none; 
}
.accordion-header:hover { background: #dde2e6; }

.accordion-content { display: none; padding: 0; border-bottom: 1px solid #eee; }
.accordion-content.show { display: block; }

/* La fl�che pointe vers la droite par d�faut */
.arrow { 
    font-size: 12px; 
    display: inline-block; /* Requis pour la rotation */
    transition: transform 0.2s ease; 
    color: #666;
}
.arrow::before {
    content: "▶";
}

/* Quand le header est actif, la fl�che pointe vers le bas (90deg) */
.accordion-header.active .arrow { 
    transform: rotate(90deg); 
    color: #1b1b1b; /* Petit bonus : elle devient bleue quand ouvert */
}
/* ITEMS SIDEBAR */
.sidebar-item { padding: 10px 12px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13px; transition: 0.2s; background: white; }
.sidebar-item:hover { background: #e2e6ea; border-left: 3px solid #1b1b1b; }

/* MAIN D'OEUVRE */
.man-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; border-bottom: 1px dashed #ccc; padding-bottom: 8px; background: white; padding: 8px; border-radius: 4px; }
.man-row input { font-size: 14px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }

/* PROFIT */
#profit-section { background: #f8f9fa; padding: 10px; font-size: 12px; }
.profit-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.profit-label { display: flex; flex-direction: column; }
.profit-val-group { display: flex; align-items: center; gap: 5px; }
.profit-input { width: 40px; padding: 3px; text-align: center; border: 1px solid #ccc; border-radius: 3px; font-weight: bold; }
.money-display { font-family: monospace; color: #333; min-width: 60px; text-align: right; background: #e9ecef; padding: 3px; border-radius: 3px; }
.total-bar { 
    background: #1b1b1b !important; 
    color: #eeede9 !important; 
    padding: 15px !important; 
    text-align: right !important; 
    display: flex !important; 
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    min-height: 60px !important;
    visibility: visible !important;
}
.total-label { font-size: 10px; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; display: block !important; visibility: visible !important; }
.total-amount { font-size: 1.8em; font-weight: bold; line-height: 1.1; color: #eeede9; display: block !important; visibility: visible !important; }

/* LISTES & TABLEAU */
.tool-list { padding: 5px; }
#fixedCostsList { padding: 5px; }
#laborList { padding: 5px; }
.table-wrapper { overflow-y: auto; background: #fff; max-height: 250px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { text-align: left; padding: 5px; background: #333; color: white; position: sticky; top: 0; z-index:5; }
td { border-bottom: 1px solid #eee; padding: 5px; }
.row-parent { cursor: pointer; user-select: none; transition: background 0.2s; }
.row-parent:hover { background: #f5f5f5; border-left: 3px solid #1b1b1b; }
.row-detail { display: none; background: #f8f9fa; }
.row-detail.show { display: table-row; }
.detail-box { padding: 5px 10px; border-bottom: 1px solid #ddd; }
.detail-line { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dotted #ccc; color:#555; }

/* BOUTONS ET AUTRES */
.tool-row { display: flex; align-items: center; justify-content: space-between; padding: 8px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 13px; white-space: nowrap; }
.tool-row:hover { background: #f8f9fa; }
.tool-row.active { background: #e2e6ea; border-left: 4px solid #1b1b1b; }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; border: 1px solid rgba(0,0,0,0.2); flex-shrink: 0; }
.color-line { display: inline-block; width: 16px; height: 1px; margin-right: 8px; border: 1px solid rgba(0,0,0,0.2); flex-shrink: 0; }
.color-square { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 1px solid rgba(0,0,0,0.2); flex-shrink: 0; }
.action-icon { cursor: pointer; margin-left: 5px; opacity: 0.5; font-size: 14px; }
.action-icon:hover { opacity: 1; }

/* Styles pour le drag & drop */
.drag-dragging { opacity: 0.5; }
.tool-row[draggable="true"]:hover { background: #f0f8ff; }
tr[draggable="true"]:hover { background: #f0f8ff; }

.small-btn { width: 24px; height: 24px; border-radius: 4px; border: none; font-weight: bold; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 14px; }
.small-btn.success { background: #28a745; color: white; }
.small-btn.primary { background: #1b1b1b; color: white; }
.small-btn.warning { background: #e0a800; color: white; }
.small-btn:hover { opacity: 0.8; }

/* --- LISTE COMPACTE SOUS-TRAITANTS (SIDEBAR) --- */
.sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;       /* Hauteur tr�s r�duite */
    border-bottom: 1px solid #f5f5f5; /* S�paration subtile */
    background: white;
    cursor: pointer;
    font-size: 11px;        /* Texte fin pour gagner de la place */
    color: #444;
    transition: background 0.1s;
    height: 24px;           /* Hauteur fixe forc�e pour r�gularit� */
}

.sub-row:hover {
    background: #e3f2fd;    /* Bleu tr�s p�le au survol */
    color: #000;
}

/* Style du prix align� � droite */
.sub-price-tag {
    font-weight: 600;
    color: #1b1b1b;
    margin-right: 8px;
    font-size: 11px;
}

/* Bouton X de suppression (invisible sauf au survol) */
.sub-delete-btn {
    color: #999;
    font-size: 14px;
    line-height: 1;
    padding: 2px;
    border-radius: 3px;
    opacity: 0.5;
    transition: all 0.2s;
}

/* Le bouton X devient rouge et visible seulement quand on passe la souris sur la ligne */
.sub-row:hover .sub-delete-btn {
    opacity: 1;
}
.sub-delete-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.2);
}

#canvas-container { flex: 1; background: #555; position: relative; overflow: hidden; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
#container { width: 100%; height: 100%; }
#instruction { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: white; padding: 5px 15px; border-radius: 20px; pointer-events: none; font-size: 12px; z-index: 10; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; justify-content: center; align-items: center; }
.modal-box { background: white; padding: 20px; border-radius: 5px; width: 500px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); max-height: 95vh; overflow-y: auto; display:flex; flex-direction:column; }
.modal-header { font-size: 1.2em; font-weight: bold; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.modal-body { overflow-y:auto; flex:1; }
.modal-body input, .modal-body select, .modal-body textarea { width: 100%; padding: 8px; margin-bottom: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }
.modal-large { width: 90vw; height: 85vh; max-width: 1200px; } 

.badge-alloc { background: #ffc107; color: #333; padding: 2px 5px; border-radius: 3px; font-size: 9px; font-weight: bold; text-transform: uppercase; }
button { padding: 8px 15px; cursor: pointer; border-radius: 4px; border: 1px solid #ccc; }
button.primary { background: #1b1b1b; color: white; border: none; }
button.success { background: #28a745; color: white; border: none; }
button.warning { background: #ffc107; color: black; border: none; }
.db-list { border: 1px solid #ccc; height: 150px; overflow-y: auto; margin-bottom: 10px; }
.db-item { padding: 5px; border-bottom: 1px solid #eee; cursor: pointer; display: flex; justify-content: space-between; font-size: 12px; }
.db-item:hover { background: #f5f5f5; }

#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 10001; }
.toast { background: #333; color: white; padding: 12px 20px; margin-top: 10px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 10px; font-size: 13px; animation: slideIn 0.3s ease-out forwards; opacity: 0; }
.toast.success { border-left: 4px solid #2ecc71; }
.toast.error { border-left: 4px solid #e74c3c; }
.toast.info { border-left: 4px solid #1b1b1b; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(10px); } }
.sheet-preview { background: white; width: 21cm; min-height: 29.7cm; padding: 2px; margin: 0; box-shadow: none; font-size: 12px; color: #333; box-sizing: border-box; }

/* Bouton X pour fermer les modales */
.close-x {
    float: right;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #999;
    line-height: 20px;
    transition: 0.2s;
}
.close-x:hover { color: #e74c3c; }

/* D�tails des assemblages dans la sidebar */
.tool-detail-preview {
    display: none;
    background: #f1f3f5;
    font-size: 11px;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}
.tool-detail-preview.show { display: block; }

.tool-detail-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    border-bottom: 1px dotted #ccc;
}

/* --- NOUVELLE BIBLIOTH�QUE (DEUX COLONNES) --- */

.lib-item-row {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: white;
}

.lib-item-row:hover {
    background: #f5f5f5;
}

/* Style quand on clique sur un item pour le s�lectionner */
.lib-item-row.selected {
    background: #e3f2fd;
    border-left: 5px solid #1b1b1b;
    font-weight: bold;
}

.lib-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

/* Lignes de composantes dans la pr�visualisation de droite */
.preview-comp-line {
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0; 
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.preview-comp-line:last-child {
    border-bottom: none;
}

/* --- DRAG & DROP VISUELS --- */
.folder-container.drag-over {
    border: 2px dashed #1b1b1b !important;
    background: #e3f2fd !important;
}

.tool-row[draggable="true"] {
    cursor: grab;
}

.tool-row.drag-dragging {
    opacity: 0.5;
    background: #efefef;
}

/* Emp�cher le drop sur soi-m�me ou ses enfants (classe utilitaire) */
.no-drop {
    cursor: no-drop !important;
    opacity: 0.5;
}

/* --- STYLE DOSSIERS COMPACT --- */
.folder-container {
    border-left: 1px solid #ddd;
    margin-left: 8px; /* D�calage r�duit */
}

.folder-header {
    padding: 4px 6px; /* Beaucoup plus fin */
    font-size: 12px;  /* Police plus petite */
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.1s;
    user-select: none;
}

.folder-header:hover {
    background: #e9ecef;
}

.folder-arrow {
    display: inline-block;
    width: 15px;
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
    text-align: center;
}

.folder-arrow.open {
    transform: rotate(90deg);
}

.folder-content {
    display: none; /* Ferm� par d�faut */
}

.folder-content.show {
    display: block; /* Ouvert */
}

/* Outils plus compacts aussi */
.tool-row {
    padding: 4px 8px; 
    font-size: 12px;
}

/* --- VISIBILIT� DOSSIER (OEIL) --- */
.folder-eye {
    cursor: pointer;
    font-size: 14px;
    margin-right: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.folder-eye:hover {
    opacity: 1;
    transform: scale(1.1);
}

.folder-eye.hidden {
    opacity: 0.4;
    filter: grayscale(100%);
}

/* Griser le dossier s'il est masqu� */
.folder-container.is-hidden > .folder-header {
    background: #f0f0f0;
    color: #999;
    font-style: italic;
}

/* --- MENU CONTEXTUEL DOSSIER (Le petit menu du bouton +) --- */
.folder-context-menu {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 10000;
    min-width: 160px;
    font-size: 12px;
    overflow: hidden;
}

.context-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    transition: background 0.1s;
}

.context-item:hover {
    background: #f5f5f5;
    color: #1b1b1b;
}

.context-item span {
    font-size: 14px;
}

/* --- HEADER UNIFI� (NOM + CONFIG + COULEURS) --- */

.asm-header-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.asm-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.asm-color-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef; /* S�paration fine */
}

/* Style des inputs dans le header pour qu'ils soient coh�rents */
.asm-input-modern {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.15s;
}
.asm-input-modern:focus {
    border-color: #80bdff;
    outline: 0;
}

.color-swatch-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.color-swatch {
    width: 22px; 
    height: 22px; 
    border-radius: 4px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: transform 0.1s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { 
    border-color: #333; 
    transform: scale(1.1); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}

.asm-body-grid {
    display: flex;
    gap: 15px;
    height: 320px; /* L�g�rement r�duit pour laisser place au Quickwork */
    margin-bottom: 15px;
}

.asm-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.asm-col-header {
    background: #1b1b1b;
    color: white;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.asm-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border-radius: 3px;
    border: none;
    font-size: 12px;
}

.asm-list-area {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fdfdfd;
}

/* Items dans la liste de recherche */
.asm-db-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.asm-db-item:hover { background: #f5f5f5; }

.asm-quickwork-area {
    display: flex;
    flex-direction: column;
    flex: 1; /* Prend tout l'espace restant */
    min-height: 250px; /* Hauteur garantie augment�e */
    border-top: 3px solid #1b1b1b;
    padding-top: 10px;
}

.quickwork-preview {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Segoe UI', sans-serif; /* Plus lisible que monospace */
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

/* --- STYLE DES CASES DIMENSIONS (SANS FL�CHES) --- */

/* 1. On cache les fl�ches (Chrome, Safari, Edge, Opera) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 2. On cache les fl�ches (Firefox) */
input[type=number] {
  -moz-appearance: textfield;
}

/* 3. Le look des nouvelles bo�tes s�par�es */
.dim-box {
    width: 45px;          /* Largeur fixe */
    height: 32px;         /* M�me hauteur que le menu */
    text-align: center;   /* Texte centr� */
    border: 1px solid #ccc;
    border-radius: 4px;   /* Coins arrondis */
    font-weight: bold;
    font-size: 13px;
    background: white;
    outline: none;
    transition: border 0.2s;
}

.dim-box:focus {
    border: 2px solid #1b1b1b; /* Bordure bleue quand on clique dedans */
}

/* Espaceur entre les cases */
.dim-gap {
    width: 10px;
}

/* --- TABLEAU DEVIS ACCORD�ON --- */
.row-parent {
    cursor: pointer;
    transition: background 0.1s;
    user-select: none;
}
.row-parent:hover {
    background: #eef2f5;
}

.row-arrow {
    display: inline-block;
    width: 15px;
    font-size: 10px;
    color: #888;
    transition: transform 0.2s ease;
    text-align: center;
}
.row-arrow.open {
    transform: rotate(90deg);
    color: #1b1b1b;
}

.row-detail {
    display: none; /* Cach� par d�faut */
    background: #f8f9fa;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}

.row-detail.show {
    display: table-row; /* Affich� */
}

.detail-container {
    padding: 5px 10px 10px 25px; /* Indentation */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    border-bottom: 1px dotted #e0e0e0;
    padding: 2px 0;
}
.detail-line:hover {
    color: #333;
    background: #fff;
}

/* --- HEADER SIDEBAR �GALIS� (CORRIG�) --- */
.tools-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    gap: 10px; /* Espace entre les deux boutons */
}

.minimal-btn {
    flex: 1 1 0px;   /* <--- C'est ici la magie : Force une base de 0px pour l'�galit� stricte */
    min-width: 0;    /* Permet de ne pas �tre forc� par le texte si l'�cran est petit */
    
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    border-radius: 4px;
    padding: 8px 2px; /* Padding lat�ral r�duit pour �viter que �a d�borde */
    
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden; /* Coupe proprement si jamais �a d�passe */
}

.minimal-btn:hover {
    background: #f8f9fa;
    border-color: #333;
    color: #000;
}

.layer-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.8;
    flex-shrink: 0; /* Emp�che l'ic�ne de s'�craser */
}

/* --- BOUTON PLUS DANS L'ACCORD�ON (PLUS GROS) --- */
.header-plus {
    font-size: 22px;       /* Plus grand (�tait 16px) */
    font-weight: 800;      /* Bien gras */
    color: #555;
    cursor: pointer;
    padding: 0 6px;        /* Zone de clic un peu plus large */
    line-height: 20px;     /* Ajustement pour l'alignement vertical */
    transition: all 0.2s ease;
    display: flex;         /* Aide au centrage vertical */
    align-items: center;
    justify-content: center;
    margin-right: -2px;    /* Petit ajustement visuel */
}

.header-plus:hover {
    color: #1b1b1b;
    transform: scale(1.2);
}

/* --- NOUVEAU DESIGN MODAL SOUS-TRAITANTS (GRID) --- */
.sub-modal-grid {
    display: grid;
    grid-template-columns: 300px 1fr; /* Liste � gauche, Formulaire � droite */
    gap: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Colonne GAUCHE : Liste */
.sub-list-col {
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ITEM DE LISTE BIBLIOTH�QUE (COMPACT) */
.sub-list-item {
    padding: 6px 10px;       /* Beaucoup plus fin */
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;         /* Police de base r�duite */
    min-height: 28px;        /* Hauteur fixe pour alignement propre */
}

.sub-list-item:hover { 
    background: #e9ecef; 
}

.sub-list-item.selected { 
    background: #e3f2fd; 
    border-left: 3px solid #1b1b1b; 
    font-weight: bold;
}

/* Colonne DROITE : Formulaire */
.sub-form-col {
    background: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sub-form-group { margin-bottom: 15px; }
.sub-form-label { font-size: 11px; font-weight: bold; color: #666; text-transform: uppercase; margin-bottom: 5px; display: block; }
.sub-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; transition: border 0.2s; }
.sub-input:focus { border-color: #1b1b1b; outline: none; }

/* Boutons d'action */
.sub-actions {
    margin-top: auto; /* Pousse les boutons vers le bas */
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Poubelle rouge au survol */
.trash-icon { color: #ccc; transition: 0.2s; padding: 5px; }
.trash-icon:hover { color: #dc3545; transform: scale(1.2); }

/* --- BOUTON AJOUTER �PUR� (BIBLIOTH�QUE) --- */
.sub-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;      /* Forme ronde */
    border: 1px solid #ccc;  /* Bordure fine grise */
    background: white;
    color: #28a745;          /* Symbole vert */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1;
}

.sub-add-btn:hover {
    background: #28a745;     /* Devient vert au survol */
    color: white;
    border-color: #28a745;
    transform: scale(1.1);
}

/* --- BARRE DE RECHERCHE SOUS-TRAITANTS --- */
.sub-search-box {
    padding: 8px 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.sub-search-input {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px; /* Arrondi pour un look moderne */
    font-size: 12px;
    outline: none;
    box-sizing: border-box; /* Important pour ne pas d�passer */
    transition: border 0.2s;
}

.sub-search-input:focus {
    border-color: #1b1b1b;
    background: #fff;
}

/* style.css */

/* S'assure que le contenu de la pr�visualisation prend toute la hauteur */
#modalPreview .modal-box {
    width: 95vw;
    height: 95vh;
    padding: 0;
    overflow: hidden;
    background: #333;
}

#previewContent {
    width: 100%;
    height: calc(100% - 50px); /* Laisse de la place pour les boutons en haut */
    background: #555;
}

iframe.pdf-preview-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- APER�U PDF R�ALISTE (STYLE PAPIER) --- */
.sheet-preview {
    background: white;
    width: 21.59cm;      /* Largeur exacte format Letter (8.5 pouces) */
    min-height: 27.94cm; /* Hauteur minimale format Letter */
    padding: 1.27cm;     /* Marges de 0.5 pouces (identique � ta config PDF) */
    margin: 20px auto;   /* Centr� avec un peu d'espace autour */
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Ombre port�e pour l'effet "papier" */
    font-size: 12px;
    color: #000;
    box-sizing: border-box; /* Le padding ne casse pas la largeur */
    position: relative;
}

/* S'assure que le contenu de la pr�visualisation prend toute la hauteur */
#modalPreview .modal-box {
    width: 95vw;
    height: 95vh;
    padding: 0;
    overflow: hidden;
    background: #333; /* Fond gris fonc� pour faire ressortir la feuille blanche */
}

#previewContent {
    width: 100%;
    height: calc(100% - 50px); /* Laisse de la place pour les boutons en haut */
    background: #555;          /* Fond gris derri�re la feuille */
    overflow-y: auto;          /* Scroll vertical autoris� */
    padding-top: 20px;
    padding-bottom: 20px;
}

/* --- BARRE D'OUTILS FLOTTANTE (PREVIEW) --- */

/* Ajustement du conteneur parent pour coller la barre tout en haut */
#previewContent {
    padding-top: 0 !important; /* On enl�ve le padding du haut pour que la barre colle au bord */
    position: relative;
}

.preview-toolbar {
    position: sticky;       /* La magie : �a suit le scroll */
    top: 0;                 /* �a colle au plafond */
    z-index: 1000;          /* �a reste au-dessus de tout */
    
    width: 100%;
    background: rgba(255, 255, 255, 0.95); /* Blanc l�g�rement transparent (moderne) */
    backdrop-filter: blur(5px);            /* Effet de flou derri�re */
    border-bottom: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    display: flex;
    justify-content: space-between; /* Titre � gauche, Boutons � droite */
    align-items: center;
    
    padding: 10px 20px;
    margin-bottom: 30px; /* Espace avant la feuille de papier */
    box-sizing: border-box;
}

.preview-toolbar-title {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace entre les boutons */
}

/* Ajustement visuel des boutons dans la barre */
.preview-toolbar button {
    box-shadow: none; /* Plus plat pour la barre d'outils */
    padding: 8px 15px;
    font-size: 13px;
}
/* ==========================================
   CORRECTION BIBLIOTH�QUE (STYLE.CSS)
   ========================================== */

/* Item de la liste (Design moderne) */
.lib-item-row {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;          /* Force la main */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: white;
    user-select: none;        /* <--- EMP�CHE LE CURSEUR TEXTE */
    font-weight: normal;      /* S'assure que c'est pas gras par d�faut */
}

.lib-item-row:hover {
    background: #f5f5f5;
}

/* Style quand s�lectionn� */
.lib-item-row.selected {
    background: #e3f2fd;
    border-left: 5px solid #1b1b1b;
    font-weight: 600; /* Gras l�ger seulement quand s�lectionn� (optionnel) */
}

/* S�curit� pour les anciens items si pr�sents */
.lib-item {
    cursor: pointer;
    user-select: none;
}

/* --- RIGHT SIDEBAR CONTROLS --- */
.rs-header {
    padding: 10px;
    font-weight: bold;
    background: #1a252f;
    text-align: center;
    border-bottom: 1px solid #444;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rs-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rs-search {
    width: 100%;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #555;
    background: #333;
    color: white;
    font-size: 12px;
    box-sizing: border-box;
}

.rs-search:focus {
    outline: none;
    border-color: #1b1b1b;
    background: #444;
}

/* Modification pour la liste des pages pour qu'elle prenne la hauteur restante */
#pagesList {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Assure que la liste prend toute la hauteur restante sous la barre de recherche */
#pagesList {
    flex: 1;                /* Prend tout l'espace libre */
    overflow-y: auto;       /* Active le scroll si n�cessaire */
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;          /* Important pour le flexbox scrollable */
}

/* Style de la barre de recherche dans la sidebar droite */
.rs-search {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background: #444;
    color: white;
    box-sizing: border-box; /* Emp�che de d�passer */
}

/* ==========================================
   WIDGET IA - SIDEBAR � GAUCHE
   ========================================== */

/* Bouton en haut � droite dans le menubar */
.ai-toggle-btn {
    background: white;
    color: black;
    border: none;
    padding: 6px 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.ai-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: #f5f5f5;
}

/* Sidebar � gauche */
.ai-sidebar {
    width: 0;
    min-width: 0;
    background: #eeede9;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    z-index: 2;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #1b1b1b;
    overflow: hidden;
    flex-shrink: 0;
}

.ai-sidebar.open {
    width: 380px;
    min-width: 380px;
}

/* Header du sidebar */
.ai-sidebar-header {
    background: #1b1b1b;
    color: #eeede9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 2px solid rgba(238, 237, 233, 0.2);
}

/* Corps du sidebar (chat) */
.ai-sidebar-body {
    flex: 1;
    background: #eeede9;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Bulles de message */
.ai-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
}

.ai-msg.bot {
    align-self: flex-start;
    background: #1b1b1b;
    border: 1px solid #2c2c2c;
    color: #eeede9;
    border-bottom-left-radius: 2px;
}

.ai-msg.user {
    align-self: flex-end;
    background: #1b1b1b;
    color: #eeede9;
    border-bottom-right-radius: 2px;
}

/* Zone de saisie (Footer) */
.ai-sidebar-footer {
    padding: 15px;
    background: #eeede9;
    border-top: 1px solid #1b1b1b;
    flex-shrink: 0;
}

.ai-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #1b1b1b;
    border-radius: 20px;
    outline: none;
    font-size: 13px;
    transition: border 0.2s;
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    resize: vertical;
    word-wrap: break-word;
    background: #eeede9;
    color: #1b1b1b;
}
.ai-input:focus { border-color: #2c2c2c; }

.ai-send-btn {
    background: #1b1b1b;
    color: #eeede9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-size: 16px;
}
.ai-send-btn:hover { background: #2c2c2c; }

/* Suggestions (Chips) */
.ai-chips {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 5px;
}
.ai-chips::-webkit-scrollbar { height: 4px; }
.ai-chips::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.ai-chip {
    background: #1b1b1b;
    border: 1px solid #2c2c2c;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    color: #eeede9;
    transition: 0.2s;
}
.ai-chip:hover { background: #2c2c2c; color: #eeede9; }

/* TEMPLATE QUOTE SYSTEM STYLES */
.template-item {
    transition: all 0.2s ease;
}

.template-item:hover {
    background-color: #e9ecef !important;
    border-color: #007bff !important;
}

.template-item.active {
    background-color: #007bff !important;
    color: white !important;
    border-color: #0056b3 !important;
}

.template-quickwork-item {
    transition: all 0.2s ease;
}

.template-quickwork-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* SLOPE PANEL */
.slope-panel {
    position: fixed;
    top: 75px;
    right: 0;
    width: 200px;
    height: calc(100vh - 75px);
    background: #f8f9fa;
    border-left: 2px solid #1b1b1b;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.slope-header {
    background: #1b1b1b;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #0056b3;
}

.close-slope-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.close-slope-btn:hover {
    background: rgba(255,255,255,0.2);
}

.slope-content {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.slope-info {
    background: #e3f2fd;
    padding: 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #1565c0;
    margin-bottom: 8px;
    text-align: center;
    border: 1px solid #90caf9;
}

.slope-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.slope-item {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 4px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.slope-item:hover {
    border-color: #1b1b1b;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    transform: translateY(-1px);
}

.slope-item.selected {
    background: #1b1b1b;
    border-color: #0056b3;
    color: white;
}

.slope-item.selected .slope-fraction {
    color: white;
}

.slope-item.selected .slope-degrees {
    color: #e3f2fd;
}

.slope-fraction {
    font-size: 12px;
    font-weight: bold;
    color: #1b1b1b;
    line-height: 1;
}

.slope-degrees {
    font-size: 9px;
    color: #666;
    margin-top: 2px;
    line-height: 1;
}

/* ==========================================
   INTERFACE COLLABORATIVE TEMPS RÉEL
   ========================================== */

/* Utilisateurs en ligne */
.online-users-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
}

/* Positionnement spécial pour le dropdown des utilisateurs en ligne */
#onlineUsersDropdown .dropdown-content {
    right: 0;
    left: auto;
    width: 320px;
    min-width: 320px;
    max-width: 90vw; /* S'assurer qu'il ne dépasse pas l'écran */
    transform: translateX(0); /* Éviter les débordements */
}

/* S'assurer que le bouton des utilisateurs en ligne est cliquable */
#onlineUsersDropdown .menu-btn {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

#onlineUsersDropdown .menu-btn:hover {
    background-color: #34495e;
}

/* Boutons de la sidebar */
.minimal-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.minimal-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.minimal-btn:active {
    background: #dee2e6;
}

/* Boutons de la sidebar */
.minimal-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.minimal-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.minimal-btn:active {
    background: #dee2e6;
}

/* Sur petits écrans, ajuster la largeur */
@media (max-width: 768px) {
    #onlineUsersDropdown .dropdown-content {
        width: 280px;
        min-width: 280px;
        right: -10px; /* Petit décalage pour éviter le bord */
    }
}

.online-user {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.online-user:hover {
    background-color: #f8f9fa;
}

.online-user:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-activity {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    margin-left: 8px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.no-online-users {
    padding: 20px 16px;
    text-align: center;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Header du dropdown utilisateurs */
.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.sync-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sync-btn:hover {
    background: #e9ecef;
}

/* Compteur d'utilisateurs en ligne */
#onlineUsersCount {
    background: #28a745;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
}

/* Notifications de synchronisation - DÉSACTIVÉES */
.sync-notification {
    display: none !important;
    position: fixed;
    top: 100px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    font-size: 13px;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.sync-notification.success {
    background: #28a745;
}

.sync-notification.error {
    background: #dc3545;
}

.sync-notification.warning {
    background: #ffc107;
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Indicateur de synchronisation */
.sync-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
}

.sync-indicator.active {
    display: block;
    animation: pulse 1.5s infinite;
}

/* Conflits de synchronisation */
.sync-conflict {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
}

.sync-conflict-header {
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
}

.sync-conflict-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.sync-conflict-btn {
    padding: 4px 12px;
    border: 1px solid #ffc107;
    background: white;
    color: #856404;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.sync-conflict-btn:hover {
    background: #ffc107;
    color: white;
}
