/******************  Lib Layout ***************************/
#lcLibraryWrapper {
    position: relative;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
}

#lcControlArea {
    position: absolute;
    padding: 8px 0px 8px 0px;
    margin: 0px;
    border: 0px;
    height: 100%;
}

#lcControlAreaContent {
    height: 100%;
    float: left; /* Dynamic setting in LibraryAppLayout */
    padding-left: 8px; /* Dynamic setting in LibraryAppLayout */
}

#lcCollapsedPanel {
    width: 32px;
    display: block;
    border: solid 1px #9f9fa3;
    border-color: var(--border-color);
    border-radius: 5px;
    margin: 0px 8px 0px 8px;
    background-color: #F2F2F2;
    background-color:var(--menu-background-color);
    height: 100%;
    cursor: pointer;
}

#lcControlAreaContent .layoutLibraryWrapper, #lcControlAreaContent .layoutSecondaryLibraryWrapper {
    width: 300px;
    background-color: #fff;
    background-color: var(--section-background-color);
    border: solid 1px #9f9fa3;
    border-color: var(--border-color);
    border-radius: 5px;
}

#lcControlAreaContent .layoutSecondaryLibraryWrapper {
    margin-top: 8px;
}

#lcControlAreaContent .layoutControlAreaMenuArea {
    border-top: 1px solid #9f9fa3;
    border-top-color: var(--border-color);
    border-right: none;
    border-left: none;
    padding: 5px 8px 0px 8px;
}

#lcControlAreaContent.layoutControlAreaTiny .layoutControlAreaMenuArea {
    height: 33px;
}

#lcControlAreaContent.layoutControlAreaSmall .layoutControlAreaMenuArea {
    height: 47px;
}

#lcControlAreaContent.layoutControlAreaLarge .layoutControlAreaMenuArea {
    height: 57px;
}

#lcControlAreaContent .layoutControlAreaWrapper {
    width: 100%;
    margin: 0px;
    position: relative;
}

#lcControlAreaContent .layoutControlAreaTitle div {
    padding: 7px 0px 0px 8px;
}

#lcNavBack {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    line-height: 12px;
    height: 12px;
    top: 50%;
    margin-top: -5px;
    left: 15px;
    color: #626469;
    color: var(--fake-link);
}

/******************  Lib Items ***************************/

#lcLibraryWrapper .lcWrapper {
    position: absolute;
    top: 40px;
    bottom: 0;
    width: 100%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#lcMenu:not(.mm-menu) {
    display: none;
}

#lcMenu {
    background-color: #fff;
    background-color: var(--section-background-color);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.lcHamburgerMenu {
    position: absolute;
    right: 36px;
    top: 5px;
    cursor: pointer;
}

#lcToggleCloseButton {
    position: absolute;
    right: 6px;
    top: 5px;
    cursor: pointer;
}

.lcControlAreaTitleShown {
    position: relative;
    height: 35px;
    font-size: 12px;
    font-weight: bold;
}

.lcTitleText {
    font-size: 12px;
    font-weight: bold;
}

/* Normal title */
#lcControlAreaContent .lcTitleText {
    position: absolute;
    left: 10px;
    top: 10px;
}

/* Collapsed title */
#lcCollapsedPanel .lcTitleText {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform-origin: left top 0;
    -webkit-transform-origin: left top 0;
    -ms-transform-origin: left top 0;
    width: 400px;
    position: absolute;
    left: 32px;
    top: 60px;
}

#lcToggleOpenButton {
    margin: 5px 0px 0px 3px;
    cursor: pointer;
}

.lcLibraryButton {
    margin: 5px 0px 5px 0px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 99px;
    background-position-x: 34px !important;
    float: left;
}

a:first-of-type.lcLibraryButton {
    border-left: none;
}

#lcNewContentPanel > div > label {
    margin-top: 0px;
}

#lcEditContentPanel {
    /* Panel has a tab index, we do not want to show focus border */
    outline: none;
    /* Ensure it always has at least some height to support click ESC/ENTER */
    min-height: 280px;
}

.lcEditControlButtons {
    margin-top: 10px;
    float: right;
}

.lcBottomNavButtons,
.lcBottomNavEdit {
    padding: 0;
}

.lcBottomNavEdit {
    height: 32px;
    margin: 7px 0 3px 0;
    padding-right: 10px;
}

.lcSaveSplitButtonWrapper {
    float: right;
}

.lcConfirmationSaveSplitButtonWrapper {
    float: right;
    margin-left: 5px;
}

.lcConfirmationDiscardButton {
    margin-left: 0 !important;
}

.lcCancelEditButton {
    float: right;
    /* Ensure the "Cancel" link is wide enough to be displayed in different languages, but not too wide that it will wrap to the next line */
    min-width: 40px;
    max-width: 60px;
}

.sbMainSplitbutton {
    /* Ensure the "Save"/"Save as New" split button has a maximum width so that it does not push the "Cancel" link to the next line */
    max-width: 190px;
}

.lcEditControlButtons
.lcCancelEditButton,
a.lcLibraryButton,
a.lcHamburgerMenu,
a.lcLibContentText,
a.mm-next,
a.mm-prev,
a.mm-title {
    outline: 0;
}


.mm-listview .lcContentItem {
    height: 40px;
    cursor: pointer;
}

.mm-listview .lcContentItem:hover {
    background-color: #f7f7f7;
    background-color: var(--hover-background-color);
}

.mm-listview .lcFolderNext {
    position: absolute;
    top: 8px;
    right: 36px;
    pointer-events: none;
    padding: 0px;
}

.mm-listview .lcKebobMenu {
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 0px;
    height: 40px;
    width: 36px;
    border-left: solid 1px #F2F2F2;
    border-left-color: var(--menu-background-color);
}

/* Selected has no left border */
.mm-listview > li.mm-selected .lcKebobMenu, .mm-listview > li.mm-selected-multi .lcKebobMenu {
    border-left: solid 1px transparent;
}

.mm-listview .lcKebobMenu span {
    left: 5px;
    position: absolute;
    top: 8px;
}

.lcWrapper a.disabled {
    opacity: 0.35;
}

.lcLibIcon {
    position: absolute;
    left: 5px;
    bottom: 8px;
}

.mm-listview .lcLibContentText {
    padding-left: 34px;
}

.lcLibContentText.lcFolder {
    padding-right: 76px !important;
}

.lcLibContentText.lcContent {
    padding-right: 40px !important;
}

.mm-listview li.lcContentItemMenuOpen {
    background-color: #ededed;
    background-color: var(--button-color-hover-strong);
}

.lcContentItem .mm-next.mm-fullsubopen {
    right: 36px;
}

/***************** Site item overrides *************************/



/***************** mm* item overrides *************************/
.lcWrapper .mm-menu .mm-listview > li.mm-selected > a:not(.mm-next), .lcWrapper .mm-menu .mm-listview > li.mm-selected > span, .lcWrapper .mm-menu .mm-listview > li.mm-selected-multi > a:not(.mm-next), .lcWrapper .mm-menu .mm-listview > li.mm-selected-multi > span {
    background: none;
    margin-top: -1px;
}

.lcWrapper .mm-menu {
    background-color: #fff;
    background-color: var(--section-background-color);
}

.lcWrapper .mm-panels {
    background-color: #fff;
    background-color: var(--section-background-color);
    color: #333333;
    color: var(--text-color);
}

.lcWrapper .mm-menu .mm-noresultsmsg {
    color: #333333;
    color: var(--text-color);
    opacity: 0.3;
}

.lcWrapper .mm-navbars-top {
    background-color: #F2F2F2;
    background-color: var(--menu-background-color);
    border-bottom: 1px solid #9f9fa3;
}

.lcWrapper .mm-navbars-top .mm-prev::before {
    border-color: #333333;
    border-color: var(--text-color);
}

.lcWrapper .mm-navbars-bottom {
    background-color: #F2F2F2;
    background-color: var(--menu-background-color);
}

.lcWrapper .mm-hasnavbar-top-2 .mm-panels {
    top: 63px;
}

#lcLibraryWrapper.lcNoSearch .lcWrapper .mm-hasnavbar-top-2 .mm-panels {
    top: 33px;
}

.lcContentItem .mm-next::after {
    content: none !important;
}

.lcWrapper em.mm-counter + a.mm-next {
    width: 50px !important;
}

.lcWrapper em.mm-counter {
    color: #b9b2b2;
    color: var(--text-color-subdued);
    right: 60px;
}

.lcWrapper .mm-navbar a.mm-title {
    color: #9FA0A4;
    color: var(--text-color-subdued);
    font-weight: bold;
    padding: 7px 0 7px 10px;
    max-width: 180px;
    text-align: center;
    display: inline-block;
}

.lcWrapper .mm-hasbtns.mm-navbar {
    padding: 0px;
    height: 32px;
    border-top: 1px solid #9f9fa3;
    border-top-color: var(--border-color);
}

.lcWrapper .mm-navbar {
    height: auto;
}

    .lcWrapper .mm-navbar .mm-prev::before {
        left: 5px;
    }

.lcWrapper .mm-prev {
    height: 100%;
    margin-left: 5px;
}

.lcWrapper .mm-selected, .lcWrapper .mm-selected-multi {
    border-top: solid 1px;
    border-left: none;
    border-right: none;
}

/* Disable top border on sequencial multi selections */
.lcWrapper .lcContentItem.mm-selected-multi + .mm-selected-multi {
    border-top: solid 1px transparent !important;
}


/**** Search Related Items ******/
.lcWrapper .mm-navbar .mm-search {
    padding: 0;
    height: 30px;
    background-color: white;
    background-color: var(--section-background-color);
    border-top: 1px solid #9f9fa3;
    border-top-color: var(--border-color);
}

#lcLibraryWrapper.lcNoSearch .lcWrapper .mm-navbar .mm-search {
    display: none;
}

.lcWrapper .mm-navbar .mm-search input {
    color: #333333;
    color: var(--text-color);
    background-color: #fff;
    background-color: var(--input-background-color);    
    width: 100%;
    float: left;
    padding: 4px 36px 0px 36px;
}

.lcWrapper .searchIcon {
    position: absolute;
    left: 5px;
    top: 3px;
}

/* Disabling the default search clear X.*/
.lcWrapper .mm-clear:after, .lcWrapper .mm-clear:before, .lcWrapper .mm-close:after, .lcWrapper .mm-close:before {
    border: none;
}

/* Clear icon position */
.lcWrapper .mm-clear {
    top: 3px;
    right: 8px;
    height: 24px;
    width: 24px;
}


/* Disabling edit from search */
.lcWrapper .mm-resultspanel .lcKebobMenu {
    display: none;
}


/* Icons Types */
.icon-teamfolder-24, .ui-widget-content .icon-teamfolder-24 {
    background: url('/SystemDataService/Content/images/common_library_48.png') 0 -216px;
    background-size: 24px;
    background-repeat: no-repeat;
}
.highContrast .icon-teamfolder-24, .highContrast .ui-widget-content .icon-teamfolder-24 {
    background: url('/SystemDataService/Content/images/HC/common_library_48.png') 0 -216px;
    background-size: 24px;
    background-repeat: no-repeat;
}

.icon-globalteamfolder-24, .ui-widget-content .icon-globalteamfolder-24 {
    background: url('/SystemDataService/Content/images/common_library_48.png') 0 -192px;
    background-size: 24px;
    background-repeat: no-repeat;
}

.highContrast .icon-globalteamfolder-24, .highContrast .ui-widget-content .icon-globalteamfolder-24 {
    background: url('/SystemDataService/Content/images/HC/common_library_48.png') 0 -192px;
    background-size: 24px;
    background-repeat: no-repeat;
}

.lsContent {
    width: 550px;
    height: 320px;
}

.lsContent .body {
    width: 100%;
}

.lsContent .bodyContent {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: solid 1px #9f9fa3;
    border-color: var(--border-color);
    border-radius: 5px;
    background-color: #fff;
    background-color: var(--section-background-color);
    font-size: 12px;
    padding: 2px 2px 2px 12px;
    margin-left: 0px;
}

.lsContent .bodyContent .itemTypesControl {
    display: block;
    width: 500px;
}

.lsContent .bodyContent .typeCheckboxLabel {
    width: 100%;
}

.lsContent .footer {
    position: absolute;
    bottom: 50px;
    right: 0px;
    padding: 8px 24px 8px 4px;
    width: 100%;
    height: 45px;
}

.lsContent .validationMessage {
    margin-left: 0;
    margin-top: 5px;
    width: 100%;
}