/*
    vsys.css
 */

html,body {
    height: 100%;
}


@font-face {
    font-family: "Montserrat";
    src: url("/javax.faces.resource/font/Montserrat.ttf.xhtml") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* base scale: the layout and theme both hardcode 14px; 12px reads better on 1920x1080 */
html, body, body .ui-widget {
    font-size: 12px;
}

body, .ui-widget {
    font-family: "Montserrat", sans-serif !important;
    letter-spacing: 1px;
}

body .ui-card {
    border-radius: 15px;
}

.topbar-icon {
    color: var(--primary-300) !important;
}

.layout-rightpanel {
    width: 450px;
    transform: translate3d(450px, 0px, 0px);
}

.layout-content {
    padding: 15px 15px 60px 15px;
}
.layout-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--surface-50);
}
/**
  * AUTO COMPLETE 100%
  */
.ui-autocomplete {
    width: 100%;
}

.ui-autocomplete > input {
    width: 100%;
}

.layout-topbar-colored .layout-topbar .layout-topbar-wrapper .layout-topbar-right .layout-topbar-actions > li > ul > li {
    display: table !important;
    width: 100%;
}

.layout-topbar-colored .layout-topbar .layout-topbar-wrapper .layout-topbar-right .layout-topbar-actions > li > ul > li > a {
    display: table !important;
    text-decoration: none !important;
    width: 100%;
}

.loader {
    color: var(--primary-300) !important;
    margin-left: 1em;
    font-size: 2em;
}

/**
 * SELECTONE
 */
body .ui-selectonemenu {
    min-width:  75%      !important;
    min-height: 2.25em   !important;
    max-width:  100%     !important;
}


/**
 * LEFT TABVIEW
 */
body .ui-tabs.ui-tabs-left > .ui-tabs-nav {
    width: 15% !important;
}

/**
 * HIDE TAB MENU NAV
 */
body .ui-tabmenu .ui-tabmenu-nav {
    overflow: hidden !important;
}

/**
    MENU -> SUBMENU
 */
.menu-wrapper .layout-menu-container .layout-menu li.layout-root-menuitem > div > .layout-menuitem-text {
    font-weight: bold;
    font-size: 1em;
}

/**
 * FIX DISABLED READABILITY
 */
body .ui-state-disabled {
    opacity: 1.0 !important;
}


/**
 * PE SHEETS
 */
/* sheets fill the space to the footer - sized by js/sheetHeight.js, not here */
#sheetWrap,
.sheetWrap {
	min-height: 260px;
	width: 100%;
	overflow: hidden;
}

#sheetWrap .ui-handsontable,
#sheetWrap .handsontable-inner,
#sheetWrap .handsontable,
#sheetWrap .ht_master,
#sheetWrap .wtHolder {
	max-width: 100%;
}

/* wrap column headers so a long title doesn't dictate the column width
   (Handsontable measures the header when auto-sizing a column; capping the
   header span caps that measurement, so widths follow the data instead) */
body .handsontable th {
	white-space: normal;
	vertical-align: middle;
}
body .handsontable span.colHeader {
	white-space: normal;
	max-width: 7em;
	line-height: 1.2;
}