/* キーボードショートカット一覧（shortcuts.js）。
   どのページからも同じ見た目で出せるよう、必要なものだけ自分で持つ。 */

.pk-ov {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 11000;
}
.pk-ov.pk-show { display: flex; }

.pk-dlg {
    width: min(520px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    padding: 18px 20px 20px;
    border-radius: 10px;
    background: #fff;
    color: #212529;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
    font-size: 14px;
    line-height: 1.5;
}

.pk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pk-head h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.pk-x {
    border: 0;
    border-radius: 6px;
    background: #eef2ff;
    color: #0d6efd;
    padding: 4px 12px;
    font-size: .85em;
    cursor: pointer;
}
.pk-x:hover { background: #dde5ff; }

.pk-note {
    margin: 6px 0 2px;
    font-size: .82em;
    color: #6c757d;
}
.pk-foot {
    margin: 14px 0 0;
    font-size: .8em;
    color: #6c757d;
}

.pk-cap {
    margin: 14px 0 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid #dee2e6;
    font-size: .8em;
    font-weight: 600;
    color: #6c757d;
}

/* styles.css の表の指定は本文の中だけに絞ってあるのでここには届かないが、
   この一覧は閲覧・編集以外のページでも出すため、素の見た目を自分で決める。 */
.pk-dlg .pk-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    font-size: .9em;
    background: none;
}
.pk-dlg .pk-table tr,
.pk-dlg .pk-table tr:nth-child(even) {
    background: none;
}
.pk-dlg .pk-table td {
    padding: 4px 0;
    vertical-align: baseline;
    border: 0;
    background: none;
    color: #212529;
    text-align: left;
}
.pk-dlg .pk-table td:first-child {
    width: 132px;
    white-space: nowrap;
}

.pk-dlg kbd {
    display: inline-block;
    min-width: 26px;
    padding: 2px 7px;
    border: 1px solid #ced4da;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #f8f9fa;
    color: #212529;
    font-family: inherit;
    font-size: .92em;
    text-align: center;
}

/* ツールバーに置く小さな入口 */
.pk-btn {
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    color: #55606c;
    min-height: 31px;
    padding: 2px 9px;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
}
.pk-btn:hover { color: #0d6efd; border-color: #9ec5fe; }

@media print { .pk-ov, .pk-btn { display: none !important; } }
