@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700);

/* Layout setup for scroll handling*/
:root {
    --navbar-height: 65px;
}

body, html {
    background: var(--bg-body);
    height: 100vh;
    width: 100vw;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--text-primary);
}

.e-content-animation .e-splitter.e-splitter-horizontal {
    max-height: calc(100dvh - var(--navbar-height));
    overflow: auto;
}

/* ACTOR CI SPECIFIC BOOTSTRAP OVERRIDES */

.actionbar {
    position: sticky;
    top: 0px;
    z-index: 1;
    background: var(--bg-content);
}

.e-toolbar .e-toolbar-item:not(.e-separator):not(.e-spacer) {
    /*background: whitesmoke;*/
}

.e-toolbar {
    box-shadow: 0px 4px 10px 0px #80808024;
}

.btn {
    border-radius: 0 !important;
}

.e-toolbar.actor-nav {
    min-height: 58px;
    box-shadow: 0px 0px 4px black;
    background: var(--navbar-bg);
    border: 0;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.e-toolbar.actor-nav .e-icons {
    font-size: 16px !important;
    color: var(--navbar-text) !important;
}

/* Basic button styling */
.e-btn {
    font-size: 14px !important;
}

.e-btn.e-small {
    font-size: 13px !important;
}

/* Fix refresh icon visibility */
.e-toolbar.actor-nav .e-tbar-btn.e-btn .e-icons {
    color: var(--navbar-text) !important;
    font-size: 16px !important;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Reset some basic elements to ensure consistency across browsers */
* {
    box-sizing: border-box;
}

#wrapper {
    display: flex;
    flex-direction: column;
    max-height: 100dvh;
    width: 100dvw;
    overflow: hidden;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    background: var(--bg-content);
    position: relative;
    min-height: 0;
}

.actor-nav {
    flex-shrink: 0;
    z-index: 1000;
}

.actor-aside {
    position: fixed !important;
    top: var(--navbar-height) !important;
    bottom: 0 !important;
    z-index: 1001 !important;
}

.sidebar-menu {
    position: fixed !important;
    top: var(--navbar-height) !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1001 !important;
}

/* Responsive Layout */
@media (max-width: 768px) {
    :root {
        --navbar-height: 55px;
    }

    .main-content {
        padding: 0.5rem;
    }

    .actor-aside {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.25rem;
    }
}

.module {
    display: flex;
    transition: all 1s;
    padding: 8px
}

.module-description, .module-actions {
    width: 50%;
    max-height: 150px;
    padding: 0 8px;
    overflow: hidden !important;
}

.expanded-False .module-description, .expanded-False .module-actions {
    width: 0px !important;
    height: 0px !important;
    display: none;
}

.index-heading {
    text-align: center;
    background: var(--sidemenu-bg);
    color: var(--sidemenu-text);
    padding: 2px 0px;
}

.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap, .e-static-pane {
    background: var(--bg-content);
}

.actions-list {
    display: flex;
    transition: all 1s ease;
    overflow: hidden;
    flex-wrap: wrap;

    & > div {
        flex-basis: calc(50% - 10px); /* assuming you want a little gap between the items */
        margin-bottom: 10px; /* optional: if you want space between rows */
    }

}


.ocm-indicator-grid {
    border: 0 !important;

    .e-gridheader, .e-rowcell {
        border: 0 !important;
    }

}

.round-dot {
    margin-top: 10px;
    height: 10px;
    width: 10px;
    max-height: 10px;
    max-width: 10px;
    border-radius: 50%;
    display: inline-block;
}


.decision-table {
    & tr td {
        vertical-align: top !important;
        font-size: 12px;
        line-height: 1.3;
        position: relative;
        padding-bottom: 50px;
    }

    & .table {
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0;

        & td {
            padding: 8px 4px;
        }

    }
}

.no-click {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 20;
    cursor: progress;
}

.cursor-help {
    cursor: help;
}

/* GENERAL SYNCFUSION BOOTSTRAP OVERIDES */

.e-btn.e-flat:hover, .e-css.e-btn.e-flat:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--bs-danger);
}

.e-btn.e-flat, .e-css.e-btn.e-flat {
    background: transparent;
    border-color: var(--bs-primary);
    box-shadow: none;
    color: var(--bs-primary);
}

.flex-fill {
    flex: 1;
}

.e-accordion {
    border: 1px solid lightgrey;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, .1);
    border-radius: 0;
}

.e-accordion .e-acrdn-item {
    text-align: left;
    color: whitesmoke;
    border-radius: 0;
    background-color: var(--bs-primary);
}

.e-accordion .e-acrdn-item.e-select:last-child {
    border-radius: 0;
}

.e-accordion .e-acrdn-item.e-select > .e-acrdn-header {
    background: var(--bs-primary) !important;
    justify-content: center;
}

.e-accordion .e-acrdn-item .e-acrdn-header {
    border-radius: 0;
}

.e-accordion .e-acrdn-item .e-acrdn-header .e-toggle-icon .e-icons, .e-accordion .e-acrdn-item .e-acrdn-header .e-acrdn-header-content {
    color: whitesmoke !important;
}

.e-accordion .e-acrdn-item .e-acrdn-header:hover {
    background: var(--color-primary-hover) !important;
}

.e-accordion .e-acrdn-item.e-select.e-active > .e-acrdn-header,
.e-accordion .e-acrdn-item.e-select.e-item-focus > .e-acrdn-header {
    background-color: var(--bs-danger) !important;
    border-radius: 0;
}

.e-accordion .e-acrdn-item.e-select.e-active > .e-acrdn-header .e-acrdn-header-content,
.e-accordion .e-acrdn-item.e-select.e-item-focus > .e-acrdn-header .e-acrdn-header-content {
    color: white !important;
}

.blazored-toast-body .blazored-toast-header h5 {
    font-size: 16px;
}
g.e-user-handle[data-name="Save"] > * {
    cursor: pointer !important; /*  坐 */
}

/* Custom scrollbar styles for OREST analysis pages */
.custom-scrollbar::-webkit-scrollbar {
    width: 12px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar styling */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Global minimal scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Tree View Theme Colors - Function Tree, Asset Tree, Analysis Tree */
.e-treeview {
    background: var(--tree-bg) !important;
}

.e-treeview .e-list-item {
    color: var(--tree-text) !important;
}

.e-treeview .e-list-item .e-text-content {
    color: var(--tree-text) !important;
}

.e-treeview .e-list-item:hover {
    background: var(--tree-hover) !important;
}

.e-treeview .e-list-item.e-active {
    background: var(--tree-selected) !important;
}

.e-treeview .e-list-item.e-node-focus {
    background: var(--tree-selected) !important;
}

.e-treeview .e-list-icon,
.e-treeview .tree-icon-asset,
.e-treeview .tree-icon-analysis,
.e-treeview .tree-icon-function,
.e-treeview .tree-icon-state,
.e-treeview .tree-icon-mode,
.e-treeview .tree-icon-mechanism {
    color: var(--tree-icon) !important;
}

.functionTreeHolder,
.assetTreeHolder {
    background: var(--tree-bg);
}

/* Override bootstrap scroll-pane to use navbar height variable */
.scroll-pane {
    height: calc(100dvh - var(--navbar-height)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}
