:root {
    --falcon-list-group-action-hover-color: var(--falcon-primary);
}

[data-detail-href], [data-auto-start], [data-action] {
    cursor: pointer;
}

.main-feedback-panel {
    margin: 0;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 2000;
}

/* forms */

.form-label.dense {
    margin-bottom: 1px;
    font-size: 0.8rem;
}

.form-control.dense {
    padding: 0.25rem 1rem
}

.form-label.mandatory:after {
    content: "*";
}

p.readonly-value, span.readonly-value {
    color: black;
    margin: 2px 0;
    font-weight: 500;
    font-size: 1rem;
}

h5.readonly-value {
    font-weight: 500;
    font-size: 1.1rem;
}

h6.readonly-value {
    font-weight: 400;
    font-size: 1rem;
}

.input-valid {
    border-color: #a8c2a8;
}

.input-invalid {
    border-color: darkred;
}

.keep-tabulator-in-window {
    outline: none;
    width: 1px;
    height: 1px;
}

form.live-editor .submit-failure-message {
    visibility: collapse;
}

form.live-editor.submit-failed .submit-failure-message {
    visibility: visible;
}

/* autocomplete */

.auto-complete-wrapper {
    position: relative;
    width: 100%
}

.auto-complete-wrapper > ul {
    background: white;
    position: absolute;
    max-height: 400px;
    overflow-y: scroll;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0;
    margin: 0.3rem;
    border-radius: 4px;
    border: 1px solid rgba(33, 33, 33, 0.1);
    z-index: 1000;
    outline: none;
}

.auto-complete-wrapper > ul > li {
    padding: 8px 16px;
    list-style: none;
    text-align: left;
    font-size: 16px;
    color: #212121;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.auto-complete-wrapper > ul > li:hover,
.auto-complete-wrapper > ul > li[aria-selected="true"] {
    cursor: pointer;
    background-color: #eee;
}

.auto-complete-wrapper > ul > li mark {
    background-color: transparent;
    color: darkblue;
    font-weight: bold;
    padding: 0;
}

/** Field Clearer */
.field-clearer {
    font-size: 1.3rem;
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    right: 15px;
    bottom: 5px;
}

.field-clearer:hover {
    font-weight: 600;
}

fieldset[disabled] .field-clearer {
    display: none;
}

/** common */

.nav-breadcrumbs {
    min-height: 34px;
    min-width: 180px;
    display: inline-block;
}

.main {
    padding-bottom: 1rem;
}

.chip {
    background: #e5e5e5;
    padding: 1px 8px;
    min-width: 60px;
    text-align: center;
    border-radius: 4px;
}

.chip .remover {
    cursor: pointer;
    padding: 0 2px 0 8px;
}

.comma-separated ~ .comma-separated::before {
    content: ', ';
}

.loading-spinner {
    display: none;
}

.workflow-step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
}

/** TABLES */

.table-dense td, .table-dense th {
    padding: 0.25rem 0.5rem;
}

.table-row-no-border tr, .table-row-no-border th, .table-row-no-border td {
    border-width: 0;
    border-style: none;
}

.table-scroll-wrapper, .scroll-content-wrapper {
    width: 100%;
    overflow-y: scroll;
    margin: 0;
}

table.sticky-header th {
    background: white;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

table.sticky-header tr:nth-child(2) th {
    top: 39px;
    position: sticky;
}

/* Für die dritte Zeile des thead */
table.sticky-header tr:nth-child(3) th {
    top: 78px;
}

table tr.table-filter th {
    padding: 2px 3px;
}

/** DELTA TABLE */

table.delta-table th {
    font-size: 0.9rem;
}

table.delta-table td {
    font-size: 0.9rem;
    color: #777;
}

table.delta-table tr.original td {
    padding-top: 2px;
    padding-bottom: 2px;
}

table.delta-table tr.device td {
    border-top: 2px solid #999;
}

table.delta-table tr.device.ignored td {
    color: #999;
}

table.delta-table .voltage-system {
    font-size: 0.8rem;
    background: #f9fBf9;
    padding-left: 10px;
}

table.delta-table .voltage-system td {
    padding-top: 2px;
}

.change-marker {
    color: darkred !important;
    font-weight: bold;
}

.col > .l-2 {
    min-height: 42px;
}

/** Reporting filter */

.filter-control {
    width: 100%;
    margin: 0;
    padding: 2px 5px;
    border: 1px solid #9da9bb;
    border-radius: 3px;
}

.filter-control.input-invalid {
    border-color: darkred;
}

.filter-control.pre {
    width: 36%;
}

.filter-control.post {
    width: 60%;
}

.filter.auto-complete-wrapper {
    width: 100%;
}

.filter-control-full.auto-complete {
    border: 1px solid #9da9bb;
    border-radius: 3px;
    width: 100%;
}

.filter-select {
    background-color: white;
    width: 100%;
    padding: 4px 5px;
    border: 1px solid #9da9bb;
    border-radius: 3px;
}

.filter-sorter {
    min-width: 200px;
    background-color: white;
    padding: 4px 5px;
    border: 1px solid #9da9bb;
    border-radius: 3px;
}

.filter-radio {
    margin-left: 8px;
}

/* pager */
.page-link.disabled {
    background: white;
    border-color: #EDF2F9;
    color: #999999;
}

/** Voltage Systems */

.consumer-list {
    max-height: 120px;
    overflow: scroll;
}

.voltage-system {
    position: relative;
    z-index: 2;
    background-color: white;
    border-radius: 5px;
}

.visualization {
    display: flex;
    position: absolute;
    width: 100%;
    z-index: 1;
    background-color: transparent;
}

.visualization i.fas {
    min-width: 20px;
}

.visualization .circle {
    display: inline-block;
    background-color: white;
    border-radius: 15px;
    height: 30px;
    width: 30px;
    border: 1px solid grey;
    text-align: center;
    padding: 2px;
}

.visualization .line {
    display: inline-block;
    position: absolute;
    top: 15px;
    background-color: white;
    width: 100px;
    height: 2px;
    border: 1px solid grey;
}

/** incoming */

.voltage-system.category-input, .voltage-system.category-consumer, .voltage-system.category-distributor {
    border-left: 1px solid grey;
    padding-left: 15px;
}

.visualization.category-input, .visualization.category-consumer, .visualization.category-distributor {
    left: -5px;
}

.visualization.category-input .line, .visualization.category-consumer .line, .visualization.category-distributor .line {
    left: 30px;
}

/** outgoing */

.voltage-system.category-output, .voltage-system.category-supplier {
    border-right: 1px solid grey;
    padding-right: 15px;
}

.visualization.category-output, .visualization.category-supplier {
    flex-direction: row-reverse;
    left: 5px;
}

.visualization.category-output .line, .visualization.category-supplier .line {
    right: 30px;
}

/** Assembly */

.forced-crossing {
    color: darkblue;
    font-weight: 600;
}

/** User Manual */

.card.index {
    min-width: 250px;
}

.cp-spinner {
    color: rgb(0, 119, 181);
}

/** Device hierarchy */

.node circle {
    fill: #fff;
    stroke: #2c7be5;
    stroke-width: 3px;
}

.tree-link {
    fill: none;
    stroke: #ccc;
    stroke-width: 2px;
}

.tree-tooltip {
    width: 100px;
    height: 50px;
    fill: white;
    stroke: grey;
    stroke: #2c7be5;
    stroke-width: 2px;
}

.tree-tooltip-rect {
    width: 190px;
    height: 20px;
}

.tree-tooltip-triangle {
    fill: white;
    stroke: #2c7be5;
    transform: rotate(180);
    stroke-width: 2px;
}

.hierarchy-link {
    float: right;
    margin-top: 5px;
}

/* Bulk Edit */
.ks-column {
    width: 36%;
}

.cable-number-column {
    width: 64%;
}

.date-input-minimal-size {
    width: 125px;
}

.transfer-value-input {
    background-color: #e5e9f9;
    padding: 5px;
}

.cable-selection-selected, .cable-selection-unselected {
    border: 2px #555 solid;
    min-height: 100%;
    width: 100%;
}

.cable-selection-item {
    width: 100%;
    border-bottom: #999999 solid 1px;
    height: 2em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cable-selection-item:nth-child(even) {
    background-color: #f9fafd;
}

.cable-selection-item.deselected {
    background: #FEE;
}

.cable-selection-item.deselected:nth-child(even) {
    background: #FDD;
}

/* Layout optimization */

.w-90 {
    width: 90%;
}

.w-80 {
    width: 80%;
}

.w-66 {
    width: 66.66666%;
}

.w-60 {
    width: 60%;
}

.w-40 {
    width: 40%;
}

.w-33 {
    width: 33.3333%;
}

.w-20 {
    width: 20%;
}

.w-10 {
    width: 10%;
}

.z-1 {
    z-index: 1;
}

.z-5 {
    z-index: 5;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.z-100 {
    z-index: 100;
}

.z-500 {
    z-index: 500;
}

.z-1000 {
    z-index: 1000;
}

/* Font Awesome helper, see https://fontawesome.com/docs/web/dig-deeper/svg-async*/

.wait-for-icons {
    display: none;
}

.fontawesome-i2svg-active .wait-for-icons {
    display: initial;
}

.very-light-background {
    padding: 1rem;
    border-radius: 0.25rem;
    background: #F7F8F7;
}


/* Für die zweite Zeile des thead */
.ampere-input {
    position: relative;
}

.ampere-input::after {
    content: 'A';
    position: absolute;
    right: 59px;
    top: 75%;
    transform: translateY(-50%);
    color: #999; /* Optional: Color for the "A" */
    pointer-events: none;
}
