﻿@import "feather.css";






.cmdDialogDefault {
    width: 100px;
    height: 30px;
    line-height: 8px;
    border-style: solid;
    border-width: 1px;
    border-color: var(--thor-control-borderColor);
    background-color: var(--thor-button-bgColor);
    color: var(--thor-button-textColor);
    margin-right: 5px;
    border-radius: 5px;
    transition: all 0.3s ease; /* Smooth transitions */
    user-select: none;
    margin-bottom: 30px;
}


    /* Glow effect */

    /* Hover state */
    .cmdDialogDefault:hover::before {
        opacity: 0.8; /* Increase glow opacity */
        transform: scale(1.1); /* Expand glow */
    }

    .cmdDialogDefault:hover {
        
    }


.cmdDialogDefaultNarrow {
    border-style: solid;
    border-width: 1px;
    border-color: #404040;
    background-color: var(--thor-control-backgroundColor);
    color: var(--thor-control-textColor);
    margin-right: 5px;
    border-radius: 5px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5); /* Subtle shadow */
    transition: all 0.3s ease; /* Smooth transitions */
    padding-left: 10px;
    padding-right: 10px;
    user-select: none;
    width: 60px;
}


    /* Glow effect */

    /* Hover state */
    .cmdDialogDefaultNarrow:hover::before {
        opacity: 0.8; /* Increase glow opacity */
        transform: scale(1.1); /* Expand glow */
    }

    .cmdDialogDefaultNarrow:hover {
        box-shadow: 0 0 5px rgba(200, 255, 200, 0.5); /* Add subtle glow to button */
    }




/* Popout position left */
.divPopoutDialogRight {
    position: absolute;
    overflow: hidden;
    top: 0px;
    right: 0px;
    height: 100vh;
    width: 640px;
    min-width: 300px;
    z-index: 20;
    color: white;
    color: var(--thor-dialog-textColor);
    background-color: var(--thor-dialog-bgColor);
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    user-select: none;
    border-style: solid;
    border-width: 1px;
    border-color: var(--thor-dialog-borderColor);
}

/* Popout position right */
.divPopoutDialogLeft {
    position: absolute;
    overflow: hidden;
    top: 0px;
    left: 0px;
    height: 100vh;
    width: 640px;
    min-width: 300px;
    z-index: 20;
    color: var(--thor-dialog-textColor);
    background-color: var(--thor-dialog-bgColor);
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    user-select: none;
    border-style: solid;
    border-width: 1px;
    border-color: var(--thor-dialog-borderColor);
}


/* Popout position right */
.divPopoutDialogTop {
    position: absolute;
    overflow: hidden;
    top: 0px;
    left: 0px;
    height: 10vh;
    width: 100vw;
    z-index: 20;
    color: var(--thor-dialog-textColor);
    background-color: var(--thor-dialog-bgColor);
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    user-select: none;
    border-style: solid;
    border-width: 1px;
    border-color: var(--thor-dialog-borderColor);
}


.divPopoutDialogBottom {
    position: absolute;
    overflow: hidden;
    bottom: 0px;
    left: 0px;
    height: 10vh;
    width: 100vw;
    z-index: 20;
    color: var(--thor-dialog-textColor);
    background-color: var(--thor-dialog-bgColor);
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    user-select: none;
    border-style: solid;
    border-width: 1px;
    border-color: var(--thor-dialog-borderColor);
}



/* Popout position right */
.divPopoutDialogCenter {
    position: absolute;
    overflow: hidden;
    bottom: 0px;
    left: 0px;
    height: 10vh;
    width: 100vw;
    z-index: 20;
    color: var(--thor-dialog-textColor);
    background-color: var(--thor-dialog-bgColor);
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    user-select: none;
    border-style: solid;
    border-width: 1px;
    border-color: var(--thor-dialog-borderColor);
}

/* Popout position right */
.divPopoutDialogCenter {
    position: fixed; /* Plassering relativt til hele vinduet */
    top: 50%; /* Flytter elementet 50% nedover */
    left: 50%; /* Flytter elementet 50% mot høyre */
    transform: translate(-50%, -50%); /* Flytter elementet tilbake med halv bredde og høyde */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px; /* Litt avrundede kanter */
    z-index: 20;
    border-style: solid;
    border-width: 1px;
    border-color: var(--thor-dialog-borderColor);
}




/*
.tblPopoutMain {
    border-style: solid;
    border-width: 0px;
    border-color: black;
    width: 100%;
    height: 100%;
}

    .tblPopoutMain td {
        border-style: solid;
        border-width: 0px;
        border-color: #f01010;
        padding: 5px;        
    }

    .tblPopoutMain tr:first-child {        
        flex-direction: column;
        vertical-align: top;
    }

    .tblPopoutMain tr:nth-child(2) {
        vertical-align: top;
        text-align: left;
    }

    .tblPopoutMain tr:last-child {
        height: 120px;
    }
*/






.divPopoutTopMenu {
    display: flex;
    flex-direction: row;
    font-size: 1.3rem;
    height: 32px;
}


.divPopoutMenuC1C1 {
    flex-grow: 1;
}

.divPopoutMenuC1C2 {
    width: 32px;
    vertical-align: central;
    line-height: unset;
    cursor: pointer;
}

.divPopoutMenuC1C3 {
    width: 32px;
    vertical-align: central;
    line-height: unset;
    font-size: 1.5rem;
    cursor: pointer;
}

.divPopoutTitleBlock {
    display: flex;
    flex-direction: row;
}

.divPopoutLogo {
    border-style: solid;
    border-width: 1px;
    border-radius: 50%;
    border-color: black;
    width: 60px;
    height: 60px;
    vertical-align: central;
    line-height: 60px;
    text-align: center;
    font-size: 24px;
    background-color: #418FDF
}

.labPopoutDialogTitle {
    font-size: 2.5rem;
    font-style: normal;
    font-family: 'Segoe UI';
    padding: 0px;
    margin: 0px;
    line-height: 1.2;
    color: forestgreen;
    font-weight: 100;
    text-align: left;
}

.labPopoutDialogSubTitle {
    font-family: 'Segoe UI';
    font-style: normal;
    font-weight: 100;
    font-size: 1.1rem;
    text-align: left;
}

.divPopoutTitles {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    border-style: none;
}


.divPopoutContent {
    overflow-y: auto;
    
}




.divTabControl {
    box-sizing: border-box;
    margin-bottom: 40px;
    user-select: none;
    display: flex;
    flex-direction: column;
}


.divTabControlButtons {
    border-color: deeppink;
    box-sizing: border-box;
}


.tab-button {
    background-color: #303030; /* Standard mørk bakgrunn */
    color: white; /* Standard tekstfarge */
    border: 1px solid #505050; /* Subtil kant */
    padding: 5px 15px;
    margin-right: 2px;
    border-radius: 5px 5px 0 0; /* Runde topphjørner */
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

.tab-active {
    background-color: #0066cc; /* Lysere bakgrunn for aktiv fane */
    color: #ffffff; /* Lys tekst for aktiv fane */
    border-bottom: none; /* Fjern nedre kant for å fremheve aktiv fane */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtil skygge */
    border-bottom-width: 0px;
}

.tab-passive {
    background-color: #303030; /* Samme som standard bakgrunn */
    color: #cccccc; /* Lysere grå tekst for passiv fane */
    opacity: 0.8; /* Gjør passiv fane litt mindre fremtredende */
}

    .tab-passive:hover {
        background-color: #404040; /* Litt lysere ved hover for passiv fane */
        color: white; /* Hvit tekst ved hover */
    }


.divTabPage {
    border-style: solid;
    border-width: 1px;
    border-color: #303030;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 15px;
    background-color: #252525;
}





.divSmartTable{    
    width:100%;
    height:100%;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    user-select:none;
    font-family:'Segoe UI';
    font-weight:100;

}

.divSmartDataTable{
    overflow-y:auto;
    
}


/* Styling for .tblSmart table */
.tblSmart {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: var(--thor-control-textColor);
    background-color: var(--thor-control-backgroundColor);
}

    /* Header row styling */
    .tblSmart thead th {
        background: linear-gradient(180deg, #3a3a3a, #2b2b2b);
        color: #f8f8f8;
        font-weight: bold;
        text-align: left;
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 5px;
        border-bottom: 2px solid #666;
    }

    /* Footer row styling */
    .tblSmart tfoot td {
        background: linear-gradient(180deg, #2b2b2b, #3a3a3a);
        color: #f8f8f8;
        text-align: left;
        position: sticky;
        bottom: 0;
        z-index: 2;
        padding: 8px;
        border-top: 2px solid #666;
    }

    /* Body rows styling */
    .tblSmart tbody td {
        padding: 4px;
        border-bottom: 1px solid #666;
        text-align: left;
    }

    /* Highlight row on hover */
    .tblSmart tr {
        min-height:40px;
        height:40px;
    }


        /* Highlight row on hover */
        .tblSmart tbody tr:hover {
            background-color: var(--thor-item-bgHover);
            color: var(--thor-item-TextHover);
            cursor: pointer;
        }
        /* Frozen first column */
        .tblSmart tfoot td:first-child {
            position: sticky;
            left: 0;
            z-index: 1;
            background-color: #333;
            border-right: 2px solid #666;
        }
        /* Ensure the table fills the parent container */
        .tblSmart-container {
            overflow: auto;
            max-height: 400px; /* Adjust as needed */
            position: relative;
        }

