/* RequestDetail page — migrated from RequestDetail.razor.css; the shared .id-* kit lives in components.css. Scoped under .page-request-detail. */
.page-request-detail { display: flex; flex-direction: column; gap: 34px; }

.page-request-detail .id-typetag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent-2);
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    white-space: nowrap;
}

/* The description is plain text out of Jira's ADF, line breaks included — same reason the comment
   bodies are pre-wrap (components.css) and the incident report blocks are. */
.page-request-detail .id-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ─── Close-request confirmation ───────────────────────────────────
   The .modal shell is page-scoped, like every other one in the kit: unscoped, Bootstrap's own
   .modal / .modal-backdrop win and the dialog renders as a black full-screen sheet. Mirrors the
   requests page's form modal so the two read as the same dialog. */

.page-request-detail .modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.55); }

.page-request-detail .modal {
    position: fixed;
    z-index: 210;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 32px));
    /* height:auto and overflow:hidden reset Bootstrap's own `.modal` rules (height:100%,
       overflow-y:auto), which would stretch the card to the full viewport. */
    height: auto;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
    animation: modal-in .2s ease both;
}

.page-request-detail .modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-soft);
}
.page-request-detail .modal-head h2 { margin: 0; font-size: 16px; font-weight: 600; flex: 1; }

.page-request-detail .modal-x {
    width: 28px; height: 28px;
    border: none;
    background: transparent;
    color: var(--faint);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.page-request-detail .modal-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.page-request-detail .modal-body { padding: 18px; }
.page-request-detail .modal-body .id-desc { margin-bottom: 16px; }
.page-request-detail .modal-body .id-empty { margin: 12px 0 0; color: var(--bad); }

.page-request-detail .modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line-soft);
}

.page-request-detail .btn-primary {
    padding: 9px 18px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #04201D;
    font: 600 13px var(--font-body);
    cursor: pointer;
    transition: filter .18s ease;
}
.page-request-detail .btn-primary:hover { filter: brightness(1.08); }
.page-request-detail .btn-primary:disabled { opacity: 0.5; cursor: default; filter: none; }

@media (prefers-reduced-motion: reduce) {
    .page-request-detail .modal { animation: none; }
}

.page-request-detail .id-miniavatar {
    width: 22px;
    height: 22px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    /* The puck holds either initials or the raiser's photo, so it clips the image to the circle. */
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    color: #04201D;
    background: linear-gradient(140deg, #5EEAD9, #14B8A6);
}
/* Fills the puck and keeps the aspect: a portrait crops rather than squashing (§23's both-axes rule). */
.page-request-detail .id-miniavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
