/*
 * Inputs
 */
textarea {
    resize: vertical;
    min-height: 72px;
}

input[type="number"] {
    text-align: right;
}

/*
 * Tabs
 */
.nav-tabs {
    margin-bottom: 20px;
}

.nav-tabs > li.disabled > a {
    pointer-events: none;
}

.tab-pane:before, .tab-pane:after {
    clear: both;
    content: " ";
    display: table;
}

/*
 * Checkbox
 */
.checkbox {
    height: 20px;
    /*width: 20px;*/
}

.checkbox label {
    padding-left: 0;
    width: 100%;
}

.checkbox label:before, .checkbox label:after {
    display: table;
    content: " ";
    clear: both;
}

.checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    margin: 0;
    z-index: -1;
    width: 0;
    height: 0;
    overflow: hidden;
    left: 0;
    pointer-events: none;
}

.checkbox .checkbox-inner {
    height: 20px;
    width: 20px;
    overflow: hidden;
    display: inline-block;
    float: left;
}

.checkbox .checkbox-inner .check {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid;
    border-radius: 2px;
    overflow: hidden;
    border-color: #333333;
}

.checkbox input[type=checkbox]:checked+.checkbox-inner .check {
    background-color: #4caf50;
    border-color: #4caf50;
}

.checkbox input[type=checkbox]:checked+.checkbox-inner .check:before {
    font-family: "Font Awesome 5 Pro";
    font-style: normal;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    content: "\f00c";
    left: 1px;
    position: relative;
    top: -3px;
    z-index: 1;
}

.checkbox input[type=checkbox]:disabled+.checkbox-inner .check,
.checkbox input[type=checkbox]:disabled:checked+.checkbox-inner .check {
    background-color: #dddddd;
    border-color: #dddddd;
}

.checkbox input[type=checkbox]:disabled+.checkbox-inner .check:before,
.checkbox input[type=checkbox]:disabled:checked+.checkbox-inner .check:before {
    color: #555555;
}

.checkbox .placeholder {
    font-weight: bold;
}

.form-group > .checkbox {
    margin-top: 32px;
    margin-bottom: 22px;
}

th .checkbox, td .checkbox {
    margin: 0;
}


/*
 * Radio
 */
.radio label {
    padding-left: 0;
}

.radio input[type="radio"] {
    opacity: 0;
    position: absolute;
    margin: 0;
    z-index: -1;
    width: 0;
    height: 0;
    overflow: hidden;
    left: 0;
    pointer-events: none;
}

.radio .radio-inner {
    vertical-align: middle;
    position: relative;
    top: 3px;
}

.radio .radio-inner .check {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid;
    border-radius: 10px;
    overflow: hidden;
}

.radio input[type=radio]:checked + .radio-inner .check {
    background-color: #4caf50;
    border-color: #4caf50;
}

.radio input[type=radio]:checked + .radio-inner .check .checker {
    background-color: #fff;
    left: 4px;
    position: relative;
    top: 4px;
    z-index: 1;
    width: 8px;
    height: 8px;
    border-radius: 8px;
    display: block;
}

.radio .placeholder {
    font-weight: bold;
}

th .radio, td .radio {
    margin: 0;
}

/**
 * Taginput
 */

.tag-group {
    height: auto;
    margin-top: 5px;
    min-height: 34px;
    padding-top: 6px;
}

.tag-control {
    border: 1px solid #ccc;
    padding: 4px;
    vertical-align: top;
}

.tag-control:focus {
    border-color: #ee2490;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(238, 36, 144, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(238, 36, 144, 0.6);
}

.tag {
    background-color: #ffd5ec;
    border: 1px dotted #ffbadf;
    color: #ee2490;
    cursor: pointer;
    display: inline-block;
    margin-right: 5px;
    overflow: hidden;
    padding: 4px;
    white-space: nowrap;
}

.tag:before, .tag:after {
    content: " ";
    display: table;
}

.tag span {
    display: block;
    overflow: hidden;
}

.tag:hover {
    -webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 1);
    box-shadow: 0 0 2px rgba(0, 0, 0, 1);
}

.tag-remove {
    float: left;
    margin: 2px 5px 2px 0;
}

.tag .tag-remove:hover {
    color: #1f4b61;
}

/*
 * Form groups & Input groups
 */

.form-group .form-checkbox {
    margin: 32px 0 22px 0;
}

.form-group.form-margin-label {
    margin-top: 25px;
}

.table .form-group {
    margin-bottom: 8px;
    margin-top: 8px;
}

.input-group-addon input, .input-group-addon select {
    background: transparent;
    border: none;
    outline: none;
}

.input-group-addon {
    color: #333;
    background-color: transparent;
}

.text-group {
    width: 100%;
}

.text-group .form-control {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    color: #333;
    right: -15px;
    position: relative;
    pointer-events: none;
}

.text-group .form-control:focus {
    box-shadow: none;
    outline: 0;
}

.text-group .form-control[disabled],
.text-group .form-control[readonly] {
    cursor: default;
    background-color: transparent;
    opacity: 1;
}

.text-group .input-group-addon {
    background-color: transparent;
    border: none;
    padding: 0;
    width: 12px;
}

.text-group-select {
    overflow: hidden;
}

.text-group-select select.form-control {
    width: 120%;
}

.input-group-fit {
    width: auto;
}

.input-group-fit .input-group-addon, .input-group-fit .input-group-btn {
    width: auto;
}

.input-group-fit .form-control {
    width: auto;
}

.text {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    color: #333;
    right: -15px;
    position: relative;
    pointer-events: none;
    user-select: none;
}

/*
 * Thumbnail
 */
.thumbnail {
    position: relative;
}

.thumbnail-container {
    height: 269px;
}

.thumbnail-container > img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.thumbnail-infos {
    height: 150px;
}

.thumbnail-options {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-right-width: 0;
    -webkit-box-shadow: -2px 0 2px 0 rgba(0, 0, 0, .2);
    box-shadow: -2px 0 2px 0 rgba(0, 0, 0, .2);
    padding: 12px 6px;
    position: absolute;
    right: 0;
    top: 6px;
    z-index: 336;
}

.thumbnail-options > .btn {
    display: block;
    margin-bottom: 4px;
    margin-top: 4px;
    padding: 0;
}

.thumbnail-options > .btn:active {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.thumbnail-options > .btn:first-child {
    margin-bottom: 8px;
    margin-top: 0;
}

.thumbnail-options > .btn:last-child {
    margin-bottom: 0;
    margin-top: 8px;
}

/*
 * Signature
 */
.signature-container {
    position: relative;
}

.signature-container > .signature-wrapper {
    bottom: 0;
    width: 100%;
    position: absolute;
    margin-bottom: 77px;
}

.signature-container.fixed {
    position: fixed;
    bottom: 0;
}

.signature-pad {
    background: rgba(0, 0, 0, .1);
    border: 3px dotted #333;
    width: 100%;
}

/*
 * Badge
 */
.badge-primary, .alert-primary .badge {
    background-color: #337ab7;
}

.badge-success, .alert-success .badge {
    background-color: #5cb85c;
}

.badge-info, .alert-info .badge {
    background-color: #5bc0de;
}

.badge-warning, .alert-warning .badge {
    background-color: #f0ad4e;
}

.badge-danger, .alert-danger .badge {
    background-color: #d9534f;
}

/*
 * Devices
 */
.device-confirmation {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.device-confirmation-body {
    padding: 15px;
}

.device-in-app {
    width: 50%;
}

@media (min-width: 1200px) {
    .device-in-app {
        width: 25%;
    }
}

/*
 * List preview
 */
.list-preview-container {
    position: fixed;
    right: 0;
    bottom: 0;
    top: 61px;
    width: 45%;
    background: rgb(255, 255, 255);
    z-index: 512;
    box-shadow: -3px 0 8px 0 rgba(0, 0, 0, 0.175);
}

@media (max-width: 991px) {
    .list-preview-container {
        display: none;
    }
}

.list-preview-header {
    padding: 16px;
    background-color: #fff;
    height: 64px;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.list-preview-header h4 {
    margin: 0;
}

.list-preview-header .fa {
    cursor: pointer;
    color: #333;
    font-size: 18px;
    line-height: 32px;
    opacity: .5;
    top: 16px;
    position: absolute;
    right: 8px;
}

.list-preview-header .fa:hover {
    opacity: 1;
}

.list-preview-header .fa-external-link {
    right: 28px;
    font-size: 14px;
}

.list-preview-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    top: 64px;
    padding: 12px;
    background: #eaeef1;
}

.list-preview-content iframe {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
    width: 100%;
    height: 100%;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
    pointer-events: none;
    user-select: none;
}