/* Minification failed. Returning unminified contents.
(78,30): run-time error CSS1030: Expected identifier, found '#search-submit'
(78,71): run-time error CSS1031: Expected selector, found ')'
(78,71): run-time error CSS1025: Expected comma or open brace, found ')'
(89,30): run-time error CSS1030: Expected identifier, found '#search-submit'
(89,71): run-time error CSS1031: Expected selector, found ')'
(89,71): run-time error CSS1025: Expected comma or open brace, found ')'
(93,30): run-time error CSS1030: Expected identifier, found '#search-submit'
(93,71): run-time error CSS1031: Expected selector, found ')'
(93,71): run-time error CSS1025: Expected comma or open brace, found ')'
(393,10): run-time error CSS1030: Expected identifier, found '#search-submit'
(393,51): run-time error CSS1031: Expected selector, found ')'
(393,51): run-time error CSS1025: Expected comma or open brace, found ')'
(400,10): run-time error CSS1030: Expected identifier, found '#search-submit'
(400,51): run-time error CSS1031: Expected selector, found ')'
(400,51): run-time error CSS1025: Expected comma or open brace, found ')'
(405,10): run-time error CSS1030: Expected identifier, found '#search-submit'
(405,51): run-time error CSS1031: Expected selector, found ')'
(405,51): run-time error CSS1025: Expected comma or open brace, found ')'
(441,14): run-time error CSS1030: Expected identifier, found '#search-submit'
(441,55): run-time error CSS1031: Expected selector, found ')'
(441,55): run-time error CSS1025: Expected comma or open brace, found ')'
 */
/*!
 * Dark Mode Switch v1.0.1 (https://github.com/coliff/dark-mode-switch)
 * Copyright 2021 C.Oliff
 * Licensed under MIT (https://github.com/coliff/dark-mode-switch/blob/main/LICENSE)
 */

[data-theme="dark"] {
    background-color: #111 !important;
    color: #c1c1c1;
}

[data-theme="dark"] .card {
    color: #343a40;
}

[data-theme="dark"] .bg-black {
  background-color: #fff !important;
}

[data-theme="dark"] .bg-dark {
  background-color: #eee !important;
}

[data-theme="dark"] .bg-light {
  background-color: #222 !important;
}

[data-theme="dark"] .bg-white {
  background-color: #000 !important;
}

[data-theme="dark"] .navbar {
    background-color: #343a40 !important;
}

[data-theme="dark"] .table {
    color: #c4c4c4;
    background-color: #2f3030;
    border-color: #5b6064;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border-top: 1px solid #5b6064;
    border-bottom: 0px;
    border-left: 1px solid #5b6064;
    border-right: 1px solid #5b6064;
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: #262626;
}

[data-theme="dark"] tr.highlight {
    background-color: #fbeb0026 !important;
}

[data-theme="dark"] .dropdown-menu {
    color: #c4c4c4;
    background-color: #343a40;
}

[data-theme="dark"] .dropdown-item {
    color: #c4c4c4 !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    color: #222;
    background-color: #414f52;
}

[data-theme="dark"] input {
    color: white !important;
    background-color: #2f3030 !important;
}

[data-theme="dark"] form:has(#search-submit[aria-busy="true"]:disabled) > .input-group > .search-query-wrap::after {
    background: linear-gradient(
        122deg,
        transparent 0%,
        rgba(255, 255, 255, 0.035) 38%,
        rgba(255, 255, 255, 0.11) 50%,
        rgba(255, 255, 255, 0.035) 62%,
        transparent 100%
    );
}

[data-theme="dark"] form:has(#search-submit[aria-busy="true"]:disabled) #query.form-control {
    box-shadow: inset 0 -2px 0 0 #5c9eff;
}

[data-theme="dark"] form:has(#search-submit[aria-busy="true"]:disabled) #query.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(92, 158, 255, 0.28), inset 0 -2px 0 0 #5c9eff;
}

[data-theme="dark"] textarea {
    color: white !important;
    background-color: #2f3030 !important;
}

[data-theme="dark"] .input-group-text {
    color: #dbdbdb !important;
    background-color: #3f454a !important;
}

[data-theme="dark"] .alert-info {
    background-color: #0d2e36;
    color: #95b2cb;
}

[data-theme="dark"] .table-success,
[data-theme="dark"] .table-success > td {
    background-color: #bdf0c9;
}

[data-theme="dark"] table th img,
[data-theme="dark"] img.disc,
[data-theme="dark"] img.web,
[data-theme="dark"] img.comment,
[data-theme="dark"] img.download,
[data-theme="dark"] img.info,
[data-theme="dark"] img.mute,
[data-theme="dark"] img.blocked {
    filter: invert(1);
}

[data-theme="dark"] .alert-danger img.mute {
    filter: none;
}

[data-theme="dark"] .table-warning,
[data-theme="dark"] .table-warning > th,
[data-theme="dark"] .table-warning > td {
    background-color: #5c584a !important;
}

[data-theme="dark"] .card {
    color: #c4c4c4;
    background-color: #343a40;
}

[data-theme="dark"] a,
[data-theme="dark"] .text-primary {
    color: #519beb !important;
}

[data-theme="dark"] .badge-pill {
    color: #fff !important;
    background-color: #117a8b;
}

[data-theme="dark"] .btn-primary {
    color: #eee !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    color: #fff !important;
}

[data-theme="dark"] .navbar a {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .alert a {
    color:#519beb !important;
}

[data-theme="dark"] .btn-secondary {
    background-color: #10254a !important;
}

[data-theme="dark"] .btn-outline-secondary {
    color: #c4c4c4 !important;
    border-color: #6c757d;
}

[data-theme="dark"] .btn-outline-secondary:hover {
    color: #fff !important;
    background-color: #6c757d;
    border-color: #6c757d;
}

[data-theme="dark"] .dropdown-divider {
    border-top: 1px solid #5b6064;
}

[data-theme="dark"] .page-link {
    background-color: #262626 !important;
}

[data-theme="dark"] .page-item.active .page-link {
    color: #fff !important;
    background-color: #081f3a !important;
}

[data-theme="dark"] .custom-control-label::before {
    background-color: #414f52;
}

[data-theme="dark"] a:hover {
    color: #c4c4c4;
}

[data-theme="dark"] .table-hover tbody tr:hover {
    color: #a4a8ad;
    background-color: rgba(0,0,0,.075);
}

[data-theme="dark"] .modal-content {
    background-color: #262626 !important;
}

[data-theme="dark"] pre {
    color: #c4c4c4;
    background-color: #2f3030;
    border: 1px solid #5b6064;
    padding: 10px;
    border-radius: 4px;
}
/* Shared */
.loginBtn {
    box-sizing: border-box;
    position: relative;
    /* width: 13em;  - apply for fixed size */
    margin: 0.2em;
    padding: 0 15px 0 46px;
    border: none;
    text-align: left;
    line-height: 34px;
    white-space: nowrap;
    border-radius: 0.2em;
    font-size: 16px;
    color: #FFF;
}
.loginBtn:before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 100%;
}
.loginBtn:focus {
    outline: none;
}
.loginBtn:active {
    box-shadow: inset 0 0 0 32px rgba(0,0,0,0.1);
}
body.waiting * {
    cursor: progress !important;
}

.field-validation-error {
    color: red;
}

.validation-summary-errors {
    color: red;
}

body.offcanvas-active {
    overflow: hidden;
}

.offcanvas-header, .display-none {
    display: none;
}

.request-vote:hover {
    text-decoration: none;
}

.request-vote {
    padding-left: .3em;
    padding-right: .3em;
    padding-bottom: .3em;
}

td span.hidden-header {
    visibility: hidden;
}

.table-success td span.hidden-header {
    visibility: visible;
    opacity: .5;
}

.badge-pill.key {
    color: #fff;
    background-color: #117a8b;
}

.navbar {
    width: 100%;
}

.hide-until-load
{
    visibility: hidden;
}

.large-table {
    content-visibility: auto;
}

.check {
    width: 11px;
    height: 11px;
    position: relative;
    left: 3px;
    top: -1px;
}

@media (max-width: 992px) {
    .offcanvas-header {
        display: block;
    }

    .navbar-collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 100%;
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: black;
        transition: visibility .2s ease-in-out, transform .2s ease-in-out;
    }

    .navbar-collapse.show {
        visibility: visible;
        transform: translateX(-100%);
        z-index: 999;
    }
}

/* Search submit while disabled (in-flight): softer than Bootstrap's default disabled opacity. */
#search-submit:disabled {
    opacity: 0.9;
    cursor: wait;
}

/* Wrapper so a sheen can sit over the field (inputs don't support ::before/::after). Mirrors .input-group > .form-control flex sizing. */
.input-group > .search-query-wrap {
    position: relative;
    display: flex;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
    align-self: stretch;
}

.input-group > .search-query-wrap > .form-control {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .search-query-wrap > .form-control:focus {
    position: relative;
    z-index: 3;
}

/* Pulse the "Search" label while in flight (split dropdown is a sibling). aria-busy: SearchControl.js */
#search-submit[aria-busy="true"]:disabled .search-submit-label {
    animation: search-submit-label-pulse 1.1s ease-in-out infinite;
}

@keyframes search-submit-label-pulse {
    0%,
    100% {
        opacity: 1;
    }

    46%,
    54% {
        opacity: 0.42;
    }
}

/* Subtle sheen over the query field while search is in flight (same :has hook as dark-mode.css).
   Light surfaces: dark translucent band. Dark theme uses a white sheen override in dark-mode.css. */
form:has(#search-submit[aria-busy="true"]:disabled) > .input-group > .search-query-wrap {
    overflow: hidden;
    isolation: isolate;
    /* Whole wrap above append buttons (matches focused-field stacking); sheen stays over input via inner z-index. */
    z-index: 3;
}

form:has(#search-submit[aria-busy="true"]:disabled) > .input-group > .search-query-wrap > .form-control {
    position: relative;
    z-index: 0;
}

form:has(#search-submit[aria-busy="true"]:disabled) > .input-group > .search-query-wrap::after {
    content: "";
    position: absolute;
    top: -10%;
    left: 0;
    height: 120%;
    width: 50%;
    z-index: 1;
    background: linear-gradient(
        122deg,
        transparent 0%,
        rgba(0, 0, 0, 0.045) 38%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0.045) 62%,
        transparent 100%
    );
    transform: translateX(-125%) skewX(-14deg);
    animation: search-query-wrap-shimmer 2.8s ease-in-out 0.4s infinite;
    pointer-events: none;
}

@keyframes search-query-wrap-shimmer {
    0% {
        transform: translateX(-125%) skewX(-14deg);
    }

    100% {
        transform: translateX(215%) skewX(-14deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #search-submit[aria-busy="true"]:disabled .search-submit-label {
        animation: none;
    }

    form:has(#search-submit[aria-busy="true"]:disabled) > .input-group > .search-query-wrap::after {
        animation: none;
        display: none;
    }
}

/* Admin Search Words — list contrast in light and dark (list-group is not covered globally in dark-mode.css) */
body:not([data-theme="dark"]) .search-words-page .card.search-words-panel {
    background-color: #fff;
    color: #212529;
}

body:not([data-theme="dark"]) .search-words-page .search-words-list {
    background-color: #fff;
    border-color: #dee2e6 !important;
}

body:not([data-theme="dark"]) .search-words-page .search-words-list .list-group-item {
    color: #212529;
    background-color: #fff;
    border-color: #dee2e6;
}

body:not([data-theme="dark"]) .search-words-page .search-words-list .list-group-item:nth-child(even) {
    background-color: #f8f9fa;
}

body:not([data-theme="dark"]) .search-words-page .search-words-text {
    color: #212529;
}

[data-theme="dark"] .search-words-page .card.search-words-panel {
    background-color: #343a40;
    color: #e9ecef;
    border-color: #5b6064;
}

[data-theme="dark"] .search-words-page .search-words-list {
    background-color: #2f3030;
    border-color: #5b6064 !important;
}

[data-theme="dark"] .search-words-page .search-words-list .list-group-item {
    color: #e9ecef;
    background-color: #343a40;
    border-color: #5b6064;
}

[data-theme="dark"] .search-words-page .search-words-list .list-group-item:nth-child(even) {
    background-color: #2f3030;
}

[data-theme="dark"] .search-words-page .search-words-text {
    color: #e9ecef;
}

[data-theme="dark"] .search-words-page .text-muted {
    color: #a0aec0 !important;
}

/* Filter hide: must beat Bootstrap .d-flex (!important) on the same row */
.search-words-page .search-words-list .search-words-item.search-words-filter-hidden {
    display: none !important;
}

.search-words-page .search-words-no-matches.search-words-filter-hidden {
    display: none !important;
}
