/* AVYORA Connect R6.17 PUX5-R2 — Language Integrity + Premium Header + Commercial Polish
   Presentation-only refinement over PUX5-R1. No API/RBAC/schema changes. */

/* Commercial chrome: internal release markers never belong in the customer/staff UI. */
.premium-release-badge,
.sidebar-version{display:none!important}

/* Keep technical disclosures available but visually subordinate. */
.flow616-tech,.flow-release-details{border-color:#e5ecef!important;background:#fbfdfd!important}
.flow616-tech summary,.flow-release-details summary{font-size:10px!important;letter-spacing:.01em;color:#728791!important}

/* Correct CSS-generated labels by active UI language. */
body[data-ui-language="ar"] .premium-actionable::after{content:"فتح التفاصيل ←"}
body[data-ui-language="en"] .premium-actionable::after{content:"Open details →"}
body[data-ui-language="ar"] .premium-actionable[data-premium-kind="alert"]::after{content:"انتقل إلى الإجراء ←"}
body[data-ui-language="en"] .premium-actionable[data-premium-kind="alert"]::after{content:"Go to action →"}
body[data-ui-language="ar"] .premium-actionable[data-premium-kind="notification"]::after{content:"فتح التنبيه والإجراء ←"}
body[data-ui-language="en"] .premium-actionable[data-premium-kind="notification"]::after{content:"Open alert & action →"}

/* Desktop enterprise header: two calm tiers for staff instead of one crowded strip. */
@media(min-width:1181px){
  .uxr617-shell.staff-workspace.premium-shell-r614{grid-template-columns:242px minmax(0,1fr)}
  .uxr617-shell.staff-workspace .topbar{
    min-height:108px!important;
    padding:9px 18px 10px!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-content:center;
    align-items:center;
    column-gap:9px!important;
    row-gap:7px!important;
  }
  .uxr617-shell.staff-workspace .top-title-box{
    flex:1 1 420px!important;
    min-width:220px!important;
    padding-inline:2px;
  }
  .uxr617-shell.staff-workspace .top-title-box #viewTitle{font-size:16px!important}
  .uxr617-shell.staff-workspace .flow-quick-btn{
    margin-inline-start:auto!important;
    min-height:38px!important;
    padding-inline:15px!important;
    border-radius:11px!important;
  }
  .uxr617-shell.staff-workspace .flow-command-btn,
  .uxr617-shell.staff-workspace .flow-home-btn{width:38px!important;height:38px!important;flex:0 0 38px}
  .uxr617-shell.staff-workspace .top-user{
    order:20;
    flex:1 0 100%!important;
    width:100%;
    margin:0!important;
    padding-top:7px;
    border-top:1px solid #e9eff2;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
  }
  .uxr617-shell.staff-workspace .top-user .staff-workspace-tools{
    margin-inline-end:auto!important;
    background:transparent!important;
    border:0!important;
    padding:0!important;
    gap:5px!important;
  }
  .uxr617-shell.staff-workspace .staff-workspace-badge{
    background:#eef6f7;
    border:1px solid #dce8eb;
    border-radius:8px;
    padding:6px 8px!important;
    color:#52707d!important;
  }
  .uxr617-shell.staff-workspace .staff-quick-btn,
  .uxr617-shell.staff-workspace .staff-security-chip{
    min-height:30px!important;
    padding:5px 9px!important;
    border:1px solid #e0e8ec!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .uxr617-shell.staff-workspace .staff-security-chip.warn{background:#fff9ed!important;border-color:#efe1c3!important}
  .uxr617-shell.staff-workspace .staff-security-chip.ok{background:#f0f8f4!important;border-color:#d8eadf!important}
  .uxr617-shell.staff-workspace .uxr617-user-copy{max-width:230px!important}
  .uxr617-shell.staff-workspace .uxr617-user-copy>b{font-size:12px!important}
  .uxr617-shell.staff-workspace .uxr617-user-copy>.meta{font-size:10px!important}
  .uxr617-shell.staff-workspace .avatar{width:34px!important;height:34px!important;flex-basis:34px!important}
  .uxr617-shell.staff-workspace .i18n-switch{min-height:34px!important;padding:6px 10px!important;border-radius:10px!important}
  .uxr617-shell.staff-workspace #logout{min-height:34px!important;padding:6px 10px!important}
  .uxr617-shell.staff-workspace .workspace-chip.uxr617r2-redundant-workspace{display:none!important}
  .uxr617-shell.staff-workspace .content{padding:22px 26px 40px!important;max-width:1680px!important}
}

/* Premium dashboard density without flattening hierarchy. */
.uxr617-shell .flow-start-card{
  border-radius:20px!important;
  box-shadow:0 12px 34px rgba(8,49,64,.10)!important;
  padding:20px!important;
}
.uxr617-shell .flow-start-copy h1{font-size:23px!important;letter-spacing:-.018em}
.uxr617-shell .flow-action-grid button{border-radius:13px!important}
.uxr617-shell .kpi{box-shadow:0 2px 10px rgba(13,42,59,.035)!important}
.uxr617-shell .kpi b{font-variant-numeric:tabular-nums}
.uxr617-shell .card,.uxr617-shell .table-wrap{border-color:#e1e9ed!important}
.uxr617-shell .content>details{box-shadow:none}

/* Login polish. Native entry copy is authored by renderLogin and no longer retranslated. */
.glo2-entry.uxr617-entry .glo2-entry-shell{border-color:#dce7eb!important}
.glo2-entry.uxr617-entry .glo2-auth{background:linear-gradient(180deg,#fff,#fcfefe)}
.glo2-entry.uxr617-entry .glo2-auth-head p{max-width:420px}
.glo2-entry.uxr617-entry .glo2-auth .field input{border-color:#d8e4e8;background:#fff}
.glo2-entry.uxr617-entry .glo2-auth .field input:focus{border-color:#55b5af;box-shadow:0 0 0 4px rgba(11,143,138,.08)}
.glo2-entry.uxr617-entry .glo2-footer{border-top:1px solid #edf2f4;padding-top:16px}

/* Tablet: keep header readable; staff tools remain a dedicated horizontal row. */
@media(min-width:601px) and (max-width:1180px){
  .uxr617-shell .premium-release-badge{display:none!important}
  .uxr617-shell.staff-workspace .topbar{row-gap:6px!important}
  .uxr617-shell.staff-workspace .staff-workspace-tools{
    border:0!important;
    border-top:1px solid #e9eff2!important;
    background:transparent!important;
    border-radius:0!important;
    padding:7px 0 0!important;
  }
  .uxr617-shell.staff-workspace .workspace-chip.uxr617r2-redundant-workspace{display:none!important}
}

/* Phone: show only essential chrome; no internal release/version debris. */
@media(max-width:600px){
  .uxr617-shell .premium-release-badge,.uxr617-shell .sidebar-version{display:none!important}
  .uxr617-shell .staff-workspace-tools{border:0!important;box-shadow:none!important}
  .uxr617-shell .staff-quick-btn,.uxr617-shell .staff-security-chip{
    border:1px solid #e0e8ec!important;box-shadow:none!important
  }
  .glo2-entry.uxr617-entry .glo2-hero{min-height:auto}
  .glo2-entry.uxr617-entry .glo2-auth{border-top:1px solid #eef2f4}
}
