html, body {
    height: 100%;
}
.divglobalemasque{
    position:absolute;
    top:0;
    left:0;
    height:110%;
    width:100%;
    background-color:#030303;
    -moz-opacity:0.38;
    opacity:0.38;
    filter:alpha(opacity=38);
    -khtml-opacity:0.38;
    z-index: 2;
}

.tabcommentaires {
    width: 100%;
}


.tabcommentairescheck{
    width:30px;
    max-width: 30px;
}
.tabcommentairesdate{
    width:60px;
    max-width: 60px;
}
.tabcommentairesuser{
    width:90px;
    max-width: 90px;
}
.tabcommentairespointx, .tabcommentairespointy{
    display:none;
}
.newcomment {
    margin-bottom: 3px;
}
.imagepage{
    z-index:3;
}
.imgnewcomment {
    cursor: url(../img/epingle3.png), pointer;
}
.imgnewenrichissement, #bsDemoCursor {
    cursor: crosshair;
}
.xrtable {
    border: 1px solid grey;
}
.xrtable tr:hover {
    background-color: #ddd;
    cursor: pointer;
    border: 1px solid grey;
}
.tr-hover {
    background-color: #ddd;
    cursor: pointer;
    border: 1px solid grey;
}
.xrtable th {
    padding: 2px;
    text-align: center;
    font-weight: bold;
    background-color: #ccc;
    border: 1px solid grey;
}
.xrtable td {
    padding: 5px;
    text-align: left;
    border: 1px solid grey;
}

.afficherToolTip{
    display: block;
}
.nepasafficherToolTip{
    display: none;
}

.zoningaaffichage {
    margin-top:10px;
    padding-top: 10px;
    border-top: solid black 1px;
}

.zoning_rectangle {
    position: absolute;
    z-index: 10; /* Assure que le rectangle est au-dessus des images */
    cursor: move;
    opacity: 0.2;
    pointer-events: all;

}
.zoning_rectangle:hover {
    border-color: red;
}

.zoning_rectangle_Link {
    background-color: red;
}

.zoning_rectangle_Gotopage {
    background-color: blue;
}

.zoning_rectangle_OnlineVideo {
    background-color: yellow;
}

.zoning_rectangle_Diaporama {
    background-color: green;
}

.zoning_rectangle_ActionButton {
    background-color: purple;
}

#divglobale {
    height: 100%;
}

#pagesPanel {
    border: solid 1px black;
    height: 90%;
}

#commentPanel {
    overflow-x: hidden;
    overflow-y: scroll;
    padding:0px;
    font-size: 12px;
    text-align: center;
    border: 1px solid black;
    background-color:rgb(197, 197, 197);

}

#entete {
    margin-bottom: 10px;

}

#divPictures {
    max-height: 100%;
    height: 100%;
    overflow: scroll;
    white-space: nowrap;
}

#divPictures img {
    display: inline-block; /* affichage en ligne des images */
    max-width: 100%; /* empêcher les images de dépasser leur conteneur */
    height: auto; /* conserver le ratio des images */
}

#contentzoom{
    transform-origin: top left;
}

#drawingCanvas {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: blue;
    cursor: pointer;
}



.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.image-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-item.selected {
    border-color: #2196F3;
}

.image-item.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #2196F3;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}