@font-face {
    font-family: 'cargomon';
    src: url('/cip/v1/css/fonts/cargomon.eot'); /* IE9 Compat Modes */
    src: url('/cip/v1/css/fonts/cargomon.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/cip/v1/css/fonts/cargomon.woff') format('woff'), /* Modern Browsers */
    url('/cip/v1/css/fonts/cargomon.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/cip/v1/css/fonts/cargomon.svg#svgFontName') format('svg'); /* Legacy iOS */
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'cargomon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



.icon.cgmon-rssi:before {
    font-family: cargomon;
    content: "\f0897";
}

i.icon.cgmon-icon:before {
    font-family: cargomon;
    content: '\e900';
}



i.icon.cgmon-trackxxl:before {
    font-family: cargomon;
    content: '\f0818';
}


i.icon.cgmon-trackxxl-group:before {
    font-family: cargomon;
    content: '\f0812';
}

i.icon.cgmon-trackxxl-nfc:before {
    font-family: cargomon;
    content: '\f0820';
}

i.icon.cgmon-trackxxl-connect:before {
    font-family: cargomon;
    content: '\f0813';
}

i.icon.cgmon-trackxxl-settings:before {
    font-family: cargomon;
    content: '\f0814';
}

i.icon.cgmon-trackxlsolar-nfc:before {
    font-family: cargomon;
    content: '\f0819';
}


i.icon.cgmon-trackxlsolar:before {
    font-family: cargomon;
    content: '\f0817';
}


i.icon.cgmon-sensor:before {
    font-family: cargomon;
    content: '\f0816';
}

i.icon.cgmon-sensor-settings:before {
    font-family: cargomon;
    content: '\f0815';
}



.cgmon.hidden {
    display: none;
}
/*
.ui.grid.dashboard {
    height: 80vh;
}*/

.cgmon.asset-dashboard-map {
    height: 60vh;
}

.cgmon.asset-dashboard-events {
    height: 15vh;
    overflow: auto;
}

.cgmon.asset-dashboard-charts {
    height: 80vh;
    overflow: auto;
}
/*
    .ui.grid.dashboard .events {
        height: 10vh;
    }*/
/*
    .ui.grid.dashboard .full-map {
        height: 90vh;
    }

    .ui.grid.dashboard .events {
        height: 30vh;
    }
*/
.content {
    padding-top: 1.1rem;
}



div.fileinputs {
    position: relative;
}

div.fakefile {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 1;
    width: 100%;
}

input.file {
    position: absolute;
    text-align: right;
    -moz-opacity: 0;
    filter: alpha(opacity: 0);
    opacity: 0;
    z-index: 2;
}

.toc {
    position: fixed;
    z-index: 1;
    background-color: #1b1c1d;
    width: 250px;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.article {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0px;
    margin-left: 250px;
}

.scrollable {
    min-height: 10vh; /**100vh;**/
    max-height: 50vh;
    overflow: auto;
}

.scrollable-x {
    min-height: 10vh; /**100vh;**/
    max-height: 50vh;
    overflow-x: auto;
    overflow-y: hidden;
    /** white-space: nowrap;**/
}

.scrollable-y {
    min-height: 10vh; /**100vh;**/
    max-height: 50vh;
    overflow-x: hidden;
    overflow-y: auto;
    /** white-space: nowrap;**/
}


.scrollable-full {
    min-height: 25vh; /**100vh;**/
    max-height: 60vh;
    overflow: auto;
}

    .scrollable-full.operations {
        max-height: 80vh !important;
    }


/* Mobile-only display */
@media (max-width: 767px) {

    .tablet-only, .computer-only {
        display: none !important;
    }

    .mobile-only {
        display: -webkit-inline-box !important;
    }
}

/* Tablet-only display */
@media (min-width: 768px) and (max-width: 1024px) {

    .mobile-only, .computer-only {
        display: none !important;
    }

    .tablet-only {
        display: -webkit-inline-box !important;
    }

        .tablet-only.mobile-only {
            display: -webkit-inline-box !important;
        }

        .tablet-only.computer-only {
            display: -webkit-inline-box !important;
        }
}

/* Computer-only display */
@media (min-width: 1025px) {

    .mobile-only, .tablet-only {
        display: none !important;
    }

    /*  .computer-only {
        display: block !important;
    }*/

    .computer-only.mobile-only {
        display: -webkit-inline-box !important;
    }

    .computer-only.tablet-only {
        display: -webkit-inline-box !important;
    }
}


.resizable {
    resize: both;
    overflow: auto;
    position: absolute;
    z-index: 5;
}

.ui.message.raised {
    position: fixed;
    top: 50px;
    z-index: 9998;
}

.inverted.icon.header {
    position: fixed;
    top: 50px;
    z-index: 9999;
}

/* Analysis Dashboard Chart Segment */
.analysis-dashboard.row {
    min-height: 250px;
}

    .analysis-dashboard.row .scrollable {
        height: 200px;
    }

    .analysis-dashboard.row .chart {
        height: 200px;
    }

    .analysis-dashboard.row .segment {
        min-height: 200px;
    }

/* OPERATION STATUS BAR */
ul.cgmon.operation-status {
    width: 100%;
    display: table;
    table-layout: fixed;
    background-color: white;
    border-collapse: collapse;
    margin: 2px;
    color: white;
    box-shadow: 2px 2px 4px grey;
    text-shadow: 2px 2px 4px grey;
}

    ul.cgmon.operation-status li {
        display: table-cell;
        text-align: left;
        /*border: 1px solid black;*/
        vertical-align: middle;
        word-wrap: break-word;
        border-color: lightgray;
        padding-top: 2px;
        padding-bottom: 2px;
    }

        ul.cgmon.operation-status li.executing {
            background-color: #fbbd08;
        }

        ul.cgmon.operation-status li.failed {
            background-color: #db2828;
        }

        ul.cgmon.operation-status li.successful {
            background-color: #21ba45;
        }

        ul.cgmon.operation-status li.pending {
            background-color: #f2711c;
        }








/* Columns  */

.column.compact {
    padding: 5px !important;
}



.ui.accordion .title:not(.ui) {
    padding: 0px;
}

.ui.accordion:not(.styled) .accordion .title ~ .content:not(.ui), .ui.accordion:not(.styled) .title ~ .content:not(.ui) {
    padding: 0px 0px 0px 5px;
}

.ui.list .list, ol.ui.list ol, ul.ui.list ul {
    padding: 0px;
}

    .ui.list .list > .item, ol.ui.list ol li, ul.ui.list ul li {
        padding: 0px;
    }


#tooltip:empty {
    display: none;
}




#tooltip {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    position: absolute;
    padding: 4px;
    margin: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    max-width: 300px;
    font-size: 10px;
    z-index: 9;
    pointer-events: none;
}



.ui.dropdown .menu.tag > .item {
    display: inline-block;
    margin: 1px;
}


.ui.selection.dropdown .menu.tag > .item {
    padding: 5px !important;
}


.tag-label {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    color: white !important;
    margin: 2px !important;
}

.dropdown.tag .menu.tag.transition.visible {
    border-color: black;
    border-top-width: 1px !important;
}


.cgmon-page-container {
    height: 75vh !important;
    overflow-x: auto !important;
    padding: 0px !important;
}



/* MAIN PAGE MENU  */
.cgmon-menu.selected {
    background-color: #e0e1e2 !important;
}

.cgmon-menu {
    background-color: transparent !important;
}

    .cgmon-menu i {
        float: left !important;
        margin-right: 10px !important;
    }

.cgmon-sub-menu i {
    float: left !important;
    margin-right: 10px !important;
}

.cgmon-sub-menu {
    font-size: 1em !important;
}

    .cgmon-sub-menu.selected {
        background-color: #e0e1e2 !important;
    }


/* Field item  */
.cgmon .field .selected {
    background-color: #00b5ad !important;
}

.ui.form.cgmon-filter .fields .field {
    padding-bottom: 10px;
}

.ui.form.cgmon-filter .field {
    padding-bottom: 10px;
}



/*.item.active .cgmon-sub-menu.selected {
    background-color: orange !important;
}

.item .cgmon-sub-menu.selected {
    background-color: transparent !important;
}*/




.cgmon.bottom-bordered {
    border-bottom: 2px solid #e0e1e2 !important;
    padding-bottom: 2px !important;
}

/* PROGRESS ELEMENT */


/*.ui.progress {
    border: 1px solid #ddd;
    background-color: #eee;
}

    .ui.progress .bar {
        height: 100%;
    }

    .ui.progress .label {
        white-space: nowrap;
    }*/


/* SEMANTIC - COLUMN */

.ui.column.cgmon-compact {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* FORM ELEMENT */

.ui.cgmon.form .field {
    margin-bottom: 1em !important;
}

.ui.form.cgmon-form-table .fields {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    border-bottom: 2px solid #e0e1e2 !important;
}

    .ui.form.cgmon-form-table .fields.cgmon-selected {
        background-color: #F2711C;
    }


.ui.form.cgmon-form-table.cgmon-clickable .fields {
    cursor: pointer;
}


.cgmon-container {
    display: flex;
    flex-wrap: wrap;
}

    .cgmon-container div {
        width: 50px; /* or any desired width */
        height: 50px; /* or any desired height */
        margin: 2px;
    }

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node {
    width: 180px;
    height: 80px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

    .node .title {
        font-weight: bold;
    }

    .node .nested-nodes {
        display: flex;
        justify-content: space-between;
        width: 100%;
        margin-top: 10px;
    }

        .node .nested-nodes .node {
            width: auto;
            height: auto;
            background-color: #e0e0e0;
            border: 1px solid #999;
            border-radius: 4px;
            padding: 4px 8px;
            margin: 0 4px;
        }


/* CGMON */
.cgmon.full-width {
    width: 100% !important;
}




/* LABEL */

label.cgmon-empty::after {
    content: '\00a0'; /* Non-breaking space */
}





/*  SEMANTI UI CARD  */
.ui.card.cgmon > .content, .ui.cards.cgmon > .card > .content {
    padding: 8px !important;
    flex-grow: 0 !important;
}



.ui.grid.cgmon-list > .column:not(.row) {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}


.cgmon-full-width {
    width: 90% !important;
    height: 90% !important;
}


/* CUSTOM TOOLTIP */
.cgmon-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    /* ATTRIBUTE-BASED TOOLTIP (cgmon-tooltip="Text") */
    .cgmon-tooltip[cgmon-tooltip]:hover::after {
        content: attr(cgmon-tooltip);
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 14px;
        white-space: nowrap;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        opacity: 1;
        visibility: visible;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* BOTTOM Modifier (override defaults) */
    .cgmon-tooltip.cgmon-tooltip--bottom[cgmon-tooltip]:hover::after {
        top: auto; /* Reset top from default */
        bottom: -40px; /* Position below */
        left: 50%;
        transform: translateX(-50%);
    }

    /* LEFT Modifier */
    .cgmon-tooltip.cgmon-tooltip--left[cgmon-tooltip]:hover::after {
        top: 50%;
        left: auto; /* Reset left from default */
        bottom: auto; /* If needed, reset bottom too */
        right: 100%; /* Move to the left side */
        transform: translateY(-50%);
    }

    /* RIGHT Modifier */
    .cgmon-tooltip.cgmon-tooltip--right[cgmon-tooltip]:hover::after {
        top: 50%;
        left: 100%;
        bottom: auto; /* Reset if needed */
        transform: translateY(-50%);
    }

    
    /* HTML-BASED TOOLTIP */
    .cgmon-tooltip .cgmon-tooltip-content {
        position: absolute;
        bottom: 100%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 100;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

    /* HTML-BASED TOOLTIP */
    .cgmon-tooltip.cgmon-tooltip--bottom .cgmon-tooltip-content {
        top: 50%; 
        bottom: auto;  
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .cgmon-tooltip.cgmon-tooltip--right .cgmon-tooltip-content {
        top: 50%;
        left: 100%;
        bottom: auto;  
        transform: translateY(-50%);
    }

    .cgmon-tooltip.cgmon-tooltip--left .cgmon-tooltip-content {
        top: 50%;
        left: auto; /* Reset left from default */
        bottom: auto; /* If needed, reset bottom too */
        right: 100%; /* Move to the left side */
        transform: translateY(-50%);
    }

    /* Show HTML Tooltip if no attribute is present */
    .cgmon-tooltip:not([cgmon-tooltip]):hover .cgmon-tooltip-content {
        visibility: visible;
        opacity: 1;
    }





/* CUSTOM TOOLTIP */
.cgmon-tooltip-global {
    position: relative;
    cursor: pointer;
}

    /* HTML-BASED TOOLTIP */
    .cgmon-tooltip-global .cgmon-tooltip-global__content {
        z-index: 100;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
        position: absolute;
        transform: translateX(-60%);
    }

    /* Show HTML Tooltip if no attribute is present */
    .cgmon-tooltip-global:hover .cgmon-tooltip-global__content {
        visibility: visible;
        opacity: 1;
    }



/* NAVIGATION MENUS */

.cgmon-main-sidebar {
    width: 250px !important;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: linear-gradient(0deg, #000, #000, #000, #505050,#C0C0C0) !important;
}

    .cgmon-main-sidebar .cgmon-asset-search.segment .menu .menu {
        overflow-y: scroll !important;
        position: absolute !important;
        background-color: white !important;
        z-index: 100 !important;
        max-height: 250px !important;
        width: 90%;
    }

        .cgmon-main-sidebar .cgmon-asset-search.segment .menu .menu .item {
            color: black !important;
        }


/* DIV */
div.cgmon-mini-font {
    font-size: 10px; /* Mini font size for table cells */
}



/* TABLE CONTROL */

/*tr:hover {
    background-color: #f5f5f5;*/ /* Light gray */
/*}*/

table.ui.table th.cgmon-tags-column {
    min-width: 250px !important;
}

/* Micro Font Size */
table.ui.table th.cgmon-micro-font {
    font-size: 8px !important; /* Micro font size for table headers */
}

table.ui.table td.cgmon-micro-font {
    font-size: 8px !important; /* Micro font size for table cells */
}

table tr:hover {
    background-color: #ddd !important; /* Dark grey */
    cursor: default;
}

table.cgmon--max30vh {
    max-height: 30vh !important;
}

    

/* Mini Font Size */
table th.cgmon-mini-font {
    font-size: 10px !important; /* Mini font size for table headers */
}

table.ui.table td.cgmon-mini-font {
    font-size: 10px !important; /* Mini font size for table cells */
}

/* Small Font Size */
table.ui.table th.cgmon-small-font {
    font-size: 12px; /* Small font size for table headers */
}

table.ui.table td.cgmon-small-font {
    font-size: 12px !important; /* Small font size for table cells */
}

/* Medium Font Size */
table.ui.table th.cgmon-medium-font {
    font-size: 14px !important; /* Medium font size for table headers */
}

table.ui.table td.cgmon-medium-font {
    font-size: 14px !important; /* Medium font size for table cells */
}

/* Large Font Size */
table.ui.table th.cgmon-large-font {
    font-size: 16px !important; /* Large font size for table headers */
}

table.ui.table td.cgmon-large-font {
    font-size: 16px !important; /* Large font size for table cells */
}

/* Extra Large Font Size */
table.ui.table th.cgmon-xl-font {
    font-size: 18px !important; /* Extra-large font size for table headers */
}

table.ui.table td.cgmon-xl-font {
    font-size: 18px !important; /* Extra-large font size for table cells */
}

table.ui.table td.cgmon-nowrap {
    white-space: nowrap;
}

table.ui.table tr.orange {
    background-color: orange;
}

table.ui.table tr.green {
    background-color: green;
}

.ui.table.cgmon-small-table td {
    font-size: 12px;
    padding-left: 2px !important;
    padding-right: 2px !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

.ui.table.cgmon-small-table th {
    font-size: 12px;
    padding-left: 3px !important;
    padding-right: 3px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.ui.table.cgmon-collapsing td {
    padding-left: 2px !important;
    padding-right: 2px !important;
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

.ui.table.cgmon-sticky {
    max-height: 100%; /* Set the desired height for the table's scrollable area */
    overflow-y: auto;
}

    .ui.table.cgmon-sticky thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #f9fafb; /* Ensure the header background is distinct */
    }

    /* Optional styling for better appearance */
    .ui.table.cgmon-sticky tbody tr {
        border: 1px solid #ddd;
    }



/* CGMON CUSTOM LAYOUT */
.cgmon-layout {
    height: 100vh;
    margin: 0 !important;
    overflow: hidden;
    display: flex !important;
}
/* Content Area */
.cgmon-content {
    padding: 0 !important;
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    gap: 10px;
    position: relative;
}

/* Scrollable Section (Table or Large Content) */
.cgmon-content__body {
    flex: 1;
    overflow-y: auto;
    padding-top: 0 !important;
    /* padding: 20px; =>  later padding */
    margin-left: 20px;
    background-color: white;
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}



/* Scrollable Section (Table or Large Content) */
.cgmon-content__body--noscroll {
    flex: 1;
    overflow: hidden;
    margin-left: 20px;
    margin-right: 20px;
    background-color: transparent;
}


.cgmon-content__header {
    align-items: center;
    background: #fff;
    padding: 10px;
    position: absolute;
    height: 50px !important;
    top: 0;
    width: 100%
}

.cgmon-content__header--styled {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 100%;
    background: #f5f5f5;
    transform: skewX(316deg);
    transform-origin: top right;
}


.cgmon-content__footer {
    align-items: center !important;
    background: #fff !important;
    padding: 10px !important;
    position: absolute !important;
    bottom: 0px !important;
    width: 100% !important;
    height: 50px !important;
}

.cgmon-content__footer--styled {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 100%;
    background: #f5f5f5;
    transform: skewX(-316deg);
    transform-origin: bottom right;
}


/* CARGOMON MODIFIERS */
.cgmon--full-width {
    width: 100% !important;
}

.cgmon--full-height {
    height: 100% !important;
}

.cgmon--absolute {
    position: absolute !important;
}

.cgmon--min50vh {
    min-height: 50vh !important;
}

.cgmon--min30vh {
    min-height: 30vh !important;
}


.cgmon--zindex999 {
    z-index: 999 !important;
}

.sensor-label {
    position: absolute;
    width: 27%; /* Equivalent to 40px on 650px width */
    height: 15%; /* Equivalent to 40px on 484px height */
    font-size: 2.5vw;
    font-weight: bold;
    background-color: green;
    color: white;
    border: none;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


