/*
In Table Central, Role Central, and App Central, there are a number of common nav elements
(in UXV2, this is the bar on the left side with the different actions; this replaces the 
strip of tabs across the top found in V1 mode)

These styles are common sets of styles for that markup, so that all those left-hand menus can look the same.

This file is relevant to TableCentralChromeHeader.html, AppCentralChromeHeader.html, and RoleCentralChromeHeader.html
*/
@import url("FeatureUpgrade.css");
/* In UXV2, we want the nav to go straight up against the side of the page */
#bodyTable {
    min-width: 100%;
}

.SideSpacer, .TopSpacer {
    display: none;
}

#stripe4x {
    display: none;
}

/* no top padding, messes up whitespace alignment */
.TableGridBody .ControlPanel {
    padding-top: 0;
}

/* outermost container for everything in the settings page */
#tabsContainer {
    margin-top: 1em;
    width: 100%;
}

/* table-cell display for multi-column layout */
#tabsContainer > * {
    display: table-cell;
    vertical-align: top;
}

/* right column should expand to fill the rest of the horizontal space */
#tabContentContainer {
    min-width: 400px;
    padding: 0.5em 1.5em 1em 0;
    width: 100%;
}

#tabContentContainer > * {
    margin: 0 !important;
    padding: 0 !important;
}

/* left column should only be as wide as necessary, no wrapping */
#tabsLeftSideMenu {
    padding-left: 1.7em;
    padding-right: 2em;
    white-space: nowrap;
}

/* button at top of left menu that allows navigating between app/table/personal settings areas */
#settingsJumpMenuButton {
    font-size: 1em;
    overflow-x: hidden;
    overflow-y: hidden;
    padding-left: 10px;
    padding-right: 20px;
    position: relative;
    white-space: nowrap;
}

.PageNavBar #settingsJumpMenuButton {
    margin-left: 0;
    margin-right: 0;
    padding: 2px 6px 2px 12px;
    display: block;
}

.PageNavBar .Header #settingsJumpMenuButton .MainIcon .Icon20 {
    top: 2px;
}

.PageNavBar .Header #settingsJumpMenuButton .MainIcon .SettingsModeGear.Icon {
    display: none;
}

body.SettingsMode .PageNavBar .Icon20 {
    top: auto;
}

body.SettingsMode .PageNavBar .PageNavBarActions.RightColumn {
    padding-top: 4px;
    vertical-align: middle;
}

.PageNavBar #settingsJumpMenuButton > * {
    display: inline-block;
    font-weight: normal;
    vertical-align: middle;
}

#settingsJumpMenuButton .Text {
    max-width: 220px;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

#settingsJumpMenuButton .Icon.DownArrow {
    background-image: none;
    background-color: var(--bebop-neutral-300);
    mask: url("images/icons/svgIcons/arrow-down-qbsprite.svg") no-repeat center;
    mask-size: contain;
    mask-position: center calc(50% - 4px);
    mask-size: 80% 80%;
}

/* "Exit Settings" link beneath settingsJumpMenu needs special positioning */
#pageNavBarExitSettingsAction {
    margin: .3em 0 0 38px !important;
}

/* each "group" of actions is a single <section> */
#tabsLeftSideMenu > section {
    margin-bottom: 2em;
    margin-top: 0.5em;
}

/* the title of the group of actions */
#tabsLeftSideMenu > section > header {
    border-bottom: none;
    margin-bottom: 0.75em;
    padding-bottom: 0;
    letter-spacing: 0%;
    font-size: 12px;
    font-weight: 700;
    color: var(--bebop-neutral-300);
    text-transform: none;
    font-family: "Nunito Sans",Helvetica,Arial,sans-serif;
}

/* within a group are a bunch of links; style their hover state */
#tabsLeftSideMenu > section > .Link {
    border-radius: 3px;
    display: block;
    margin-left: 0.33em;
    position: relative;
}

/* we don't want the <a> tags to be block themselves; we want the tooltips
on these <a> tags to appear right at the end of the <a>, not way to the right */
#tabsLeftSideMenu > section > .Link > a {
    background-position: left top;
    background-repeat: no-repeat;
    color: var(--bebop-neutral-100);
    display: inline-block;
    line-height: 32px;
    padding-left: 30px;
    text-decoration: none;
    font-family: "Nunito Sans",Helvetica,Arial,sans-serif;
}

/* icons internally to allow sprite-based icons */
#tabsLeftSideMenu > section > .Link > a > .Icon.DataConnection {
    display: inline-block;
    height: 24px;
    left: 3px;
    margin-top: -12px;
    position: absolute;
    top: 50%;
    width: 24px;
}

#tabsLeftSideMenu > section > .Link > a > .Icon:not(.DataConnection)  {
    display: inline-block;
    height: 18px;
    left: 3px;
    margin-top: -10px;
    position: absolute;
    top: 50%;
    width: 18px;
}

/* indicates that this link is to the currently-active page */
#tabsLeftSideMenu > section > .Link.Selected > a {
    color: black;
}

#tabsLeftSideMenu > section > .Link > a:hover,
#tabsLeftSideMenu > section > .Link.Active > a:hover {
    color: var(--bebop-neutral-100);
}

#tabsLeftSideMenu > section > .Link > a:hover > .Icon:not(.DataConnection) {
    background-color: var(--bebop-neutral-100);
}

#tabsLeftSideMenu > section > .Link:hover,
#tabsLeftSideMenu > section > .Link.Selected {
    background-color: var(--bebop-neutral-700);
}

/**********************************************************************************
Shared code for settings home pages (e.g. AppSettingsHome and TableSettingsHome)
**********************************************************************************/

/* settings homepage basic configuration of app/table name/description/etc */
.SettingsTopLevel {
    display: block;
    margin-left: 48px;
    padding: 20px 10px 10px 0;
}

.SettingsTopLevel .Columns {
    display: table;
    width: 100%;
}

.SettingsTopLevel .Columns .Column {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    /* sizing includes right padding */
    display: table-cell;
    padding-right: 15px;
    vertical-align: top;
}

.SettingsTopLevel .Columns .Column.FullWidth {
    padding-right: 24px;
    width: 100%;
}

.SettingsTopLevel .IconChooser {
    margin-top: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.SettingsTopLevel .Field {
    border: 1px solid #b9b9b9;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    display: inline-block;
    height: 20px;
    margin-top: 5px;
    padding: 7px 10px;
    -moz-transition: 0.1s linear background-color;
    -webkit-transition: 0.1s linear background-color;
    transition: 0.1s linear background-color;
    width: 180px;
}

.SettingsTopLevel .Changed {
    background-color: #fffddd;
}

.SettingsTopLevel .Invalid {
    background-color: #ffeaea;
}

.SettingsTopLevel .Columns .Column.FullWidth .Field {
    /* be as wide as possible */
    -moz-box-sizing: border-box;
    /* sizing includes padding */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
}

.SettingsTopLevel .Description.Field {
    /* gets automatically resized by $.fn.autosize */
    height: 36px;
    max-height: 8em; /* max height in em to line up with # of lines */
    min-height: 20px; /* height of icon picker */
    resize: none; /*disable user resizing*/
}

#selectedIconSearch,
.selectedIconSearch {
    height: 24px;
    width: 24px;
}

/* container for settings homepage columns */
.SettingsHomeColumns {
    margin: 0 24px;
    min-width: 750px;
    /*
    min 250px/column * 3 columns
    applying to container to help prevent columns (inline-block) from wrapping
    */
    padding-top: 20px;
}

/* stylized green "add" icon found in customize homepages */
.SettingsHomeColumns Button .Add.Icon {
    background-image: none;
    border: 0;
    display: inline-block;
    height: 12px;
    left: 2px;
    margin-top: -7px;
    padding: 0 4px 0 0;
    position: absolute;
    top: 50%;
    width: 16px;
    mask-size: contain;
    background-color: var(--bebop-neutral-300);
    mask: url("images/icons/svgIcons/add-circle-qbsprite.svg") no-repeat center;
}

.SettingsHomeColumns Button.Disabled {
    background-color: var(--bebop-neutral-700) !important;
    border: 1px solid var(--bebop-neutral-500) !important;
    color: var(--bebop-neutral-500) !important;
}

.SettingsHomeColumns Button.Disabled .Add.Icon {
    background-color: var(--bebop-neutral-600);
}

.SettingsHomeColumns Button.Disabled .Icon.DownArrow {
    background-image: url("./images/icons/down_arrow-disabled.png");
}

table.SettingsHomeTable {
    width: 100%;
}

table.SettingsHomeTable tr td {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    /* thirds, with a minimum width */
    box-sizing: border-box;
    display: inline-block;
    /* sizing includes right padding */
    padding-left: 45px;
    vertical-align: top;
    width: 33%;
}

table.SettingsHomeTable tr td:first-child {
    padding-left: 0;
}

.LoginSpinner {
    display: inline-block;
    height: 17px;
    vertical-align: middle;
    width: 17px;
}

.SettingsHomeTable header {
    white-space: nowrap;
}

/* divider between title and items in the column */
.SettingsHomeTable .Divider {
    background: none;
    height: 13px;
    margin-top: 0.6em;
    border-top: 1px solid var(--bebop-neutral-600);
}

/* container for column items (used to get :first-child right in children) */
.SettingsHomeTable .AppSettingsContainer,
.SettingsHomeTable .TableSettingsContainer {
    margin-top: 2.6em;
    padding: 0 14px;
}

.SettingsHomeTable > tbody > tr:first-child .AppSettingsContainer,
.SettingsHomeTable > tbody > tr:first-child .TableSettingsContainer {
    margin-top: 0;
}

/* Update new FLex layout for setting page */
.SettingFlexContainer {
    display: flex;
    flex-direction: column;
    padding: 10px 0 45px 0;
    width: 100%;
}

.SettingFlexContainer .FlexCol {
    display: flex;
    flex-direction: column;
    padding-left: 45px;
    width: 100%;
}

.SettingFlexContainer .FlexCol:first-child {
    padding-left: 0;
}

.SettingFlexContainer .FlexRow {
    align-content: flex-start;
    align-items: stretch;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    width: 100%;
}

.SettingFlexContainer .AppSettingsContainer {
    margin-top: 2.5em;
}

.SettingFlexContainer .FlexCol .AppSettingsContainer:first-child,
.SettingFlexContainer .FlexCol .TableSettingsContainer:first-child {
    margin-top: 0;
}

/* Main link to item; should also have class FS-H2 */
.SettingsHomeTable .MainLink {
    display: inline-block;
    font-size: 1.25em;
    font-weight: normal;
    padding: 0.5em 0;
    text-decoration: none;
}

/* A short blurb of text describing the item */
.SettingsHomeTable .TableSettingsContainer .Description,
.SettingsHomeTable .AppSettingsContainer .Description {
    margin: 0;
    line-height: 1.3em;
}

#FileAttachmentPage {
    padding: 1em 1.5em 1em 1.7em;
}

#tabContentContainer .label {
    font-weight: bold;
}

#tabContentContainer .label.boldFamily {
    font-family: var(--qb-bold-font);
    font-weight: var(--qb-bold-font-weight);
}

.EmailAccountManagerTable > tbody > tr > td:first-child > span {
    font-weight: bold;
}

.AccountAdminEmails {
    display: inline-block;
    max-width: 600px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 600px;
}

#tabsLeftSideMenu .Overlay.Locked.Icon {

}

button.TableSettings span.RightArrow,
button.AppSettings span.RightArrow {
    background-image: url("./images/icons/settingsHomeAdd.png");
    background-position: 0 -44px;
    background-repeat: no-repeat;
    display: inline-block;
    height: 12px;
    padding: 0;
    width: 16px;
}

a.LearnMoreLink {
    display: inline-block;
    padding-top: 5px;
}

.QB.Dialog.Lightbox .ui-dialog-titlebar,
.QB.Dialog.Lightbox .ui-dialog-buttonpane {
    display: none;
}

.Lightbox .CloseLightbox {
    background: url(./images/Close_Transit.png);
    cursor: pointer;
    float: right;
    height: 22px;
    width: 22px;
}

.Tiny.DataConnection.Icon {
    background-size: 16px 16px;
}

.Small.DataConnection.Icon {
    background-size: 24px 24px;
}

.Tiny.DataConnection.Icon.Admin-Console {
    background-position-y: -2px !important;
}

.Small.DataConnection.Icon.Admin-Console {
    background-repeat: no-repeat;
}

/* large icons on table settings page */
.Large.TableSettings.Icon.Connection.Bill-com {
    background-image: url("./images/icons/connections/Billdotcom.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Box-com {
    background-image: url("./images/icons/connections/box.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Public-CSV {
    background-image: url("./images/icons/connections/CSV.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Dropbox,
.Large.TableSettings.Icon.Connection.DropBox {
    background-image: url("./images/icons/connections/dropbox.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.GoogleDrive {
    background-image: url("./images/icons/connections/GoogleDrive.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Intacct {
    background-image: url("./images/icons/connections/Intacct.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.NetSuite {
    background-image: url("./images/icons/connections/NetSuite.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.QuickBase {
    background-image: url("./images/icons/connections/QuickBase.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.QuickBooks,
.Large.AppSettings.Icon.Connection.QuickBooks {
    background-image: url("./images/icons/connections/QuickBooks.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Salesforce-com {
    background-image: url("./images/icons/connections/Salesforce.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Icon.Zuora {
    background-image: url("./images/icons/connections/Zuora.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Icon.Zendesk {
    background-image: url("./images/icons/connections/Zendesk.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Icon.Sample-Data {
    background-image: url("./images/icons/connections/SampleData.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Icon.Gmail {
    background-image: url("./images/icons/connections/Gmail.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Icon.Exchange {
    background-image: url("./images/icons/connections/Exchange.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Icon.OneDrive {
    background-image: url("./images/icons/connections/OneDrive.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Icon.Salesforce-Sandbox {
    background-image: url("./images/icons/connections/Salesforce-Sandbox.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.SFTP {
    background-image: url("./images/icons/connections/SFTP.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

.Large.TableSettings.Icon.Connection.Admin-Console {
    background-image: url("./images/icons/connections/Admin-Console.svg");
    background-position: 0 0;
    background-size: 35px 35px;
}

/* ============================================================
   Settings overrides
   ============================================================ */

.settings-redesign .SettingsHomeTable .TableSettingsContainer,
.settings-redesign .SettingsHomeTable .AppSettingsContainer {
    background-color: var(--bebop-white);
    border: 1px solid var(--bebop-neutral-600);
    border-radius: 8px;
    padding: 16px 14px;
    min-height: 100px;
}

.settings-redesign #hybrid-ui-app-icon-color-picker_and_form {
    background-color: white;
    margin: 20px 20px 0 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding-bottom: 20px;
}

.settings-redesign #topLevelSettingsForm {
    background-color: white;
    margin: 20px 20px 0 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}

.settings-redesign .TableSettingsContainer .Icons > .Large.Icon.TableSettings,
.settings-redesign .AppSettingsContainer .Icons > .Large.Icon.AppSettings {
    height: 24px;
    width: 24px;
}

.settings-redesign .TableSettingsContainer .Icons > .AppSettings.WhiteButton,
.settings-redesign .AppSettingsContainer .Icons > .AppSettings.WhiteButton {
    margin-top: 0;
    margin-bottom: 0;
}

body.settings-redesign,
body.settings-redesign #mainCell {
    background-color: var(--bebop-neutral-800);
}

body.settings-redesign form > .std_box:not(:has(.build-redesign)) {
    margin: 0 auto;
    background: var(--bebop-white);
    border: 1px solid var(--bebop-neutral-600);
    border-radius: 10px;
}

body.settings-redesign #mainCell:has(form > .std_box):not(:has(.build-redesign)) {
    padding: 24px;
}

body.settings-redesign #tabContentContainer:has(.build-redesign),
body.settings-redesign #tabContentContainer:has(form > .std_box) {
    padding: 0;
}

body.settings-redesign .SettingsTopLevel .NotificationBanner {
    background: var(--bebop-background-transparent);
    border: 1px solid var(--bebop-neutral-600);
    color: var(--bebop-base-font-color);
    border-radius: 4px;
    box-shadow: none;
}

body.settings-redesign .criteriaSet select {
    border: 1px solid var(--bebop-neutral-500) !important;
    border-radius: 4px !important;
    font-size: 14px;
    color: var(--bebop-neutral-100);
    background-color: var(--bebop-white);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    max-width: 100%;
    box-shadow: none !important;
}

body.settings-redesign .criteriaSet select {
    border: 1px solid var(--bebop-neutral-500) !important;
    border-radius: 4px !important;
    line-height: 1.4;
    box-sizing: border-box !important;
    height: auto;
}

body.settings-redesign .criteriaSet select:not([size]),
body.settings-redesign .criteriaSet select[size="1"]{
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2357535d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    margin: 0;
    height: 34px !important;
    padding: 0 30px 0 8px !important;
}

body.settings-redesign .criteriaSet select:focus {
    border-color: var(--bebop-ui-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.settings-redesign .criteriaSet select:disabled {
    background-color: var(--bebop-neutral-800);
    color: var(--black-500);
    cursor: not-allowed;
}
