// Panel
// -------------------------
.umb-panel {
    background: @white;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

.umb-panel-nobody {
    padding-top: 100px;
    overflow: auto;
}

.umb-panel-header {
    background: @gray-10;
    border-bottom: 1px solid @gray-8;
    position: absolute;
    height: 99px;
    top: 0px;
    right: 0px;
    left: 0px;
}

.umb-panel-body {
    top: 101px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    position: absolute;
    clear: both;
    overflow: auto;
}

.umb-panel-body.no-header {
    top: 20px;
}

.umb-panel-body.with-footer {
    bottom: 90px;
}

.umb-mediapicker-upload {
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;

    .form-search {
        -webkit-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }

    .upload-button {
        margin-left: 16px;
    }
}

.umb-panel.editor-breadcrumb .umb-panel-body, .umb-panel.editor-breadcrumb .umb-bottom-bar {
    bottom: 31px !important;
}

.umb-panel-header .umb-headline, .umb-panel-header h1 {
    font-size: 16px;
    border: none;
    background: none;
    margin: 15px 0 0 20px;
    padding: 3px 5px;
    line-height: 1.4;
    height: auto;
    width: 100%;
    border: 1px solid @gray-10;
}

.umb-panel-header .umb-headline:focus, .umb-panel-header .umb-headline:active {
    border: 1px solid @gray-8;
    background-color: @white;
}

.umb-headline-editor-wrapper {
    position: relative;
}

.umb-headline-editor-wrapper .help-inline {
    right: 0px;
    top: 25px;
    position: absolute;
    font-size: 10px;
    color: @red;
}

.umb-panel-header p {
    margin: 0px 20px;
}

.umb-btn-toolbar .dimmed, .umb-dimmed {
    opacity: 0.6;
}

.umb-headline-editor-wrapper input {
    background: none;
    border: none;
    margin: -6px 0 0 0;
    padding: 0 0 2px 0;
    border-radius: 0;
    line-height: normal;
    border: 1px solid transparent;
    color: @black;
    letter-spacing: -0.01em;
}

.umb-headline-editor-wrapper input.ng-invalid {
    color: @red;
}

.umb-headline-editor-wrapper input.ng-invalid::-moz-placeholder,
.umb-headline-editor-wrapper input.ng-invalid:-ms-input-placeholder,
.umb-headline-editor-wrapper input.ng-invalid::-webkit-input-placeholder {
    color: @red;
    line-height: 22px;
}

/*
.umb-panel-header i {
    font-size: 13px;
    vertical-align: middle;
}
*/

.umb-panel-header-meta {
    height: 50px;
}

.umb-panel-header .umb-btn-toolbar {
    float: right;
    padding: 5px 20px 0 0;
}

.umb-panel-footer {
    margin: 0;
    padding: 20px;
    z-index: 999;
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
}


/* Publish */
.umb-btn-toolbar .dropdown-menu {
    right: 0;
    left: auto;
    border-radius: @tabsBorderRadius;
    box-shadow: none;
    padding: 0;
    z-index: 6020;
}

.umb-btn-toolbar .dropdown-menu small {
    background: @turquoise-l3;
    display: block;
    padding: 10px 20px;
}

.umb-btn-toolbar .dropdown-menu .btn  {
    margin: 20px 29px;
    width: 80px;
}

/* tab buttons */
.umb-bottom-bar {
    background: @white;
    -webkit-box-shadow: 0px -18px 20px rgba(255, 255, 255, 1);
    -moz-box-shadow: 0px -18px 20px rgba(255, 255, 255, 1);
    box-shadow: 0px -18px 20px rgba(255, 255, 255, 1);
    border-top: 1px solid @gray-10;
    padding: 10px 0 10px 0;
    position: fixed;
    bottom: 0;
    left: 100px;
    right: 40px;
    z-index: 6010;

    @media (min-width: 1101px) {
        left: 460px;
    }

    @media (max-width: 767px) {
        left: 80px;
    }

    @media (max-width: 500px) {
        left: 60px;
    }
}

.umb-tab-buttons {
    padding-left: 0;

    > .btn-group:not([style*="display:none"]):not([style*="display: none"]) {
        margin-left: 0;
    }

    @media (min-width: 768px) {
        padding-left: 180px;
    }
}

.umb-tab-pane {
    padding-bottom: 90px;
}

.tab-content {
    overflow: visible;
}

.umb-panel-footer-nav {
    position: absolute;
    bottom: 0px;
    height: 30px;
    left: 0px;
    right: 0px;
    background: @gray-10;
    border-top: @gray-8 1px solid;
    display: block;
    margin: 0;
    overflow: hidden;
}

.umb-panel-footer-nav li a {
    border-radius: 0;
    display: block;
    float: left;
    height: 30px;
    background: @gray-10;
    text-align: center;
    padding: 8px 0px 8px 30px;
    position: relative;
    margin: 0 1px 0 0;
    text-decoration: none;
    color: @gray-3;
    font-size: 12px;
}

.umb-panel-footer-nav li a:after {
    content: "";
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 16px solid @gray-10;
    position: absolute;
    right: -16px;
    top: 0;
    z-index: 1;
}

.umb-panel-footer-nav li a:before {
    content: "";
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 16px solid @gray-8;
    position: absolute;
    left: 0;
    top: 0;
}

.umb-panel-footer-nav li:first-child a {
    padding-left: 20px;
}

.umb-panel-footer-nav li:first-child a:before {
    display: none;
}

.umb-panel-footer-nav li:last-child a:after {
    display: none;
}

// Utility classes

//SD: Had to add these because if we want to use the bootstrap text colors
// in a panel/editor they'll all show up as white on white - so we need to use the
// form styles
.umb-dialog .muted,
.umb-panel .muted {
    color: @gray-5;
}

.umb-dialog a.muted:hover,
.umb-dialog a.muted:focus,
.umb-panel a.muted:hover,
.umb-panel a.muted:focus {
    color: darken(@gray-5, 10%);
}

.umb-dialog .text-warning,
.umb-panel .text-warning {
    color: @formWarningText;
}

.umb-dialog a.text-warning:hover,
.umb-dialog a.text-warning:focus,
.umb-panel a.text-warning:hover,
.umb-panel a.text-warning:focus {
    color: darken(@formWarningText, 10%);
}

.umb-dialog .text-error,
.umb-panel .text-error {
    color: @formErrorText;
}

.umb-dialog a.text-error:hover,
.umb-dialog a.text-error:focus,
.umb-panel a.text-error:hover,
.umb-panel a.text-error:focus {
    color: darken(@formErrorText, 10%);
}

.umb-dialog .text-info,
.umb-panel .text-info {
    color: @formInfoText;
}

.umb-dialog a.text-info:hover,
.umb-dialog a.text-info:focus,
.umb-panel a.text-info:hover,
.umb-panel a.text-info:focus {
    color: darken(@formInfoText, 10%);
}

.umb-dialog .text-success,
.umb-panel .text-success {
    color: @formSuccessText;
}

.umb-dialog a.text-success:hover,
.umb-dialog a.text-success:focus,
.umb-panel a.text-success:hover,
.umb-panel a.text-success:focus {
    color: darken(@formSuccessText, 10%);
}

.external-logins form {
    margin:0;
}
.external-logins button {
    margin:5px;
}

/* --------- UMB PANEL HEADER ---------- */

.umb-panel-header-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100px;
  padding: 0 20px;
}

.umb-panel-header-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.umb-panel-header-left-side {
   display: flex;
   flex: 1;
   flex-direction: row;
}

.umb-panel-header-left-side.-top-position {
  position: relative;
  top: -12px;
}

.umb-panel-header-icon {
  cursor: pointer;
  margin-right: 5px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: @white;
  border: 1px solid @gray-8;
  animation: fadeIn 0.5s;
  border-radius: 3px;
  width: 55px;
}

.umb-panel-header-title-wrapper {
   position: relative;
   width: 80%;
}

.umb-panel-header-alias {
  position: absolute;
  top: 5px;
  right: 10px;
}

.umb-panel-header-alias .umb-locked-field {
   display: flex;
   align-items: center;
}

.umb-panel-header-alias .umb-locked-field,
.umb-panel-header-alias .umb-locked-field .umb-locked-field__wrapper {
   margin-bottom: 0;
}

.umb-panel-header-alias .umb-validation-label:after {
   visibility: hidden;
}

.umb-panel-header-alias .umb-locked-field:after {
   display: none;
}

.umb-panel-header-icon.-placeholder {
  border: 1px dashed @gray-8;
}

.umb-panel-header-icon .icon {
  font-size: 35px;
  color: @gray-7;
}

.umb-panel-header-icon-text {
  color: @green;
  font-weight: bold;
  font-size: 10px;
}

.umb-panel-header .umb-nav-tabs {
  bottom: -1px;
}

input.umb-panel-header-name-input {
  border-color: @gray-8;
  font-size: 15px;
  color: @black;
  margin-bottom: 0;
  font-weight: bold;
  box-sizing: border-box;
  height: 32px;
  line-height: 32px;
  width: 100%;
  &:hover {
    background: @white;
    border: 1px solid @gray-7;
  }
}

input.umb-panel-header-name-input.name-is-empty {
  border: 1px dashed @gray-8;
  background: @white;
}

.umb-panel-header-name {
   font-size: 16px;
   font-weight: bold;
}


input.umb-panel-header-description {
  background: transparent;
  border-color: transparent;
  margin-bottom: 0;
  font-size: 13px;
  box-sizing: border-box;
  height: 25px;
  line-height: 25px;
  width: 100%;
  &:hover {
    background: @white;
    border-color: @gray-8;
  }
}

.umb-panel-header-locked-description {
    font-size: 12px;
    margin-left: 2px;
    margin-top: 3px;
    height: 25px;
    line-height: 25px;
}

.umb-editor-drawer-content {
  display: flex;
  align-items: center;
}

.umb-editor-drawer-content__right-side {
	margin-left: auto;
    flex: 0 0 auto;
    padding-left: 10px;
}

.umb-editor-drawer-content__left-side {
	margin-right: auto;
    padding-right: 10px;
}
