/* PHASE_M2_R5F3_FRONTEND_DOMAIN_MODULES_R1: moved from /assets/css/modules/024-phase5zq-agent-card-hard-compact-r2-css.css */
/* Extracted to named module by PHASE_M2_R5F2_FRONTEND_NAMED_MODULES_R2_FIXED from assets/css/blocks/024-phase5zq-agent-card-hard-compact-r2-css.css */
/* Extracted from frontend/index.html by PHASE_M2_R5F1_FRONTEND_MODULAR_SPLIT_R1: phase5zq-agent-card-hard-compact-r2-css */
@media (max-width: 760px){
  /* Hard final compact mode for salesperson Agent cards.
     Main fix: when previous patches leave .phase5zk-action-grid as a child of a 2-col Actions grid,
     force the child grid to span 1 / -1 and make every action fill equal width. */

  body.b2bcrm-salesperson-role .phase5zh-mobile-note,
  body.b2bcrm-salesperson-role .phase5zh-mobile-note.phase5zj-premium-note{
    display:none!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table{
    border-spacing:0 8px!important;
    width:100%!important;
    table-layout:fixed!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table tbody,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table tbody{
    display:block!important;
    width:100%!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table tr,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table tr,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table tr.phase5zj-premium-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:7px 8px!important;
    width:100%!important;
    max-width:100%!important;
    padding:11px 10px 11px 15px!important;
    margin:0 0 8px!important;
    border-radius:20px!important;
    box-sizing:border-box!important;
    box-shadow:0 8px 20px rgba(15,23,42,.055)!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table tr::before,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table tr::before{
    width:4px!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    margin:0!important;
    overflow-wrap:anywhere!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td::before,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td::before{
    margin-bottom:2px!important;
    font-size:9.5px!important;
    line-height:1.05!important;
    letter-spacing:.07em!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zh-label="ID"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zj-label="ID"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zh-label="ID"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zj-label="ID"]{
    grid-column:1 / 2!important;
    justify-self:start!important;
    width:auto!important;
    min-width:0!important;
    padding:5px 12px!important;
    margin:0!important;
    border-radius:999px!important;
    font-size:14px!important;
    line-height:1!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zh-label="Agent"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zj-label="Agent"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zh-label="Agent"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zj-label="Agent"]{
    grid-column:1 / -1!important;
    font-size:18px!important;
    line-height:1.08!important;
    padding:0!important;
    margin:0!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zh-label="Number"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zj-label="Number"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zh-label="Number"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zj-label="Number"]{
    grid-column:1 / -1!important;
    padding:7px 10px!important;
    margin:0!important;
    border-radius:14px!important;
    font-size:17px!important;
    line-height:1.08!important;
    letter-spacing:.055em!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zh-label="Agent Type / Status"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zj-label="Agent Type / Status"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zh-label="Assigned"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zj-label="Assigned"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zh-label="Agent Type / Status"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zj-label="Agent Type / Status"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zh-label="Assigned"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zj-label="Assigned"]{
    min-height:52px!important;
    padding:8px 9px!important;
    margin:0!important;
    border-radius:14px!important;
    font-size:13.5px!important;
    line-height:1.08!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zh-label="Actions"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zj-label="Actions"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zh-label="Actions"],
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zj-label="Actions"],
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td.phase5zk-actions-cell,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td.phase5zk-actions-cell,
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td.phase5zl-actions-grid,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td.phase5zl-actions-grid,
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td.phase5zq-actions-cell,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td.phase5zq-actions-cell{
    grid-column:1 / -1!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:7px 0 0!important;
    margin:3px 0 0!important;
    border-top:1px dashed #d8e2ec!important;
    box-sizing:border-box!important;
  }

  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zh-label="Actions"]::before,
  body.b2bcrm-salesperson-role table.phase5zh-agent-mobile-table td[data-phase5zj-label="Actions"]::before,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zh-label="Actions"]::before,
  body.b2bcrm-salesperson-role table.phase5zj-agent-premium-table td[data-phase5zj-label="Actions"]::before,
  body.b2bcrm-salesperson-role td.phase5zk-actions-cell::before,
  body.b2bcrm-salesperson-role td.phase5zl-actions-grid::before,
  body.b2bcrm-salesperson-role td.phase5zq-actions-cell::before{
    content:"Actions"!important;
    display:block!important;
    margin:0 0 5px!important;
    padding:0!important;
    color:#64748b!important;
    font-size:9.5px!important;
    line-height:1.05!important;
    font-weight:950!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
  }

  body.b2bcrm-salesperson-role td[data-phase5zh-label="Actions"] > .phase5zk-action-grid,
  body.b2bcrm-salesperson-role td[data-phase5zj-label="Actions"] > .phase5zk-action-grid,
  body.b2bcrm-salesperson-role td.phase5zk-actions-cell > .phase5zk-action-grid,
  body.b2bcrm-salesperson-role td.phase5zl-actions-grid > .phase5zk-action-grid,
  body.b2bcrm-salesperson-role td.phase5zq-actions-cell > .phase5zk-action-grid,
  body.b2bcrm-salesperson-role .phase5zq-action-grid{
    grid-column:1 / -1!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    justify-items:stretch!important;
    align-items:stretch!important;
  }

  body.b2bcrm-salesperson-role td[data-phase5zh-label="Actions"] br,
  body.b2bcrm-salesperson-role td[data-phase5zj-label="Actions"] br,
  body.b2bcrm-salesperson-role td.phase5zk-actions-cell br,
  body.b2bcrm-salesperson-role td.phase5zl-actions-grid br,
  body.b2bcrm-salesperson-role td.phase5zq-actions-cell br{
    display:none!important;
  }

  body.b2bcrm-salesperson-role td[data-phase5zh-label="Actions"] button,
  body.b2bcrm-salesperson-role td[data-phase5zh-label="Actions"] a,
  body.b2bcrm-salesperson-role td[data-phase5zh-label="Actions"] .btn,
  body.b2bcrm-salesperson-role td[data-phase5zj-label="Actions"] button,
  body.b2bcrm-salesperson-role td[data-phase5zj-label="Actions"] a,
  body.b2bcrm-salesperson-role td[data-phase5zj-label="Actions"] .btn,
  body.b2bcrm-salesperson-role td.phase5zk-actions-cell button,
  body.b2bcrm-salesperson-role td.phase5zk-actions-cell a,
  body.b2bcrm-salesperson-role td.phase5zk-actions-cell .btn,
  body.b2bcrm-salesperson-role td.phase5zl-actions-grid button,
  body.b2bcrm-salesperson-role td.phase5zl-actions-grid a,
  body.b2bcrm-salesperson-role td.phase5zl-actions-grid .btn,
  body.b2bcrm-salesperson-role td.phase5zq-actions-cell button,
  body.b2bcrm-salesperson-role td.phase5zq-actions-cell a,
  body.b2bcrm-salesperson-role td.phase5zq-actions-cell .btn{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:42px!important;
    min-height:42px!important;
    margin:0!important;
    padding:0 8px!important;
    border-radius:13px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:13.5px!important;
    line-height:1!important;
    font-weight:950!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    justify-self:stretch!important;
    align-self:stretch!important;
    grid-column:auto!important;
  }

  body.b2bcrm-salesperson-role .phase5zq-wa{order:1!important;background:#05a84f!important;color:#fff!important;border-color:#05a84f!important;}
  body.b2bcrm-salesperson-role .phase5zq-call{order:2!important;background:#2f4d66!important;color:#fff!important;border-color:#2f4d66!important;}
  body.b2bcrm-salesperson-role .phase5zq-view{order:3!important;background:#05a84f!important;color:#fff!important;border-color:#05a84f!important;}
  body.b2bcrm-salesperson-role .phase5zq-edit{order:4!important;background:#f8fafc!important;color:#0f172a!important;border:1px solid #dbe3ec!important;}
  body.b2bcrm-salesperson-role .phase5zq-production{order:5!important;background:#ecfdf5!important;color:#047857!important;border:1px solid #a7f3d0!important;}
  body.b2bcrm-salesperson-role .phase5zq-manager{order:6!important;background:#fff7ed!important;color:#9a3412!important;border:1px solid #fed7aa!important;}
}
