/* MH Customer Support natural layout V3 — release 2026-10-26
   Preserve existing support API, case context, chat messages and file handling. */

/* Voice help still plays from the red help button. No redundant post-play bar. */
html body #mhEasyAudioHolder,
html body #mhEasyAudioText,
html body .mh-easy-audio-holder{display:none!important}

/* Native MOATAZ AI visual language: chat dominates, tickets remain accessible. */
html body #app #customerServiceSupport.panel{
 --cs-accent:#b30938;--cs-border:#efdce4;--cs-soft:#fff7fa;
 --cs-ink:#281f2a;--cs-muted:#695865;
 max-width:none;min-width:0;
}
html body #app #customerServiceSupport .section-title{margin-bottom:13px!important;align-items:center!important}
html body #app #customerServiceSupport .section-title h2{font-size:clamp(24px,2vw,31px)!important}
html body #app #customerServiceSupport .section-title p{font-size:16px!important}
html body #app #customerServiceSupport #csNewChat{
 background:#b50939!important;color:#fff!important;border:0!important;border-radius:13px!important;
 padding:11px 18px!important;white-space:nowrap!important;font-size:15px!important;font-weight:800
}
html body #app #customerServiceSupport #mhSupportAssistantProfile{
 display:flex!important;align-items:center!important;gap:15px!important;
 min-height:100px!important;padding:13px 19px!important;margin-bottom:13px!important;
 background:linear-gradient(112deg,#fff9fc,#fce1eb)!important;border:1px solid #f0d1dd!important;
 border-radius:18px!important;box-shadow:none!important;
}
html body #app #customerServiceSupport #mhSupportAssistantProfile img{
 width:92px!important;height:92px!important;flex-basis:92px!important;
 object-fit:contain!important;border-radius:50%
}
html body #app #customerServiceSupport #mhSupportAssistantProfile h2{
 font-size:clamp(19px,1.65vw,24px)!important;margin:0!important;color:#a90b39!important
}
html body #app #customerServiceSupport #mhSupportAssistantProfile p{
 font-size:clamp(14px,1.11vw,17px)!important;margin:0!important;line-height:1.55!important;color:#49343f!important
}
html body #app #customerServiceSupport #mhSupportAssistantProfile small{
 font-size:12px!important;color:#795365!important
}
html body #app #customerServiceSupport .support-layout{
 display:grid!important;direction:ltr!important;
 grid-template-columns:minmax(0,1fr) minmax(220px,28%)!important;
 gap:14px!important;align-items:stretch!important;margin:0!important;
}
html body #app #customerServiceSupport .support-layout>.support-card{min-width:0!important;overflow:hidden!important}
html body #app #customerServiceSupport .support-layout>.support-card:first-child{
 order:2;direction:rtl;background:#fffafc!important;
 padding:15px 13px!important;border:1px solid var(--cs-border)!important;border-radius:18px!important;
}
html body #app #customerServiceSupport .support-layout>.support-card:first-child h3{
 font-size:18px!important;margin:0 0 12px!important;text-align:right!important
}
html body #app #customerServiceSupport .support-layout>.support-card#csChat{
 order:1;min-height:530px!important;padding:0!important;
 border-radius:18px!important;border:1px solid var(--cs-border)!important;
 background:#fff!important;direction:rtl!important;
 display:flex!important;flex-direction:column!important;
}
/* Accessible scroll list: avoid 2 competing long page scrolls. */
html body #app #customerServiceSupport #csTicketList{
 display:grid!important;align-content:start!important;gap:8px!important;max-height:620px!important;
 padding:2px!important;overflow-y:auto!important;overflow-x:hidden!important
}
html body #app #customerServiceSupport .support-ticket-btn{
 padding:12px 11px!important;min-height:75px!important;font-size:14px!important;
 background:#fff!important;color:#3a2532!important;border:1px solid #ecdae2!important;
 border-radius:13px!important;box-shadow:none!important;overflow-wrap:anywhere!important
}
html body #app #customerServiceSupport .support-ticket-btn b{color:#3a2532!important;line-height:1.5!important;font-size:14px!important}
html body #app #customerServiceSupport .support-ticket-btn small{color:#705e69!important;font-size:12px!important}
html body #app #customerServiceSupport .support-ticket-btn.active{
 border-color:#c83e67!important;background:#fff1f6!important;color:#94143b!important
}
html body #app #customerServiceSupport #csChat .support-actions{
 flex:0 0 auto;display:flex!important;align-items:center!important;justify-content:space-between!important;
 padding:13px 16px!important;gap:10px!important;margin:0!important;
 border-bottom:1px solid #f0e2e8!important;background:#fffafd!important;direction:rtl
}
html body #app #customerServiceSupport #csChat .support-actions b{
 color:#352834!important;font-size:15px!important;line-height:1.5!important;
 overflow-wrap:anywhere!important;min-width:0!important;flex:1
}
html body #app #customerServiceSupport #csChat .support-actions button{
 background:#fff4f7!important;color:#97133c!important;border:1px solid #ebc6d4!important;
 border-radius:10px!important;font-size:13px!important;min-height:38px!important;padding:7px 11px!important
}
html body #app #customerServiceSupport #csChat .support-messages{
 flex:1 1 auto!important;display:flex!important;flex-direction:column!important;
 gap:14px!important;min-height:295px!important;max-height:540px!important;
 padding:20px clamp(14px,1.6vw,26px)!important;margin:0!important;
 background:#fff!important;overflow-y:auto!important;overflow-x:hidden!important
}
html body #app #customerServiceSupport #csChat .support-msg{
 max-width:min(86%,740px)!important;border-radius:17px!important;
 padding:13px 17px!important;font-size:16px!important;line-height:1.75!important;
 color:#332a34!important;overflow-wrap:anywhere!important;
 box-shadow:0 2px 6px rgba(46,23,33,.035)!important
}
html body #app #customerServiceSupport #csChat .support-msg.requester{
 background:#fce7ef!important;border:1px solid #f4d1de!important;
 border-bottom-left-radius:17px!important
}
html body #app #customerServiceSupport #csChat .support-msg.ai{
 background:#f5f4f6!important;border:1px solid #eee9ee!important
}
html body #app #customerServiceSupport #csChat .support-msg.office{
 background:#eef9f4!important;border:1px solid #dcefe5!important
}
html body #app #customerServiceSupport #csChat .support-msg b{font-size:15px!important;color:inherit!important}
html body #app #customerServiceSupport #csChat .support-msg small{font-size:12px!important;color:#857480!important}
html body #app #customerServiceSupport #csChat .mh-speak-reply{
 padding:7px 13px!important;min-height:34px!important;font-size:13px!important;
 border-radius:16px!important;display:inline-flex!important;gap:6px!important;
 align-items:center!important;max-width:100%;width:max-content!important;
 border:1px solid #ecc9d5!important;background:#fff7fa!important;color:#a00d3a!important
}
/* Critical fix: textarea + mic + send must NOT inherit an extra grid row. */
html body #app #customerServiceSupport #csChat form.support-compose{
 flex:0 0 auto!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
 gap:10px!important;direction:rtl!important;
 background:#fff8fb!important;border-top:1px solid #efdee5!important;
 padding:11px 15px!important;margin:0!important;min-height:78px!important;
 width:100%!important;box-sizing:border-box!important;
 grid-template-columns:none!important;grid-template-rows:none!important;
}
html body #app #customerServiceSupport #csChat form.support-compose textarea{
 flex:1 1 auto!important;order:1!important;display:block!important;align-self:center!important;
 min-width:0!important;width:auto!important;max-width:none!important;
 min-height:54px!important;height:54px!important;max-height:125px!important;
 border:1px solid #e7d6df!important;border-radius:15px!important;
 background:#fff!important;color:#392a36!important;padding:14px!important;margin:0!important;
 box-shadow:none!important;font-size:16px!important;resize:vertical!important;
}
html body #app #customerServiceSupport #csChat form.support-compose .mh-support-voice-tools{
 order:2!important;display:flex!important;flex:0 0 auto!important;
 width:auto!important;max-width:150px!important;gap:5px!important;
 align-items:center!important;justify-content:center!important;
 margin:0!important;padding:0!important;background:transparent!important
}
html body #app #customerServiceSupport #csChat form.support-compose .mh-support-record{
 width:49px!important;min-width:49px!important;height:49px!important;min-height:49px!important;
 flex:0 0 49px!important;max-width:49px!important;
 background:#b50737!important;color:#fff!important;border-radius:50%!important;
 padding:0!important;font-size:22px!important;cursor:pointer!important
}
html body #app #customerServiceSupport #csChat form.support-compose .mh-support-voice-status{
 font-size:11px!important;line-height:1.5!important;
 display:none!important;max-width:95px!important;color:#7b4b61!important
}
html body #app #customerServiceSupport #csChat form.support-compose .mh-support-voice-status:not(:empty){
 /* Voice prompts show only during recording or upload; idle stays visually quiet. */
}
html body #app #customerServiceSupport #csChat form.support-compose .mh-support-voice-tools:has(.mh-recording) .mh-support-voice-status,
html body #app #customerServiceSupport #csChat form.support-compose .mh-support-voice-status[data-error="1"]{
 display:inline-block!important
}
html body #app #customerServiceSupport #csChat form.support-compose button.primary{
 order:3!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 100px!important;width:100px!important;max-width:100px!important;
 min-width:0!important;height:52px!important;min-height:52px!important;max-height:52px!important;
 margin:0!important;padding:0 12px!important;
 border:0!important;border-radius:13px!important;
 background:#b40a37!important;color:#fff!important;
 font-size:16px!important;font-weight:850!important;line-height:1.2!important;
}
html body #app #customerServiceSupport #csChat .support-empty{
 font-size:16px!important;color:#66505d!important;line-height:1.8!important;
 margin:auto!important;max-width:570px!important;text-align:center!important
}
/* Existing attachment controls remain functional but do not dominate the page. */
html body #app #customerServiceSupport #csChat :is(.support-attachments,.support-attachment-box,.support-upload-box,.mh-support-attachments,.mh-support-upload){
 padding:9px 12px!important;margin:8px 12px 12px!important;
 background:#fffafd!important;border-radius:12px!important;min-height:0!important;
}
html body #app #customerServiceSupport #csChat :is(.support-attachments,.support-attachment-box,.support-upload-box,.mh-support-attachments,.mh-support-upload) button{
 min-height:36px!important;width:auto!important;max-width:210px!important;
 padding:7px 12px!important;font-size:13px!important
}
/* Compact attractive support panel, no false human identity. */
html body #app #customerServiceSupport #mhSupportAssistantProfile{
 background:#fce7ef!important;border-color:#f0cfdd!important
}
@media(max-width:900px){
 html body #app #customerServiceSupport .support-layout{grid-template-columns:1fr!important;direction:rtl!important}
 html body #app #customerServiceSupport .support-layout>.support-card:first-child{
  order:2!important;min-height:0!important;max-height:260px!important
 }
 html body #app #customerServiceSupport #csTicketList{max-height:185px!important}
 html body #app #customerServiceSupport #csChat{order:1!important}
}
@media(max-width:520px){
 html body #app #customerServiceSupport #csChat form.support-compose{
  gap:5px!important;padding:8px!important;min-height:70px!important
 }
 html body #app #customerServiceSupport #csChat form.support-compose textarea{
  padding:9px!important;min-height:50px!important;height:50px!important;font-size:15px!important
 }
 html body #app #customerServiceSupport #csChat form.support-compose button.primary{
  flex-basis:65px!important;width:65px!important;max-width:65px!important;height:48px!important;
  min-height:48px!important;font-size:14px!important
 }
 html body #app #customerServiceSupport #csChat form.support-compose .mh-support-record{
  min-width:45px!important;flex-basis:45px!important;width:45px!important;height:45px!important;min-height:45px!important
 }
 html body #app #customerServiceSupport #csChat .support-messages{padding:12px!important}
 html body #app #customerServiceSupport #csChat .support-msg{max-width:94%!important;font-size:15px!important}
}
/* Dark mode with explicit foreground for all nested support controls. */
html.mh-glass-dark body #app #customerServiceSupport{--cs-ink:#f9eff6;--cs-muted:#e0cdda;--cs-border:#745a70;--cs-soft:#423044;color:#f9edf5!important}
html.mh-glass-dark body #app #customerServiceSupport #mhSupportAssistantProfile{
 background:#4b3346!important;border-color:#76546a!important
}
html.mh-glass-dark body #app #customerServiceSupport #mhSupportAssistantProfile h2,
html.mh-glass-dark body #app #customerServiceSupport #mhSupportAssistantProfile p,
html.mh-glass-dark body #app #customerServiceSupport #mhSupportAssistantProfile small{color:#fff0f8!important}
html.mh-glass-dark body #app #customerServiceSupport .support-layout>.support-card:first-child,
html.mh-glass-dark body #app #customerServiceSupport .support-layout>.support-card#csChat{
 background:#342737!important;color:#fef2fa!important;border-color:#74566c!important
}
html.mh-glass-dark body #app #customerServiceSupport .support-layout>.support-card:first-child h3,
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-actions b{color:#fff3fa!important}
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-actions,
html.mh-glass-dark body #app #customerServiceSupport #csChat form.support-compose{
 background:#392b3c!important;border-color:#72526b!important
}
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-messages{background:#302536!important}
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-msg.requester{
 background:#68435c!important;color:#fff5fb!important;border-color:#81566b!important
}
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-msg.ai,
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-msg.office{
 background:#4a374b!important;color:#fff4fa!important;border-color:#6d5368!important
}
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-msg small{color:#efccda!important}
html.mh-glass-dark body #app #customerServiceSupport #csChat form.support-compose textarea{
 background:#4a394b!important;color:#fff6fc!important;border-color:#816179!important
}
html.mh-glass-dark body #app #customerServiceSupport #csChat form.support-compose textarea::placeholder{color:#ead9e5!important}
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-ticket-btn{
 color:#fff4fa!important;background:#473546!important;border-color:#72546a!important
}
html.mh-glass-dark body #app #customerServiceSupport #csChat .support-empty{color:#f6dfeb!important}
html.mh-glass-dark body #app #customerServiceSupport .support-ticket-btn b,
html.mh-glass-dark body #app #customerServiceSupport .support-ticket-btn small{color:#fff0f7!important}