html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html,
body {
    font-size: 9px;
    margin: 0;
    padding: 0;
    color: #4c4c4c;
}

body {
    display: table;
    width: 100%;
    /* See also max-width for lc/rc and email templates */
    min-width: 750px;
}

body, input, textarea, button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a,
.clickable * {
    text-decoration: none;
}

a:hover,
button:hover,
.clickable:hover * {
    /* PATTERN: Clickable */
    opacity: 0.8;
    cursor: pointer;
    text-decoration: underline;
}

a img {
    border: none;
}

pre {
    font-weight: normal;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;
}

ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    clear: both;
    width: 100%;
}

dl,
dt, dd,
form,
li,
table,
tr, td,
ol,
ul {
    padding: 0;
    margin: 0;
}

input::-ms-clear {
    display: none;
}

.fixed-width {
    font-family: Courier, monospace;
}

.button > input {
    margin: 0 5px;
    padding: 0 15px;
    border: none;
    width: auto;
    border-radius: 2px;
    text-align: center;
    line-height: 28px;
    cursor: pointer;
}

.button > input.cancel {
    opacity: 0.6;
}

.button:hover > input {
    opacity: 0.8;
}

.formbuttons {
    padding: 10px;
    clear: both;
    display: flex;
    justify-content: center;
}

.center {
    text-align: center;
}

.ui-tooltip {
    background: #f7f7f7 !important;
    border-radius: 2px !important;
    font-size: 11px !important;
    color: #4C4C4C !important;
    padding: 4px !important;
    z-index: 20100 !important;
    max-width: calc(30%) !important;
    display: inline-block;
    box-shadow: none !important;
}

.ui-tooltip-content {
    /* PATTERN: Break and wrap content */
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;  /* Legacy alias for overflow-wrap */
    /* word-break: break-word; This is too aggressive as a default */
    text-overflow: ellipsis;
}

.ui-tooltip .ui-tooltip-content {
    background-color: #fafafa;
    padding: 2px;
}

.warning-text {
    background-color:  #FF4C4C;
    color: #FFFFFF;
    border: #FF4C4C 2px solid;
    padding: 1px;
}

.page-content {
    margin: 10px 15px;
    padding-bottom: 200px;
    min-height: calc(100vh - (64px + 5px + 5px) - (16px + 10px + 10px)); /* 100vh - (AbstractHeaderPanel height) - (page-content height) - (FooterPanel height) */
    overflow: hidden;
}

/* White area start*/

.top-left-corner {
    border-top-left-radius: 2px;
}

.three-corners {
    background-color: white;
    box-shadow: 0 0 2px 0 #888888;
    font-size: 12px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    border-top-right-radius: 2px;
}

/* White area end */

.no-display {
    display: none !important;
    /* to override .bar li > *, .bar dt > *, .bar dd > * */
}

dd > script {
    display: none !important;
}

.fu {
    background: #f4f4f5;
    margin: 10px;
    padding: 15px;
    border-radius: 2px;
    display: block;
}

.fu form table {
    width: 100%;
}

.fu textarea {
    width: 100%;
}

label.unit {
    float: right;
}

.connector {
    font-size: 12px;
    width: 130px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    width: 100%;
    color: black;
    cursor: pointer;
    border: 1px solid #a1a1a1;
    border-radius: 2px;
    background: url("../images/select_arrow.png") no-repeat;
    background-position: right 2px top 2px;
    color: rgb(68, 68, 68);
    font-size: 12px;
    font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Helvetica,Arial,sans-serif;
    background-color: white;
    padding: 0px 0px 0px 10px;
}

select[multiple] {
    width: 100%;
    height: 200px;
}
