.trumbowyg-modal-box .trumbowyg-modal-button,
.btn {
    height: var(--button-height);
    min-height: 36px;
    border-radius: 0.375rem;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0 16px;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    white-space: nowrap;
    max-width: max-content;
}

.trumbowyg-modal-box .trumbowyg-modal-button:before,
.btn:before {
    display: none;
}

.btn:disabled {
    opacity: 0.5;
    filter: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-sm {
    height: 32px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.trumbowyg-modal-submit,
.btn.primary {
    background-color: #18181b;
    border-color: #18181b;
    color: #fafafa;
}

.btn.primary:hover {
    background-color: #27272a;
    border-color: #27272a;
    color: #fafafa;
}

html.dark .btn.primary,
html.dark .trumbowyg-modal-submit {
    background-color: #fafafa;
    border-color: #fafafa;
    color: #09090b;
}

html.dark .btn.primary:hover {
    background-color: #e4e4e7;
    border-color: #e4e4e7;
    color: #09090b;
}

.btn.secondary {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    color: #18181b;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn.secondary:hover {
    background-color: #f4f4f5;
    color: #09090b;
}

html.dark .btn.secondary {
    background-color: #09090b;
    border-color: #27272a;
    color: #fafafa;
}

html.dark .btn.secondary:hover {
    background-color: #27272a;
    color: #fafafa;
}

.trumbowyg-modal-reset {
    color: #18181b;
}

.btn.success {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.btn.success:hover {
    background-color: #15803d;
    border-color: #15803d;
}

.btn.warning {
    background-color: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.btn.warning:hover {
    background-color: #92400e;
    border-color: #92400e;
}

.btn.danger {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.btn.danger:hover {
    background-color: #991b1b;
    border-color: #991b1b;
}

.btn.badge {
    height: 22px;
    min-height: 22px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0.375rem;
    box-shadow: none;
    line-height: 1;
}

.btn.badge.secondary {
    background-color: #f4f4f5;
    border-color: #e4e4e7;
    color: #18181b;
}

.btn.badge.primary {
    background-color: #18181b;
    border-color: #18181b;
    color: #fafafa;
}

.btn.badge.success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #15803d;
}

.btn.badge.warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.btn.badge.danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

html.dark .btn.badge {
    color: var(--font-color);
}

html.dark .btn.badge.secondary {
    background-color: #27272a;
    border-color: #3f3f46;
    color: #fafafa;
}

html.dark .btn.badge.primary {
    background-color: #fafafa;
    border-color: #fafafa;
    color: #09090b;
}

html.dark .btn.badge.success,
html.dark .btn.badge.warning,
html.dark .btn.badge.danger {
    background-color: #27272a;
}

.btn-list {
    border-radius: 0.5rem;
    border: var(--global-border);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
    padding: 4px;
    gap: 2px;
    min-width: 200px;
}

.btn-list a,
.btn-list button:not(.clear-input) {
    border-radius: 0.375rem;
    font-size: 14px;
    font-weight: 400;
}

.show-password {
    border-radius: 0.375rem;
}

.swal2-confirm,
.swal2-deny,
.swal2-cancel {
    border-radius: 0.375rem;
    font-weight: 500;
}

.kfw-filter-indicators button {
    background: #f4f4f5;
    color: #18181b;
    border: 1px solid #e4e4e7;
    border-radius: 0.375rem;
    font-size: 13px;
    font-weight: 500;
}

html.dark .kfw-filter-indicators button {
    background: #27272a;
    color: #fafafa;
}

.btn.kfw-has-badge {
    position: relative;
    overflow: visible;
}

.btn.kfw-has-badge:before {
    border-radius: inherit;
}

.btn > span.kfw-btn-badge {
    position: absolute;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: var(--danger-color);
    color: #ffffff;
    font-size: 11px;
    font-weight: 100;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    border: 2px solid var(--background-color);
    box-sizing: border-box;
    white-space: nowrap;
}

.btn > span.kfw-btn-badge-prefix {
    top: -10px;
}

.btn > span.kfw-btn-badge-suffix {
    bottom: -10px;
}
