/* Ejaaba classic question / answer actions, scoped to question view only. */
.ej-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
[data-ej-modern-question-bar] [data-ej-menu-quick-actions]{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px!important;
 justify-content:flex-start!important;min-height:39px!important;padding:3px 2px!important;
}
[data-ej-modern-question-bar] [data-ej-menu-quick-actions]>.inline{margin:0!important;flex:0 0 auto!important}
[data-ej-modern-question-bar] .ej-menu-quick{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
 min-height:34px!important;min-width:36px!important;padding:5px 10px!important;margin:0!important;
 border:1px solid #d9e5f3!important;border-radius:9px!important;
 color:var(--ejpa-link,#286cab)!important;background:var(--ejpa-surface,#fff)!important;
 font-size:13px!important;text-decoration:none!important;line-height:1.2!important;
}
[data-ej-modern-question-bar] .ej-menu-quick:focus-visible,.ej-menu-trigger:focus-visible,.ej-menu-action:focus-visible,
.ej-menu-confirm:focus-visible{outline:3px solid #7fb7f1!important;outline-offset:2px!important}
[data-ej-modern-question-bar] .ej-menu-quick .arch-icon{width:18px!important;height:18px!important}
[data-ej-modern-question-bar] .ej-menu-quick.active{background:var(--ejpa-soft,#eaf4ff)!important;border-color:#99bee4!important}
[data-ej-modern-question-bar] [data-ej-menu-quick-actions]>.ej-question-menu{margin-inline-start:auto!important}
.ej-menu,.ej-menu *{box-sizing:border-box}
.ej-menu{display:block;position:relative;flex:0 0 auto!important;z-index:auto}
.ej-menu>summary.ej-menu-trigger{
 list-style:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:5px!important;min-width:36px!important;height:36px!important;padding:6px 8px!important;margin:0!important;
 border:1px solid #d6e1ed!important;border-radius:10px!important;cursor:pointer!important;
 background:var(--ejpa-surface,#fff)!important;color:var(--ejpa-link,#255e99)!important;
 box-shadow:0 1px 2px #1c344a14!important;
}
.ej-menu>summary.ej-menu-trigger::-webkit-details-marker{display:none!important}
.ej-menu>summary.ej-menu-trigger::marker{content:""}
.ej-menu>summary.ej-menu-trigger svg{width:21px!important;height:21px!important;flex-shrink:0}
.ej-menu[open]>summary.ej-menu-trigger{background:var(--ejpa-soft,#eaf3ff)!important;border-color:#9fbfe0!important}
details[data-ej-menu]:not([open])>.ej-menu-popover{display:none!important}
.ej-menu-popover{
 display:block!important;position:fixed!important;right:auto!important;bottom:auto!important;
 z-index:21000!important;width:min(316px,calc(100vw - 24px))!important;
 max-height:min(520px,calc(100dvh - 28px));overflow-y:auto!important;overscroll-behavior:contain;
 direction:rtl;text-align:right;padding:6px!important;margin:0!important;
 background:var(--ejpa-surface,#fff)!important;color:var(--ejpa-text,#253347)!important;
 border:1px solid var(--ejpa-border,#d5dfeb)!important;border-radius:14px!important;
 box-shadow:0 14px 45px #0e27402f,0 2px 8px #0e274016!important;
 font-size:13px!important;line-height:1.5!important;
 scrollbar-width:thin;
}
.ej-menu-heading{display:flex;flex-direction:column;gap:1px;padding:9px 11px 11px;margin:0 2px 4px;border-bottom:1px solid var(--ejpa-border,#e3eaf2)}
.ej-menu-heading strong{font-size:14px!important;color:var(--ejpa-text,#18344e)!important}
.ej-menu-heading small{font-size:11px!important;color:var(--ejpa-muted,#7b8c9e)!important}
.ej-menu-popover .ej-menu-action,
.ej-menu-popover .ej-menu-pin .ejpa-question-pin button,
.ej-menu-popover .ej-menu-pin .ejpa-question-pin button:not(.button){
 appearance:none;-webkit-appearance:none;display:flex!important;align-items:center!important;
 justify-content:flex-start!important;gap:10px!important;width:100%!important;min-height:39px!important;
 padding:9px 11px!important;margin:0!important;border:0!important;border-radius:9px!important;
 background:transparent!important;color:var(--ejpa-text,#2d3e53)!important;
 text-align:right!important;text-decoration:none!important;font:inherit!important;font-size:13px!important;
 line-height:1.5!important;cursor:pointer!important;white-space:normal!important;
}
.ej-menu-popover .ej-menu-action:hover,.ej-menu-popover .ej-menu-action:focus-visible,
.ej-menu-popover .ej-menu-pin .ejpa-question-pin button:hover{background:var(--ejpa-soft,#f0f5fc)!important}
.ej-menu-popover .ej-menu-action>.arch-icon,.ej-menu-popover .ej-menu-pin .ejpa-question-pin button .arch-icon{
 flex:0 0 19px!important;width:19px!important;height:19px!important;color:var(--ejpa-link,#3e76ab)!important
}
.ej-menu-popover .ej-menu-action>span{flex:1 1 auto}
.ej-menu-popover .ej-menu-action>.arch-icon:last-child{flex:0 0 16px!important;width:16px!important;height:16px!important;opacity:.55}
.ej-menu-popover .ej-menu-danger,.ej-menu-popover .ej-menu-danger .arch-icon{color:#ba3040!important}
.ej-menu-popover .ej-menu-danger:hover{background:#fff1f2!important}
.ej-menu-popover .ej-menu-success,.ej-menu-popover .ej-menu-success .arch-icon{color:#16825a!important}
.ej-menu-plus{flex:0 0 auto!important;background:#f5e6b9;color:#79581e;font-size:10px!important;padding:1px 6px;border-radius:5px;border:1px solid #e1c985}
.ej-menu-divider{height:1px;background:var(--ejpa-border,#e8edf3);margin:6px 9px}
.ej-menu-submenu{display:block!important;border:0!important;background:transparent!important;margin:0!important;padding:0!important}
.ej-menu-submenu>summary{list-style:none!important}
.ej-menu-submenu>summary::marker{content:""}
.ej-menu-submenu>summary::-webkit-details-marker{display:none!important}
.ej-menu-popover .ej-menu-submenu[open]>summary.ej-menu-action{background:var(--ejpa-soft,#edf4fc)!important;border-radius:9px 9px 0 0!important}
.ej-menu-subbody{background:var(--ejpa-soft,#f6f9fd)!important;border:1px solid var(--ejpa-border,#e1e8f0)!important;
 padding:10px!important;margin:0 6px 7px!important;border-radius:0 0 10px 10px!important}
.ej-menu-subbody :is(label,textarea,select){display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
.ej-menu-subbody label{font-size:12px!important;color:var(--ejpa-text,#384658)!important;font-weight:600!important}
.ej-menu-subbody :is(textarea,select){font:inherit!important;font-size:12px!important;
 padding:8px!important;min-height:36px!important;margin:5px 0 9px!important;border:1px solid #c7d4e1!important;
 background:var(--ejpa-surface,#fff)!important;color:var(--ejpa-text,#1b293a)!important;border-radius:8px!important}
.ej-menu-subbody textarea{resize:vertical;min-height:72px!important}
.ej-menu-subbody p{font-size:12px!important;line-height:1.7!important;margin:0 0 8px!important;color:var(--ejpa-text,#334459)!important}
.ej-menu-confirm{display:inline-flex!important;justify-content:center!important;align-items:center!important;
 width:100%!important;padding:8px!important;min-height:35px!important;background:#276eaf!important;
 color:#fff!important;border:0!important;border-radius:8px!important;font-size:12px!important;font-weight:600!important;cursor:pointer!important}
.ej-menu-danger-button{background:#bc3442!important}
.ej-menu-popover form{margin:0!important;max-width:100%!important}
.ej-menu-popover .ej-menu-inline-form{display:block!important;width:100%!important}
.ej-menu-popover .ej-menu-pin{display:block;margin:0;padding:0}
.ej-menu-popover .ejpa-question-pin{padding:0!important;margin:0!important}
.ej-menu-popover .ejpa-question-pin button{white-space:normal!important}
.ej-menu-popover .ejpa-question-pin button:before{content:'📌';margin-inline-end:7px}
.ej-menu-popover .ejpa-question-pin p{font-size:11px;margin:4px 8px}
.ej-menu-popover .ejabat-compact-staff-actions>summary.ej-menu-action{display:flex!important}
.ej-menu-popover .ejabat-compact-staff-actions .staff-tools{display:block!important;background:var(--ejpa-soft,#f7faff)!important;
 padding:9px!important;border-radius:9px!important;max-width:100%!important}
.ej-menu-popover .ejabat-compact-staff-actions .staff-tools :is(form,details){max-width:100%!important;margin:3px 0!important}
.ej-menu-popover .ejabat-compact-staff-actions .staff-tools summary{font-size:12px!important;cursor:pointer!important}
.ej-menu-popover .ejabat-compact-staff-actions .staff-tools .soft-button{
 max-width:100%!important;white-space:normal!important;min-height:34px!important;
 font-size:12px!important;line-height:1.5!important;margin:2px!important}
.ej-menu-popover .ejabat-compact-staff-actions .staff-tools label{font-size:12px!important}
.ej-menu-popover .ejabat-compact-staff-actions .staff-tools :is(textarea,input[type=file]){max-width:100%!important}
.ej-menu-answer-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;
 gap:4px!important;flex:0 0 auto!important;min-width:36px!important;min-height:34px!important;
 margin-inline-start:auto!important;margin-block:0!important;padding:0!important;
 border:0!important;background:transparent!important}
.answers-list .archive-answer .author-line .ej-menu-answer-actions{margin-inline-start:auto!important;padding:0!important}
.answers-list .archive-answer .author-line .ej-menu-answer-actions .ej-menu-trigger{width:34px!important;height:34px!important;min-width:34px!important}
.answers-list .archive-answer .author-line .ej-menu-answer-actions .ej-menu-trigger svg{width:19px!important;height:19px!important}
.answers-list .archive-answer .author-line .ejv24-answer-edit-status:not([hidden]){max-width:150px;font-size:11px}
.ej-answer-sort-menu{margin:0!important;padding:0!important}
.ejabat-answers-toolbar .ej-answer-sort-menu>summary.ej-sort-trigger{width:auto!important;min-width:36px!important;
 padding:5px 9px!important;height:32px!important;font-size:12px!important}
.ejabat-answers-toolbar .ej-answer-sort-menu>summary.ej-sort-trigger svg{width:17px!important;height:17px!important}
.ejabat-answers-toolbar .ej-sort-menu-controls{display:flex!important;align-items:stretch!important;
 flex-direction:column!important;width:100%!important;padding:7px 9px 11px!important;margin:0!important;
 border:0!important;background:transparent!important;gap:7px!important;min-height:auto!important;height:auto!important}
.ejabat-answers-toolbar .ej-sort-menu-controls>label{display:block!important;font-size:12px!important;font-weight:600!important;color:var(--ejpa-text,#3a4a5b)!important}
.ejabat-answers-toolbar .ej-sort-menu-controls select{width:100%!important;max-width:none!important;height:39px!important;
 min-height:39px!important;border:1px solid #bdcfdf!important;border-radius:9px!important;
 font-size:13px!important;background:var(--ejpa-surface,#fff)!important;color:var(--ejpa-text,#254056)!important}
.ejabat-answers-toolbar .ej-sort-menu-controls button.ej-sort-direction{width:100%!important;min-width:0!important;
 display:flex!important;gap:9px!important;justify-content:flex-start!important;align-items:center!important;
 min-height:38px!important;height:auto!important;padding:8px 10px!important;border-radius:9px!important;
 border:1px solid var(--ejpa-border,#dce6f1)!important;background:var(--ejpa-soft,#eff5fd)!important;
 color:var(--ejpa-link,#2a619a)!important;font-size:12px!important}
.ejabat-answers-toolbar .ej-sort-menu-controls .ej-sort-direction svg{width:18px!important;height:18px!important}
@media(max-width:520px){
 [data-ej-modern-question-bar] [data-ej-menu-quick-actions]{gap:5px!important}
 [data-ej-modern-question-bar] .ej-menu-quick{padding:5px 8px!important}
 [data-ej-modern-question-bar] .ej-menu-quick>span{display:none!important}
 [data-ej-modern-question-bar] [data-ej-menu-quick-actions]>.inline button{min-width:37px!important}
 .answers-list .archive-answer .author-line .ej-menu-answer-actions{margin-inline-start:auto!important}
 .ejabat-answers-toolbar .ej-answer-sort-menu>summary.ej-sort-trigger span{display:none!important}
 .ej-menu-popover{border-radius:12px!important}
}
@media(prefers-reduced-motion:no-preference){
 .ej-menu>summary.ej-menu-trigger,.ej-menu-popover .ej-menu-action{transition:background-color .13s ease,border-color .13s ease}
}

/* 2026-10-21 follow-up: menu belongs beside the title, never below the score. */
.ejabat-clean-question .detail-heading .ej-question-title-row{
 display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
 gap:8px!important;width:100%!important;min-width:0!important;margin:0 0 2px!important;
}
.ejabat-clean-question .detail-heading .ej-question-title-row>h1{
 flex:1 1 auto!important;min-width:0!important;margin:0!important;
 overflow-wrap:anywhere!important;
}
.ejabat-clean-question .detail-heading .ej-question-title-row>.ej-question-menu{
 flex:0 0 auto!important;align-self:flex-start!important;margin:1px 0 0!important;
}
.ej-question-title-row .ej-question-menu>summary.ej-menu-trigger{
 width:34px!important;min-width:34px!important;height:34px!important;
 background:var(--ejpa-soft,#f4f8fd)!important;
 border-color:var(--ejpa-border,#dce6f0)!important;
}
.ej-question-title-row .ej-question-menu>summary.ej-menu-trigger:hover{
 background:#e9f3ff!important;border-color:#a2c6e8!important;
}
/* Clear, grouped, one-column RTL actions; keep the existing server forms. */
.ej-menu-popover{
 padding:7px!important;border-radius:14px!important;
 box-shadow:0 16px 44px #10283e30,0 4px 13px #10283e14!important;
}
.ej-menu-heading{
 padding:11px 11px 10px!important;gap:3px!important;margin:0 0 4px!important;
 border-bottom:1px solid var(--ejpa-border,#e1eaf3)!important;
 border-radius:9px 9px 3px 3px!important;
 background:var(--ejpa-soft,#f5f8fd)!important;
}
.ej-menu-heading .ej-menu-heading-kicker{
 color:var(--ejpa-muted,#7a90a7)!important;font-size:10px!important;
 letter-spacing:0!important;font-weight:500!important;
}
.ej-menu-heading strong{font-size:14px!important;line-height:1.45!important}
.ej-menu-section-title{
 margin:2px 7px 4px!important;padding:7px 9px 4px!important;
 font-size:11px!important;font-weight:700!important;line-height:1.5!important;
 color:var(--ejpa-muted,#657f99)!important;text-align:right!important;
}
.ej-menu-divider{
 height:1px!important;background:var(--ejpa-border,#e5edf4)!important;
 margin:7px 9px 4px!important;
}
.ej-menu-popover .ej-menu-action{
 min-height:42px!important;padding:9px 10px!important;gap:9px!important;
 margin:0 2px!important;width:calc(100% - 4px)!important;
 font-size:13px!important;font-weight:500!important;
 color:var(--ejpa-text,#2e4155)!important;
}
.ej-menu-popover .ej-menu-action>.arch-icon:first-child{
 flex:0 0 19px!important;width:19px!important;height:19px!important;
}
.ej-menu-popover .ej-menu-submenu>summary.ej-menu-action>.arch-icon:last-child{
 margin-inline-start:auto!important;flex:0 0 15px!important;
 width:15px!important;height:15px!important;opacity:.52!important;
 transition:transform .15s ease;
}
.ej-menu-popover .ej-menu-submenu[open]>summary.ej-menu-action>.arch-icon:last-child{
 transform:rotate(180deg);opacity:.85!important;
}
.ej-menu-popover .ej-menu-submenu[open]>summary.ej-menu-action{
 background:var(--ejpa-soft,#f1f6fd)!important;
}
.ej-menu-popover .ej-menu-danger,
.ej-menu-popover .ej-menu-danger .arch-icon{
 color:#bc3545!important;
}
.ej-menu-popover .ej-menu-danger:hover{
 background:#fff0f2!important;
}
/* The best-answer action remains visible as it was before the menu update. */
.answers-list .archive-answer .ej-answer-best-visible{
 grid-column:2!important;grid-row:4!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 padding:3px 4px 6px!important;margin:0!important;
}
.answers-list .archive-answer .ej-answer-best-visible>form{
 margin:0!important;padding:0!important;max-width:100%!important;
}
.answers-list .archive-answer .ej-answer-best-visible .ej-visible-best-answer{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:6px!important;min-height:34px!important;max-width:100%!important;
 padding:6px 12px!important;border:1px solid #bedfcf!important;
 border-radius:9px!important;background:#edf8f2!important;
 color:#227247!important;font-size:12px!important;font-weight:700!important;
 line-height:1.5!important;white-space:normal!important;cursor:pointer!important;
}
.answers-list .archive-answer .ej-answer-best-visible .ej-visible-best-answer:hover{
 background:#dff3e8!important;border-color:#92c4a6!important;
}
@media(max-width:520px){
 .ejabat-clean-question .detail-heading .ej-question-title-row{gap:7px!important}
 .ej-question-title-row .ej-question-menu>summary.ej-menu-trigger{
  width:32px!important;min-width:32px!important;height:32px!important;
 }
 .ej-menu-popover .ej-menu-section-title{padding-top:6px!important}
}
