.haynes-dialog {
    display: none;
    position: fixed;
    top: 60px;
    left: 60px;

    width: 95%;
    height: 95%;

    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);

    background: white;
    /*border: 1px solid #aaa;*/
    border-radius: 8px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);

    z-index: 99999;
    overflow: hidden;

    flex-direction: column;
    box-sizing: border-box;
}

.haynes-dialog-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 5px 15px;
    background: rgba(27, 31, 34, 0.85);;
    color: white;

    font-weight: bold;
    cursor: move;
    user-select: none;
}

.haynes-dialog-header button {
    margin-left: auto;
    padding: 0 0 0 12px;

    border: none;
    outline: none;
    box-shadow: none;

    background: transparent;
    color: white;

    font-size: 32px;
    font-weight: normal;
    line-height: 1;

    cursor: pointer;
}

.haynes-dialog-header button:hover {
    background: transparent;
    color: #cccccc;
}

.haynes-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.haynes-dialog-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.haynes-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: 99998;
}

.haynes-dialog {
    z-index: 99999;
}