/* Ticket page redesign (Nov 10 2026, Mark). Loaded last so it wins over the older ticket styles.
   Rules: no word may break across lines, nothing may cover anything, every control stays visible. */

/* ---------- Header: back, player · ticket, counts on their own line, actions on the right ---------- */
#drawerContent .conversation-heading .conversation-summary-line{display:flex!important;flex-wrap:wrap!important;align-items:center!important;column-gap:10px!important;row-gap:4px!important;min-width:0!important}
#drawerContent .conversation-heading .ticket-back-button{order:0;display:inline-flex!important;align-items:center!important;gap:4px!important;flex:0 0 auto!important;width:auto!important;height:32px!important;min-width:0!important;padding:0 12px!important;border:1px solid #cfd8e3!important;border-radius:8px!important;background:#fff!important;color:#1872d2!important;font:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important;position:static!important;box-shadow:none!important;margin:0!important}
#drawerContent .conversation-heading .ticket-back-button:hover{background:#f2f7fd!important}
#drawerContent .conversation-heading .ticket-back-button span{font-size:16px!important;line-height:1!important}
#drawerContent .conversation-heading .conversation-heading-title{order:1;flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important}
#drawerContent .conversation-heading .conversation-heading-actions{order:2;margin-left:auto!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;flex:0 1 auto!important;min-width:0!important}
#drawerContent .conversation-heading .conversation-heading-actions>*{flex:0 0 auto!important;white-space:nowrap!important}
#drawerContent .conversation-heading .conversation-heading-counts{order:3;flex:1 0 100%!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;column-gap:6px!important;row-gap:2px!important;font-size:12px!important;color:#5d6e80!important;margin:0!important;padding:0!important}
#drawerContent .conversation-heading .conversation-heading-counts>span{white-space:nowrap!important}
#drawerContent .conversation-heading .conversation-heading-counts>span:empty{display:none!important}
#drawerContent .conversation-heading .conversation-summary-line>.conversation-heading-counts::before,#drawerContent .conversation-heading .conversation-heading-counts>span::before{content:none!important;margin:0!important}
#drawerContent .conversation-heading .conversation-heading-counts>span+span:not(:empty)::before{content:"\00b7"!important;margin-right:6px!important;color:#9aa8b6!important}
#drawerContent .conversation-heading{height:auto!important;min-height:0!important;padding-top:8px!important;padding-bottom:8px!important}

/* Open / Close in the header */
#drawerContent .ticket-header-status-slot{display:inline-flex!important;align-items:center!important}
#drawerContent .ticket-header-status-slot:empty{display:none!important}
#drawerContent .ticket-header-status-slot .ticket-status-control{display:inline-flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;margin:0!important;width:auto!important}
#drawerContent .ticket-header-status-slot .conversation-state-choice{display:inline-flex!important;align-items:center!important;gap:6px!important;height:32px!important;min-height:0!important;width:auto!important;padding:0 12px!important;border-radius:8px!important;font-size:13px!important;font-weight:600!important;white-space:nowrap!important;flex:0 0 auto!important}

/* ⋯ menu: Add to ticket, Delete ticket */
#drawerContent .ticket-header-more{position:relative!important;display:inline-flex!important}
#drawerContent .ticket-header-more-button{height:32px!important;min-width:36px!important;padding:0 10px!important;border:1px solid #cfd8e3!important;border-radius:8px!important;background:#fff!important;color:#3c4a5c!important;font:inherit!important;font-size:16px!important;line-height:1!important;cursor:pointer!important}
#drawerContent .ticket-header-more-button[hidden]{display:none!important}
#drawerContent .ticket-header-more-button:hover{background:#f2f5f9!important}
#drawerContent .ticket-header-menu{position:absolute!important;top:calc(100% + 6px)!important;right:0!important;z-index:200!important;display:flex!important;flex-direction:column!important;gap:2px!important;min-width:180px!important;padding:6px!important;background:#fff!important;border:1px solid #d6dee8!important;border-radius:10px!important;box-shadow:0 12px 28px rgba(10,31,86,.16)!important}
#drawerContent .ticket-header-menu[hidden]{display:none!important}
#drawerContent .ticket-header-menu>button{display:block!important;width:100%!important;margin:0!important;padding:9px 12px!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;color:#14263f!important;font:inherit!important;font-size:13.5px!important;font-weight:500!important;text-align:left!important;white-space:nowrap!important;cursor:pointer!important;height:auto!important;min-height:0!important}
#drawerContent .ticket-header-menu>button:hover{background:#f2f5f9!important}
#drawerContent .ticket-header-menu>button.danger,#drawerContent .ticket-header-menu>button#deleteTicketBtn{color:#b42318!important}
#drawerContent .ticket-header-menu>button#deleteTicketBtn:hover{background:#fdecea!important}

/* ---------- Message history wider, reply box narrower (all reply controls unchanged) ---------- */
@media (min-width:1100px){
  body.full-case-mode.desk-embedded .history-conversation{grid-template-columns:minmax(300px,44%) minmax(0,56%)!important}
}

/* Reply footer: two neat rows when it doesn't fit on one; nothing squeezed or covered */
#drawerContent .inline-reply-footer .inline-footer-row{display:flex!important;flex-wrap:wrap!important;align-items:center!important;column-gap:10px!important;row-gap:8px!important;height:auto!important;min-height:0!important}
#drawerContent .inline-reply-footer .inline-send-timing{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}
#drawerContent .inline-reply-footer .inline-send-timing>button{white-space:nowrap!important;flex:0 0 auto!important}
#drawerContent .inline-reply-footer .inline-sender-label{display:inline-flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;white-space:nowrap!important}
#drawerContent .inline-reply-footer .inline-sender-label select{min-width:120px!important;width:auto!important}
#drawerContent .inline-reply-footer .inline-reply-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;margin-left:auto!important;flex:0 0 auto!important}
#drawerContent .inline-reply-footer .inline-reply-actions button,#drawerContent .inline-reply-footer .inline-draft-actions button{white-space:nowrap!important;flex:0 0 auto!important}
#drawerContent .inline-reply-footer .inline-draft-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important}

/* ---------- Right column ---------- */
/* Status line: no "Ticket Status" title or empty button row, just the pills and Mark as New */
#drawerContent .record-context.ticket-redesigned .ticket-controls-heading>strong{display:none!important}
#drawerContent .record-context.ticket-redesigned .record-ticket-utility-row{display:none!important}
#drawerContent .record-context.ticket-redesigned .record-topbar:not(:has(.ticket-glance-pills>*)){display:none!important}
#drawerContent .record-context.ticket-redesigned .ticket-controls-heading{display:block!important;margin:0!important;padding:0!important}

/* Call next to the player's mobile number */
#drawerContent .player-inline-call{display:inline-block!important;margin:0 0 0 10px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:#1872d2!important;font:inherit!important;font-size:13px!important;font-weight:600!important;cursor:pointer!important;height:auto!important;min-height:0!important;vertical-align:baseline!important;white-space:nowrap!important}
#drawerContent .player-inline-call:hover{text-decoration:underline!important}

/* Notes / Calls / Log tabs */
#drawerContent .ticket-activity{display:flex!important;flex-direction:column!important;gap:10px!important;padding:10px 12px 12px!important;flex:0 0 auto!important}
#drawerContent .ticket-activity[hidden]{display:none!important}
#drawerContent .ticket-activity-tabs{display:flex!important;gap:4px!important;padding:3px!important;border-radius:8px!important;background:#eef2f6!important}
#drawerContent .ticket-activity-tab{flex:1 1 0!important;min-width:0!important;height:32px!important;padding:0 8px!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:#4a5a6c!important;font:inherit!important;font-size:13px!important;font-weight:500!important;white-space:nowrap!important;cursor:pointer!important}
#drawerContent .ticket-activity-tab.is-active{background:#fff!important;color:#0a1f56!important;font-weight:600!important;box-shadow:0 1px 2px rgba(10,31,86,.12)!important}
#drawerContent .ticket-activity-panels>details{margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
#drawerContent .ticket-activity-panels>details[hidden]{display:none!important}
#drawerContent .ticket-activity-panels>details>summary{display:none!important}
#drawerContent .ticket-activity-panels>details>.record-section-body,#drawerContent .ticket-activity-panels>details>.context-card-body{padding:0!important;border:0!important}

#drawerContent .linked-player-identity-list .info-item strong:has(.player-inline-call){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:baseline!important;justify-content:flex-start!important}

/* Note editor buttons never split across lines */
#drawerContent .ticket-activity button{white-space:nowrap!important;flex-shrink:0!important}