/* =========================================================
   VIEW ISSUE DETAILS
   ========================================================= */

/* Main issue table */
table.table.table-bordered.table-condensed {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border) !important;
}

/* ---------------------------------------------------------
   HEADER ROW
   ID / Project / Category / View Status / Dates
   --------------------------------------------------------- */

tr.bug-header > th {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text-bright) !important;
    border-color: var(--mantis-border) !important;
}

tr.bug-header-data > td {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border) !important;
}

/* ---------------------------------------------------------
   LABEL / CATEGORY CELLS
   --------------------------------------------------------- */

table.table.table-bordered.table-condensed th.category {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text-bright) !important;
    border-color: var(--mantis-border) !important;
    font-weight: 600;
}

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

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

/* ---------------------------------------------------------
   SPACER ROWS
   --------------------------------------------------------- */

table.table.table-bordered.table-condensed tr.spacer td {
    background: #121212 !important;
    border-color: #121212 !important;
    height: 10px;
}

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

table.table.table-bordered.table-condensed td a {
    color: #5daeff !important;
}

table.table.table-bordered.table-condensed td a:hover {
    color: #8ec8ff !important;
}

/* ---------------------------------------------------------
   ATTACH TAGS FORM
   --------------------------------------------------------- */

td.bug-attach-tags,
td.bug-attach-tags form,
td.bug-attach-tags label {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
}

td.bug-attach-tags input[type="text"],
td.bug-attach-tags select {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text) !important;
    border: 1px solid var(--mantis-border-light) !important;
}

/* ---------------------------------------------------------
   FOOTER / ACTION BUTTON ROW
   --------------------------------------------------------- */

table.table.table-bordered.table-condensed tfoot,
table.table.table-bordered.table-condensed tfoot tr,
table.table.table-bordered.table-condensed tfoot td {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border) !important;
}

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

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

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

/* ---------------------------------------------------------
   SELECTS IN ACTION BAR
   --------------------------------------------------------- */

table.table.table-bordered.table-condensed tfoot select {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text) !important;
    border: 1px solid var(--mantis-border-light) !important;
}

/* ---------------------------------------------------------
   STATUS ICON
   --------------------------------------------------------- */

.fa-status-box {
    border-radius: 4px;
}

/* ---------------------------------------------------------
   WIDGETS BELOW ISSUE DETAILS
   Relationships / Monitoring / Activities
   --------------------------------------------------------- */

.widget-box {
    background: var(--mantis-surface) !important;
    border-color: var(--mantis-border) !important;
}

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

.widget-body,
.widget-main {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
}

/* Widget table rows */
.widget-body table,
.widget-body tbody,
.widget-body tr,
.widget-body td {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border) !important;
}

/* Widget category cells */
.widget-body th.category,
.widget-body td.category {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text-bright) !important;
    border-color: var(--mantis-border) !important;
}

/* Inputs/selects inside widgets */
.widget-body input,
.widget-body select,
.widget-main input,
.widget-main select {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border-light) !important;
}

/* =========================================================
   VIEW ISSUE - TOOLBOX / ACTION BARS
   ========================================================= */

/* Top action bar:
   Send a Reminder / Related Changesets / Jump to Notes / History
*/
.widget-toolbox {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
    border-color: var(--mantis-border) !important;
}

/* Remove any light background from nested button groups */
.widget-toolbox .btn-group {
    background: transparent !important;
}

/* Buttons inside toolboxes */
.widget-toolbox .btn-primary,
.widget-toolbox .btn-white {
    background: var(--mantis-primary) !important;
    border-color: var(--mantis-primary) !important;
    color: #ffffff !important;
}

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


/* =========================================================
   VIEW ISSUE - RELATIONSHIPS
   ========================================================= */

form[action="bug_relationship_add.php"] {
    background: var(--mantis-surface) !important;
    color: var(--mantis-text) !important;
}

/* Current issue label */
form[action="bug_relationship_add.php"] label {
    background: transparent !important;
    color: var(--mantis-text) !important;
}

/* Relationship type */
form[action="bug_relationship_add.php"] select {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text) !important;
    border: 1px solid var(--mantis-border-light) !important;
}

/* Destination issue ID */
form[action="bug_relationship_add.php"] input[type="text"] {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text) !important;
    border: 1px solid var(--mantis-border-light) !important;
}

/* Add button */
form[action="bug_relationship_add.php"] input[type="submit"] {
    background: var(--mantis-primary) !important;
    color: #ffffff !important;
    border-color: var(--mantis-primary) !important;
}

form[action="bug_relationship_add.php"] input[type="submit"]:hover {
    background: var(--mantis-primary-hover) !important;
    border-color: var(--mantis-primary-hover) !important;
}


/* =========================================================
   VIEW ISSUE - ADD NOTE FOOTER
   ========================================================= */

/* Add Note toolbox */
form[action*="bugnote_add"] .widget-toolbox,
form[action*="bugnote"] .widget-toolbox {
    background: var(--mantis-surface) !important;
    border-top: 1px solid var(--mantis-border) !important;
    color: var(--mantis-text) !important;
}

/* Add Note button */
form[action*="bugnote_add"] .widget-toolbox input[type="submit"],
form[action*="bugnote"] .widget-toolbox input[type="submit"] {
    background: var(--mantis-primary) !important;
    border-color: var(--mantis-primary) !important;
    color: #ffffff !important;
}

form[action*="bugnote_add"] .widget-toolbox input[type="submit"]:hover,
form[action*="bugnote"] .widget-toolbox input[type="submit"]:hover {
    background: var(--mantis-primary-hover) !important;
    border-color: var(--mantis-primary-hover) !important;
}

/* =========================================================
   VIEW ISSUES TABLE HEADER
   ========================================================= */

.table thead th {
    background: var(--mantis-surface-alt) !important;
    color: var(--mantis-text-bright) !important;
    border-color: var(--mantis-border) !important;
    font-weight: 600;
}

.table thead th a {
    color: var(--mantis-text-bright) !important;
}

.table thead th a:hover {
    color: var(--mantis-primary) !important;
}

.table thead th .fa,
.table thead th .ace-icon {
    color: var(--mantis-primary) !important;
}
