/*
 GreenEco — Global screen/table context menu
 Version: 3.3.16.44.2.559

 - Opens from left click on non-interactive screen/table areas.
 - Also supports native right-click.
 - Table-focused commands are automatically disabled outside tables.
 - No app.js / business logic / print CSS changes.
*/

@media screen {

  .greeneco-context-menu{
    position:fixed!important;
    z-index:32000!important;

    width:178px!important;
    max-height:calc(100vh - 16px)!important;

    margin:0!important;
    padding:3px 0!important;

    display:none!important;

    direction:rtl!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;

    border:1px solid #7e8b92!important;
    border-radius:0!important;
    background:#f6f6f6!important;

    box-shadow:2px 3px 8px rgba(0,0,0,.28)!important;

    font-family:Tahoma,Arial,sans-serif!important;
    font-size:11px!important;
    line-height:1.25!important;

    user-select:none!important;
    box-sizing:border-box!important;
  }

  .greeneco-context-menu.open{
    display:block!important;
  }

  .greeneco-context-menu button{
    width:100%!important;
    min-width:0!important;
    height:25px!important;
    min-height:25px!important;

    margin:0!important;
    padding:3px 9px!important;

    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;

    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#111!important;

    text-align:right!important;
    font:inherit!important;

    white-space:nowrap!important;

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

    cursor:default!important;
    box-sizing:border-box!important;
  }

  .greeneco-context-menu button:hover:not(:disabled),
  .greeneco-context-menu button:focus-visible:not(:disabled){
    background:#9fc9e8!important;
    color:#111!important;
    outline:0!important;

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

  .greeneco-context-menu button:disabled{
    color:#999!important;
    opacity:.6!important;
  }

  .greeneco-context-menu .greeneco-context-shortcut{
    direction:ltr!important;
    margin-inline-start:auto!important;
    color:#555!important;
    font-size:10px!important;
  }

  .greeneco-context-separator{
    height:1px!important;
    margin:3px 4px!important;
    background:#b6b6b6!important;
  }

  .greeneco-context-cell-selected{
    outline:2px solid #2785b8!important;
    outline-offset:-2px!important;
    background:#e6f5ff!important;
  }

  .greeneco-context-marked > td,
  .greeneco-context-marked > th{
    background:#fff3b8!important;
  }

  .greeneco-context-search-hit{
    background:#fff0a6!important;
    box-shadow:inset 0 0 0 1px #d89b00!important;
  }

  .greeneco-context-toast{
    position:fixed!important;
    left:18px!important;
    bottom:42px!important;
    z-index:32100!important;

    min-width:230px!important;
    max-width:min(520px,calc(100vw - 36px))!important;

    padding:8px 12px!important;

    direction:rtl!important;
    text-align:right!important;

    border:1px solid #65747b!important;
    border-radius:0!important;
    background:#fff!important;
    color:#17262d!important;

    box-shadow:0 5px 18px rgba(0,0,0,.25)!important;

    font:700 12px Tahoma,Arial,sans-serif!important;

    opacity:0!important;
    pointer-events:none!important;
    transition:opacity .12s linear!important;
  }

  .greeneco-context-toast.show{
    opacity:1!important;
  }

  .greeneco-table-preview-overlay{
    position:fixed!important;
    inset:0!important;
    z-index:32500!important;

    display:grid!important;
    place-items:center!important;

    padding:18px!important;

    background:rgba(7,24,41,.72)!important;
    box-sizing:border-box!important;
  }

  .greeneco-table-preview-card{
    width:min(1180px,calc(100vw - 36px))!important;
    height:min(760px,calc(100vh - 36px))!important;
    min-width:0!important;
    min-height:0!important;

    display:flex!important;
    flex-direction:column!important;

    border:1px solid #65747b!important;
    border-radius:0!important;
    background:#fff!important;

    overflow:hidden!important;
    box-shadow:0 16px 55px rgba(0,0,0,.42)!important;
  }

  .greeneco-table-preview-head{
    flex:0 0 44px!important;

    display:flex!important;
    align-items:center!important;
    gap:6px!important;

    padding:5px 8px!important;

    direction:rtl!important;

    border-bottom:1px solid #9da8ad!important;
    background:#f4f8fa!important;
  }

  .greeneco-table-preview-head strong{
    flex:1 1 auto!important;
    text-align:center!important;
    font-size:15px!important;
  }

  .greeneco-table-preview-head button{
    min-width:74px!important;
    height:32px!important;
    border-radius:0!important;

    transform:none!important;
    translate:none!important;
    scale:none!important;
  }

  .greeneco-table-preview-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:auto!important;

    padding:12px!important;
    direction:rtl!important;
  }

  .greeneco-table-preview-body table{
    width:100%!important;
    border-collapse:collapse!important;
  }

  .greeneco-table-preview-body th,
  .greeneco-table-preview-body td{
    border:1px solid #78868d!important;
    padding:5px 7px!important;
    text-align:right!important;
  }

  .greeneco-table-preview-body th{
    background:#657078!important;
    color:#fff!important;
    position:sticky!important;
    top:0!important;
  }

  .greeneco-context-icons-hidden svg,
  .greeneco-context-icons-hidden i,
  .greeneco-context-icons-hidden [class*="icon"]{
    visibility:hidden!important;
  }


  /* v559 — direct mouse column resizing; screen only. */
  th.greeneco-column-resize-hover{
    cursor:col-resize!important;
  }

  html.greeneco-column-resizing,
  html.greeneco-column-resizing body,
  html.greeneco-column-resizing body *{
    cursor:col-resize!important;
    user-select:none!important;
  }

}
