/* ============================== */
/* == FELLO: Lista & Tabbar == */
/* ============================== */

.synaptica-fello-buttons .btn-fello-edit,
.synaptica-fello-buttons .btn-fello-toggle,
.synaptica-fello-buttons .btn-fello-delete {
    flex: none !important;
    width: 70px !important;
    min-width: 77px !important;
    max-width: 77px !important;
    padding: 5px 0px !important;
    font-size: 13px !important;
    text-align: center !important;
}

/* ============================== */
/* == Fello lista == */
/* ============================== */

.btn-fello-edit {
    background-color: #062326;
    color: #fff;
}

.btn-fello-toggle {
    background-color: #114c4e;
    color: #000;
}

.btn-fello-delete {
    background-color: #6fb3b5;
    color: #fff;
}

.synaptica-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thick;
    scrollbar-color: #ccc transparent;
}

.synaptica-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.synaptica-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.synaptica-table-wrapper::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}



.synaptica-table th:nth-child(6),
.synaptica-table td:nth-child(6) {
    width: 191px;
    /* Åtgärder (3 knappar) */
}

.synaptica-confirm-popup[hidden] {
    display: none !important;
}

.synaptica-confirm-popup.visible {
    display: flex !important;
}

.av-section-tab-title span:hover {
    color: #062326;
}

.av-section-tab-title {
    position: relative;
}

body #av-tab-section-1:not(.av-tab-section-visible) {
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

body #av-tab-section-1:not(.av-tab-section-visible) {
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.av-section-tab-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 1px;
    background-color: #062326;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.av-section-tab-title:hover::after {
    opacity: 1;
}

.synaptica-tabs-separator::before {
    content: "";
    display: block;
    max-width: 1210px;
    height: 1px;
    background-color: #062326;
    margin: 4px auto 30px auto;
    opacity: 0;
    transition: opacity 1.4s ease-in-out, margin-top 1.4s ease-in-out;
}

.synaptica-tabs-separator.show::before {
    opacity: 1;
    margin-top: 21px;
}

.av-tab-content.active_tab_content .synaptica-tabs-separator {
    display: block;
    max-width: 1210px;
    height: 1px;
    background-color: #062326;
    margin: 22px auto 30px auto;
}

#tab-id-1-container.tab_content.active_tab_content {
    border-color: #ffb803 !important;
}

.av-section-tab-title::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 40%;
    /* Anpassa så det möter kolumnram */
    width: 1px;
    height: 17px;
    background-color: #062326;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 1.9s ease, opacity 0.9s ease;
}

.av-section-tab-title.av-active-tab-title::before {
    transform: scaleY(1);
    opacity: 1;
}

/* ============================== */
/* == SYNAPTICA: FELLO TABBLAYOUT == */
/* ============================== */

.synaptica-custom-tabs {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 📌 Tabbknappar – container */
.synaptica-tab-buttons {
    display: grid;
    grid-template-columns: repeat(var(--items), 1fr);
    position: relative;
    background: #fff;
    border-bottom: 1px solid #ddd;
    overflow: visible !important;
    z-index: 0;
}

/* 📌 Tabbknappar – individuella */
.synaptica-tab-buttons>a.synaptica-tab-btn {
    white-space: nowrap;
    color: #444;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.synaptica-tab-buttons>a.synaptica-tab-btn:hover {
    color: #062326;
    background: none;
}

.synaptica-tab-buttons>a.synaptica-tab-btn.active {
    color: #062326;
}

/* === Tab Section === */
.av-inner-tab-title {
    font-size: 15px !important;
}

.av-tab-section-tab-title-container .av-section-tab-title:first-child .av-inner-tab-title {
    white-space: nowrap !important;
}

.js_active .av-tab-section-tab-title-container {
    height: 31px !important;
}

.av-tab-section-tab-title-container {
    width: 100% !important;
    max-width: 1145px !important;
    min-width: 880px !important;
    margin-inline: auto;
    text-align: left !important;
    padding: 5px 50px !important;
    position: relative !important;
    transition: all .4s ease-in-out !important;
}

span.av-inner-tab-title {
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    text-align: center !important;
}

.av-section-tab-title span:hover {
    color: #062326 !important;
}

/* ✅ Horisontell linje under aktiv tabb eller hover */
.av-section-tab-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 1px;
    background-color: #062326;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 🟢 Visa h-linjen endast vid aktiv tabb eller hover */
.av-section-tab-title.av-active-tab-title::after,
.av-section-tab-title:hover::after {
    opacity: 1;
}

/* 🔶 Lägg till en 4px linje under aktiv tabb-rubrik */
.synaptica-tabs-separator::before {
    content: "";
    display: block;
    max-width: 1210px;
    height: 1px;
    background-color: #062326;
    margin: 3px auto 30px auto;
    opacity: 0;
    transition: opacity 1.4s ease-in-out, transform 1.4s ease-in-out;
}

.synaptica-tabs-separator.show::before {
    opacity: 1;
    margin-top: 21px;
}

.av-tab-content.active_tab_content .synaptica-tabs-separator {
    display: block;
    max-width: 1210px;
    height: 1px;
    background-color: #062326;
    margin: 22px auto 30px auto;
}

/* 🔶 Lägg till under Tab Section - aktiv tabb */
.synaptica-tabs-separator-bottom::before {
    content: "";
    display: block;
    max-width: 1210px;
    height: 1px;
    background-color: #062326;
    margin: 600px auto 30px auto;
    opacity: 0;
    transform: scaleX(0.001);
    transform-origin: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.synaptica-tabs-separator-bottom.show::before {
    opacity: 1;
    transform: scaleX(1);
}

.left-line,
.right-line {
    width: 1px;
    height: var(--synaptica-line-height);
    background-color: #062326;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 0.8s ease-in-out;
    position: absolute;
    top: 0;
    bottom: 0;
    transform: scaleY(0.001);
    transform-origin: top;
    z-index: 2;
    /* om de hamnar bakom något */
}

.left-line {
    left: 50px;
}

.right-line {
    right: 50px;
}

.left-line.show,
.right-line.show {
    opacity: 1;
    transform: scaleY(1);
}

.av-tab-content.active_tab_content .synaptica-tabs-separator-bottom {
    display: block;
    max-width: 1210px;
    height: 1px;
    background-color: #062326;
    margin: 22px auto 30px auto;
}

/* ✅ Vertikal linje växer neråt från mitten – endast vid aktiv tabb */
:root {
    --synaptica-line-height: 680px;
}

.left-line,
.right-line {
    height: var(--synaptica-line-height);
}


.synaptica-tabs-separator-bottom::before {
    content: "";
    display: block;
    max-width: 1210px;
    height: 1px;
    background-color: #062326;
    margin: calc(var(--synaptica-line-height) - 1px) auto 30px auto;
    opacity: 0;
    transform: scaleX(0.001);
    transform-origin: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.synaptica-tabs-separator-bottom {
    margin-bottom: 1px;
}

/* 🟢 Aktivera endast på aktiv tabb */
.av-section-tab-title.av-active-tab-title::before {
    transform: scaleY(1);
    opacity: 1;
}

/* ============================== */
/* == SYNAPTICA: TOM FELLOLISTA == */
/* ============================== */
.synaptica-empty-fello-message {
    text-align: center;
    padding: 2em;
    font-style: italic;
    color: #666;
}

@media only screen and (max-width: 780px) {
    #top .av-tabsection-arrow>a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media only screen and (max-width: 780px) {
    .av-tab-section-tab-title-container {
        padding: 26px 10px !important;
    }

}

@media only screen and (max-width: 767px) {
    .responsive #top #wrap_all .container {
        max-width: 91%;
        width: 91%;
    }

}

@media only screen and (max-width: 780px) {
    .left-line {
        left: 0px;
    }

    .right-line {
        right: 0px;
    }

    .left-line,
    .right-line {
        height: 870px;
    }
}

@media only screen and (max-width: 778px) {
    .synaptica-tabs-separator-bottom::before {
        content: "";
        display: block;
        max-width: 1210px;
        height: 1px;
        background-color: #062326;
        margin: 868px auto 30px auto;
        opacity: 0;
        transform: scaleX(0.001);
        transform-origin: center;
        transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    }
}