a {
    text-decoration: none;
    outline: none;
}


/*
 * Wrapper
*/

.nd--cns-sample-wrapper.nd--cns-collapsed {
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}


/*
 * Container
*/

.nd--cns-sample-wrapper.nd--cns-collapsed,
.nd--cns-sample-wrapper.nd--cns-collapsed .nd--cns-sample-container {
    height: auto;
}

.nd--cns-sample-container.nd--footer {
    flex-grow: 0;
}


/*
 * Navigation
*/

.nd--cns-sample-hd-navigation {
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    display: flex;
    flex: 1;
}


/*
 * Navigation menu
*/

.nd--cns-sample-settings-button-container button i {
    vertical-align: middle !important;
}


/*
 * Logout
*/

.logout {
    margin-left: 1em;
    font-size: 0.875rem;
}

.logout i {
    margin-right: 0.25em;
    vertical-align: middle;
    font-size: 1.25rem;
}


/*
 * Form
*/

.form-wrapper {
    max-width: 640px;
    border-radius: 2px;
}

.section.form-wrapper {
    width: 100%;
    align-self: center;
}

.wizard-wrapper~.form-wrapper {
    margin-top: 2rem;
}

.form-content {
    padding: 15px 40px 15px 40px;
}

.form-heading h1 {
    font-weight: 300;
    font-size: 1.75rem;
}

.form-heading h2 {
    font-weight: 300;
    font-size: 1.25rem;
}

.form-controls {
    margin: 2rem 0 0;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.form-group.direction-column {
    flex-direction: column;
}

.form-group.align-items-stretch {
    align-items: stretch;
}

.form-group.align-left {
    justify-content: flex-start;
}

.form-group.align-right {
    justify-content: flex-end;
}

.form-group:not(:last-child) {
    margin-bottom: 1rem;
}

.form-group label,
.form-group .label-wrapper {
    width: 10rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
}

.form-group label.inline {
    width: auto;
    padding-right: 0.25rem;
    padding-left: 0.25rem;
    text-align: right;
}

.form-group label.inline.image {
    padding-right: 0;
}

.form-group label.image {
    margin-left: 0.5rem;
}

.form-group label.image img {
    vertical-align: middle;
}

.form-group .input-control,
.form-group .inline-control {
    flex: 1 1 auto;
}

.ua-ie .form-group .input-control,
.ua-ie .form-group .inline-control {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
}

@media screen and (max-width: 768px) {
    .ua-ie .form-group .controls-wrapper {
        flex-basis: auto;
    }
}

.form-group .inline-control.inline-select {
    padding-left: 0;
}

.form-group .controls-wrapper {
    flex: 1;
}

.controls-wrapper .message-container {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.form-group .input-control,
.form-group .inline-control {
    padding: 13px 15px;
    line-height: 14px;
    height: auto;
    font-size: 12px;
    font-family: inherit;
}

.form-group .controls-wrapper {
    text-align: left;
}

.form-group .controls-wrapper p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

.form-group .controls-wrapper.inline-paragraph p {
    display: inline-block;
}

.form-group .input-control {
    border: 0;
    border-radius: 4px;
}

.form-controls .hint,
.form-controls .subheading {
    font-size: 0.875rem;
}

.form-controls .message {
    margin-bottom: 0;
    font-style: italic;
}

.form-controls .form-group.form-message {
    border-radius: 4px;
}

.form-controls .form-group.form-message p {
    width: 100%;
    margin: 0;
    text-align: left;
    font-size: 0.875rem;
}

.form-controls .form-group.form-message.error a {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
}

.form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.form-row .input-control,
.form-row label,
.form-row label.inline {
    flex: none;
    align-self: center;
    width: auto;
    max-width: inherit;
    text-align: center;
}

.form-row label {
    font-size: 0.875rem;
    font-weight: normal;
}

.controls-wrapper.form-row label {
    margin-bottom: 0 !important;
}

.form-row .input-control {
    width: 3rem;
}

.form-footer {
    padding: 10px 10px 30px;
}


/*
 * Buttons
*/

.buttons-container {
    text-align: center;
}

.nd-btn {
    display: inline-block;
    width: auto;
    padding: 7px 17px;
    margin: 20px;
    border: 0;
    border-radius: 20px;
    font-size: 12px;
    line-height: 18px;
    min-width: 80px;
    margin: 0 10px;
    cursor: pointer;
    text-align: center;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/*
 * Center message
*/

.center-message {
    max-width: 340px;
    margin: 0 auto;
    border-radius: 6px;
    padding: 3.25rem 5rem;
}

.center-message p {
    margin: 0;
    font-size: 1.5rem;
}


/*
 * Pretty inputs
*/

.pretty.p-round.p-thick .state label {
    min-width: calc(1.5em + 2px);
    min-height: calc(1.5em + 2px);
}

.pretty.p-round.p-thick .state label:before,
.pretty.p-round.p-thick .state label:after {
    width: calc(1.875em + 2px);
    height: calc(1.875em + 2px);
    left: -0.15em;
}


/* Multi line fix */

.pretty {
    white-space: inherit;
}

.pretty .state label {
    width: 100%;
    padding-left: 1.5rem;
    text-indent: 0;
    font-size: 0.875rem;
}

.pretty .state label:after,
.pretty .state label:before {
    top: 0;
}


/* Single line fix */

.pretty .state.inline {
    padding-left: 2rem;
}

.pretty .state.inline label {
    display: inline;
    padding-left: 0;
}

.pretty .state.inline label:after,
.pretty .state.inline label:before {
    top: 0.125em;
}

.pretty label span {
    position: relative;
    display: inline-block;
    z-index: 5;
}

.pretty a,
.pretty [data-link] {
    z-index: 3;
    pointer-events: initial !important;
}


/*
 * Helpers
*/

.hidden {
    display: none;
}


/*
 * Footer
*/

footer {
    display: flex;
    justify-content: space-between;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

footer p {
    margin: 0;
}

footer p:last-child {
    align-items: flex-end;
}


/*
 * Media Queries
*/

@media only screen and (max-width: 640px) {
    /*
    * Container
    */
    .nd--cns-sample-container {
        flex-direction: column;
    }
    /*
    * Section - Chart wrapper
    */
    .nd--cns-sample-chart-wrapper {
        border: 0 !important;
    }
}

@media only screen and (max-width: 768px) {
    /*
    * Form
    */
    .form-group:not(.mobile-inline) {
        flex-direction: column;
    }
    .form-group label,
    .form-group .label-wrapper {
        margin-bottom: 0.5rem;
    }
    .form-group>label:not(.inline),
    .form-group .input-control {
        width: 100%;
    }
    /*
    * Footer
    */
    footer {
        flex-direction: column;
        padding: 1rem;
    }
    footer p:last-child {
        align-items: flex-end;
    }
    footer p:not(:last-child) {
        margin-bottom: 0.5rem;
    }
}

@media only screen and (max-width: 1024px) {
    .nd--cns-sample-chart-save-and-share {
        margin-right: 0;
    }
}


/*
 * Helpers
*/


/*!
 * Clearfix: contain floats - https://github.com/h5bp/html5-boilerplate MIT License
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.row[data-accordion]:before,
.clearfix:after,
.row[data-accordion]:after {
    content: " ";
    /* 1 */
    display: table;
    /* 2 */
}

.clearfix:after,
.row[data-accordion]:after {
    clear: both;
}

.clearfix-flex:before,
.clearfix-flex:after {
    content: " ";
    flex-basis: 0;
    order: 1;
}

.clearfix-flex:after {
    clear: both;
}