tr[tabindex="0"]:focus-visible{outline:2px solid #c9a349;outline-offset:-2px}
dialog.crm-row-detail{width:min(720px,calc(100% - 32px));max-height:85vh;padding:0;border:1px solid #c9a349;border-radius:14px;background:#25282b;color:#f7f5f0;box-shadow:0 24px 70px #0008}
dialog.crm-row-detail::backdrop{background:#071c1dc9}
dialog.crm-row-detail header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:#174b4d;border-bottom:1px solid #c9a349}
dialog.crm-row-detail h2{margin:0;font-size:1.2rem;color:#fff}
dialog.crm-row-detail header button{min-height:40px;padding:8px 14px;border:1px solid #d3b35e;border-radius:6px;background:transparent;color:#fff;cursor:pointer}
dialog.crm-row-detail dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;padding:10px 22px 22px}
dialog.crm-row-detail dl div{padding:12px 10px;border-bottom:1px solid #51575a;min-width:0}
dialog.crm-row-detail dt{font-size:.78rem;color:#c4cecc;margin-bottom:4px}
dialog.crm-row-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:600}
html.theme-light dialog.crm-row-detail{background:#fff;color:#25282b}html.theme-light dialog.crm-row-detail dt{color:#526567}html.theme-light dialog.crm-row-detail dl div{border-color:#e0e3de}
@media(max-width:600px){dialog.crm-row-detail dl{grid-template-columns:1fr;padding:8px 16px 18px}dialog.crm-row-detail header{padding:16px}dialog.crm-row-detail{max-height:90dvh}}
/* Override legacy page header/dialog decoration, including the CRM light theme. */
html body.crm-admin-ui dialog.crm-row-detail{padding:0!important;border:1px solid #c9a349!important;border-radius:14px!important;background:#25282b!important;color:#f7f5f0!important}
html body.crm-admin-ui dialog.crm-row-detail > header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:18px 22px!important;margin:0!important;background:#174b4d!important;background-image:none!important;border:0!important;border-bottom:1px solid #c9a349!important;border-radius:0!important;box-shadow:none!important;color:#fff!important}
html body.crm-admin-ui dialog.crm-row-detail > header h2{color:#fff!important}
html.theme-light body.crm-admin-ui dialog.crm-row-detail{background:#fff!important;color:#25282b!important;border-color:#a77f20!important}
@media(max-width:600px){html body.crm-admin-ui dialog.crm-row-detail > header{padding:16px!important}}
