/* Inquiries Window
 *
 * Win11 chrome retrofit (Phase 1 desktop redesign, §D.3) — see call-log-
 * window.css's header comment for the shared frame-acrylic/opaque-content
 * pattern this file (and the other hand-rolled windows) now follows.
 * Visual-only; zero JS/DOM/behavior changes.
 */
.inquiries-window {
    position: absolute;
    width: 524px;
    height: 218px;
    background: var(--win11-bg-solid-dark, #202020);
    border: none;
    border-radius: var(--win11-radius-lg, 12px);
    box-shadow: var(--win11-shadow-window, 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08));
    z-index: 2100;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    overflow: hidden;
    /* Round-2 runtime fix (Runtime Finding #6): !important is required
     * because frontend/css/fonts.css's pre-existing, untouched blanket rule
     * (`:root, body, body * { font-family: 'Courier New',... !important; }`)
     * always beats a non-!important declaration regardless of specificity —
     * scoped narrowly to this window's own frame selector, not a blanket
     * override of fonts.css for the rest of the app.
     */
    font-family: var(--win11-font, 'MS Sans Serif', sans-serif) !important;
}

.inquiries-window.show {
    display: block;
}

.inquiries-window.minimized {
    display: none;
}

/* Round-2 runtime fix, must-not-regress: this window previously always
 * rendered fully uppercase only because it was a descendant of
 * .mdc-window, which force-uppercases every descendant (styles.css'
 * `.mdc-window, .mdc-window * { text-transform: uppercase; }`). Moving
 * this window out of .mdc-window (Runtime Finding #1 fix) removed that
 * free ride, so it now declares its own equivalent rule to preserve the
 * exact same rendered appearance as before, for any current or future
 * text content (also supersedes the narrower .inquiries-function-btn-only
 * fix above, kept as harmless redundant belt-and-suspenders).
 */
.inquiries-window,
.inquiries-window * {
    text-transform: uppercase;
}

/* Title Bar (frame — acrylic)
 *
 * Title-bar unification (RUN_ID 20260904-unify-title-bar-across-windows):
 * renamed to the shared mdc-inquiries-titlebar BEM shape, now rendered via
 * WindowTitleBar.jsx. Color values kept as this window's own existing,
 * already-shipped values (unconditionally dark since the 2026-08-25
 * "Border-theme unification pass") rather than switched to Settings'
 * literal light "Day" palette — see status-window.css's own comment on
 * this same decision, and Implementation Notes for the full disclosure.
 */
.mdc-inquiries-titlebar {
    background: var(--win11-bg-solid-dark, #202020);
    border-bottom: 1px solid currentColor;
    color: #f3f3f3;
    padding: 0 8px;
    display: flex;
    align-items: center;
    cursor: move;
    user-select: none;
    height: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Round-2 runtime fix (Runtime Finding #6): fonts.css's `body *` blanket
 * !important rule directly matches every descendant of the title bar too
 * (icon/text/buttons) — inheriting from .mdc-inquiries-titlebar alone
 * isn't enough, a directly-matching declaration always wins over an
 * inherited one. Scoped to .mdc-inquiries-titlebar's own subtree only.
 */
.mdc-inquiries-titlebar,
.mdc-inquiries-titlebar * {
    font-family: var(--win11-font, 'Segoe UI', 'Segoe UI Variable', Tahoma, Geneva, Verdana, sans-serif) !important;
}

.mdc-inquiries-titlebar__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mdc-inquiries-titlebar__label {
    font-size: 11px;
    font-weight: bold;
    text-align: left;
    flex: 1;
    margin-left: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.mdc-inquiries-titlebar__buttons {
    display: flex;
    gap: 2px;
}

.mdc-inquiries-titlebar__btn {
    width: 18px;
    height: 16px;
    border: none;
    border-radius: var(--win11-radius-sm, 6px);
    background: transparent;
    color: #f3f3f3;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 1;
    user-select: none;
    transition: background 0.12s ease;
}

.mdc-inquiries-titlebar__btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mdc-inquiries-titlebar__btn--close:hover {
    background: #e81123;
    color: #fff;
}

.mdc-inquiries-titlebar .mdc-inquiries-titlebar__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Button Grid (content — stays opaque) */
.inquiries-button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 0;
    padding: 0;
    height: calc(100% - 20px);
    width: 100%;
    background: #e0e0e0;
}

.inquiries-function-btn {
    background: #e0e0e0;
    border: 1px solid #c0c0c0;
    color: black;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--win11-font, 'MS Sans Serif', sans-serif);
    box-sizing: border-box;
    /* Round-2 runtime fix, must-not-regress: buttons 7/8's nested
     * .btn-stack spans ("(delete all"/"message)"/etc.) are typed lowercase
     * in inquiries-window.js's source HTML — previously always rendered
     * uppercase only because this window was a descendant of .mdc-window,
     * which force-uppercases every descendant (styles.css). Moving this
     * window out of .mdc-window (Runtime Finding #1 fix) removed that
     * free ride, so this window now declares its own uppercase transform
     * to preserve the exact same rendered appearance as before.
     */
    text-transform: uppercase;
}

.inquiries-function-btn:hover {
    background: #f0f0f0;
}

.inquiries-function-btn:active {
    border: 1px solid #a0a0a0;
    background: #d0d0d0;
}
