/* Touch Creative — inbox extras (tags, owner, quick replies, auto-reply settings) */
body.dx .tcx-tag{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;line-height:20px;padding:0 8px;border-radius:999px;border:1px solid transparent;white-space:nowrap;font-family:inherit}
body.dx .tcx-tag.c-teal{background:#e0f5f1;color:#0f6b5c}
body.dx .tcx-tag.c-blue{background:#e3eefc;color:#1d4f91}
body.dx .tcx-tag.c-violet{background:#eee8fb;color:#5b3aa6}
body.dx .tcx-tag.c-pink{background:#fbe7f0;color:#9b2c5c}
body.dx .tcx-tag.c-amber{background:#fdf0dc;color:#8a5200}
body.dx .tcx-tag.c-red{background:#fde6e6;color:#a32222}
body.dx .tcx-tag.c-green{background:#e2f5e6;color:#1f6b31}
body.dx .tcx-tag.c-slate{background:#edf0f4;color:#3b4a5c}
body.dx .crmwa-item .tcx-chips{grid-column:2/4;display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
body.dx .crmwa-item .tcx-owner{grid-column:2/4;font-size:11.5px;color:#64748b;margin-top:2px}
body.dx .crmwa-filters .tcx-f{border-color:transparent}
body.dx .tcx-head{display:flex;align-items:center;gap:8px;margin-inline-start:auto;flex-wrap:wrap}
body.dx .tcx-own select{font:inherit;font-size:13px;font-weight:700;padding:6px 10px;border:1px solid var(--dx-line);border-radius:10px;background:#fff;color:#0f2b45;max-width:190px;cursor:pointer}
body.dx .tcx-tagbox{position:relative}
body.dx .tcx-tagbox>summary{list-style:none;cursor:pointer;font-size:13px;font-weight:700;padding:6px 10px;border:1px solid var(--dx-line);border-radius:10px;background:#fff;color:#0f2b45}
body.dx .tcx-tagbox>summary::-webkit-details-marker{display:none}
body.dx .tcx-tagbox[open]>.tcx-chips{position:absolute;z-index:30;inset-inline-end:0;top:calc(100% + 6px);width:min(320px,80vw);padding:12px;background:#fff;border:1px solid var(--dx-line);border-radius:14px;box-shadow:0 18px 40px -18px rgb(15 43 69 / .35);display:flex;flex-wrap:wrap;gap:6px}
body.dx .tcx-chips-head .tcx-tag{cursor:pointer;line-height:26px;padding:0 10px;opacity:.75}
body.dx .tcx-chips-head .tcx-tag.is-on{opacity:1;border-color:currentColor}
body.dx .tcx-quick-btn{flex:0 0 auto;width:42px;height:42px;border-radius:12px;border:1px solid var(--dx-line);background:#fff;font-size:18px;cursor:pointer}
body.dx .tcx-quick-btn[aria-expanded="true"]{background:#e0f5f1;border-color:#2fae9d}
body.dx .crmwa-compose{position:relative}
body.dx .tcx-quick-pop{position:absolute;inset-inline:14px;bottom:calc(100% + 6px);max-height:300px;overflow:auto;background:#fff;border:1px solid var(--dx-line);border-radius:14px;box-shadow:0 -12px 34px -16px rgb(15 43 69 / .35);padding:6px;z-index:40}
body.dx .tcx-q{display:grid;gap:2px;width:100%;text-align:start;padding:9px 12px;border:0;border-radius:10px;background:transparent;font:inherit;cursor:pointer;color:#0f2b45}
body.dx .tcx-q span{font-size:13px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.dx .tcx-q:hover,body.dx .tcx-q.is-sel{background:#eef6f5}
body.dx .tcx-none{margin:10px;color:#64748b;font-size:13px}
.tcx-toast{position:fixed;bottom:24px;inset-inline-start:50%;transform:translateX(50%);background:#0f2b45;color:#fff;padding:10px 18px;border-radius:12px;font-weight:700;z-index:9999;box-shadow:0 12px 30px -12px rgb(0 0 0 / .4);transition:opacity .4s}
.tcx-toast.is-bad{background:#a32222}.tcx-toast.is-out{opacity:0}
/* settings tab */
body.dx .tcx-panel .tcx-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-items:end;margin-top:12px}
body.dx .tcx-panel .tcx-form label{display:grid;gap:6px;font-weight:700;font-size:14px}
body.dx .tcx-panel .tcx-form .is-wide,body.dx .tcx-panel .tcx-form .crmwa-switch,body.dx .tcx-panel .tcx-hours{grid-column:1/-1}
body.dx .tcx-panel input:not([type=checkbox]),body.dx .tcx-panel textarea,body.dx .tcx-panel select{font:inherit;padding:9px 12px;border:1px solid var(--dx-line);border-radius:10px;background:#fff}
body.dx .tcx-hours{border-collapse:collapse;width:100%;max-width:560px}
body.dx .tcx-hours th,body.dx .tcx-hours td{padding:6px 8px;border-bottom:1px solid var(--dx-line);text-align:start}
body.dx .tcx-hours input[type=time]{width:130px}
body.dx .tcx-now{padding:1px 8px;border-radius:999px}
body.dx .tcx-now.is-open{background:#e2f5e6;color:#1f6b31}body.dx .tcx-now.is-closed{background:#fde6e6;color:#a32222}
body.dx .tcx-quick-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
body.dx .tcx-quick-list details{border:1px solid var(--dx-line);border-radius:12px;padding:10px 14px;background:#fff}
body.dx .tcx-quick-list summary{display:flex;gap:12px;cursor:pointer;align-items:baseline}
body.dx .tcx-quick-list summary span{color:#64748b;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.dx .tcx-del{margin-top:8px}
body.dx .tcx-danger{color:#a32222!important}
body.dx .tcx-tags{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
body.dx .tcx-tags li{display:inline-flex;align-items:center;gap:2px}
body.dx .tcx-tags .tcx-tag{line-height:28px;padding:0 12px;font-size:13px}
body.dx .tcx-x{border:0;background:none;color:#94a3b8;font-size:18px;cursor:pointer;padding:0 4px}
body.dx .tcx-x:hover{color:#a32222}
body.dx .tcx-add{padding-top:12px;border-top:1px dashed var(--dx-line)}
@media (max-width:900px){body.dx .tcx-head{width:100%;margin:0}body.dx .tcx-own select{max-width:none}}
body.dx .tcx-fsel select{font:inherit;font-size:13px;font-weight:700;padding:5px 10px;border-radius:999px;border:1px solid var(--dx-line);background:#fff;color:#0f2b45;cursor:pointer}
body.dx .tcx-fsel select.is-on{background:#0f2b45;color:#fff}
body.dx .crmwa-thread-head{flex-wrap:wrap;row-gap:8px}
body.dx .tcx-head{order:9;flex:1 0 100%;margin:0;justify-content:flex-start;padding-top:8px;border-top:1px dashed var(--dx-line)}
.tcl-bar{position:fixed;z-index:9000;inset-inline-end:18px;bottom:18px;width:min(360px,calc(100vw - 36px));background:#fff;border:1px solid #f3c1a1;border-inline-start:5px solid #e07a2e;border-radius:14px;box-shadow:0 18px 40px -16px rgb(15 43 69 / .45);padding:12px 14px;font-size:14px;color:#0f2b45;animation:tclIn .4s cubic-bezier(.16,1,.3,1)}
.tcl-bar-h{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tcl-bar ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.tcl-bar a{font-weight:800;color:#0f2b45}.tcl-bar li span{color:#64748b;font-size:13px}
.tcl-bar p{margin:6px 0 0;color:#64748b;font-size:13px}
.tcl-x{border:0;background:none;font-size:20px;color:#94a3b8;cursor:pointer}
@keyframes tclIn{from{opacity:0;transform:translateY(12px)}}
@media (prefers-reduced-motion:reduce){.tcl-bar{animation:none}}
body.dx .tcl-people{border:1px solid var(--dx-line);border-radius:12px;padding:10px 14px;display:flex;flex-wrap:wrap;gap:10px 18px}
body.dx .tcl-people legend{font-weight:700;padding:0 6px}
body.dx .tcl-chk{display:inline-flex!important;align-items:center;gap:6px;font-weight:600!important}
body.dx .tcl-speed{margin-top:14px;padding:10px 14px;border-radius:12px;background:#eef6f5;font-size:14px}
body.dx .tcx-panel .tcx-form label.crmwa-switch{display:flex;align-items:center;gap:10px;flex-direction:row}
body.dx .tcr-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0}
body.dx .tcr-sum>div{border:1px solid var(--dx-line);border-radius:14px;padding:12px 14px;background:#fff;display:grid;gap:4px}
body.dx .tcr-sum span{font-size:13px;color:#64748b}body.dx .tcr-sum strong{font-size:22px;color:#0f2b45}
body.dx .tcr-sum .is-up strong,body.dx .tcr-table .is-up{color:#1f7a3a}body.dx .tcr-sum .is-down strong,body.dx .tcr-table .is-down{color:#b42318}
body.dx .tcr-table{width:100%;border-collapse:collapse;font-size:14px}
body.dx .tcr-table th,body.dx .tcr-table td{padding:10px;border-bottom:1px solid var(--dx-line);text-align:start;white-space:nowrap}
body.dx .tcr-table tbody th{display:grid;gap:2px;font-weight:600}body.dx .tcr-table tbody th small{color:#64748b;font-weight:500}
body.dx .tcr-in{width:110px;padding:7px 10px;border:1px solid var(--dx-line);border-radius:10px;font:inherit;text-align:left}
/* ───────── Touch Creative: a WhatsApp number per branch ───────── */
/* number switcher above the chats (admin in «كل الفروع») and above the WhatsApp reports */
body.dx .crmwl-switch{display:flex;flex-wrap:wrap;gap:6px}
body.dx .crmwl-switch button,body.dx .crmwl-switch a{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:10px;border:1px solid var(--dx-line);background:#fff;color:var(--dx-ink-2);font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
body.dx .crmwl-switch button:hover,body.dx .crmwl-switch a:hover{border-color:var(--dx-brand-100);color:var(--dx-ink)}
body.dx .crmwl-switch button[aria-checked="true"],body.dx .crmwl-switch a.is-on{background:var(--dx-brand);border-color:var(--dx-brand);color:#fff}
body.dx .crmwl-switch button:focus-visible,body.dx .crmwl-switch a:focus-visible{outline:2px solid var(--dx-brand);outline-offset:2px}
body.dx .crmwl-switch i{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#9b3a7a;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;font-variant-numeric:tabular-nums}
body.dx .crmwl-switch i:empty{display:none}
body.dx .crmwl-switch.is-links{margin:0 0 12px}
body.dx .crmwl-note{margin:0;padding:8px 12px;border-radius:10px;background:var(--dx-brand-50);color:var(--dx-ink-2);font-size:13px;line-height:1.6}
body.dx .crmwa-stats>.crmwl-note{margin:0 0 12px}
/* on each chat: the number it is on */
body.dx .crmwl-chip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:800;line-height:20px;padding:0 8px;border-radius:999px;background:#e3f6ea;color:#11663d;white-space:nowrap}
body.dx .crmwl-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:#25d366;flex:none}
body.dx .crmwl-chip.is-main{background:#eef1f4;color:var(--dx-ink-2)}
body.dx .crmwl-chip.is-main::before{background:var(--dx-muted)}
body.dx .crmwa-who .crmwl-on{font-style:normal;justify-self:start;font-size:11.5px;font-weight:800;line-height:20px;padding:0 8px;border-radius:999px;background:#e3f6ea;color:#11663d;margin-top:2px}
body.dx .crmwa-who .crmwl-on.is-main{background:#eef1f4;color:var(--dx-ink-2)}
/* settings card: «الرقم الرئيسي» + one row per branch */
.tcm-tag{display:inline-block;padding:2px 10px;border-radius:999px;background:rgba(15,61,74,.1);color:#0f3d4a;font-size:12.5px;font-weight:800;white-space:nowrap}
.tcm-lines{display:grid;gap:12px;padding-top:16px;border-top:1px dashed rgba(18,101,122,.18)}
.tcm-lines-h h3{margin:0;font:800 18px/1.4 Cairo,Almarai,sans-serif;color:#0b2f3a}
.tcm-lines-h p{margin:4px 0 0;font:700 14px/1.8 Almarai,Cairo,sans-serif;color:#41595f}
.tcm-lines-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.tcm-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-radius:16px;background:#fff;border:1px solid rgba(18,101,122,.12)}
.tcm-line.is-on{border-color:rgba(22,112,74,.28);background:linear-gradient(180deg,#fff,#f3fbf6)}
.tcm-line-who{display:grid;gap:2px;min-width:0}
.tcm-line-who b{font:800 16px/1.5 Cairo,Almarai,sans-serif;color:#0b2f3a}
.tcm-line-st{font:700 13.5px/1.6 Almarai,Cairo,sans-serif;color:#5d7378}
.tcm-line-st.is-on{color:#16704a}
.tcm-line-st.is-wait{color:#8a5a00}
.tcm-line-st bdi,.tcm-line-st small{letter-spacing:.02em}
.tcm-line-f{margin:0}
.tcm-go.tcm-go-sm{min-height:42px;padding:0 18px;font-size:15px;border-radius:12px}
.tcm-go.tcm-go-sm svg{width:18px;height:18px}
.tcm-out.tcm-out-sm{min-height:40px;padding:0 16px;font-size:14px}
.tcm-manual-f{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
@media (max-width:760px){.tcm-line{align-items:stretch}.tcm-line .tcm-go-sm,.tcm-line-f,.tcm-line-f .tcm-out{width:100%;justify-content:center}}
