/* Stylesheet for austauschplatform */

/* Navigation Color Example  */
/*
.navbar-barceloneta {
    --bs-navbar-background: #888 !important;
}
*/

/* Hide bylines for non-editors (view and search-results, listing are done via a patch) */
body.userrole-authenticated section#section-byline,
body.userrole-authenticated .searchResults small {
    display: none;
}

body.userrole-reader section#section-byline,
body.userrole-contributor section#section-byline,
body.userrole-editor section#section-byline,
body.userrole-manager section#section-byline,
body.userrole-reviewer section#section-byline,
body.userrole-site-administrator section#section-byline,
body.userrole-reader .searchResults small,
body.userrole-contributor .searchResults small,
body.userrole-editor .searchResults small,
body.userrole-manager .searchResults small,
body.userrole-reviewer .searchResults small,
body.userrole-site-administrator .searchResults small {
    display: unset;
}

/* Hide Toolbar for non-editors */
body.userrole-authenticated #edit-bar,
body.userrole-reader #edit-bar {
    display: none;
}

body.userrole-manager #edit-bar,
body.userrole-contributor #edit-bar,
body.userrole-editor #edit-bar,
body.userrole-reviewer #edit-bar,
body.userrole-site-administrator #edit-bar {
    display: block;
}

body.plone-toolbar-left.plone-toolbar-left-expanded,
body.plone-toolbar-left.plone-toolbar-left-default {
    padding-left: 0 !important;
}

body.plone-toolbar-left-default.userrole-manager,
body.plone-toolbar-left-default.userrole-contributor,
body.plone-toolbar-left-default.userrole-editor,
body.plone-toolbar-left-default.userrole-reviewer,
body.plone-toolbar-left-default.userrole-site-administrator {
    padding-left: var(--plone-toolbar-width-collapsed) !important;
}

body.plone-toolbar-left-expanded.userrole-manager,
body.plone-toolbar-left-expanded.userrole-contributor,
body.plone-toolbar-left-expanded.userrole-editor,
body.plone-toolbar-left-expanded.userrole-reviewer,
body.plone-toolbar-left-expanded.userrole-site-administrator {
    padding-left: var(--plone-toolbar-width) !important;
}

#portal-anontools {
    margin-top: .70em;
    margin-right: .4em;
}

/* Search Button */

button.searchButton {
  --bs-btn-color: #fff;
  --bs-btn-bg: #007bb1;
  --bs-btn-border-color: #007bb1;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #006996;
  --bs-btn-hover-border-color: #00628e;
  --bs-btn-focus-shadow-rgb: 38,143,189;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #00628e;
  --bs-btn-active-border-color: #005c85;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #007bb1;
  --bs-btn-disabled-border-color: #007bb1;
}

#portal-searchbox {
  margin-top: 10px;
}
