* {
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #333;
  font-size: 14px;
}


/*
 * Common reset styles
 */

h1, h2, h3 {
  font-weight: 400;
}


/*
 * Main page container
 */

.portal {
  -ms-flex-direction: column;
  -ms-flex-pack: justify;
  display: -ms-flexbox;

  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 30px;
}

/*
 * Login screen top header
 */

.header {
  -ms-flex-positive: 0;
  -ms-flex-negative: 0;
  -ms-flex-preferred: auto;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  position: relative;
  background: white;
  padding: 15px 0;
}

.header-logo {
  height: 40px;
  vertical-align: middle;
  padding: 0 20px 0 0;
}

.header-text {
  display: inline;
  vertical-align: middle;
  font-size: 20px;
  font-weight: normal;
}

/*
 * User menu in header
 */

.header nav {
  position: absolute;
  top: 5px;
  right: 50px;
  padding-bottom: 10px;
}

.selected {
  font-weight: bold;
}

.user-menu-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  line-height: 38px;
  vertical-align: middle;
  border-radius: 20px;
  background-color: #00b7ee;
  background-image: url("../img/MyPage-40x40.eae70a5a9bbf.png");
  background-position: center;
  color: white;
  font-weight: normal;
  font-size: 22px;
  text-align: center;
}
.user-menu-username {
  height: 20px;
  margin: 0;
  padding: 0;
  color: #00b7ee;
  font-weight: bold;
  text-align: center;
}

.user-menu {
  display: none;
  overflow: hidden;
  position: absolute;
  top: 60px;
  right: -15px;
  z-index: 10;
  background: #333333;
  color: white;
  margin: 0;
  padding: 0 5px;
}

.user-menu-toggler {
  position: relative;
  left: -10000px;
}
.user-menu-toggler:checked ~ .user-menu {
  display: block;
}

.user-menu:after {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  top: -6px;
  right: 30px;
  transform: rotateZ(45deg);
  content: ' ';
}

.user-menu-item {
  margin: 5px 0;
  padding: 10px 5px;
}

.user-menu-item.logout {
  border-top: 1px solid #666;
}

.user-menu-item-link {
  color: white;
  white-space: nowrap;
  display: block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
}
.user-menu-item-link:hover {
  text-decoration: none;
  color: white;
  background: #00b7ee;
  border-radius: 25px;
}

.user-menu-item-icon {
  display: inline-block;
  padding: 0 5px 0 0;
}

/*
 * Main content container
 */

.main-flexer {
  -ms-flex-positive: 1;
  -ms-flex-negative: 1;
  -ms-flex-preferred: auto;
  display: -ms-flexbox;

  display: flex;
  flex-direction: row;
  flex: 1;
  background: #e0e0e0;
  width: 100%;
}

.left-content {
  flex: 0 0 auto;
  position: relative;
  background: #333333;
  color: white;
}

.main-content {
  -ms-flex-positive: 1;
  -ms-flex-negative: 1;
  -ms-flex-preferred: auto;
  -ms-flex-direction: column;
  -ms-flex-pack: flex-start;
  display: -ms-flexbox;

  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  flex-direction: column;
  display: flex;
  justify-content: flex-start;
  padding: 0 15px 10px;
  width: 100%;
}

.main {
  -ms-flex-positive: 1;
  -ms-flex-negative: 0;
  -ms-flex-preferred: auto;
  display: -ms-flexbox;

  display: flex;
  flex: 1 0 auto;
  margin: 0;
}

.main .container {
  -ms-flex-positive: 1;
  -ms-flex-negative: 1;
  -ms-flex-preferred: auto;

  flex: 1;
  padding-top: 10px;
  padding-bottom: 25px;
}

.container.page-heading {
  flex: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.main-heading {
  margin: 15px 0;
  padding: 5px 0;
  text-align: center;
  border-bottom: 1px solid #bababa;
  font-size: 1.2rem;
  font-weight: normal;
}
.main-heading.left {
  text-align: left;
}

/*
 * Bottom footer
 */

.footer {
    -ms-flex-positive: 0;
    -ms-flex-negative: 0;
    -ms-flex-preferred: auto;

    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    padding: 0 0 20px 0;
    text-align: right;
}
.footer-info {
    display: inline-block;
    margin: 10px 0 0 0;
    padding: 0;
    vertical-align: middle;
    text-align: right;
}
.footer-info-portal {
    width: 125px;
    height: 20px;
    background-image: url("../img/coredata-portal.f4b42bfec412.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.footer-info.footer-info--left {
  text-align: left;
}
.footer-info p {
    margin: 0;
}
.footer-info-company {
  font-weight: bold;
}
.footer-info a {
    color: #333;
}
@media (max-width:767px) {
    .footer-info,
    .footer-info.footer-info--left {
        padding: 0;
    }
}

/* bootstrap Container gets messed up in xs for some reason */
@media (max-width:576px) {
    .container {
        width: 100%;
    }
}

/*
 * Form inputs and buttons
 */

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset;
}

fieldset {
  margin: 0 0 20px;
}

legend {
  font-size: 1.2rem;
  font-weight: 700;
}

.button {
  background-color: #ffffff;
  border-radius: .25rem;
  border: 2px solid #333;
  color: #333;
  cursor: auto;
  display: block;
  font-size: 1.2rem;
  margin-top: 30px;
  padding: 3px 20px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.button:hover {
  background-color: #333;
  color: #ffffff;
}

.button.button-main {
  border-color: #00b7ee;
  color: #00b7ee;
}
.button.button-main:hover {
  background-color: #00b7ee;
  color: #ffffff;
}

.button.button-wide {
  width: 100%;
}

.application-buttons {
    display: flex;
    flex-flow: row nowrap;
    align-items: baseline;
    justify-content: space-around;
}
.application-buttons input {
    width: 40%;
}

.input-group {
  margin: 5px 0;
  font-size: 1.2rem;
  width: 100%;
}
.form-control {
  width: 100%;
  padding: 5px 10px;
  border: 0;
  border-radius: .25rem;
  color: #666;
  background: white;
}
.form-control-unit {
  position: absolute;
  right: 25px;
  margin-top: 5px;
}

.form-item, .form-file, .form-check {
  width: 100%;
  max-width: 30rem;
  position: relative;
  margin: 0 0 15px;
}

.form-item .required {
  color: red;
}

.form-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-self: flex-start;
}

.form-group .form-item,
.form-group .form-file,
.form-group .form-check {
  flex: 1 1 20em;
  position: relative;
  max-width: none;
  margin: 0 35px 15px 0;
}

.form-group .form-item.form-item-text {
    display: flex;
    flex-flow: column-reverse nowrap;
    align-self: flex-start;
}

.form-group .form-item.form-item-checkbox,
.form-group .form-item.form-item-readonly {
    flex-flow: row nowrap;
    text-align: justify;
}

.form-group .form-item.cols0,
.form-group .form-file.cols0,
.form-group .form-check.cols0 {
  display: none;
}

.form-group .form-item.cols2,
.form-group .form-file.cols2,
.form-group .form-check.cols2 {
  flex-grow: 2;
  flex-shrink: 2;
  flex-basis: calc(40em + 15px);
}

.form-group .form-item.cols3,
.form-group .form-file.cols3,
.form-group .form-check.cols3 {
  flex-grow: 3;
  flex-shrink: 3;
  flex-basis: calc(60em + 30px);
}

.form-group .form-item.cols4,
.form-group .form-file.cols4,
.form-group .form-check.cols4 {
  flex-grow: 4;
  flex-shrink: 4;
  flex-basis: calc(80em + 45px);
}

.form-group .form-item.fullwidth,
.form-group .form-file.fullwidth,
.form-group .form-check.fullwidth {
  flex-basis: 100%;
}

.form-group .form-spacer {
  flex: 1 1 20em;
  height: 0;
  margin: 0 15px 0 0;
}


.paperform textarea:focus,
.paperform input:focus,
.paperform select:focus {
    /* Need to use important for redefining Chrome rules */
    outline: 0 !important;
    box-shadow: #aaa 0 0 5px 1px !important;
}

.paperform textarea.form-control {
    height: 135px;
    resize: none;
}

.paperform textarea.form-control,
.paperform input.form-control {
    margin: 0;
    overflow-x: hidden; /* Hack to make "rows" attribute apply in Firefox. */
}

.paperform select.form-control {
  display: block;
  margin: 0;
  max-width: 100%;
  background: #fff url("images/arrow-down.30527244ca42.svg") right center no-repeat;
  appearance: none; /* this is must */
  -webkit-appearance: none;
  -moz-appearance: none;
}
.paperform select.form-control::-ms-expand {
  display: none;
}
.paperform select.form-control option {
  padding: 10px 20px;
  width: 80%;
}

.paperform label {
    width: 100%;
}

.paperform .form-item-text label {
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
}

.paperform .form-item-text label span:not(.required) {
    display: block;
    font-weight: 300;
    margin: 0;
    color: #6f6f6f;
}

.paperform .form-control-attachments .attachment-item {
    display: block;
    padding-top: 5px;
}

.js input.form-file {
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
.js input.form-file ~ label {
	width: 8rem;
    float: left;
    margin: 0;
    padding: 3px 8px;
    border: 2px solid #00b7ee;
    border-radius: 2px;
    color: #00b7ee;
    background: white;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.no-js input.form-file ~ label {
  position: absolute;
  visibility: hidden;
}
.js input.form-file ~ .form-control-file-name {
  display: inline-block;
  width: calc(100% - 9rem);
  max-width: 29rem;
  margin: 0 0 0 1rem;
  padding: 0 0 5px 0;
  border-radius: .25rem;
  color: #666;
  background-color: transparent;
  vertical-align: middle;
  overflow: visible;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.js input.form-file ~ .form-control-file-name:after {
  content: '\0000a0';
}
.form-file-fieldname {
  color: #6f6f6f;
  margin: 0;
}

.form-check {
  position: relative;
}
.form-check ~ label {
  cursor: pointer;
  margin: 0;
  padding: 5px 0 5px 25px;
}
.form-check.form-error ~ label:before {
  border-color: #ed1650;
}
.form-check:not(.form-error) ~ label:before {
  border-color: #00b7ee;
}
.form-check ~ label:before {
  content: '';
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 5px;
  border-width: 2px;
  border-style: solid;
  border-radius: 2px;
  background: white;
  color: #00b7ee;
  line-height: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
input.form-check:focus ~ label::before {
  outline: 1px dotted #000;
  outline: -webkit-focus-ring-color auto 5px;
}
input[type=checkbox].form-check  {
  width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
input[type=checkbox].form-check:checked ~ label:before {
  content: 'X';
}

.form-error {
    display: block;
    color: #ed1650;
}
input.form-error,
textarea.form-error,
select.form-error {
    border: 1px solid #ed1650 !important;
}
span.form-error {
    order: -1;
}

.form-item-checkbox span.form-error {
    position: absolute;
    top: 100%; /* right below .block */
    left: 0;
    width: 100%;
}

.form-text {
  display: block;
  margin: 0 0 5px 0;
}

.form-submit {
  display: block;
  width: 50%;
  margin: 0 auto;
}

 /*
  * Login page
  */

.login-main {
  -ms-flex-positive: 1;
  -ms-flex-negative: 1;
  -ms-flex-preferred: auto;
  -ms-flex-direction: column;
  -ms-flex-pack: center;
  display: -ms-flexbox;

  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-heading {
  font-size: 1.6rem;
  color: #00b7ee;
}
p.error-msg {
  color: #ed1650;
  font-size: 12px;
  max-width: 250px;
}

p.help-text {
  font-size: 12px;
  margin-bottom: 0px;
}

.login-lock {
  text-align: center;
  font-size: 200px;
  line-height: 1;
  color: #00b7ee;
}

.hidden {
  display: none;
}
.login-method-btn:focus,
.login-method-btn:hover {
    text-decoration: none;
    outline: none;
}
.app-btn span:before {
  content: '';
  padding-left: 40px;
  background-image: url("images/ic_audkenni_app_24px.454ca86b122d.svg");
  background-size: 80% 100%;
  background-repeat: no-repeat;
}
.phone-btn span:before {
  content: '';
  padding-left: 25px;
  background-image: url("images/audkenni_phone_icon.c0beba99d51f.svg");
  background-repeat: no-repeat;
}

/*
 * Categories page
 */

.cards {
  -ms-flex-preferred: auto;
  -ms-flex-direction: row;
  -ms-flex-pack: justify;
  -ms-flex-wrap: wrap;
  display: -ms-flexbox;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}

.card,
.card-spacer {
  -ms-flex: 1 1 210px;
  flex: 1 1 210px;
  margin: 0 10px 20px;
  padding: 20px;
  display: block;
  background: white;
  border-radius: 0.25rem;
  text-align: center;
}

.application-cards .card {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
}

.card-spacer {
  height: 0;
  padding: 0 20px;
}

.card:link,
.card:visited,
.card:hover,
.card:active {
  color: #00b7ee;
  text-decoration: none;
}

.card-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: #00b7ee;
  background-image: url("../img/euro.39558c758902.png");
  background-size: 66% 66%;
  background-position: center;
  background-repeat: no-repeat;
}

.card-title {
  margin: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-date.cancel-card-date {
  color: #ed1650;
}

.cancelled-cards .card-date {
  color: #ed1650;
}

.card.inactive-card {
    color: #a6a6a6;
    pointer-events: none;
    cursor: default;
}
.card.inactive-card .card-icon {
    background-color: #a6a6a6;
}
/*
 * Left menu bar
 */

.menu {
  margin: 20px 0 0 0;
  padding: 0;
}

.menu-item {
  list-style: none;
  height: 30px;
  min-width: 150px;
  margin: 10px;
  padding: 0 15px 0 5px;
  white-space: nowrap;
}

.menu-item.active {
  background: #00b7ee;
  border-radius: 15px;
}

.menu-item-link:link,
.menu-item-link:visited,
.menu-item-link:hover,
.menu-item-link:active {
  display: block;
  color: white;
  line-height: 30px;
  text-decoration: none;
}
.menu-item-text {
  display: inline-block;
  vertical-align: middle;
}
.menu-item-icon {
  display: inline-block;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  background-image: url("../img/euro.39558c758902.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 66% 66%;
}


/*
 * Modals
 */

 #ie-embed-hack {
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
 }

.message-modal,
.prompt-modal,
.session_security_overlay {
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.message-modal-body,
.prompt-modal-body,
.session_security_modal {
  flex: 0 0 500px;
  max-width: 95%;
  background-color: #00b7ee;
  color: white;
  text-align: center;
  margin: auto;
  padding: 35px 35px 20px;
}

.message-modal-digits {
  display: inline-block;
  margin: 10px auto;
}

.message-modal-digit {
  background: white;
  color: #00b7ee;
  padding: 0 10px;
  font-size: 2.4rem;
  margin: 0 10px 0 0;
}
.message-modal-digit:last-child {
  margin-right: 0;
}

.message-modal-heading,
.prompt-modal-heading {
  font-size: 1.8rem;
  font-weight: normal;
}

.message-modal-text {
  font-size: 1.5rem;
}

.prompt-modal-input-group {
  padding: 0 0 10px 0;
}

.prompt-modal-input-group:first-child {
  border-top: 1px solid #40caf2;
  padding-top: 15px;
}

.prompt-modal-input-group:last-child {
  padding-bottom: 10px;
}

.prompt-modal-label {
  padding: 0 10px;
}

.prompt-modal-input-cnt {
  display: inline-block;
}
.prompt-modal-input-cnt span.form-error {
  display: none !important;
}

.prompt-modal-input {
  border: none;
  width: 15rem;
  padding: 5px 10px;
  margin: 0 10px;
}

/*
 * Signing pages
 */

.sign {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  height: 100%;
  min-height: 580px;
}

.sign-preview {
  flex: 10 0 500px;
  min-width: 500px;
  text-align: left;
  margin: 0 20px 20px;
  min-height: calc(100% - 130px);
  position: relative;
}

.sign-preview-viewer {
  position: absolute;
  width: 100%;
  height: 100%;
}

.sign-sidebar {
  flex: 1 1 230px;
}
.sign-sidebar p {
  display: block;
}

.sign-sidebar-form label {
  margin: auto 5px;
}

.sign-sidebar-form input {
  margin-left: 5px;
  margin-right: -60px;
}

.sign-sidebar .sign-button {
    font-size: 1rem;
}

.sign-button {
  background-color: #ffffff;
  border-radius: .25rem;
  border: none;
  color: #00b7ee;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 230px;
  height: 50px;
  line-height: 44px;
  margin: 10px 5px 10px 5px;
  padding: 3px 20px 3px 60px;
  position: relative;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.sign-button:hover {
  color: #00b7ee;
  background-color: #fbfbfb;
  text-decoration: none;
}
.sign-button:before {
  position: absolute;
  left: 10px;
  top: 5px;
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
  border-radius: 20px;
  background: #00b7ee;
  color: white;
  font-family: 'ElegantIcons';
  font-weight: normal;
  font-size: 22px;
  text-align: center;
  content: "\4e";
}
.sign-button.sign-button-sign {
  color: #00ee62;
}
.sign-button.sign-button-sign:before {
  background: #00ee62;
}
.sign-button.sign-button-sign:before {
  content: "\6a";
}
.sign-button.sign-button-cancel {
  color: #00b7ee;
}
.sign-button.sign-button-cancel:before {
  background: #00b7ee;
  content: "\4a";
  font-size: 30px;
}
.sign-button.sign-button-app-cancel {
  color: #ed1650;
}
.sign-button.sign-button-app-cancel:before {
  background: #ed1650;
  content: "\4d";
  font-size: 30px;
}
.sign-button.sign-button-attachments {
  margin-top: 1.5rem;
}
.sign-button.sign-button-attachments:before {
  content: "\68";
  font-size: 20px;
}
button.sign-button.sign-button-sign {
  display: block;
}
.sign-button.sign-method-btn {
  color: #2c17ef;

}
.sign-button.sign-method-btn:focus {
    text-decoration: none;
    outline: none;
}
.sign-button.sign-method-btn:before {
    content: none;
}
.sign-button.sign-method-btn.app-btn {
    background-image: url("images/ic_audkenni_app_24px.454ca86b122d.svg");
    background-repeat: no-repeat;
    color: #2c17ef;
    background-size: 26% 55%;
    background-position: 1px;
}
.sign-button.sign-method-btn.phone-btn {
    background-image: url("images/audkenni_phone_icon.c0beba99d51f.svg");
    background-repeat: no-repeat;
    background-size: 14% 85%;
    background-position: 7%;
}

.sign-message {
  border-radius: .25rem;
  border: none;
  color: #8cc63e;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
  height: 50px;
  line-height: 44px;
  margin: 10px 10px 10px 0;
  padding: 3px 5px 3px 50px;
  position: relative;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}
.sign-message:before {
  position: absolute;
  left: 0;
  top: 5px;
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  vertical-align: middle;
  border-radius: 20px;
  background: #8cc63e;
  color: white;
  font-family: 'ElegantIcons';
  font-weight: normal;
  font-size: 22px;
  text-align: center;
  content: "\4e";
}

.sign-message.fail-sign-message,
.sign-message.cancel-sign-message {
  color: #ed1650;
}

.sign-message.fail-sign-message:before,
.sign-message.cancel-sign-message:before {
  color: #ffffff;
  content: "\4d";
  background: #ed1650;
  font-size: 24px;
}

.sign-message.fail-sign-message:before {
  content: "\72";
}

.sign-attachments-heading {
  border-top: 1px solid #bababa;
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

.sign-attachments-title {
  margin: 0.3rem 0 0 0;
}

.sign-attachments-file {
  margin: 0;
}

div.actions {
  margin-bottom: 20px;
}

div.form-group {
  margin-bottom: 20px;
}

.d-flex {
    display: flex;
}

.ml-auto {
    margin-left: auto;
}

@media only screen and (max-width: 576px) {
  .portal,
  .main {
    padding: 0;
  }
  .header-text,
  .user-menu-username {
    display: none;
  }
  .user-menu-icon {
    margin-top: 10px;
  }
  .sign-preview {
    flex-shrink: 10;
    min-width: 0;
  }
}

/* Collapsing left menu bar */
@media only screen and (max-width: 1200px) {
  .left-content {
    max-width: 60px;
  }
  .menu-item-text {
    display: none;
  }
}

/* Attachments field */
.paperform input.input-attach {
    border: none;
    outline: none;
    text-overflow: ellipsis;
    background-color: transparent;
}
.paperform input.input-attach:focus {
    box-shadow: none;
}
.paperform input.input-attach:focus-visible {
    border: none;
}

.attach-container {
    margin-bottom: 1px;
}
.remove-attach {
    display: inline-block;
    border: 1px solid #ed1650;
    color: #ed1650;
    font-size: 12px;
    padding: 0 4px;
    cursor: pointer;
}
