
.dlg-frame { box-shadow: 2px 2px 5px rgba(0,0,0,0.7); border: none; margin: 0; }

.dlg-frame:after {
    /* force some space below a dialog if it happens to reach the end of the page */
    content: "";
    height: 1px;
    width: 1px;
    position: absolute;
    bottom: -50px;
}

:root {
  --dlg-ptr-radius: 5px;
  --dlg-ptr-top: calc(100% - var(--dlg-ptr-radius));
  --dlg-ptr-left: 30px;
}

.dlg-ptr:before {
    content: "";
    position: absolute;
    top: var(--dlg-ptr-top);
    left: var(--dlg-ptr-left);
    height: calc(var(--dlg-ptr-radius) * 2);
    width: calc(var(--dlg-ptr-radius) * 2);
    background: white;
    box-sizing: border-box;
    transform: rotate(45deg);
    border-bottom: inherit;
    border-right: inherit;
    box-shadow: inherit;
    z-index: -1;
}

.dlg-content    {
    overflow:hidden;
    background-color:white;
}

.dlg-header     {
    padding: 0px 4px;
    cursor:default;
    text-align:center;
    background-color: #fff;
    color:#555;
    font-size:14px;
    line-height:40px;
    height:40px;
    overflow:hidden;
}
.dlg-header div.dlg-closer     {
    height: 40px;
    position: absolute;
    width: 40px;
    top: 0px;
    right: 0px ;
    text-align: center;
    line-height: 40px;
    font-size: 14px;
    cursor: pointer;
    opacity: 90%;
}

.dlg-header .dlg-closer:hover   {
    color: hsl(var(--theme-h), var(--theme-s), var(--theme-l));
    font-weight: bold;
}

.dlg-resizer    {
    height:14px;
    width:14px;
    background:transparent url(resizer.png) no-repeat scroll 0 0;
}

.click_anywhere_note { color:#999; font-size:10px; position:absolute; text-align:center; bottom:12px; left:0px; right:0px; }

.unfocused-text { color:#aaa; }

.f4dialogcontent { flex-direction: column;  }
.f4dialogcontent, .f4dialogcontent > div {
    display:flex;
    align-items:center;
    justify-content: space-around;
}
.f4dialogcontent .tip {
    font-size: 12px;
    line-height: 20px;
    padding: 8px 8px;
    flex: 1;
    min-height: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.f4dialogcontent .message {
    font-size: 16px;
    line-height: 22px;
    padding: 20px 60px;
    flex:1;
    min-height:160px;
    background-color: #fafafa;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.f4dialogcontent .buttons {
    height:70px;
    border-top:0.5px
    solid #eee;
    width: 100%;
    justify-content:
    flex-end; gap:
    18px;
    padding: 0 18px;
}
.f4dialogcontent .buttons button { width: 140px; }
.f4dialogcontent .buttons button.danger { background-color: #e64040; font-weight: 500; color: white; }
.f4dialogcontent .buttons button.danger:hover { background-color: #a63030; }

/*********date_picker dialogs****************************************/
#date_picker_dialog .monthview:focus         { outline:none; }
