.dialog-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    z-index: 9999;
}

.dialog-overlay.hidden {
    display: none;
}

.dialog-window {
    width: 420px;
    background: #d4d0c8;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    box-shadow:
        inset -1px -1px 0 #808080,
        inset 1px 1px 0 #dfdfdf;
}

.dialog-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 2px 2px 2px 4px;
    background: linear-gradient(to right, #0a246a, #a6caf0);
    color: #ffffff;
    user-select: none;
}

.dialog-title-text {
    font-weight: bold;
    font-size: 11px;
    padding-left: 4px;
}

.dialog-close-btn {
    min-width: 22px;
    height: 22px;
    padding: 0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    background: #d4d0c8;
    color: #000000;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    box-shadow:
        inset -1px -1px 0 #808080,
        inset 1px 1px 0 #dfdfdf;
}

.dialog-close-btn:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow:
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #dfdfdf;
}

.dialog-body {
    padding: 16px 14px 10px 14px;
}

.dialog-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.dialog-row label {
    font-size: 11px;
    color: #000000;
}

.dialog-row input,
.dialog-row select {
    width: 100%;
    height: 26px;
    padding: 3px 6px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    background: #ffffff;
    color: #000000;
    outline: none;
    font: inherit;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 14px 14px 14px;
}

.dialog-footer button {
    min-width: 88px;
    height: 26px;
    padding: 0 10px;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    background: #d4d0c8;
    color: #000000;
    box-shadow:
        inset -1px -1px 0 #808080,
        inset 1px 1px 0 #dfdfdf;
}

.dialog-footer button:active {
    border-top: 1px solid #404040;
    border-left: 1px solid #404040;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow:
        inset 1px 1px 0 #808080,
        inset -1px -1px 0 #dfdfdf;
}