1	1	1	1	1	/* 2026-10-03 laptop responsiveness.
     2	     2	     2	     2	     2	   A ticket must reflow before controls are clipped. On narrower laptop/iframe
     3	     3	     3	     3	     3	   widths, Conversation + Compose get the full row and context stacks below. */
     4	     4	     4	     4	     4	@media (min-width:980px) and (max-width:1300px){
     5	     5	     5	     5	     5	  body.full-case-mode.desk-embedded .drawer-content{
     6	     6	     6	     6	     6	    display:block!important;
     7	     7	     7	     7	     7	    height:100%!important;
     8	     8	     8	     8	     8	    min-height:0!important;
     9	     9	     9	     9	     9	    overflow-y:auto!important;
    10	    10	    10	    10	    10	    overflow-x:hidden!important;
    11	    11	    11	    11	    11	    padding:0!important;
    12	    12	    12	    12	    12	    scrollbar-gutter:stable;
    13	    13	    13	    13	    13	  }
    14	    14	    14	    14	    14	  body.full-case-mode.desk-embedded .record-workspace{
    15	    15	    15	    15	    15	    display:flex!important;
    16	    16	    16	    16	    16	    flex-direction:column!important;
    17	    17	    17	    17	    17	    width:100%!important;
    18	    18	    18	    18	    18	    height:auto!important;
    19	    19	    19	    19	    19	    min-height:100%!important;
    20	    20	    20	    20	    20	    overflow:visible!important;
    21	    21	    21	    21	    21	    gap:0!important;
    22	    22	    22	    22	    22	  }
    23	    23	    23	    23	    23	  body.full-case-mode.desk-embedded .record-work{
    24	    24	    24	    24	    24	    order:1!important;
    25	    25	    25	    25	    25	    width:100%!important;
    26	    26	    26	    26	    26	    height:calc(100dvh - 4px)!important;
    27	    27	    27	    27	    27	    min-height:620px!important;
    28	    28	    28	    28	    28	    flex:0 0 auto!important;
    29	    29	    29	    29	    29	    overflow:hidden!important;
    30	    30	    30	    30	    30	  }
    31	    31	    31	    31	    31	  body.full-case-mode.desk-embedded .record-context{
    32	    32	    32	    32	    32	    order:2!important;
    33	    33	    33	    33	    33	    width:100%!important;
    34	    34	    34	    34	    34	    height:auto!important;
    35	    35	    35	    35	    35	    min-height:0!important;
    36	    36	    36	    36	    36	    max-height:none!important;
    37	    37	    37	    37	    37	    overflow:visible!important;
    38	    38	    38	    38	    38	    padding:12px 12px 28px!important;
    39	    39	    39	    39	    39	    border-left:0!important;
    40	    40	    40	    40	    40	    border-top:1px solid #dce4ec!important;
    41	    41	    41	    41	    41	    background:#f7f9fb!important;
    42	    42	    42	    42	    42	  }
    43	    43	    43	    43	    43	  body.full-case-mode.desk-embedded .desk-context-resizer{display:none!important}
    44	    44	    44	    44	    44	  body.full-case-mode.desk-embedded .history-conversation{
    45	    45	    45	    45	    45	    grid-template-columns:minmax(220px,35%) minmax(0,65%)!important;
    46	    46	    46	    46	    46	  }
    47	    47	    47	    47	    47	  body.full-case-mode.desk-embedded .message-format-toolbar{
    48	    48	    48	    48	    48	    flex-wrap:wrap!important;
    49	    49	    49	    49	    49	    row-gap:4px!important;
    50	    50	    50	    50	    50	    max-width:100%!important;
    51	    51	    51	    51	    51	  }
    52	    52	    52	    52	    52	  body.full-case-mode.desk-embedded #inlineMessageEditorChrome{
    53	    53	    53	    53	    53	    overflow:visible!important;
    54	    54	    54	    54	    54	    flex-wrap:wrap!important;
    55	    55	    55	    55	    55	  }
    56	    56	    56	    56	    56	  body.full-case-mode.desk-embedded .inline-ai-toolbar{
    57	    57	    57	    57	    57	    flex-wrap:wrap!important;
    58	    58	    58	    58	    58	  }
    59	    59	    59	    59	    59	  body.full-case-mode.desk-embedded .inline-footer-row{
    60	    60	    60	    60	    60	    flex-wrap:wrap!important;
    61	    61	    61	    61	    61	    align-items:center!important;
    62	    62	    62	    62	    62	  }
    63	    63	    63	    63	    63	  body.full-case-mode.desk-embedded .inline-footer-row .inline-reply-actions{
    64	    64	    64	    64	    64	    margin-left:auto!important;
    65	    65	    65	    65	    65	    flex-wrap:wrap!important;
    66	    66	    66	    66	    66	  }
    67	    67	    67	    67	    67	}
    68	    68	    68	    68	    68	
    69	    69	    69	    69	    69	@media (min-width:980px) and (max-height:900px){
    70	    70	    70	    70	    70	  body.full-case-mode.desk-embedded .inline-reply{
    71	    71	    71	    71	    71	    overflow-y:auto!important;
    72	    72	    72	    72	    72	    overscroll-behavior:contain!important;
    73	    73	    73	    73	    73	  }
    74	    74	    74	    74	    74	  body.full-case-mode.desk-embedded .inline-message-editor-shell{
    75	    75	    75	    75	    75	    min-height:110px!important;
    76	    76	    76	    76	    76	  }
    77	    77	    77	    77	    77	  body.full-case-mode.desk-embedded .message-format-toolbar,
    78	    78	    78	    78	    78	  body.full-case-mode.desk-embedded .inline-ai-toolbar,
    79	    79	    79	    79	    79	  body.full-case-mode.desk-embedded .inline-footer-row{
    80	    80	    80	    80	    80	    flex-wrap:wrap!important;
    81	    81	    81	    81	    81	  }
    82	    82	    82	    82	    82	}
    83	    83	    83	    83	    83	
    84	    84	    84	    84	    84	/* Safe application-shell guardrails: no view should force AT Central wider than
    85	    85	    85	    85	    85	   the browser. Wide tables/panels must scroll inside their own containers. */
    86	    86	    86	    86	    86	html,body,.app-shell,.main-content,.view{max-width:100%}
    87	    87	    87	    87	    87	.main-content,.view{min-width:0}
    88	    88	    88	    88	    88	img,video{max-width:100%;height:auto}
    89	    89	    89	    89	
    90	    90	    90	    90	/* Service Desk queue: fit the working report to the viewport.
    91	    91	    91	    91	   Ticket Status and Scheduled are filters; they are not table columns. */
    92	    92	    92	    92	@media (min-width:851px){
    93	    93	    93	    93	  #workView .service-filter-bar>.service-multi-filter{grid-column:1!important;grid-row:1!important}
    94	    94	    94	    94	  #workView .service-filter-bar>.service-tag-filter{grid-column:2!important;grid-row:1!important}
    95	    95	    95	    95	  #workView .service-filter-bar>.service-ticket-status-filter{grid-column:3!important;grid-row:1!important;min-width:0!important}
    96	    96	    96	    96	  #workView .service-filter-bar>.service-scheduled-only-filter{grid-column:4!important;grid-row:1!important;min-width:0!important}
    97	    97	    97	    97	  #workView .service-filter-bar>.service-desk-list-search{grid-column:1!important;grid-row:2!important;min-width:0!important}
    98	    98	    98	    98	  #workView .service-filter-bar>.service-last-reply-filter{grid-column:2!important;grid-row:2!important;min-width:0!important}
    99	    99	    99	    99	  #workView .service-filter-bar>.message-contains-filter{grid-column:3!important;grid-row:2!important;min-width:0!important}
   100	   100	   100	   100	  #workView .service-filter-bar>.reset-filter-wrap{grid-column:4!important;grid-row:2!important;min-width:0!important}
   101	   101	   101	   101	  #workView .service-ticket-status-filter select{width:100%!important;min-width:0!important}
   102	   102	   102	   102	  #workView .service-scheduled-only-filter .service-search-open-only{min-height:36px!important;margin:0!important;padding:0 4px!important;align-items:center!important}
   103	   103	   103	   103	
   104	   104	   104	   104	  #workView .queue-panel .table-wrap{overflow-x:hidden!important}
   105	   105	   105	   105	  #workView .service-desk-table{
   106	   106	   106	   106	    width:100%!important;
   107	   107	   107	   107	    min-width:0!important;
   108	   108	   108	   108	    max-width:100%!important;
   109	   109	   109	   109	    table-layout:fixed!important;
   110	   110	   110	   110	  }
   111	   111	   111	   111	  #workView .service-desk-table th,
   112	   112	   112	   112	  #workView .service-desk-table td{
   113	   113	   113	   113	    min-width:0!important;
   114	   114	   114	   114	    max-width:none!important;
   115	   115	   115	   115	    overflow-wrap:anywhere!important;
   116	   116	   116	   116	    word-break:normal!important;
   117	   117	   117	   117	  }
   118	   118	   118	   118	  #workView .service-desk-table th:nth-child(n),
   119	   119	   119	   119	  #workView .service-desk-table td:nth-child(n){
   120	   120	   120	   120	    min-width:0!important;
   121	   121	   121	   121	    max-width:none!important;
   122	   122	   122	   122	  }
   123	   123	   123	   123	  #workView .service-desk-table .player-cell,
   124	   124	   124	   124	  #workView .service-desk-table .player-identifiers,
   125	   125	   125	   125	  #workView .service-desk-table .next-action-cell,
   126	   126	   126	   126	  #workView .service-desk-table .queue-stage-stack{
   127	   127	   127	   127	    min-width:0!important;
   128	   128	   128	   128	    max-width:100%!important;
   129	   129	   129	   129	  }
   130	   130	   130	   130	  #workView .service-desk-table .cell-primary,
   131	   131	   131	   131	  #workView .service-desk-table .cell-secondary,
   132	   132	   132	   132	  #workView .service-desk-table .queue-next-action-scheduled{
   133	   133	   133	   133	    white-space:normal!important;
   134	   134	   134	   134	    overflow-wrap:anywhere!important;
   135	   135	   135	   135	  }
   136	   136	   136	   136	  #workView .queue-bottom-scroll{display:none!important}
   137	   137	   137	   137	}
   138	   138	   138	   138	
   139	   139	   139	   139	@media (min-width:851px) and (max-width:1180px){
   140	   140	   140	   140	  #workView .service-desk-table th,
   141	   141	   141	   141	  #workView .service-desk-table td{padding-left:7px!important;padding-right:7px!important}
   142	   142	   142	   142	  #workView .service-desk-table th{font-size:9.5px!important}
   143	   143	   143	   143	  #workView .service-desk-table td{font-size:11px!important}
   144	   144	   144	   144	  #workView .service-desk-table .row-select{padding-left:7px!important;padding-right:7px!important}
   145	   145	   145	   145	  #workView .service-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))!important}
   146	   146	   146	   146	}
   147	   147	   147	   147	
   148	   148	   148	   148	@media (min-width:851px) and (max-width:1020px){
   149	   149	   149	   149	  /* Last Activity is useful but secondary. On the narrowest laptop/tablet landscape
   150	   150	   150	   150	     widths, hide it before allowing horizontal overflow. */
   151	   151	   151	   151	  #workView .service-desk-table th[data-service-desk-column="activity"],
   152	   152	   152	   152	  #workView .service-desk-table td[data-queue-column="activity"],
   153	   153	   153	   153	  #workView .service-desk-table col[data-service-desk-col="activity"]{display:none!important}
   154	   154	   154	   154	}
   155	   155	   155	
   156	   156	   156	/* Keep the row expand control permanently inside the visible report edge. */
   157	   157	   157	@media (min-width:851px){
   158	   158	   158	  #workView .queue-panel .table-wrap{position:relative!important}
   159	   159	   159	  #workView .service-desk-table thead th:last-child{
   160	   160	   160	    position:sticky!important;
   161	   161	   161	    right:0!important;
   162	   162	   162	    z-index:8!important;
   163	   163	   163	    width:42px!important;
   164	   164	   164	    min-width:42px!important;
   165	   165	   165	    max-width:42px!important;
   166	   166	   166	    padding-left:4px!important;
   167	   167	   167	    padding-right:4px!important;
   168	   168	   168	    background:#f5f7f9!important;
   169	   169	   169	    box-shadow:-1px 0 0 #dfe6ed!important;
   170	   170	   170	  }
   171	   171	   171	  #workView .service-desk-table tbody tr:not(.service-desk-inline-preview-row)>td.service-desk-preview-toggle-cell{
   172	   172	   172	    position:sticky!important;
   173	   173	   173	    right:0!important;
   174	   174	   174	    z-index:6!important;
   175	   175	   175	    width:42px!important;
   176	   176	   176	    min-width:42px!important;
   177	   177	   177	    max-width:42px!important;
   178	   178	   178	    padding-left:4px!important;
   179	   179	   179	    padding-right:4px!important;
   180	   180	   180	    background:#fff!important;
   181	   181	   181	    box-shadow:-1px 0 0 #edf1f4!important;
   182	   182	   182	  }
   183	   183	   183	  #workView .service-desk-table tbody tr:hover>td.service-desk-preview-toggle-cell{
   184	   184	   184	    background:#f9fbfd!important;
   185	   185	   185	  }
   186	   186	   186	  #workView .service-desk-preview-toggle{
   187	   187	   187	    display:grid!important;
   188	   188	   188	    margin:0 auto!important;
   189	   189	   189	  }
   190	   190	   190	}
   /* Composer tools must remain visible in Auto when Auto resolves to SMS or Email.
   Protect the formatting row from being squeezed out by the email closing or
   reduced laptop height.
   Nov 8 2026 (Ticket #100453): this section and the one below had stray line
   numbers pasted into the file, so the browser ignored them and the Email
   composer pushed Try again / Fix grammar / Friendlier / Shorter / Rephrase out
   of sight. Cleaned. The Service Desk queue rules above this point are still
   affected and were left alone on purpose. */
body.full-case-mode.desk-embedded #inlineMessageEditorChrome:not([hidden]){
  display:flex!important;
  flex:0 0 auto!important;
  min-height:42px!important;
  max-height:none!important;
  visibility:visible!important;
  overflow:visible!important;
}
body.full-case-mode.desk-embedded #inlineFormatToolbar:not([hidden]){
  display:flex!important;
  flex:0 0 auto!important;
  flex-wrap:wrap!important;
  min-width:0!important;
  max-width:100%!important;
  row-gap:4px!important;
}
body.full-case-mode.desk-embedded .inline-email-closing-wrap:not([hidden]){
  flex:0 0 auto!important;
  max-height:150px!important;
  overflow-y:auto!important;
}
body.full-case-mode.desk-embedded .inline-message-editor-shell{
  flex:1 1 96px!important;
  min-height:96px!important;
}
body.full-case-mode.desk-embedded #inlineReplyText{
  min-height:96px!important;
}
/* Safety net: if the column is still too short (Email adds Subject, From,
   formatting bar and closing), scroll the composer instead of cutting off the
   writing tools at the bottom. */
body.full-case-mode.desk-embedded .inline-reply-text-wrap{
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
   /* 2026-10-03 responsive composer containment.
   Tool and footer rows must wrap inside the compose column; never clip left/right. */
@media (min-width:851px){
  body.full-case-mode.desk-embedded #inlineMessageEditorChrome:not([hidden]){
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    gap:5px!important;
    box-sizing:border-box!important;
  }
  body.full-case-mode.desk-embedded #inlineAiManualTools:not([hidden]){
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:0 0 auto!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    gap:5px!important;
    overflow:visible!important;
  }
  body.full-case-mode.desk-embedded #inlineFormatToolbar:not([hidden]){
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:0 0 auto!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    gap:4px!important;
    overflow:visible!important;
  }
  body.full-case-mode.desk-embedded .inline-reply-footer{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:7px!important;
    box-sizing:border-box!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-send-timing,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-draft-actions,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-reply-actions{
    min-width:0!important;
    max-width:100%!important;
    flex-wrap:wrap!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-reply-actions{
    margin-left:auto!important;
    justify-content:flex-end!important;
  }
}

@media (min-width:851px) and (max-width:1180px){
  body.full-case-mode.desk-embedded .inline-footer-row .inline-reply-actions{
    flex:1 1 100%!important;
    width:100%!important;
    margin-left:0!important;
    justify-content:flex-end!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-draft-actions{
    margin-left:auto!important;
  }
}

/* 2026-10-04 stable responsive composer geometry.
   Laptop responsiveness means smaller controls, not different rows. */
@media (min-width:851px){
  body.full-case-mode.desk-embedded #inlineAiManualTools:not([hidden]),
  body.full-case-mode.desk-embedded #inlineFormatToolbar:not([hidden]),
  body.full-case-mode.desk-embedded .inline-footer-row,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-send-timing,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-draft-actions,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-reply-actions{
    flex-wrap:nowrap!important;
  }

  body.full-case-mode.desk-embedded #inlineAiManualTools:not([hidden]){
    gap:clamp(3px,.4vw,6px)!important;
  }
  body.full-case-mode.desk-embedded #inlineAiManualTools .inline-ai-secondary{
    flex:0 1 auto!important;
    min-width:0!important;
    min-height:clamp(30px,2.4vw,35px)!important;
    height:clamp(30px,2.4vw,35px)!important;
    padding:4px clamp(6px,.65vw,10px)!important;
    font-size:clamp(9px,.78vw,11px)!important;
    white-space:nowrap!important;
  }

  body.full-case-mode.desk-embedded #inlineFormatToolbar:not([hidden]){
    gap:clamp(2px,.3vw,4px)!important;
  }
  body.full-case-mode.desk-embedded #inlineFormatToolbar>button,
  body.full-case-mode.desk-embedded #inlineFormatToolbar .message-editor-icon-button{
    flex:0 1 auto!important;
    width:clamp(28px,2.7vw,35px)!important;
    min-width:clamp(28px,2.7vw,35px)!important;
    height:clamp(30px,2.7vw,35px)!important;
    min-height:clamp(30px,2.7vw,35px)!important;
    padding:0!important;
    font-size:clamp(9px,.78vw,11px)!important;
  }
  body.full-case-mode.desk-embedded #inlineFormatToolbar .message-format-divider{
    margin:0 clamp(2px,.35vw,6px)!important;
  }

  body.full-case-mode.desk-embedded .inline-footer-row{
    gap:clamp(3px,.45vw,8px)!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-send-timing,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-draft-actions,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-reply-actions{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-reply-actions{
    margin-left:auto!important;
    justify-content:flex-end!important;
  }

  body.full-case-mode.desk-embedded .inline-footer-row button,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-send-choice{
    min-width:0!important;
    min-height:clamp(30px,2.6vw,34px)!important;
    height:clamp(30px,2.6vw,34px)!important;
    padding:4px clamp(6px,.62vw,10px)!important;
    font-size:clamp(9px,.76vw,10.5px)!important;
    white-space:nowrap!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label{
    gap:clamp(3px,.35vw,6px)!important;
    font-size:clamp(9px,.76vw,10.5px)!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label span{
    font-size:clamp(9px,.76vw,10.5px)!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label select{
    width:clamp(88px,9.5vw,118px)!important;
    min-width:clamp(88px,9.5vw,118px)!important;
    max-width:clamp(88px,9.5vw,118px)!important;
    min-height:clamp(30px,2.6vw,34px)!important;
    height:clamp(30px,2.6vw,34px)!important;
    padding:4px 22px 4px 7px!important;
    font-size:clamp(9px,.76vw,10.5px)!important;
  }
}

@media (min-width:851px) and (max-width:1040px){
  body.full-case-mode.desk-embedded .inline-footer-row{
    gap:3px!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row button,
  body.full-case-mode.desk-embedded .inline-footer-row .inline-send-choice{
    padding-left:5px!important;
    padding-right:5px!important;
    font-size:9px!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label{
    gap:3px!important;
  }
  body.full-case-mode.desk-embedded .inline-footer-row .inline-sender-label select{
    width:86px!important;
    min-width:86px!important;
    max-width:86px!important;
  }
}