/* Excludes .vue-scope elements and their children so legacy styles don't affect Vue/PrimeVue components */

:where(:not(.vue-scope *, .vue-scope)) {
    &:is(input[type="text"]) {
        width: 250px;
    }

    &:is(input[type="text"].datefield, input[type="text"].datefield-iso) {
        width: 8em;
    }

    &:is(input[type="text"].shortinput) {
        width: 16px;
        box-sizing: content-box;
    }

    &:is(input[type="text"].medinput, textarea.medinput) {
        width: 4em;
        box-sizing: content-box;
    }

    &:is(input[type="text"].longinput, textarea.longinput) {
        width: 8em;
    }

    &:is(input[type="text"].longerinput, select.longerinput, textarea.longerinput) {
        width: 12em;
    }

    &:is(input[type="text"].longerinput20) {
        width: 18em;
    }

    &:is(input[type="text"].xlonginput, select.xlonginput, textarea.xlonginput) {
        width: 16em;
    }

    &:is(input[type="text"].xxlonginput, textarea.xxlonginput) {
        width: 24em;
    }
}
div.formwrapper {
    font-size: 12px;
    background-color: #fff;
    margin-top: 6px;
}

div.formbanner {
    margin-bottom: 1em;
    padding: 4px;
}

div.formbanner div.formbannerleft {
    width: 32%;
    float: left;
}

div.formbanner div.formbannermiddle {
    width: 32%;
    float: left;
    margin-top: 10px;
/*    line-spacing: 14px;*/
    font-weight: bold;
    font-size: 120%;
}

.non-legal-inspection-note{
    text-align: center;
    margin: 0 auto 10px;
    max-width: 85%;
    font-size: 90%;
}

div.formbanner div.formbannerright {
    width: 32%;
    float: right;
    text-align: right;
    padding: 0;
    font-weight: bold;
}

div.formbanner div span {
    color: red;
}

div.formwrapper label {
    font-weight: bold;
    color: #444;
}

div.formwrapper label.radio-label {
    font-weight: inherit;
    color: inherit;
}

#anderermeterstand, #andereranderer,
  input#greenserie_1, #greenstand_1,
  input#greenserie_2, #greenstand_2,
  input#greenserie_3, #greenstand_3 {
    width: 8em;
}

#code1, #artandere {
    width: 4em;
}

#code2 {
    width: 2em;
}

.indentleft {
    margin-left: 1em;
}

div.formwrapper textarea {
    width: 250px;
    height: 66px;
    font-size: 120%;
}

@media (max-width: 1333px) {
    div.formwrapper textarea {
        width: 92%;
    }
}

textarea#infringe_nl, textarea#infringe_fr, div.formwrapper textarea.longtextarea, textarea#remarks, textarea#description_hh, textarea#other_infractions {
    clear: both;
    width: 60em;
    height: 6em;
}

div.formwrapper textarea.longtextarea {
    height: 110px;
}

div.formwrapper h1 {
    margin-top: 0.3em;
    font-size: 140%;
    color: #000;
    background-color: #b8b8b8;
    padding: 0.5em;
/*    text-align: center;*/
}

div.formwrapper h2 {
    text-transform: uppercase;
    font-size: 110%;
    color: #444;
    display: inline;
    padding-left: 0;
}

div.formwrapper > form > table {
    width: 100%;
    table-layout: fixed;
}

div.formwrapper > form input,
div.formwrapper > form select,
div.formwrapper > form textarea {
    max-width: 100%;
    box-sizing: border-box;
}

pre, span.formvalue {
/*    font-family: courier;*/
/*    font-weight: bold;*/
/*    color: #000;*/
}

table.formsection {
    width: 100%;
    margin-top: 1em;
    table-layout: fixed;
}

.formsection > table {
    max-width: 100%;
    table-layout: fixed;
}

table.formsection td {
    padding: 5px;
    vertical-align: middle;
}

table#greenmeter, table#aardlek {
    font-size: 90%;
}


table#greenmeter thead tr th, table#aardlek thead tr th, table#solar1 thead tr th, table#solar thead tr th, table#solartable thead tr th, table#omvormer thead tr th {
    font-size: 100%;
    color: #383838;
    vertical-align: bottom;
}

table#omvormer td {
}

#ek2aardonderzoek td, #ek2install td {
    vertical-align: top;
    text-align: center;
}

#ek2install th, #ek2diff th,#ek2diff td {
    vertical-align: bottom;
    text-align: center;
}

#predefinedComments {
    display: none;
}

#currentComment {
    margin: 0.5em 1em 0.5em 1em;
    color: #000;
}

#main-content table tr.cleanrow, #main-content table tr.cleanrow td, #main-content table tr.cleanrow th {
    margin: 0;
    padding: 0;
    border: 0;
}

table td h2 {
    margin-left: -2px;
    padding-left: 0;
}

#clientForm td {
    vertical-align: top;
}

#clientForm textarea {
    width: 100%;
    height: 10em;
}

ul.user_checkbox_list li, ul.tag_list li {
    list-style-type: none !important;
    display: block;
    width: 10em;
    float: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

ul.user_checkbox_list_wide li {
    width: 20em;
}

ul.tag_list li {
    width: 32%;
}

ul.user_checkbox_list li.highlight, ul.user_checkbox_list span.highlight {
    font-weight: bold;
    font-style: italic;
}

p.aceggt_row_count a:hover,
p.aceggt_row_count a:active,
p.aceggt_row_count a:visited,
p.aceggt_row_count a:link {
    color: #383838;
}


/** TOOLTIP **/
.tooltip {
    display: block !important;
    z-index: 10000;
}

.tooltip .tooltip-inner {
    background: black;
    color: white;
    border-radius: 16px;
    padding: 5px 10px 4px;
}

.tooltip .tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    margin: 5px;
    border-color: black;
    z-index: 1;
}

.tooltip[x-placement^="top"] {
    margin-bottom: 5px;
}

.tooltip[x-placement^="top"] .tooltip-arrow {
    border-width: 5px 5px 0 5px;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    bottom: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}

.tooltip[x-placement^="bottom"] {
    margin-top: 5px;
}

.tooltip[x-placement^="bottom"] .tooltip-arrow {
    border-width: 0 5px 5px 5px;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
    top: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}

.tooltip[x-placement^="right"] {
    margin-left: 5px;
}

.tooltip[x-placement^="right"] .tooltip-arrow {
    border-width: 5px 5px 5px 0;
    border-left-color: transparent !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    left: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
}

.tooltip[x-placement^="left"] {
    margin-right: 5px;
}

.tooltip[x-placement^="left"] .tooltip-arrow {
    border-width: 5px 0 5px 5px;
    border-top-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    right: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
}

.tooltip.popover .popover-inner {
    background: #f9f9f9;
    color: black;
    padding: 24px;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.tooltip.popover .popover-arrow {
    border-color: #f9f9f9;
}

.tooltip[aria-hidden="true"] {
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s, visibility .15s;
}

.tooltip[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
    transition: opacity .15s;
}

/* Vue Tel Input */
.vue-tel-input {
    max-width: 390px;
    background: #fff;
}

.vue-tel-input .vti__dropdown {
    padding-left: 5px;
    padding-right: 5px;
}

.vue-tel-input .vti__input {
    padding-left: 5px;
}

.vue-tel-input .vti__flag-wrapper {
    vertical-align: middle;
}

#main-content ul.vti__dropdown-list {
    padding: 0;
}

#main-content ul.vti__dropdown-list li.vti__dropdown-item {
    padding: 4px 8px;
    list-style: none;
    text-indent: 0;
    background: none;
}

/* General purpose */
.full-width {
    width: 100% !important;
}

.report-preview-link { padding: 5px; background-color: #aaaaaa; border-radius: 5px; }

div#rca-warning {
    border: 2px solid #eab308;
    background: #fef9c3;
    padding: 1rem;
    font-size: 1rem;
    line-height: normal;
}

div#rca-warning ul li {
    list-style: disc inside;
}

span.label {
    background: #b7b7b7;
    color: white;
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 11px;
}

td.-error {
    background-color: red;
}
