._dialogbox {
  background-color: rgba(0,0,0,0.25);
  z-index: 1000;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  box-sizing: border-box;
}

._dialogbox > div {
  position:relative;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 300px;
  max-width: 300px;
  max-height: 200px;
  box-sizing: border-box;
  box-shadow: #737373 4px 4px 6px 2px;
  border-radius: 2px;
}

._dialogbox .title {
  background: #3d97cf;
  border-radius: 2px 2px 0 0;
  color: white;
  font-size: 10pt;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #3d97cf;
  border-bottom: 0;
  line-height: 10pt;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: bold;
}

._dialogbox.warning .title {
    background-color: #ff6b2b;
    border-color: #ff6b2b;
}

._dialogbox .body {
  background-color: rgb(236, 236, 234);
  border-radius: 0 0 2px 2px;
  box-sizing: border-box;
  padding:10px;
  border: 1px solid #3d97cf;
  border-top: 0;
}

._dialogbox.warning .body {
    border-color: #ff6b2b;
}

.flat {
    background-image: none;
    box-sizing: border-box;
    background-color: #d6e9f6;
    padding: 7px 10px;
    min-width: 72px;
    min-height: 34px;
    box-shadow: none;
    border: 1px solid #d6e9f6;
    font-size: 10pt;
    text-shadow: none;
    color: #1a4159;
    font-weight: 600;
    transition: .4s;
    border-radius: 2px;
    background-size: 0% 100%;
    cursor: pointer;
    opacity: 1;
    transition: 0.2s ease-in-out;
}

.flat.small {
    padding: 4px 7px;
    min-width: 48px;
    min-height: 24px;
    font-size: 10pt;
    vertical-align: middle;
    line-height: 10pt;
    margin: 2px;
}


.flat:disabled {
    opacity: 0;
    cursor: initial;
}
  
.flat:hover:not([disabled]):not([active]):not(.btn_primary) {
    box-shadow: 0px 4px 2px #a9a9a9;
    background-color: #d6e9f6;
    color: #3d97cf;
}
  
.flat:active, .flat:active:hover, {
    background-color: #91c5e6;
    color: #fff;
    transition: 0.2s linear;
}
  
.btn_primary {
    background-color: #8bc52d;
    font-weight: bold;
    color: white;
    transition: 0.2s linear;
    border-color: #8bc52d;
}

.btn_primary.warning {
    background-color: #ff6b2b;
    border-color: #ff6b2b;
}
.btn_primary.critical {
    background-color: #e03136;
    border-color: #e03136;
}

.btn_primary:not([readonly]):hover {
    background-color: #b7db7c;
    border-color: #b7db7c;
    transition: 0.2s linear;
    box-shadow: 0px 4px 2px #a9a9a9;
    color: white;
}

.btn_primary.warning:not([readonly]):hover {
    background-color: #ff976b;
    border-color:     #ff976b;
}

.btn_primary.critical:not([readonly]):hover {
    background-color: #e06457;
    border-color:     #e06457;
}

.btn_primary.btn_info {
    background-color: #3d97cf;
    font-weight: bold;
    color: white;
    transition: 0.2s linear;
    border-color: #3d97cf;
}
.btn_primary.btn_info:not([readonly]):hover {
    background-color: #60ABDC;
    border-color: #60ABDC;
    transition: 0.2s linear;
    box-shadow: 0px 4px 2px #a9a9a9;
    color: white;
}

.flat:not([readonly]):active {/*, .flat:not([readonly]):focus {*/
    box-shadow: 4px 6px 2px #a9a9a9 !important;
    transition: .1s;
}