/* CRM customer widget. Visual values taken from the current /crmamlak/ page.
   All custom rules are scoped; the host page's theme and fonts are inherited. */
.ac-crm-customers {
  --cw-navy: var(--crm-navy, #0a192f);
  --cw-teal: var(--crm-teal, #1a6b6b);
  --cw-gold: var(--gold, #d4a853);
  --cw-gold-dark: var(--gold-dark, #a67f32);
  --cw-text: var(--text, #14141f);
  --cw-muted: var(--text-2, #4a4a5a);
  --cw-subtle: var(--text-3, #71717f);
  --cw-white: var(--white, #fff);
  --cw-light: var(--light, #f5f7fb);
  --cw-radius: var(--radius-lg, 22px);
  --cw-shadow: var(--shadow-sm, 0 2px 12px rgba(0,0,0,.08));
  --cw-shadow-hover: var(--shadow-md, 0 12px 40px rgba(0,0,0,.14));
  --cw-ease: var(--ease, .35s cubic-bezier(.4,0,.2,1));
  --cw-brand: var(--grad-brand, linear-gradient(135deg,#e8c878 0%,#d4a853 45%,#b8923f 100%));
  padding: 5rem 0;
  background: var(--cw-white);
  color: var(--cw-text);
  direction: rtl;
  text-align: right;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.75;
}
.ac-crm-customers *, .ac-crm-customers *::before, .ac-crm-customers *::after { box-sizing: border-box; }
.ac-crm-customers [hidden] { display: none !important; }
.ac-crm-customers :where(button,input,select) { font: inherit; }
.ac-crm-customers :where(button,summary) { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ac-crm-customers :where(button,input,select,summary,a):focus-visible { outline: 3px solid var(--cw-teal); outline-offset: 4px; }
.ac-crm-customers .ac-crm-customers__container { width: 100%; margin-inline: auto; padding-inline: 12px; }
.ac-crm-customers .ac-crm-customers__header { text-align: center; margin-bottom: 3rem; }
.ac-crm-customers .ac-crm-customers__eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--cw-gold); background: rgba(212,168,83,.08); border: 1px solid rgba(212,168,83,.2); padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1rem; }
.ac-crm-customers .ac-crm-customers__heading { font-size: clamp(1.75rem,4vw,2.65rem); font-weight: 800; line-height: 1.25; color: var(--cw-text); margin: 0 auto .75rem; max-width: 1000px; }
.ac-crm-customers .ac-crm-customers__lead { font-size: 1.05rem; line-height: 1.75; color: var(--cw-muted); max-width: 560px; margin: 0 auto; }
.ac-crm-customers .ac-crm-customers__tools { margin-bottom: 1.5rem; }
.ac-crm-customers .ac-crm-customers__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ac-crm-customers .ac-crm-customers__cities { display: flex; flex-wrap: wrap; gap: .5rem; }
.ac-crm-customers .ac-crm-customers__city { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid rgba(10,25,47,.1); border-radius: 10px; color: var(--cw-muted); background: var(--cw-white); padding: .6rem 1rem; font-size: .88rem; font-weight: 600; line-height: 1.4; min-height: 44px; transition: background var(--cw-ease),box-shadow var(--cw-ease),transform var(--cw-ease); }
.ac-crm-customers .ac-crm-customers__city:hover { background: var(--cw-light); }
.ac-crm-customers .ac-crm-customers__city[aria-pressed="true"] { color: var(--cw-navy); background: var(--cw-brand); border-color: transparent; box-shadow: 0 4px 20px rgba(212,168,83,.3); font-weight: 700; }
.ac-crm-customers .ac-crm-customers__city span { opacity: .65; font-size: .75rem; }
.ac-crm-customers .ac-crm-customers__search { flex: 0 1 320px; position: relative; display: flex; align-items: center; }
.ac-crm-customers .ac-crm-customers__search > i { position: absolute; right: 1rem; pointer-events: none; color: var(--cw-subtle); }
.ac-crm-customers .ac-crm-customers__search input { width: 100%; min-width: 0; font-size: .88rem; line-height: 1.5; color: var(--cw-text); background: var(--cw-white); border: 1px solid rgba(10,25,47,.1); border-radius: 12px; padding: .75rem 2.65rem .75rem 1rem; transition: border-color .15s ease,box-shadow .15s ease; }
.ac-crm-customers .ac-crm-customers__search input:focus { outline: 0; border-color: var(--cw-teal); box-shadow: 0 0 0 3px rgba(26,107,107,.15); }
.ac-crm-customers .ac-crm-customers__search input::placeholder { color: var(--cw-subtle); }
.ac-crm-customers .ac-crm-customers__filterline { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid rgba(10,25,47,.06); }
.ac-crm-customers .ac-crm-customers__district { display: flex; align-items: center; gap: .65rem; font-size: .82rem; color: var(--cw-muted); }
.ac-crm-customers .ac-crm-customers__district select { border: 1px solid rgba(10,25,47,.1); border-radius: 10px; background: var(--cw-white); color: var(--cw-text); padding: .5rem .7rem; min-height: 40px; font-size: .82rem; }
.ac-crm-customers .ac-crm-customers__district select:disabled { opacity: .45; cursor: not-allowed; }
.ac-crm-customers .ac-crm-customers__status { margin: 0; margin-inline-start: auto; color: var(--cw-subtle); font-size: .8rem; }
.ac-crm-customers .ac-crm-customers__reset { background: transparent; border: 0; color: var(--cw-gold-dark); font-size: .8rem; padding: .4rem 0; display: inline-flex; align-items: center; gap: .3rem; }
.ac-crm-customers .ac-crm-customers__demo { margin: 0 0 1rem; color: var(--cw-subtle); font-size: .76rem; line-height: 1.8; }
.ac-crm-customers .ac-crm-customers__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 1.15rem; }
.ac-crm-customers .ac-crm-customers__card { padding: 1.35rem 1.25rem; border-radius: var(--cw-radius); background: var(--cw-white); border: 1px solid rgba(10,25,47,.06); box-shadow: var(--cw-shadow); transition: transform var(--cw-ease),box-shadow var(--cw-ease); min-width: 0; }
.ac-crm-customers .ac-crm-customers__card:hover { transform: translateY(-3px); box-shadow: var(--cw-shadow-hover); }
.ac-crm-customers .ac-crm-customers__cardtop { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.ac-crm-customers .ac-crm-customers__icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,rgba(26,107,107,.14),rgba(212,168,83,.14)); color: var(--cw-teal); font-size: 1.2rem; }
.ac-crm-customers .ac-crm-customers__card:nth-child(even) .ac-crm-customers__icon { color: var(--cw-gold-dark); }
.ac-crm-customers .ac-crm-customers__location { margin: 0; font-size: .8rem; color: var(--cw-muted); display: flex; gap: .35rem; align-items: flex-start; }
.ac-crm-customers .ac-crm-customers__location > i { color: var(--cw-gold-dark); }
.ac-crm-customers .ac-crm-customers__name { margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.25; font-weight: 800; color: var(--cw-text); }
.ac-crm-customers .ac-crm-customers__manager { margin: 0; font-size: .88rem; line-height: 1.7; color: var(--cw-muted); }
.ac-crm-customers .ac-crm-customers__result { margin: 1rem 0; padding: .8rem 1rem; background: rgba(26,107,107,.045); border: 1px solid rgba(26,107,107,.08); border-radius: 12px; font-size: .86rem; line-height: 1.8; color: var(--cw-muted); }
.ac-crm-customers .ac-crm-customers__result strong { display: flex; align-items: center; gap: .4rem; color: var(--cw-teal); font-size: .78rem; font-weight: 600; margin-bottom: .25rem; }
.ac-crm-customers .ac-crm-customers__details { border-top: 1px solid rgba(10,25,47,.07); padding-top: .85rem; }
.ac-crm-customers .ac-crm-customers__details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--cw-gold-dark); font-weight: 700; font-size: .84rem; min-height: 32px; }
.ac-crm-customers .ac-crm-customers__details summary::-webkit-details-marker { display: none; }
.ac-crm-customers .ac-crm-customers__details summary > i { transition: transform var(--cw-ease); }
.ac-crm-customers .ac-crm-customers__details[open] summary > i { transform: rotate(180deg); }
.ac-crm-customers .ac-crm-customers__details dl { margin: 1rem 0 0; border-right: 2px solid rgba(212,168,83,.35); padding-right: 1rem; }
.ac-crm-customers .ac-crm-customers__details dt { margin-top: .8rem; font-size: .82rem; font-weight: 700; color: var(--cw-text); }
.ac-crm-customers .ac-crm-customers__details dt:first-child { margin-top: 0; }
.ac-crm-customers .ac-crm-customers__details dd { margin: .25rem 0 0; font-size: .82rem; line-height: 1.85; color: var(--cw-muted); }
.ac-crm-customers .ac-crm-customers__details-note { font-size: .73rem; color: var(--cw-subtle); margin: 1rem 0 0; }
.ac-crm-customers .ac-crm-customers__morewrap { margin-top: 2rem; text-align: center; }
.ac-crm-customers .ac-crm-customers__more { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 0; border-radius: 12px; background: var(--cw-brand); box-shadow: 0 4px 20px rgba(212,168,83,.3); color: var(--cw-navy); font-weight: 700; font-size: .95rem; line-height: 1.4; padding: .85rem 1.75rem; transition: transform var(--cw-ease),box-shadow var(--cw-ease); }
.ac-crm-customers .ac-crm-customers__more:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212,168,83,.4); }
.ac-crm-customers .ac-crm-customers__empty { text-align: center; background: var(--cw-light); border: 1px solid rgba(10,25,47,.06); border-radius: var(--cw-radius); padding: 2rem 1rem; }
.ac-crm-customers .ac-crm-customers__empty > i { font-size: 1.5rem; color: var(--cw-gold-dark); }
.ac-crm-customers .ac-crm-customers__empty h3 { font-size: 1.05rem; font-weight: 800; margin: .75rem 0 .4rem; color: var(--cw-text); }
.ac-crm-customers .ac-crm-customers__empty p { color: var(--cw-muted); font-size: .88rem; margin: 0 0 .75rem; }
.ac-crm-customers .ac-crm-customers__empty .ac-crm-customers__reset { min-height: 44px; }
@media(min-width:576px) { .ac-crm-customers .ac-crm-customers__container { max-width: 540px; } }
@media(min-width:768px) { .ac-crm-customers .ac-crm-customers__container { max-width: 720px; } }
@media(min-width:992px) { .ac-crm-customers .ac-crm-customers__container { max-width: 960px; } }
@media(min-width:1200px) { .ac-crm-customers .ac-crm-customers__container { max-width: 1140px; } }
@media(min-width:1400px) { .ac-crm-customers .ac-crm-customers__container { max-width: 1320px; } }
@media(max-width:991px) {
  .ac-crm-customers .ac-crm-customers__search { flex-basis: 100%; }
  .ac-crm-customers .ac-crm-customers__toolbar { gap: .85rem; }
}
@media(max-width:767px) {
  .ac-crm-customers .ac-crm-customers__grid { grid-template-columns: 1fr; }
  .ac-crm-customers .ac-crm-customers__header { margin-bottom: 2rem; }
  .ac-crm-customers .ac-crm-customers__city { padding-inline: .8rem; }
  .ac-crm-customers .ac-crm-customers__filterline { gap: .75rem; }
  .ac-crm-customers .ac-crm-customers__location { font-size: .77rem; }
}
@media(prefers-reduced-motion:reduce) { .ac-crm-customers *, .ac-crm-customers *::before, .ac-crm-customers *::after { transition: none !important; animation: none !important; } }
