/* Context container (usually appears beside elements or on hover) */
/*.context-container {
    position: absolute;
    max-width: 240px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}*/

div.context-container {
    position: fixed;
    z-index: 99;
    left: 400px;
    top: 150px;
    background: rgb(232, 232, 232);
    border-radius: 5px;
    border: 1px solid black;
    box-shadow: 10px 10px 10px grey;
    min-width: 500px;
    max-width: 650px;
}

div#context-content {
    padding: 10px 24px 10px 24px;
    gap: 8px;
    display: grid;
    grid-template-columns: min-content auto 3.5em auto;
    grid-template-areas:
        "gc-meters-label gc-meters gc-meters gc-meters"
        ". gc-context-building gc-context-building gc-context-building"
        "gc-datefrom-label gc-datefrom gc-dateto-label gc-dateto"
        ". gc-datefrom-none . gc-dateto-none"
        "gc-typeradios-label gc-typeradios gc-typeradios gc-typeradios"
        "gc-comment-label gc-comment gc-comment gc-comment"
        ". . . gc-button";
}

select#contextDD {
    width: 100%;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#context-type-mute-global,
label[for="context-type-mute-global"] {
    display: none;
}

/* Tooltip for comment icon (on hover) */
#comment-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

#comment-tooltiptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

#comment-tooltip:hover #comment-tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Comments sidebar */
#comments-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 16px;
    overflow-y: auto;
    z-index: 1050;
}

/* Context header */
.context-header {
    font-weight: bold;
    margin-bottom: 8px;
}

/* Text inside comment items */
.context-text {
    font-size: 0.9em;
    margin: 4px 0;
    color: #333;
}

/* Arrows linking context to elements */
.context-arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: transparent;
    pointer-events: none;
    z-index: 999;
}

div.context-header {
    background: rgb(202, 202, 202);
    padding: 10px 24px 10px 24px;
    font-weight: bold;
    cursor: move;
}

#context-type-other {
    margin-top: 8px;
}

div#gc-button {
    text-align: right;
}

textarea#context-comment {
    width: 100%;
    height: 5em;
}

div.context-footer {
    padding: 0px 20px 10px 0px;
    margin: auto;
    text-align: right;
}
