body {
    font-family: sans-serif;
    overflow-x: hidden;
    background-color: var(--kpxc-background-color) !important;
    color: var(--kpxc-text-color) !important;
    font-size: 14px !important;
    padding: 8px;
    min-width: 440px;
    max-width: 460px;
    width: auto;
}

code {
    font-size: 14px !important;
}

.container {
    min-width: 440px;
    max-width: 460px;
    width: auto;
}

.loader {
    animation: spin 2s linear infinite;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #28a745;
    float: left;
    height: 1.4em;
    margin-right: 1em;
    width: 1.4em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.list-group {
    font-size: .9em !important;
    margin-bottom: 1rem !important;
}

.list-group-item {
    padding: 5px 10px !important;
}

.list-group-item+.list-group-item:first-child {
    border-top-width: 1px !important;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.list-group-item:hover {
    cursor: pointer
}

.settings {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    font-size: 90%;
    text-align: left;
}

.settings label {
    display: block;
}

.settings label input {
    vertical-align: middle;
}

.settings .description {
    margin-top: 3px;
    font-size: 80%;
    color: #787878;
}

.small {
    margin-top: 3px;
    margin-left: 12px;
    font-size: 80%;
    color: #787878;
}

#list {
    padding-left: 0px;
}

#child {
    border-top: 0px;
}

#update-available {
    margin-top: 10px;
    text-align: left;
    display: none;
}

#update-available a:hover,
#update-available a:active {
    text-decoration: underline;
}

#lock-database-button {
    float: right;
    width: 2.5rem;
}

#login-filter {
	outline: none;
	border-radius: 4px;
	border: 1px solid #ccc;
	margin-bottom: 5px;
	padding: 2px 10px;
	width: 100%;
}

@media (prefers-color-scheme: dark), (prefers-color-scheme: light) {
    body {
        background: var(--kpxc-background-color) !important;
        color: var(--kpxc-text-color) !important;
    }

    input, input[type="checkbox"] {
        background-color: var(--kpxc-input-background-color) !important;
        border: var(--kpxc-input-border);
        border-color: var(--kpxc-input-border-color);
    }

    .list-group-item {
        background-color: var(--kpxc-input-background-color) !important;
        color: var(--kpxc-text-color) !important;
    }

    .list-group-item:hover {
        background-color: var(--kpxc-table-hover-color) !important;
    }

    span.bg-success {
        background-color: var(--kpxc-table-hover-color) !important;
        color: var(--kpxc-text-color) !important;
    }

    #login-filter {
        color: var(--kpxc-text-color) !important;
    }
}
