/* Almajad CRM 3.6.11 — break the desktop table min-width on mobile, keep RTL readable */
:root{--crm3611-border:#d8e6ed;--crm3611-ink:#173f55}
body.app-body,body.app-body .app-layout,body.app-body .workspace,body.app-body .main-content{min-width:0;max-width:100%}
body.app-body .main-content>.panel,body.app-body .main-content .filter-results-head{min-width:0;max-width:100%}
.crm3611-filter-panel{padding:clamp(16px,2.2vw,26px)!important}
.crm3611-filter-title h2{margin:0 0 18px;color:#173f55;font-size:clamp(19px,2vw,24px)}
.crm3611-filter-form{min-width:0;max-width:100%}
.crm3611-filter-form .crm369-filter-top{margin:0 0 17px;grid-template-columns:repeat(4,minmax(0,1fr))}
.crm3611-filter-form input,.crm3611-filter-form select{min-width:0;max-width:100%}
.crm3611-filter-form fieldset{min-width:0;max-width:100%}
.crm3611-filter-message{border:1px solid var(--crm3611-border)!important;border-radius:18px!important}
@media(min-width:1025px){
  /* Small desktop screens may scroll the table itself, never the whole application. */
  body.app-body .crm362-list-scroll{overflow-x:auto!important;overflow-y:visible!important;max-width:100%!important;width:100%!important}
  body.app-body .crm362-customers{min-width:940px!important;width:100%!important;max-width:none!important}
}
@media(max-width:1024px){
  html,body{max-width:100%;overflow-x:clip!important}
  body.app-body .main-content{width:100%!important;min-width:0!important;padding:10px!important;overflow-x:clip!important}
  body.app-body .crm362-list-scroll{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
  body.app-body table.crm362-customers{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;table-layout:auto!important;border-spacing:0!important;margin:0!important}
  body.app-body .crm362-customers thead{display:none!important}
  body.app-body .crm362-customers tbody{display:block!important;width:100%!important;min-width:0!important}
  body.app-body .crm362-customers tr.month-separator,body.app-body .crm362-customers tr.day-separator{display:block!important;width:100%!important;margin:16px 0 8px!important}
  body.app-body .crm362-customers tr.month-separator>td,body.app-body .crm362-customers tr.day-separator>td{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;text-align:center!important;padding:6px 0!important}
  body.app-body .crm362-customers .crm367-month-chip{width:100%!important;min-width:0!important;max-width:100%!important;font-size:17px!important}
  body.app-body .crm362-customers .crm367-day-chip{width:100%!important;max-width:100%!important;font-size:17px!important}
  body.app-body .crm362-customers tr.crm362-data-row{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:9px 13px!important;margin:0 0 12px!important;border:1px solid var(--crm3611-border)!important;border-radius:17px!important;background:#fff!important;overflow:visible!important;box-shadow:0 9px 26px rgba(14,56,75,.045)!important}
  body.app-body .crm362-customers tr.crm362-data-row>td{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:flex-start!important;gap:11px!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:39px;padding:11px 3px!important;white-space:normal!important;text-align:right!important;overflow-wrap:anywhere!important;border:0!important;border-bottom:1px solid #edf2f5!important}
  body.app-body .crm362-customers tr.crm362-data-row>td::before{content:attr(data-label)!important;display:block!important;flex:0 0 93px!important;width:93px!important;max-width:93px!important;min-width:0!important;align-self:flex-start!important;margin:0!important;font-size:12px!important;line-height:1.8!important;font-weight:800!important;color:#718995!important}
  body.app-body .crm362-customers tr.crm362-data-row>td>*{min-width:0!important;max-width:100%!important;flex-shrink:1!important}
  body.app-body .crm362-customers tr.crm362-data-row>td.crm362-name{font-size:17px!important}
  body.app-body .crm362-customers tr.crm362-data-row>td.crm362-note{width:100%!important;min-width:0!important;max-width:100%!important;line-height:1.75!important}
  body.app-body .crm362-customers tr.crm362-data-row>td.crm362-note .crm365-note-content{white-space:pre-wrap!important;overflow-wrap:anywhere!important;max-height:none!important;display:block!important}
  body.app-body .crm362-customers tr.crm362-data-row>td.crm365-row-actions{display:flex!important;flex-wrap:wrap!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:10px!important;padding-top:13px!important;border-bottom:0!important}
  body.app-body .crm362-customers tr.crm362-data-row>td.crm365-row-actions::before{display:none!important}
  body.app-body .crm362-customers tr.crm362-data-row .crm362-phone{font-size:16px!important;max-width:100%!important;overflow-wrap:anywhere!important}
  body.app-body .crm362-customers tr.crm362-data-row .crm354-state{min-width:0!important;max-width:100%!important;white-space:normal!important}
  body.app-body .crm362-customers tr.crm362-data-row .crm362-date small{display:block!important;margin:0!important}
  body.app-body .filter-results-head{display:flex!important;flex-wrap:wrap!important;gap:10px!important}
  body.app-body .crm3611-filter-form .crm369-filter-top{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.app-body .crm3611-filter-form .crm369-mode-range{grid-template-columns:1fr!important}
  body.app-body .crm3611-filter-form .crm369-filter-top>label{min-width:0!important}
}
@media(max-width:620px){
  body.app-body .main-content{padding:8px!important}
  body.app-body .main-content .panel{padding:12px!important;border-radius:16px!important;min-width:0!important}
  body.app-body .crm3611-filter-form .crm369-filter-top,body.app-body .crm3611-filter-form .crm369-mode-month,body.app-body .crm3611-filter-form .crm369-range-fields{grid-template-columns:1fr!important}
  body.app-body .crm362-customers tr.crm362-data-row>td::before{flex-basis:88px!important;width:88px!important;max-width:88px!important;font-size:11px!important}
  body.app-body .crm362-customers tr.crm362-data-row>td{gap:9px!important;font-size:14px!important}
  body.app-body .crm362-customers tr.crm362-data-row>td.crm365-row-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  body.app-body .crm362-customers tr.crm362-data-row>td.crm365-row-actions>a,body.app-body .crm362-customers tr.crm362-data-row>td.crm365-row-actions>button{width:100%!important;max-width:100%!important;text-align:center!important;justify-content:center!important}
  body.app-body .filter-results-actions{display:flex;flex-wrap:wrap;gap:8px}
  body.app-body .filter-results-actions .btn{max-width:100%}
  body.app-body .crm369-period{padding:12px!important}
}
@media(max-width:380px){
  body.app-body .crm362-customers tr.crm362-data-row>td::before{flex-basis:76px!important;width:76px!important;max-width:76px!important}
  body.app-body .crm362-customers tr.crm362-data-row>td{gap:7px!important}
}
