/* =========================================================
   CHANGE LOG
   ========================================================= */

/* ---------------------------------------------------------
   MAIN TABLES
   --------------------------------------------------------- */

.changelog table,
.changelog .table,
table.table.table-striped,
table.table.table-bordered {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border) !important;
}

/* ---------------------------------------------------------
   VERSION HEADER
   --------------------------------------------------------- */

.changelog .widget-header,
.changelog h3,
.changelog h4 {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text-bright) !important;
}

/* ---------------------------------------------------------
   TABLE HEADERS
   --------------------------------------------------------- */

.changelog th,
.changelog th.category {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text-bright) !important;
    border-color: var(--mantis-border) !important;
}

/* ---------------------------------------------------------
   NORMAL CELLS
   --------------------------------------------------------- */

.changelog td {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border) !important;
}

/* ---------------------------------------------------------
   ALTERNATE ROWS
   --------------------------------------------------------- */

.changelog tr:nth-child(even) td {
    background: #232323 !important;
}

/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */

.changelog a {
    color: #5daeff !important;
}

.changelog a:hover {
    color: #8ec8ff !important;
}

/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.changelog .btn-primary,
.changelog .btn-white {
    background: var(--mantis-primary) !important;
    border-color: var(--mantis-primary) !important;
    color: #ffffff !important;
}

.changelog .btn-primary:hover,
.changelog .btn-white:hover {
    background: var(--mantis-primary-hover) !important;
}

/* ---------------------------------------------------------
   TOOLBOX
   --------------------------------------------------------- */

.changelog .widget-toolbox {
    background: var(--mantis-surface) !important;
    border-top: 1px solid var(--mantis-border) !important;
}

/* ---------------------------------------------------------
   VERSION SEPARATOR
   --------------------------------------------------------- */

.changelog hr {
    border-color: var(--mantis-border) !important;
}

/* =========================================================
   CHANGE LOG
   ========================================================= */

/* Release date row */
.changelog .release-info,
.changelog .release-date {
    color: var(--mantis-text-secondary) !important;
}

/* Version badge buttons */
.changelog .btn-sm {
    border-radius: 6px !important;
}

/* Issue rows */
.changelog table tr:hover td {
    background: var(--mantis-surface-hover) !important;
}

/* Issue type labels */
.changelog .label,
.changelog .badge {
    background: #4b5563 !important;
    color: #ffffff !important;
}

/* Version widgets */
.changelog .widget-box {
    margin-bottom: 18px;
}

/* =========================================================
   CHANGELOG ISSUE TYPE LABELS
   ========================================================= */

.label.label-light.issue-type-bugfix,
.label.label-light.issue-type-enhancement,
.label.label-light.issue-type-feature,
.label.label-light.issue-type-security,
.label.label-light.issue-type-documentation,
.label.label-light.issue-type-default {
    color: #ffffff !important;
    border: none !important;
    text-shadow: none !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

/* Bug Fixes */
.label.label-light.issue-type-bugfix {
    background-color: #d32f2f !important;
}

/* System Enhancements */
.label.label-light.issue-type-enhancement {
    background-color: #1976d2 !important;
}

/* New Features */
.label.label-light.issue-type-feature {
    background-color: #2e7d32 !important;
}

/* Security */
.label.label-light.issue-type-security {
    background-color: #ef6c00 !important;
}

/* Documentation */
.label.label-light.issue-type-documentation {
    background-color: #7b1fa2 !important;
}

/* Anything else */
.label.label-light.issue-type-default {
    background-color: #4b5563 !important;
}
