/* ============================== */
/* == GLOBALA STILAR (ÅTERANVÄNDBARA) == */
/* ============================== */

.html_header_transparency #top .avia-builder-el-0 .container,
.html_header_transparency #top .avia-builder-el-0 .slideshow_caption {
    padding-top: 0px !important;
}

.preview-logo {
    max-height: 80px;
}

.footer-logout {
    text-align: right;
    padding: 10px 0;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body>#wrap {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ============================== */
/* == SYNAPTICA: Mail menu Kundsidan == */
/* ============================== */
#menu-item-262,
#menu-item-261,
#menu-item-394 {
    height: 64px;
}

footer {
    margin-top: auto;
}

body .column-top-margin {
    margin-top: -30px !important;
}

/* ============================== */
/* == SYNAPTICA: RADERA-PROMPT == */
/* ============================== */
#synaptica-confirm-overlay {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#synaptica-confirm-overlay.visible {
    display: flex;
    opacity: 1;
}

#synaptica-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#synaptica-confirm-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Client - Avstånd mellan Menyn o Innehåll */
#top .hr.hr-invisible.av-bg99j-94c74d27d92bc065a0a3b4f36aa27430,
#top .hr.hr-invisible.av-mbm31r3m-f2d59e59d93c3e2199d0ae7c53d0b88b,
#top .hr.hr-invisible.av-mbm32ixl-7bf3183ead274d527fe013180b109afe,
#top .hr.hr-invisible.av-mbm853vr-3c619908113664e9f2bb20a7200b35f4 {
    margin-top: 120px !important;
}

/* Superadmin - Avstånd mellan Menyn o Innehåll */
#top .hr.hr-invisible.av-md8pj9w9-71e4d24cd2972f5ecda856137b0dc7c9,
#top .hr.hr-invisible.av-md8pmuxt-412cccbf2161a528b5b58cdb7f1c0204,
#top .hr.hr-invisible.av-md8pp2yx-ca4070cb2296020fe5c6ddc59d269773 {
    margin-top: 0px !important;
}

/* === CLIENT-DASHBOARD: Transparent innan scroll (utan blur) === */
body.client-dashboard #header_main.av_header_transparency {
    background: transparent;
    transition: background 0.3s ease;
    position: relative;
    z-index: 9999;
}

#top .av_header_transparency #header_main,
#top .av_header_transparency .avia-menu.av_menu_icon_beside {
    background: rgba(255, 255, 255, 0.96);
}

body.client-dashboard #header_main.av_header_transparency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95) !important;
    /* Transparent vit bakgrund */
    z-index: -1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid #e2e2e2;
}

/* === CLIENT-DASHBOARD: Sticky efter scroll === */
body.client-dashboard #header_main.av-sticky-header {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0.97;
    transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* === CLIENT-DASHBOARD: Shrinking efter scroll === */
body.client-dashboard #header_main.av_header_shrinking::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e2e2;
}

/* === SUPERADMIN: Transparent innan scroll MED blur === */
body:not(.client-dashboard) #header_main.av_header_transparency {
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    position: relative;
    z-index: 9999;
}

body:not(.client-dashboard) #header_main.av_header_transparency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    z-index: -1;
    transition: all 0.3s ease;
}

/* === SUPERADMIN: Sticky efter scroll === */
body:not(.client-dashboard) #header_main.av-sticky-header {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0.97;
    transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* === Gemensamt: Skapa plats under sticky header === */
.av-sticky-active body {
    padding-top: 88px;
}

/* ============================== */
/* == SYNAPTICA: FEEDBACK / MEDDELANDEN == */
/* ============================== */
/* 🎨 Synaptica – Kundformulär */
#top input[type="text"],
#top input[type="email"],
#top input[type="password"] {
    margin-bottom: 0;
}

#top input[type="text"] {
    font-weight: 600;
}

.synaptica-fello-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.synaptica-input {
    width: 100%;
    max-width: 300px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.synaptica-fade-message {
    padding: 15px 20px;
    background: #062326;
    color: #ffffff;
    /* border: 1px solid #062326; */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    display: none;
    transition: opacity 0.4s ease;
}

.synaptica-fade-message.show {
    display: block;
    opacity: 1;
}

/* ============================== */
/* == SYNAPTICA: KNAPPAR (BASSTIL) == */
/* ============================== */
.synaptica-button.logout-client {
    background-color: #36e3f7 !important;
    color: #062326 !important;
    font-weight: 600;
}

.synaptica-button {
    min-width: 62px;
    height: 30px;
    line-height: 8px;
    text-align: center;
    padding: 10px 16px;
    background-color: #062326;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.synaptica-button:hover {
    background-color: #0f3b3d;
}

.synaptica-button.warning {
    background-color: #ffc107 !important;
    color: #000 !important;
    border: 1px solid #e0a800;
}

/* == KNAPPGRUPPER (CENTRERAD RAD) == */
.synaptica-button-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.synaptica-button-group .synaptica-button .synaptica-button .btn-fello-test {
    flex: none !important;
    width: 110px !important;
    min-width: 98px !important;
    max-width: 98px !important;
    font-size: 13px !important;
    padding: 6px 0 !important;
    text-align: center !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.btn-fello-test {
    background-color: #114c4e;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================== */
/* == SYNAPTICA: TABELLER == */
/* ============================== */
.synaptica-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 18px;
}

.synaptica-table th,
.synaptica-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    white-space: nowrap;
}

.synaptica-table th {
    background-color: #062326;
    color: white;
    text-transform: none;
}

.synaptica-edit-row {
    display: none;
    background: #969696;
}

.synaptica-readonly {
    background-color: #f0f0f0 !Important;
}

.hidden-row {
    display: none;
}

/* ============================== */
/* == SYNAPTICA: RADERA-POPUP == */
/* ============================== */
.delete-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
}

.delete-popup-content {
    text-align: center;
    position: relative;
    cursor: grab;
}

#delete-popup button {
    margin: 10px;
}

/* ============================== */
/* == GEMENSAMT: AUTOFYLL-FÄLT == */
/* ============================== */
input:-webkit-autofill {
    background-color: #f5f5f5 !important;
    -webkit-box-shadow: 0 0 0px 1000px #f5f5f5 inset !important;
    transition: background-color 9999s ease-out;
    color: #000 !important;
}

/* ============================== */
/* == Kund formuläår LÅSTA FÄLT == */
/* ============================== */
.synaptica-disabled-field {
    pointer-events: none !important;
    color: #cccccc !important;
    background-color: #ffffff !important;
}

/* Göm det faktiska inputfältet Standard */
input[type="file"]#upload_logo {
    display: none;
}

.synaptica-table th:nth-child(1),
.synaptica-table td:nth-child(1) {
    width: 50px;
    /* ID */
}

.synaptica-table th:nth-child(2),
.synaptica-table td:nth-child(2) {
    width: 200px;
    /* Namn */
}

.synaptica-table th:nth-child(3),
.synaptica-table td:nth-child(3) {
    width: 113px;
    /* Kund */
}

.synaptica-table th:nth-child(4),
.synaptica-table td:nth-child(4) {
    width: 143px;
    /* Skapad */
}

.synaptica-table th:nth-child(5),
.synaptica-table td:nth-child(5) {
    width: 90px;
    text-align: left;
    /* Status */
}

/* ============================== */
/* == ANIMATIONER == */
/* ============================== */
@keyframes slideInLeft {
    0% {
        transform: translateX(-40px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(40px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}