body {
    background-color: #f5f5f5;
    font-size: 15px;
    padding-top: 20px;
}
label.required:after {
    content: " *";
}

.main-content .logo {
    height: 100px;
    margin-bottom: 15px;
}
.main-content .logo > img {
    height: 100%;
    max-width: 100%;
}
.main-content .locale {
    text-transform: uppercase;
    margin-right: 30px;
}
.panel-main {
    border: none;
    margin-top: 20px;
}
.panel-main > .panel-heading {
    padding: 0;
    height: auto;
    background-color: #fff;
    position: relative;
}
.panel-main > .panel-heading h1 {
    float: left;
    font-size: 30px;
    line-height: 1em;
    margin: 15px 0 15px 15px;
    padding: 0.3em;
    padding-left: 30px;
    margin-left: 0;
}
.panel-main > .panel-heading > .step {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 18px;
    float: right;
    height: 100%;
    margin: 0;
    background-color: #337ab7;
    color: #fff;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    border-top-right-radius: 3px;
}
.panel-main > .panel-body header {
    margin-bottom: 20px;
}
.interrupt-session {
    margin-top: 40px !important;
}

.search-result tbody {
    background-color: #fff;
}
.search-result .person-item {
    cursor: pointer;
}

.licensee h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}
.licensee h4:last-child {
    margin-bottom: 0;
}
.licensee h4 > .person-number {
    font-weight: bold;
    color: #777;
}

.add-licensee {
    position: relative;
}
.add-licensee .radio {
    display: inline-block;
}
.add-licensee .radio + .radio {
    margin-left: 20px;
}
.add-licensee .close-form {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
}
.add-licensee .submit-form {
    position: absolute;
    right: 20px;
    top: 26px;
    z-index: 100;
}

.licensee {
    position: relative;
}
.licensee .radio {
    display: inline-block;
}
.licensee .radio + .radio {
    margin-left: 20px;
}
.licensee .remove-licensee {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
}
.licensee .panel-heading .remove-licensee {
    right: 10px;
    top: 10px;
}
.licensee > .panel-body table.table {
    margin-bottom: 0;
}
.licensee .panel-heading[role="tab"] > a {
    display: block;
    color: inherit;
}
.licensee .panel-heading[role="tab"] > a:hover,
.licensee .panel-heading[role="tab"] > a:focus,
.licensee .panel-heading[role="tab"] > a:active {
    color: inherit;
    text-decoration: none;
}

.subscription-toggle-header {
    width: 50px;
}
.insurance-toggle-header {
    width: 35px;
}

.license {
    cursor: pointer;
}
.license-insurances > td {
    border-top: 0 !important;
}
.license-insurances > td > .well {
    margin-bottom: 0;
}
.license-insurances > td > .well > table.table {
    background-color: transparent;
}
.license-insurances .current-insurance > td {
    border-top: 0 !important;
}
.license-insurances .current-insurance label {
    margin: 5px 0;
}

.insurance {
    cursor: pointer;
}
.insurance .terms-toggle {
    margin-left: 10px;
}

.invoice {
    margin-bottom: 50px;
}
.invoice .invoice-label {
    font-weight: bold;
}
.invoice .barcode {
    margin-top: 50px;
    text-align: center;
}
.invoice-to-email {
    width: 100%;
    margin-bottom: 20px;
}

.person-number {
    text-transform: uppercase;
}
.number {
    text-align: right;
    white-space: nowrap;
}
.btn-back {
    margin-bottom: 10px;
}
.btn-back:before {
    content: "\00AB\00A0";
}
.btn.swal2-cancel {
    margin-left: 20px;
}

/* Mobile optimized styles */
@media (max-width: 767px) {
    body {
        padding-top: 0;
    }
    .main-content {
        margin-left: -15px;
        margin-right: -15px;
    }
    .panel-main {
        margin-bottom: 0;
    }
    .panel-main,
    .panel-main > .panel-heading,
    .panel-main > .panel-heading > .step {
        border-radius: 0;
    }
    .add-licensee {
        padding-top: 40px;
    }
    .add-licensee .submit-form {
        position: static;
        float: right;
    }
    .licensee h4 {
        font-size: 1em;
    }
    .licensee h4 > .person-number {
        display: block;
    }
    .licensee .panel-heading {
        padding: 10px 5px;
    }
    .licensee .panel-body {
        padding: 10px 5px;
    }
    .licensee.licensee-subscription .panel-body {
        padding: 10px 0;
    }
    .subscription-toggle-header,
    .insurance-toggle-header
    {
        width: 1%;
    }
    .insurance .terms-toggle {
        margin-left: 0;
        display: block;
    }
    .license-insurances > td > .well {
        padding: 0;
    }
    .invoice .barcode {
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
    }
    .invoice .barcode img {
        max-width: 100%;
    }
    .log-in {
        margin-bottom: 10px;
    }
    #add-forms .add-buttons .btn-group + .btn-group {
        margin-top: 10px;
        clear: left;
    }
    #add-forms .search-result {
        margin-left: -19px;
        margin-right: -19px;
    }
    #add-forms .search-result hr {
        margin: 5px 0;
    }
    #add-forms .search-result input[type="submit"] {
        margin-right: 20px;
    }
}

.licensetype-description {
    font-size:0.85em;
    margin-bottom: 10px;
}

.insurance-info-container {
    font-size: 0.85em;
}

.insurance-info-container .file-header {
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

.insurance-info-container .file-container {
    margin-left: 10px;
}

.terms {
    margin-bottom: 20px;
}

.footer {
    font-size: 0.7em;
    text-align: center;
    color: rgb(180,180,180);
    margin: 0 0 15px;
}

.footer a {
    color: rgb(180,180,180);
}

.panel-body {
    padding: 30px;
}

.lead {
    padding: 1em 0;
}

/* Tablesorter */
table.tablesorter th.header {
    cursor: pointer;
}
table.tablesorter th.headerSortUp:after {
    font-family: FontAwesome;
    content: "\00a0\f0d8";
}
table.tablesorter th.headerSortDown:after {
    font-family: FontAwesome;
    content: "\00a0\f0d7";
}
