/* WhatsApp campaigns — dashboard design, scoped under .crdts-dash.
   Page-private classes; the shared shell stays in dashboard.scoped.css. */

.crdts-dash h1,.crdts-dash h2,.crdts-dash h3,.crdts-dash h4,.crdts-dash p,.crdts-dash span,.crdts-dash a,.crdts-dash b,.crdts-dash strong,.crdts-dash small,.crdts-dash em,.crdts-dash i,.crdts-dash li,.crdts-dash ul,.crdts-dash ol,.crdts-dash button,.crdts-dash label,.crdts-dash input,.crdts-dash textarea,.crdts-dash select,.crdts-dash summary,.crdts-dash option:not(.material-symbols-outlined):not([class*="material-symbols"]):not(.material-symbols-rounded):not([class*="material-symbols-rounded"]){font-family:inherit}
.crdts-dash .material-symbols-outlined,.crdts-dash [class*="material-symbols"]{
  font-family:'Material Symbols Outlined'!important;font-weight:400;font-style:normal;
  line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;
  white-space:nowrap;word-wrap:normal;direction:ltr;font-feature-settings:'liga';
  -webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}

/* ============ campaigns: list ============ */

/* three tiles — the campaign summary carries three metrics */

.crdts-dash .wc-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}

/* the credits widget keeps its own colours; we only set the frame */

.crdts-dash .wc-credits{flex-shrink:0;min-width:0;border-radius:9px}
.crdts-dash .wc-credits p{font-size:11.5px}
.crdts-dash .wc-credits p+p{font-size:10px;opacity:.75}

/* the campaign table cell — name over a one-line message */

.crdts-dash .wc-cell{min-width:0}
.crdts-dash .wc-cell b{display:block;font-size:12.5px;font-weight:600;color:#38382d;max-width:320px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crdts-dash .wc-cell small{display:block;font-size:11px;color:#a1a194;margin-top:4px;max-width:320px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* delivery cell — sent/total over a progress bar */

.crdts-dash .wc-sent{min-width:128px}
.crdts-dash .wc-sent b{display:block;font-size:11.5px;font-weight:500;color:#494938;white-space:nowrap}
.crdts-dash .wc-sent .quota-bar{margin-top:7px}
.crdts-dash .wc-fail{display:block;font-size:10px;color:#c94742;margin-top:6px}

/* the row menu — resend / delete, inlined so the table scroller never clips it */

.crdts-dash .wc-menuwrap{display:flex;align-items:center;gap:7px}
.crdts-dash .wc-menu{display:grid;gap:3px;border:1px solid #efefe7;border-radius:8px;background:#fcfcfa;padding:4px}
.crdts-dash .wc-menu button{display:flex;align-items:center;gap:7px;text-align:start;white-space:nowrap;
  border-radius:5px;padding:6px 9px;font-size:11px;color:#6c6c5e;cursor:pointer;font-family:inherit;
  transition:background .15s,color .15s}
.crdts-dash .wc-menu button:hover:not(:disabled){background:#fff6d4;color:#8a6d00}
.crdts-dash .wc-menu button:disabled{opacity:.5;cursor:not-allowed}
.crdts-dash .wc-menu button svg{width:13px;height:13px}
.crdts-dash .wc-menu .wc-menu-danger{color:#c94742}
.crdts-dash .wc-menu .wc-menu-danger:hover:not(:disabled){background:#fff0ed;color:#a03f24}

/* ============ campaigns: create page ============ */

/* the message editor — a formatting bar over a bare textarea */

.crdts-dash .wc-editor{border:1px solid #e5e5db;border-radius:9px;background:#fff;overflow:hidden;
  transition:border-color .15s}
.crdts-dash .wc-editor:focus-within{border-color:#e0c266}
.crdts-dash .wc-editor-bar{display:flex;align-items:center;gap:4px;padding:7px 9px;background:#fcfcfa;
  border-bottom:1px solid var(--line)}
.crdts-dash .wc-editor-btn{width:28px;height:28px;border-radius:6px;display:grid;place-items:center;
  color:#a1a194;cursor:pointer;transition:background .15s,color .15s}
.crdts-dash .wc-editor-btn:hover{background:#fff6d4;color:#b47915}
.crdts-dash .wc-editor-btn svg{width:15px;height:15px}
.crdts-dash .wc-editor textarea{display:block;width:100%;border:0;border-radius:0;padding:14px;
  min-height:166px;resize:none;font-size:13px;line-height:1.9;background:#fff;color:inherit;
  font-family:inherit;outline:none;box-shadow:none}
.crdts-dash .wc-editor textarea::placeholder{color:#b4b4a7}

/* the variable chips under the editor */

.crdts-dash .wc-vars{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.crdts-dash .wc-var{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-size:10.5px;
  padding:5px 9px;border-radius:7px;border:1px solid #e5e5db;background:#fff;color:#8c8c81;
  font-family:inherit;transition:background .15s,border-color .15s,color .15s}
.crdts-dash .wc-var:hover{background:#fff9e4;border-color:#f0dfae;color:var(--orange)}
.crdts-dash .wc-var svg{width:11px;height:11px}

/* the message preview — a small chat bubble sheet */

.crdts-dash .wc-chat{border:1px solid #e7e9e2;border-radius:11px;background:#f4f6f2;padding:16px}
.crdts-dash .wc-chat-head{display:flex;align-items:center;gap:9px;padding-bottom:13px;
  border-bottom:1px solid #e7e9e2}
.crdts-dash .wc-chat-ava{width:32px;height:32px;border-radius:50%;background:var(--orange);color:#fff;
  display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}
.crdts-dash .wc-chat-head b{font-size:12.5px;font-weight:600;color:#171714}
.crdts-dash .wc-chat-head .grow{flex:1}
.crdts-dash .wc-chat-head i{width:7px;height:7px;border-radius:50%;background:#648166;display:block;
  flex-shrink:0}
.crdts-dash .wc-bubble{margin-top:14px;max-width:92%;background:#fff;border:1px solid #e7e9e2;
  border-radius:10px;border-start-start-radius:2px;padding:11px 13px;box-shadow:0 2px 8px #1717140a}
.crdts-dash .wc-bubble p{font-size:12px;line-height:1.9;color:#3d3d31;margin:0;white-space:pre-wrap;
  word-break:break-word}
.crdts-dash .wc-bubble>span{display:block;font-size:10px;color:#a1a194;margin-top:6px;text-align:end}

/* the send-now / schedule-later choice */

.crdts-dash .wc-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.crdts-dash .wc-mode{display:flex;align-items:center;gap:11px;text-align:start;cursor:pointer;
  border:1px solid #e5e5db;border-radius:10px;background:#fff;padding:14px 15px;font-size:12.5px;
  color:#6c6c5e;font-family:inherit;transition:background .15s,border-color .15s,color .15s}
.crdts-dash .wc-mode:hover{border-color:#e0c266;background:#fffdf4}
.crdts-dash .wc-mode.on{border-color:#171714;background:#fff9e4;color:#171714;font-weight:600}
.crdts-dash .wc-mode-box{width:19px;height:19px;border-radius:5px;border:1px solid #dddccf;background:#fff;
  display:grid;place-items:center;flex-shrink:0;color:#fff}
.crdts-dash .wc-mode.on .wc-mode-box{background:var(--orange);border-color:var(--orange)}
.crdts-dash .wc-mode-box svg{width:12px;height:12px}

/* the schedule picker greys out while sending is immediate */

.crdts-dash .wc-when input:disabled{opacity:.55;background:#f8f8f5;cursor:not-allowed}

@media(max-width:980px){
.crdts-dash .catalog-tools>.wc-credits{flex:1 1 100%}
}
@media(max-width:680px){
.crdts-dash .wc-metrics{grid-template-columns:1fr}
.crdts-dash .wc-modes{grid-template-columns:1fr}
.crdts-dash .wc-cell b,.crdts-dash .wc-cell small{max-width:none}
.crdts-dash .wc-menu{display:flex;flex-wrap:wrap}
}

