/* color variables (e.g. for the spam info grid) */
:root {
    --pmg-spam-high-neg: #acd1ec;
    --pmg-spam-high-pos: #e8b0b2;
    --pmg-spam-mid-neg: #d7e9f6;
    --pmg-spam-mid-pos: #f3d6d7;
    --pmg-spam-low-neg: #eef6fb;
    --pmg-spam-low-pos: #faeff0;
}

/* overwrite to use full black for enabled buttons */
.x-btn-inner-default-toolbar-small {
    font:
        300 12px / 16px helvetica,
        arial,
        verdana,
        sans-serif;
    color: #000;
    padding: 0 5px;
    max-width: 100%;
}

/* add missing class for context menu header */
.x-menu-header {
    font:
        400 13px / 20px "Open Sans",
        "Helvetica Neue",
        helvetica,
        arial,
        verdana,
        sans-serif;
    color: #fff;
    padding: 4px;
    background-color: #3892d4;
}

/* make the upper window end visible */
.x-css-shadow {
    box-shadow: rgb(136, 136, 136) 0px -1px 15px !important;
}

/* reduce tree space */
.x-grid-cell-inner-treecolumn {
    /* vertical padding */
    padding: 4px 0px 3px 0px;
}

/* horizontal distance between parent and child leaf */
.x-tree-elbow-img {
    width: 14px;
}

/* adjust horizontal position of menu icons */
.x-menu-item-icon-default {
    top: 5px;
    left: 3px;
    font-size: 14px;
}

/* this gives a better placement for the font-awesome icons */
.x-btn-icon-el-default-toolbar-small {
    height: 14px;
}

/* this icon looks weird in sizes not n*14px */
.x-btn-icon-el-default-toolbar-small.fa-ellipsis-v {
    font-size: 14px;
}

.x-btn-icon-el-default-small,
.pmx-icon-size {
    height: 14px;
    font-size: 14px;
}

.txt-shadow-hover:hover:before,
.txt-shadow-hover:hover:after {
    text-shadow: 1px 1px 1px #aaa;
}

.txt-monospace {
    font-family: Consolas, "Roboto Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono",
        "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}

/* icons for tree/snapshots/menus/etc.. */

/* overwrite folder icons of theme */
.x-tree-icon-parent,
.x-tree-icon-parent-expanded {
    background: none;
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.25em;
    line-height: 1.6em;
    color: #555;
    margin-right: 5px;
}

.x-tree-icon-parent:not(.x-tree-icon-custom):before {
    content: "\f114";
}

.x-tree-icon-parent-expanded:not(.x-tree-icon-custom):before {
    content: "\f115";
}

/* displayfield minheight is wrong */
.x-form-display-field-default {
    min-height: 20px;
}

.x-button-reset:before {
    font-size: 16px;
}

/* for resetcolumnsbutton */
.x-button-reset:after {
    content: "\f0e7 ";
    position: relative;
    text-shadow: 0 0 2px #fff;
    left: -3px;
    top: 2px;
}

.proxmox-inline-button .x-btn-inner {
    color: black;
}

/* for auto layout */
div.inline-block {
    display: inline-block;
    vertical-align: top;
}

.pointer {
    cursor: pointer;
}

.x-grid-filters-filtered-column {
    font-style: italic;
    font-weight: bold;
}

/* mark disabled grid entries */
table:not(.x-grid-item-selected) tr.x-grid-row.disabled {
    color: #cfcfcf;
}

/* de-emphasize quarantine mails marked as seen, unless they are selected */
table:not(.x-grid-item-selected) tr.x-grid-row.pmg-mail-seen {
    opacity: 0.6;
}

/* fix action column icons */
.x-action-col-icon {
    font-size: 14px;
}

.x-action-col-icon:before {
    color: #555;
}

.x-treelist-item-icon {
    color: #000;
}

.x-treelist-pve-nav {
    background-color: #f5f5f5;
    border-right: 1px solid #cfcfcf;
}

.x-treelist-row-over > * > .x-treelist-item-icon,
.x-treelist-row-over > * > .x-treelist-item-text {
    color: #000;
}

.x-treelist-row {
    padding: 4px 10px 4px 6px;
}

/* chrome 56 fix */
.x-webkit .x-form-text {
    height: 100% !important;
}

.x-webkit :not(.x-form-textarea-body) > .x-form-trigger-wrap {
    height: initial;
}

tr.x-grid-row-summary td.x-grid-cell {
    border-top: 1px solid black;
    font-weight: bold;
}

p.logs {
    white-space: nowrap;
    font-family: monospace;
    overflow: auto;
    border: 1px solid #cfcfcf;
    margin: 5px;
    padding: 5px;
}

tr.quarantine {
    background-color: #ffe7c2;
}

tr.blocked {
    background-color: #ffd1c2;
}

tr.bounced {
    background-color: #fff4c2;
}

.green {
    color: #21bf4b;
}

.gray {
    color: #cfcfcf;
}

.red {
    color: #f00;
}

.yellow {
    color: #dd0;
}

.bold {
    font-weight: bold;
}

div.left {
    float: left;
}

div.right {
    float: right;
}

td.right {
    text-align: right;
}

td.center {
    text-align: center;
}

td.left {
    text-align: left;
}

table.dash {
    margin: auto;
    width: 90%;
}

table.dash h2 {
    margin: 4px 0px;
}

table.dash td.half {
    width: 50%;
}

a.download {
    color: inherit;
    text-decoration: none;
}

.pmx-rule-tree .x-tree-icon,
.pmx-rule-tree .x-tree-elbow,
.pmx-rule-tree .x-tree-elbow-end {
    display: none;
    width: 0px;
}

.pmx-type-row td {
    padding: 3px;
}

/* As both background and foreground colors are set this works OK for light and dark mode */
kbd {
    background-color: #eff3fb;
    color: #222;
    border: 1px solid #b4b4b4;
    border-radius: 1px;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}
