.auro-validation-summary,
.auro-status {
    border-radius: .5rem;
    margin: .75rem 0;
    padding: .75rem 1rem;
}

.auro-validation-summary {
    background: #fff2f2;
    border: 1px solid #c62828;
    color: #761717;
}

.auro-validation-summary:empty,
.auro-status:empty {
    display: none;
}

.auro-validation-summary ul {
    margin: .35rem 0 0 1.2rem;
}

.auro-validation-summary a {
    color: inherit;
    text-decoration: underline;
}

.auro-status--success {
    background: #eaf7ed;
    border: 1px solid #2e7d32;
    color: #1b5e20;
}

.auro-status--info {
    background: #eef5ff;
    border: 1px solid #3367a8;
    color: #173d69;
}

.auro-status--error {
    background: #fff2f2;
    border: 1px solid #c62828;
    color: #761717;
}

[aria-invalid="true"] {
    border: 2px solid #c62828 !important;
}

.auro-autocomplete-wrap {
    display: inline-block;
    position: relative;
}

.auro-autocomplete-list {
    background: #fff;
    border: 1px solid #777;
    box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .18);
    left: 0;
    max-height: 15rem;
    min-width: 16rem;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    z-index: 10000;
}

.auro-autocomplete-list[hidden] {
    display: none;
}

.auro-autocomplete-option {
    cursor: pointer;
    padding: .45rem .6rem;
}

.auro-autocomplete-option[aria-selected="true"],
.auro-autocomplete-option:hover {
    background: #e8edff;
}

.auro-busy {
    cursor: wait !important;
    opacity: .7;
}

.auro-duplicate-panel {
    background: #fffaf0;
    border: 2px solid #b26a00;
    border-radius: .65rem;
    color: #573400;
    margin: 1rem 0;
    padding: 1rem;
}

.auro-duplicate-panel[hidden] {
    display: none;
}

.auro-duplicate-panel table {
    background: #fff;
    color: #222;
    font-weight: normal;
}

/* The duplicate comparison is deliberately isolated from the legacy global
   result-table wrapper. That wrapper dynamically resizes every Bootstrap
   .table-responsive grid and made this panel's transparent sticky heading sit
   over its first data row. This table owns one scroll box and one opaque header. */
.auro-duplicate-table-wrap {
    background: #fff;
    border: 1px solid #d8c39d;
    border-radius: .45rem;
    margin: .75rem 0 1rem;
    max-height: min(55vh, 430px);
    overflow: auto;
    width: 100%;
}

.auro-duplicate-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
    min-width: 1050px;
    table-layout: fixed !important;
    width: 100% !important;
}

.auro-duplicate-table thead,
.auro-duplicate-table tbody {
    display: table-row-group !important;
    height: auto !important;
    overflow: visible !important;
    width: auto !important;
}

.auro-duplicate-table thead {
    display: table-header-group !important;
}

.auro-duplicate-table th,
.auro-duplicate-table td {
    background-clip: padding-box;
    border-bottom: 1px solid #e4d8c3;
    border-right: 1px solid #e4d8c3;
    box-sizing: border-box;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
    padding: .65rem .7rem !important;
    position: static;
    text-align: left !important;
    vertical-align: top !important;
    white-space: normal !important;
}

.auro-duplicate-table thead th {
    background: #f1e3c8 !important;
    color: #3e2a0b !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 3;
}

.auro-duplicate-table tbody td {
    background: #fff !important;
}

.auro-duplicate-table tbody tr:nth-child(even) td {
    background: #fffaf1 !important;
}

.auro-duplicate-table th:last-child,
.auro-duplicate-table td:last-child {
    border-right: 0;
}

.auro-duplicate-table tbody tr:last-child td {
    border-bottom: 0;
}

.auro-duplicate-col-match { width: 13%; }
.auro-duplicate-col-accession { width: 14%; }
.auro-duplicate-col-title { width: 27%; }
.auro-duplicate-col-isbn { width: 12%; }
.auro-duplicate-col-edition { width: 13%; }
.auro-duplicate-col-reason { width: 21%; }

.auro-duplicate-level {
    border-radius: 1rem;
    display: inline-block;
    font-size: .78rem;
    font-weight: bold;
    padding: .15rem .55rem;
    text-transform: uppercase;
}

.auro-duplicate-level--accession-conflict,
.auro-duplicate-level--workflow-conflict {
    background: #ffd9d9;
    color: #8a1111;
}

.auro-duplicate-level--exact {
    background: #ffe5b5;
    color: #714300;
}

.auro-duplicate-level--probable {
    background: #e4edff;
    color: #173d69;
}
