
.dlg-frame {
     box-shadow: 2px 2px 5px light-dark(rgba(0,0,0,0.7), rgb(255, 255, 255,.4));
     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: var(--pri-background);
    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: var(--pri-background);
}

.dlg-header     {
    padding: 0px 4px;
    cursor:default;
    text-align:center;
    background-color: var(--pri-background);
    color: var(--sec-label);
    font-size: 14px;
    line-height: 40px;
    height: 40px;
    overflow:hidden;
}
.dlg-drag-header {
    padding: 0px 4px;
    cursor: default;
    background: none;
    height: 40px;
    position: absolute;
    width: 100%;
    z-index: 1;
    cursor: move;
}
.dlg-content .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-content .dlg-closer:hover   {
    color: var(--theme-pri);
    font-weight: bold;
}

.f4dialogcontent .message.wide-message .type-to-confirm-block {
    overflow: visible;
    padding: 0 40px;
    margin-top: 20px;
}
.dlg-content .type-to-confirm-block .hint {
    font-size: 0.86rem;
    color: var(--danger-hover);
    text-align: center;
}
.dlg-content .type-to-confirm {
    width: 100%;
}

.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: 1.3;
    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: var(--sec-background);
    width: 100%;
    display: flex;
    flex-direction: column;
}
.f4dialogcontent .message.wide-message > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    display: block;
    width: 100%; 
}
.f4dialogcontent .buttons {
    height:70px;
    border-top:0.5px
    solid #eee;
    width: 100%;
    justify-content:
    flex-end; gap:
    18px;
    padding: 0 18px;
}
.f4dialogcontent .buttons button:not(.skinny) { width: 140px; }
.f4dialogcontent .buttons button.danger { background-color: var(--danger); font-weight: 500; color: var(--pri-background); }
.f4dialogcontent .buttons button.danger:hover { background-color: var(--danger-hover); }

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