/**
 * Convert a font size to a dynamic font size.
 * Fonts that participate in Dynamic Type should use
 * dynamic font sizes.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param unit (optional) - The unit to convert to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * a maximum font size.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * a minimum font size.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * maximum and minimum font sizes.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
 * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * A heuristic that applies CSS to tablet
 * viewports.
 *
 * Usage:
 * @include tablet-viewport() {
 *   :host {
 *     background-color: green;
 *   }
 * }
 */
/**
   * A heuristic that applies CSS to mobile
   * viewports (i.e. phones, not tablets).
   *
   * Usage:
   * @include mobile-viewport() {
   *   :host {
   *     background-color: blue;
   *   }
   * }
   */
:host {
  --container-border-radius: var(--cpsl-border-radius-table-container);
  --container-border-color: var(--cpsl-color-background-16);
  --container-background-color: var(--cpsl-color-background-0);
  --container-border-width: 1px;
  --container-header-padding-top: 24px;
  --container-header-padding-bottom: 24px;
  --container-header-padding-start: 24px;
  --container-header-padding-end: 24px;
  --container-header-border-width: 1px;
  --container-header-border-color: var(--cpsl-color-background-16);
  --container-footer-padding-top: 16px;
  --container-footer-padding-bottom: 16px;
  --container-footer-padding-start: 24px;
  --container-footer-padding-end: 24px;
  --container-footer-border-width: 1px;
  --container-footer-border-color: var(--cpsl-color-background-8);
  --table-header-padding-top: 16px;
  --table-header-padding-bottom: 16px;
  --table-header-padding-start: 24px;
  --table-header-padding-end: 24px;
  --table-header-background-color: var(--cpsl-color-background-4);
  --table-header-border-color: var(--cpsl-color-background-16);
  --table-header-border-width: 1px;
  --table-content-padding-top: 16px;
  --table-content-padding-bottom: 16px;
  --table-content-padding-start: 24px;
  --table-content-padding-end: 24px;
  --table-content-border-color: var(--cpsl-color-background-8);
  --table-content-border-width: 1px;
  display: block;
}

:host cpsl-card {
  height: 100%;
  --card-padding-top: 0px;
  --card-padding-bottom: 0px;
  --card-padding-start: 0px;
  --card-padding-end: 0px;
  --card-border-width: var(--container-border-width);
  --card-border-color: var(--container-border-color);
  --card-border-radius: var(--container-border-radius);
  --card-background-color: var(--container-background-color);
}
:host cpsl-card::part(card-container) {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  overflow: auto;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.overlay.horizontal-scroll:not(.vertical-scroll) {
  box-shadow: -24px 0px 24px -24px rgba(0, 0, 0, 0.1) inset;
}
.overlay.vertical-scroll:not(.horizontal-scroll) {
  box-shadow: 0px -24px 24px -24px rgba(0, 0, 0, 0.1) inset;
}
.overlay.horizontal-scroll.vertical-scroll {
  box-shadow: -24px -24px 24px -24px rgba(0, 0, 0, 0.1) inset;
}

.table-wrapper {
  overflow: auto;
  height: 100%;
}

.container-header {
  display: none;
  -webkit-padding-start: var(--container-header-padding-start);
  padding-inline-start: var(--container-header-padding-start);
  -webkit-padding-end: var(--container-header-padding-end);
  padding-inline-end: var(--container-header-padding-end);
  padding-top: var(--container-header-padding-top);
  padding-bottom: var(--container-header-padding-bottom);
  border-bottom: var(--container-header-border-width) solid var(--container-header-border-color);
}

.container-footer {
  display: none;
  -webkit-padding-start: var(--container-footer-padding-start);
  padding-inline-start: var(--container-footer-padding-start);
  -webkit-padding-end: var(--container-footer-padding-end);
  padding-inline-end: var(--container-footer-padding-end);
  padding-top: var(--container-footer-padding-top);
  padding-bottom: var(--container-footer-padding-bottom);
  border-top: var(--container-footer-border-width) solid var(--container-footer-border-color);
}

.shown {
  display: block;
}