/* ============================================================
   OpsFlow — shared Keyboard Shortcuts component
   Used app-wide via Masters/Site.master. Self-contained (no
   dependency on magic-discount.css) so it works on every page.
   ============================================================ */

.ofsc-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(120deg, #6366F1, #8B5CF6, #EC4899);
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(99,102,241,0.32);
    z-index: 9980;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ofsc-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px rgba(99,102,241,0.40); }

.ofsc-back {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.45);
    opacity: 0; pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10040;
}
.ofsc-back.is-open { opacity: 1; pointer-events: auto; }

.ofsc-modal {
    position: fixed; z-index: 10041;
    top: 50%; left: 50%;
    transform: translate(-50%, -48%);
    opacity: 0; pointer-events: none;
    width: min(520px, calc(100vw - 32px));
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.30);
    overflow: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.ofsc-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }

.ofsc-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px;
    background: linear-gradient(120deg, #7C3AED, #9333EA 55%, #DB2777);
    color: #FFFFFF;
}
.ofsc-head h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ofsc-head p  { margin: 2px 0 0; font-size: 12px; opacity: 0.85; }
.ofsc-x { background: none; border: 0; color: #FFFFFF; font-size: 16px; cursor: pointer; line-height: 1; }

.ofsc-body { padding: 14px 18px; max-height: 60vh; overflow: auto; }
.ofsc-grp  { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
             color: #94A3B8; margin: 12px 0 4px; }
.ofsc-grp:first-child { margin-top: 0; }
.ofsc-row {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed #E5E7EB;
    font-size: 13.5px; color: #334155;
}
.ofsc-row:last-child { border-bottom: 0; }
.ofsc-row kbd {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 2px 7px;
    font-family: 'DM Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #1E293B;
    margin-left: 4px;
}
.ofsc-foot { padding: 12px 18px; border-top: 1px solid #EEF2F7; display: flex; justify-content: flex-end; }
.ofsc-foot button { border: 1px solid #CBD5E1; background: #FFFFFF; border-radius: 8px;
                    padding: 7px 14px; font-size: 13px; cursor: pointer; }
.ofsc-foot button:hover { background: #F8FAFC; }
