/*
* Copyright:       (c) 2025-2026 Tn2Tr.com
* Author:          John Beemsterboer
* Date Created:    2025-02-26
*/

#stock-textlines-wrapper h2 {
    position: sticky;
    top: 97px;
    background-color: var(--qonnex-lichtgrijs);
    z-index: 100;
}
.extratext-container {
    border-left: 1px solid black !important;
    padding-left: 20px;
}
.extratext-explanation {
    margin-right: 64px;
}
.extratext-add {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: white;
    border: 1px solid var(--qonnex-grijs);
    cursor: pointer;
    right: 30px;
    margin-top: -37px;
    font-size: 30px;
}
.extratext-item {
    cursor: pointer;
    border: 1px solid var(--qonnex-grijs);
    background-color: var(--qonnex-lichtergrijs);
    font-size: 16px;
    height: 130px;
    margin-bottom: 10px;
    overflow: hidden;
}
body.has-mouse .extratext-item {
    height: 140px;
}
.extratext-header {
    background-color: var(--qonnex-lichtgrijs-50);
    border-bottom: 1px solid var(--qonnex-grijs);
    padding: 10px;
    height: 50px;
}
.extratext-index {
    width: 20px;
    height: 20px;
    padding: 14px;
    border: 1px solid var(--qonnex-grijs);
    text-align: center;
    color: var(--qonnex-blauw);
    font-size: 18px;
    font-weight: bold;
    background-image: url('/icon/extratext-index.png');
    background-size: 100%;
    cursor: move;
}
.extratext-name {
    position: relative;
    top: -48px;
    left: 60px;
    font-size: 18px;
    white-space: nowrap;
    width: calc(100% - 130px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.inventorytext-container .extratext-name {
    color: var(--qonnex-blauw);
 }
.extratext-period {
    position: relative;
    top: -42px;
    left: 60px;
    width: calc(100% - 130px);
    overflow: hidden;
}
.extratext-connect {
    float: right;
    position: relative;
    top: -92px;
    border: 1px solid var(--qonnex-grijs);
    width: 50px;
    height: 50px;
}
.extratext-connect img,
.extratext-headertext img {
    width: 100%;
}
.extratext-headertext {
    float: right;
    position: relative;
    top: -92px;
    border: 1px solid var(--qonnex-grijs);
    width: 50px;
    height: 50px;
}
.extratext-text {
    padding: 10px;
    height: 42px;
    overflow: hidden;
}

.extratext-resize {
    background-color: var(--qonnex-lichtgrijs);
    height: 10px;
    cursor: n-resize;
    display: none;
}
body.has-mouse .extratext-resize {
    display: block;
}
.extratext-resize i {
    position: absolute;
    right: 0;
    transform: rotate(45deg);
    font-size: 12px;
}

@media screen and (max-width: 1250px) {
    .periodvisible {
        display: none;
    }
}
@media screen and (max-width: 1000px) {
    .extratext-container {
        padding-left: 4px;
    }
}
@media screen and (max-width: 950px) {
    .extratext-period {
        font-size: 13px;
    }
}
@media screen and (max-width: 850px) {
    .extratext-period {
        font-size: 10px;
    }
}
@media screen and (max-width: 760px) {
    #stock-textlines-wrapper h2 {
        top: 45px;
    }
    .extratext-container {
        border-left: 0px !important;
        border-top: 1px solid black !important;
        padding-left: 0px;
    }
    .periodvisible {
        display: inline-block;
    }
    .extratext-period {
        font-size: unset;
    }
}
@media screen and (max-width: 650px) {
    .periodvisible {
        display: none;
    }
}
@media screen and (max-width: 500px) {
    .extratext-period {
        font-size: 13px;
    }
}
