

:root {
  --font-size-x-small: 0.75rem;
  --font-size-small: 0.875rem;
  --font-size-base: 1rem;
  --font-size-large: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-xl-2: 1.5rem;
  --font-size-xl-3: 1.75rem;
  --font-size-xl-4: 2rem;
}

html {
  font-family: "Source Sans Pro", sans-serif;
  font-size: var(--font-size-base);
}

h1, h2, h3, h4, h5 {
  white-space: nowrap;
  padding: 0;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: var(--font-size-large);
}

h2 {
  font-size: var(--font-size-large);
}

h3 {
  font-size: var(--font-size-xl-2);
}

title {
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
}

.header {
  font-size: var(--font-size-xl);
}

.sub-header {
  font-size: var(--font-size-base);
  font-weight: 700;
}

p,
a,
label {
  font-size: var(--font-size-base);
}

label {
  font-size: var(--font-size-small);
  text-transform: capitalize;
}

.caption {
  font-size: var(--font-size-small);
}

h3 {
  margin-bottom: 1rem;
}

h4 {
  opacity: 0.4;
}

.bold {
  font-weight: 600;
}

.suppressed {
  opacity: 0.4;
}

.capitalize {
  text-transform: capitalize;
}

.text-overflow-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.125rem;
}

:host {
  display: block;
}

::slotted([slot=body]) {
  height: 100%;
}

::slotted([slot=actions]) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-height: 3rem;
  align-items: center;
}

:host(.no-border) .pragma-panel-bar-wrapper {
  border: unset;
}

.pragma-panel-bar-wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 0.25rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  border: 0.0625rem solid var(--c-border);
}

pragma-panel-bar dynamic-crud-toolbar {
  border: none;
}

.pragma-panel-bar-header {
  position: relative;
  background: var(--c-header-bar);
  flex-shrink: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 0 0.5rem;
  box-shadow: inset 0 -0.065rem 0 0 var(--c-border);
  box-sizing: border-box;
  align-items: center;
}
.pragma-panel-bar-header:empty {
  display: none;
}
.pragma-panel-bar-header h2 {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--font-size-large);
  color: var(--c-heading);
  margin: 0;
  padding: 0.5rem 0.5rem;
  line-height: 2rem;
}
.pragma-panel-bar-header h2:empty {
  display: none;
}
.pragma-panel-bar-header button {
  margin: 0 0.25rem;
  line-height: 2rem;
  height: 2rem;
}
.pragma-panel-bar-header .pragma-panel-bar-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.pragma-panel-bar-header dynamic-crud-toolbar {
  border: none;
}

.pragma-panel-bar-body {
  background: var(--c-header-bar);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  will-change: transform;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  flex: 1;
}

.pragma-panel-bar-footer {
  background: var(--c-header-bar);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

@media screen and (max-width: 500px) {
  .pragma-panel-bar-header {
    max-height: 6rem;
    padding: 0;
  }

  .pragma-panel-bar-actions {
    flex-direction: column;
    align-items: center;
  }

  h2 {
    overflow: hidden;
    padding-left: 0.5rem;
    text-overflow: ellipsis;
    border-bottom: 0.0625rem solid var(--c-border);
  }

  :host(.action-no-wrap) .pragma-panel-bar-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 0.5rem;
  }
  :host(.action-no-wrap) .pragma-panel-bar-header h2 {
    word-break: break-all;
    line-height: unset;
    height: 3rem;
    display: flex;
    text-align: left;
    align-items: center;
  }
}
