/* Writing Showings (Story 5709) -- the shared list: a rolled-up toolbar over folding cards.
   Used inside the Writing Filing Cabinet, a work's row, and the Showings tab on a vendor or
   contact page, so every rule is scoped under .sh-pane or .sh-card. */

.sh-pane { display: block; }
.sh-rollrow { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.sh-rollrow .sh-rollbtn { flex: 1 1 auto; min-width: 0; text-align: left; background: none; border: none;
    padding: 6px 2px; font: 600 14px "Segoe UI", system-ui, sans-serif; color: #333; cursor: pointer; }
.sh-pane.ef-tools-collapsed .sh-tools { display: none; }

.sh-tools { margin: 0 0 10px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.sh-chip { border: 1px solid #C9C9CC; background: #fff; color: #333; border-radius: 16px; padding: 4px 10px;
    font: 500 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.sh-chip.on { background: #3C3C3C; border-color: #3C3C3C; color: #fff; }
.sh-chip .sh-n { opacity: 0.75; font-weight: 400; }
.sh-toolrow { display: flex; gap: 8px; align-items: center; }
.sh-toolrow .sh-search, .sh-toolrow > .voice-mic-wrap { flex: 1 1 0; min-width: 0; }
.sh-toolrow > .voice-mic-wrap input { width: 100%; box-sizing: border-box; }
.sh-pane input.sh-search { display: block; width: 100%; box-sizing: border-box; padding: 8px 10px;
    border: 1px solid #C9C9CC; border-radius: 4px; background: #fff; color: #222; font: 400 14px "Segoe UI", system-ui, sans-serif; }

.sh-btn { border: 1px solid #C9C9CC; background: #fff; color: #333; border-radius: 4px; padding: 6px 12px;
    font: 600 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.sh-btn:hover { background: #F0F0F2; }
.sh-btn.sh-primary { background: #3C3C3C; border-color: #3C3C3C; color: #fff; }
.sh-btn.sh-primary:hover { background: #555; }
.sh-btn[hidden] { display: none; }
.sh-more { display: block; margin: 8px auto 0; }

.sh-empty { padding: 14px 4px; color: #777; font: 400 14px "Segoe UI", system-ui, sans-serif; }

.sh-card { background: #fff; border: 1px solid #E0E0E2; border-left: 4px solid #B45309; border-radius: 6px;
    margin: 0 0 8px; }
.sh-card.sh-done { border-left-color: #9CA3AF; }
.sh-card[data-outcome="accepted"], .sh-card[data-outcome="published"] { border-left-color: #15803D; }
.sh-head { display: flex; align-items: baseline; gap: 8px; padding: 9px 10px; cursor: pointer; flex-wrap: wrap; }
.sh-chev { color: #777; width: 12px; flex: 0 0 12px; }
.sh-title { flex: 1 1 200px; min-width: 0; font: 600 15px "Segoe UI", system-ui, sans-serif; color: #1F2937;
    text-decoration: none; overflow-wrap: anywhere; }
.sh-title:hover { text-decoration: underline; }
.sh-card.sh-done .sh-title { color: #4B5563; font-weight: 500; }
.sh-date { color: #666; font: 400 13px "Segoe UI", system-ui, sans-serif; white-space: nowrap; }
.sh-body { padding: 0 10px 10px 30px; }
.sh-card.collapsed .sh-body { display: none; }
.sh-line { font: 400 14px "Segoe UI", system-ui, sans-serif; color: #333; margin: 2px 0; overflow-wrap: anywhere; }
.sh-line.sh-quiet { color: #666; font-size: 13px; }
.sh-acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.sh-out { display: inline-block; border-radius: 10px; padding: 1px 8px; font: 600 12px "Segoe UI", system-ui, sans-serif;
    white-space: nowrap; background: #FEF3C7; color: #92400E; }
.sh-out-declined, .sh-out-noanswer { background: #F3F4F6; color: #4B5563; }
.sh-out-accepted, .sh-out-published { background: #DCFCE7; color: #15803D; }
.sh-out-feedback { background: #E0F2FE; color: #075985; }

/* A work's showings, inside its row in the Writing Filing Cabinet. */
.wf-showings { margin: 8px 0 4px; padding: 8px 10px; background: #FAFAF7; border: 1px solid #E6E2D6; border-radius: 6px; }
.wf-showings-title { font: 700 12px "Segoe UI", system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
    color: #6B6253; margin: 0 0 6px; }

/* The showing page's details. */
.sh-detail { background: #fff; border: 1px solid #E0E0E2; border-radius: 6px; padding: 12px 14px; }
.sh-detail dl { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 6px 12px; margin: 0; }
.sh-detail dt { color: #666; font: 600 13px "Segoe UI", system-ui, sans-serif; }
.sh-detail dd { margin: 0; color: #222; font: 400 14px "Segoe UI", system-ui, sans-serif; overflow-wrap: anywhere; white-space: pre-wrap; }
.sh-detail dd a { color: #0A66C2; }
.sh-detail-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sh-btn.sh-danger { color: #B91C1C; border-color: #FCA5A5; }
@media (max-width: 600px) {
    .sh-detail dl { grid-template-columns: 1fr; gap: 2px 0; }
    .sh-detail dd { margin-bottom: 8px; }
}
