@view-transition {
    navigation: auto;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
    padding-top: 0px;
    background: none repeat scroll 0 0 #EFEFEF;
    background: white;
    overflow-y: scroll;
    margin-bottom: 7em;
    font-family: "Open Sans",Arial,sans-serif;
}

.navbar-default {
    background: none;
    border: 0px;
    border-radius: 0px;
}

.form-group {
    max-width: 500px;
}

.cs-wide-form .form-group {
    max-width: 100%;
}

.deform p.has-error {
    margin-top: 8px;
}

.deform ul.inline {
    margin: 0px;
    padding: 0px;
}

.deform ul.inline > li{
    display:inline-block;
}

.deform .deform-seq > ul {
    margin: 0;
    padding: 0;
}

.deform .deform-seq > ul > li {
    list-style: none;
    margin: 6px 0px;
    padding: 3px;
}

.deform span.req {
    color: red;
}
/*
  sequence item container has 3-4 children: close button, order
  button, widget, error. We want the first 3 layed out in a single row
  and then the error message below the widget.
*/
.deform-seq > ul > li {
    display: grid;
    grid: 1fr / max-content max-content 1fr;
    padding-right: 0px;
}
.deform-seq > ul > li > .close {
    padding-right: 8px;
}
.deform-seq > ul > li > .deform-close-button {
    grid-column-start: 1;
    grid-column-end: 1;
}
.deform-seq > ul > li > .deform-order-button {
    grid-column-start: 2;
    grid-column-end: 2;
}
.deform-seq > ul > li > .cs-seq-item-widget {
    grid-column-start: 3;
    grid-column-end: 3;
}
.deform-seq > ul > li > p.has-error {
    grid-column-start: 3;
    grid-column-end: 3;
}

.well {
    /* Copied from BS3 with adjusted background */
    background: none repeat scroll 0 0 #FFF;
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

.list-group {
    font-size: 0.9em;
}

.navbar-nav > ul > li > a {
    border-bottom: 4px solid transparent;
}

.navbar-default .navbar-nav > li > a:hover {
    background: #eee;
}

.navbar-default .navbar-nav > .active > a, .navbar-nav li.active > a, .navbar-default .navbar-nav > .active > a:focus {
    background: none ;
}

.cn-header {
    margin-top: 8px;
    margin-bottom: 4px;
    display: flex;
    gap: 4px;
}

.usernav .cs-user-name {
    max-width: 20em;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

@media(max-width: 767px) {
    .usernav .cs-user-name {
        max-width: 8em;
    }
}

.cn-sitename {
    font-size: 1em;
    display: block;
    margin-top: 5px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #7f7f7f;
}

.cn-header a .cn-sitename {
    color: #7f7f7f;
}

.cn-header a:hover, .cn-header a:active, .cn-header a:focus {
    text-decoration: none;
}

.cn-sitelink {
    flex: 1;
    display: flex;
    align-items: center;
}

@media(max-width: 767px) {
    .cn-sitelink img {
        display: none;
    }
    .cn-sitelink {
        height: 28px;
        padding-left: 32px;
        background-image: url("img/cn-swirl.svg");
        background-repeat: no-repeat;
        background-size: 28px;
        background-position: bottom left;
    }
}

@media(max-width: 520px) {
    .cn-sitename {
        display: none;
    }
    .cn-sitelink {
        align-self: center;
    }
}

.cn-header .navbar-toggle {
    margin-top: 0px;
    margin-left: 8px;
    margin-right: 0px;
}

@media(min-width: 768px) {
    .cs-navbar-toggle {
        display: none;
    }
}

@media(min-width: 768px) {
    .navbar-collapse, nav.navbar {
        padding-left: 0px;
        padding-right: 0px;
    }
}

.caret-up {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-bottom: 4px solid #000000;
  border-right: 4px solid transparent;
  border-top: 0 dotted;
  border-left: 4px solid transparent;
  content: "";
}

.pagetitle {
  font-size: 30px;
  text-align: center;
  text-transform: capitalize;
  margin-top: 5px;
  margin-bottom: 20px;
}

.help-block, .form-text {
  font-size: small
}

.cs-brand .dropdown-menu {
  margin-left: -15px;
}

ul.cs-brand {
  margin-left: 0px;
}

.deform-seq > ul > li > .select2-container--bootstrap {
  clear: both;
}

.cs-footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 30px;
    color: #FFF;
    padding: 5px 5px 0 0;
}

#cs-chatbutton {
    position: fixed;
    right: 1em;
    bottom: 2em;
}

#cs-chatbutton a {
    display: block;
    padding: 1em;
    border-radius: 6em;
    color: white;
    font-weight: bold;
    background: #003d79;
}

@keyframes cs-progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.1;
        transform: scale(0.8);
    }
}

.cs-in-progress {
    animation: cs-progress-pulse 0.7s infinite;
}

.cs-alert {
  display: flex;
}
.cs-alert-icon {
  font-size: 3em;
}
.cs-alert-body {
  padding-left: 15px;
}
.cs-alert-body *:last-child {
  margin-bottom: 0px;
}

dl.dl-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1em;
}

dl.dl-grid > dt {
  text-align: right;
}
dl.dl-grid > dd {
  margin-bottom: 0px;
}


h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0px;
}

.admonition {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.admonition p:last-child {
  margin-bottom: 0px;
}

.admonition .admonition-title {
  font-weight: bold;
}

.admonition.warning {
  background: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.app-store-badge {
  background-image: url(img/download-on-the-app-store-badge.svg);
  background-repeat: no-repeat;
  background-size: 160px 54px;
  height: 54px;
  width: 160px;
  margin: 8px;
  display: block;
  font-size: 0px;
}

.play-store-badge {
  background-image: url(img/download-on-the-play-store-badge.svg);
  background-repeat: no-repeat;
  background-size: 160px 54px;
  height: 54px;
  width: 160px;
  margin: 8px;
  display: block;
  font-size: 0px;
}

.cs-dateparts {
  display: flex;
  gap: 8px;
}

a {
  color: #337ab7;
}

a:focus, a:hover {
  color: #23527c;
}

.breadcrumb {
  background-color: #f5f5f5;
}

pre {
  padding: 9.5px;
  margin: 0 0 10px;
  color: #333;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

label {
  font-weight: bold;
}

.form-check label {
  font-weight: normal;
}

.form-text {
  color: #737373;
}

/* This exists in BS4 but not in BS3 */
.form-check-inline {
  display: inline;
  margin-right: 0.75rem;
}

/* Exists in BS3 but not BS4 */
.panel-title {
  font-size: 16px;
  margin-bottom: 0px;
}

/* Necessary under BS3 to reset the text color if we have bg-white
   inside bg-primary. Already exists in BS4 */
.text-body {
  color: #212529 !important;
}

/* Exists in BS4 but not in BS3 */
.input-group {
  display: flex;
}
.input-group-text {
display: -ms-flexbox;
  display: flex;
  align-items: center;
  padding: .375rem .75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}
.input-group-addon.input-group-text {
  /* BS3 sets a 1% width for input-group-addon */
  width: inherit;
}

/* Remove large rounded corners on BS3 */
.pager.pagination li > a {
  border-radius: 0px;
}

/* BS3 prevented text wrapping in buttons. BS4 doesn't by default, but
   we rely on it in a lot of cases, so preserve that behaviour */
.btn {
  white-space: nowrap;
}

/* BS4 responsive container that doesn't exist in BS3 */
.container-xl {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
}

/* Bordered tables directly inside cards should have no bottom margin */
.card > .table-bordered {
    margin-bottom: 0px;
}

/* last paragraph in an alert should not have a bottom margin */
.alert > p:last-child {
    margin-bottom: 0px;
}
