/*
 GreenEco Meetings — Issue workflow exact one-row toolbar
 Screen: إسناد ومعالجة المشاكل
 Order:
 Search → Assign Employee → Update Treatment → Transfer Employee →
 Assignment History → Create Result → Refresh → Meeting Subject
 Standalone Exit hidden; title-row X remains.
 CSS only. No app.js / business logic / print changes.
 Version: 3.3.16.44.2.521
*/

@media screen {

  .meeting-issue-workflow-toolbar{
    direction:rtl!important;

    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:auto!important;
    min-height:50px!important;
    max-height:none!important;

    margin:0 0 8px!important;
    padding:6px 8px!important;

    box-sizing:border-box!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-gutter:stable!important;

    transform:none!important;
  }

  /* Commands remain on the right in their native functional order. */
  .meeting-issue-workflow-toolbar > .toolbar-actions{
    order:0!important;
    direction:rtl!important;

    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;

    flex:0 0 auto!important;
    width:auto!important;
    min-width:max-content!important;
    max-width:none!important;

    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;

    margin:0!important;
    padding:0!important;

    overflow:visible!important;
    transform:none!important;
    box-sizing:border-box!important;
  }

  .meeting-issue-workflow-toolbar > .toolbar-actions > *{
    position:static!important;
    flex:0 0 auto!important;

    width:auto!important;
    min-width:94px!important;
    max-width:none!important;

    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;

    margin:0!important;
    padding:4px 10px!important;

    display:inline-flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;

    white-space:nowrap!important;
    box-sizing:border-box!important;

    transform:none!important;
    translate:none!important;
    scale:none!important;
    box-shadow:none!important;
    filter:none!important;
  }

  /* Subject is the left-most item in the exact same row. */
  .meeting-issue-workflow-toolbar > .meeting-issue-workflow-subject{
    order:1!important;
    direction:rtl!important;

    flex:0 0 440px!important;
    width:440px!important;
    min-width:440px!important;
    max-width:440px!important;

    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;

    margin:0!important;
    padding:0!important;

    display:flex!important;
    align-items:center!important;

    transform:none!important;
    box-sizing:border-box!important;
  }

  .meeting-issue-workflow-toolbar
  > .meeting-issue-workflow-subject
  .meeting-toolbar-subject{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    display:grid!important;
    grid-template-columns:110px minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;

    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }

  .meeting-issue-workflow-toolbar
  > .meeting-issue-workflow-subject
  .meeting-toolbar-subject > span{
    white-space:nowrap!important;
    font-size:10px!important;
    font-weight:800!important;
  }

  .meeting-issue-workflow-toolbar
  > .meeting-issue-workflow-subject
  .meeting-toolbar-subject select{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;

    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;

    margin:0!important;
    box-sizing:border-box!important;
  }

  /* The only direct secondary button is the standalone Exit button. */
  .meeting-issue-workflow-toolbar > button.secondary-button{
    display:none!important;

    width:0!important;
    min-width:0!important;
    max-width:0!important;

    height:0!important;
    min-height:0!important;
    max-height:0!important;

    margin:0!important;
    padding:0!important;
    border:0!important;

    overflow:hidden!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  .meeting-issue-workflow-toolbar + *{
    margin-top:0!important;
  }

  /* Stable buttons: no hover / focus / press movement. */
  .meeting-issue-workflow-toolbar button:hover:not(:disabled),
  .meeting-issue-workflow-toolbar button:focus-visible,
  .meeting-issue-workflow-toolbar button:active{
    transform:none!important;
    translate:none!important;
    scale:none!important;
    box-shadow:none!important;
    filter:none!important;
    outline:none!important;
  }
}

/* Keep the row intact; narrow windows scroll horizontally rather than wrapping. */
@media screen and (max-width:1180px){
  .meeting-issue-workflow-toolbar{
    min-width:1120px!important;
  }
}
