/* ---- source style block ---- */
#reportPrintOrientation,#reportPrintScale,#reportPrintFontSize{min-width:130px}
@media(max-width:900px){
  #reportPrintOrientation,#reportPrintScale,#reportPrintFontSize{width:100%}
}

/* ---- source style block ---- */
.control-grid{display:grid;gap:16px}
.control-panel{background:#111827;border:1px solid #334155;border-radius:18px;padding:18px}
.control-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}
.control-panel-head h3{margin:0 0 5px}.control-panel-head p{margin:0;color:#94a3b8}
.control-table table{min-width:700px}
.period-presets,.comparison-dates,.alert-settings{display:flex;gap:9px;align-items:end;flex-wrap:wrap;margin:10px 0 14px}
.comparison-dates label,.alert-settings label{display:flex;flex-direction:column;gap:6px;color:#cbd5e1;font-size:12px}
.comparison-dates input,.alert-settings input{min-width:145px}
.comparison-positive{color:#86efac;font-weight:900}.comparison-negative{color:#fca5a5;font-weight:900}.comparison-neutral{color:#cbd5e1;font-weight:900}
.alerts-list{display:grid;gap:10px}
.smart-alert{border:1px solid #334155;border-radius:14px;padding:13px 14px;background:#0f172a}
.smart-alert.high{border-inline-start:5px solid #ef4444}.smart-alert.medium{border-inline-start:5px solid #f59e0b}.smart-alert.low{border-inline-start:5px solid #38bdf8}
.smart-alert strong{display:block;margin-bottom:5px}.smart-alert p{margin:0;color:#cbd5e1;line-height:1.6}
@media(max-width:800px){.comparison-dates label,.alert-settings label{width:100%}.comparison-dates input,.alert-settings input{width:100%}}

/* ---- source style block ---- */
.wa-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wa-status{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid #334155}
.wa-status.ok{background:rgba(34,197,94,.14);color:#86efac;border-color:rgba(34,197,94,.35)}
.wa-status.bad{background:rgba(239,68,68,.14);color:#fecaca;border-color:rgba(239,68,68,.35)}
.wa-status.waiting{background:#111827;color:#cbd5e1}
.wa-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:14px;min-height:650px}
.wa-sidebar,.wa-chat-panel{border:1px solid #334155;border-radius:18px;background:#111827;overflow:hidden}
.wa-sidebar{display:flex;flex-direction:column}
.wa-sidebar-tools{padding:12px;border-bottom:1px solid #334155}
.wa-sidebar-tools input{width:100%;min-width:0}
.wa-new-chat{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:8px}.wa-new-chat button{white-space:nowrap;padding:9px 11px}
.wa-conversation-list{overflow:auto;max-height:650px}
.wa-conversation{display:block;width:100%;text-align:right;background:transparent;border:0;border-bottom:1px solid rgba(51,65,85,.75);border-radius:0;padding:13px 14px;color:#e5e7eb}
.wa-conversation:hover,.wa-conversation.active{background:#1e293b}
.wa-conversation-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.wa-conversation strong{font-size:14px}.wa-conversation small{color:#94a3b8}
.wa-conversation-preview{margin-top:6px;color:#cbd5e1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wa-chat-panel{display:flex;flex-direction:column;min-width:0}
.wa-chat-header{padding:15px 18px;border-bottom:1px solid #334155;display:flex;justify-content:space-between;gap:12px;align-items:center}
.wa-chat-header strong{font-size:17px}.wa-chat-header small{display:block;color:#94a3b8;margin-top:5px}
.wa-client-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}
.wa-client-meta span{font-size:11px;background:#0f172a;border:1px solid #334155;border-radius:999px;padding:5px 8px;color:#cbd5e1}
.wa-messages{flex:1;overflow:auto;padding:18px;background:#0b1220;display:flex;flex-direction:column;gap:9px;min-height:460px;max-height:560px}
.wa-bubble{max-width:min(75%,700px);padding:10px 12px;border-radius:14px;line-height:1.6;word-break:break-word}
.wa-bubble.in{align-self:flex-start;background:#1e293b;border:1px solid #334155}
.wa-bubble.out{align-self:flex-end;background:#14532d;border:1px solid #166534}
.wa-bubble-time{display:block;margin-top:5px;font-size:10px;color:#94a3b8}
.wa-composer{display:grid;grid-template-columns:1fr auto;gap:9px;padding:12px;border-top:1px solid #334155}
.wa-composer textarea{resize:vertical;min-height:68px;background:#020617;color:#fff;border:1px solid #334155;border-radius:11px;padding:10px 12px;font-family:inherit}
.wa-composer button{min-width:100px}

.wa-composer{
  grid-template-columns:auto 1fr auto;
  align-items:stretch;
}

.wa-attach-btn{
  min-width:52px!important;
  width:52px;
  padding:0;
  font-size:21px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  border-radius:10px;
  user-select:none;
}

.wa-attach-btn.disabled{
  opacity:.45;
  pointer-events:none;
  cursor:not-allowed;
}

.wa-send-media-preview{
  margin:10px 12px 0;
  padding:10px 12px;
  border:1px solid #334155;
  border-radius:12px;
  background:#111827;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.wa-send-media-info{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.wa-send-media-info div{
  min-width:0;
}

.wa-send-media-info strong{
  display:block;
  max-width:420px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.wa-send-media-info small{
  display:block;
  margin-top:3px;
  color:#94a3b8;
}

.wa-send-media-icon{
  font-size:25px;
}

.wa-send-media-remove{
  min-width:38px!important;
  width:38px;
  height:38px;
  padding:0!important;
  border-radius:50%;
  background:#7f1d1d!important;
  color:#fff!important;
}

body.theme-light .wa-send-media-preview{
  background:#fff;
  border-color:#cbd5e1;
  color:#0f172a;
}

body.theme-light .wa-send-media-info small{
  color:#64748b;
}

@media(max-width:700px){
  .wa-composer{
    grid-template-columns:48px 1fr auto;
  }

  .wa-attach-btn{
    width:48px;
    min-width:48px!important;
  }
}
.wa-empty{padding:25px;text-align:center;color:#94a3b8}
@media(max-width:900px){
  .wa-layout{grid-template-columns:1fr}
  .wa-conversation-list{max-height:300px}
  .wa-messages{max-height:500px}
}

/* ---- source style block ---- */
.clients-subnav{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px 0;background:#0f172a}
.clients-subtab{background:transparent;border:0;border-bottom:2px solid transparent;color:var(--bt-tab-fg);padding:9px 14px;border-radius:0;font-weight:600;cursor:pointer}
.clients-subtab:hover{background:var(--bt-tab-h);color:var(--bt-tab-fg);border-bottom-color:transparent}
.clients-subtab.active{background:transparent;color:var(--bt-tab-on);border-bottom-color:var(--bt-tab-on)}
.clients-subview{display:none}
.clients-subview.active{display:block}
.other-clients-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.other-clients-head h2{margin:0}.other-clients-head p{margin:5px 0 0;color:#94a3b8}
.other-table-wrap{width:100%;overflow:auto;border:1px solid #334155;border-radius:16px;background:#020617}
.other-table-wrap table{min-width:1250px}

/* ---- source style block ---- */
.other-cat-interested td{background:rgba(34,197,94,.18)!important}
.other-cat-not td{background:rgba(239,68,68,.18)!important}
.other-cat-budget td{background:rgba(168,85,247,.18)!important}
.other-cat-follow td{background:rgba(6,182,212,.18)!important}
.other-cat-visit td{background:rgba(249,115,22,.18)!important}
.other-cat-invest td{background:rgba(245,158,11,.18)!important}
.other-cat-bought td{background:rgba(16,185,129,.24)!important}
.other-category-pill{font-weight:800}
.other-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0}
.other-report-card{border:1px solid #cbd5e1;border-radius:12px;padding:12px;background:#fff;color:#0f172a}
.other-report-card small{color:#64748b}.other-report-card strong{display:block;font-size:22px;margin-top:5px}

/* ---- source style block ---- */
#campaignsView .management-table{overflow-x:auto}
#campaignsView .report-table{width:100%;table-layout:fixed;border-collapse:collapse}
#campaignsView .report-table th,
#campaignsView .report-table td{vertical-align:middle;text-align:center;padding:10px 8px}
#campaignsView .report-table th:nth-child(1){width:145px}
#campaignsView .report-table th:nth-child(2){width:90px}
#campaignsView .report-table th:nth-child(3){width:95px}
#campaignsView .report-table th:nth-child(4){width:125px}
#campaignsView .report-table th:nth-child(5){width:135px}
#campaignsView .report-table th:nth-child(6){width:80px}
#campaignsView .report-table th:nth-child(7){width:80px}
#campaignsView .report-table th:nth-child(8){width:80px}
#campaignsView .report-table th:nth-child(9){width:95px}
#campaignsView .report-table th:nth-child(10){width:110px}
#campaignsView .report-table th:nth-child(11){width:110px}
#campaignsView .report-table th:nth-child(12){width:85px}
.campaign-date-input{width:100%;box-sizing:border-box;min-width:0;padding:7px 6px;border-radius:8px}
.campaign-budget-input{width:100%;box-sizing:border-box;min-width:0;padding:7px 6px;border-radius:8px;text-align:center}
.campaign-spend-hint{display:block;margin-top:6px;line-height:1.35;white-space:normal}
.campaign-actions{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}

/* ---- source style block #ayanClientPaginationStyle ---- */
/* ===== AYAN CLIENT PAGINATION ===== */
.clients-subnav{
  position:sticky;
  top:70px;
  z-index:9000;
  padding-bottom:10px;
  border-bottom:1px solid rgba(51,65,85,.75);
}
.client-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:12px 0 4px;
  padding:11px 13px;
  background:#111827;
  border:1px solid #334155;
  border-radius:14px;
}
.client-pagination-info{
  color:#cbd5e1;
  font-size:12px;
  font-weight:700;
}
.client-pagination-pages{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-wrap:wrap;
}
.client-pagination button{
  min-width:38px;
  width:auto;
  padding:7px 10px;
  font-size:12px;
  background:var(--bt-sec-bg);
  border:1px solid var(--bt-sec-bd);
  color:var(--bt-sec-fg);
}
.client-pagination button:hover:not(:disabled){background:var(--bt-sec-h)}
.client-pagination button.active{
  background:var(--bt-pri);
  border-color:var(--bt-pri);
  color:var(--bt-pri-fg);
}
.client-pagination button:disabled{
  opacity:.42;
  cursor:not-allowed;
}
.client-pagination-size{
  display:flex;
  align-items:center;
  gap:7px;
  color:#cbd5e1;
  font-size:12px;
  font-weight:700;
}
.client-pagination-size select{
  min-width:78px;
  width:auto;
  padding:7px 8px;
}
#clientsTable,#otherClientsBody{scroll-margin-top:155px}
@media(max-width:760px){
  .clients-subnav{top:125px}
  .client-pagination{align-items:stretch}
  .client-pagination-info,
  .client-pagination-size{width:100%;justify-content:center;text-align:center}
  .client-pagination-pages{width:100%}
}
@media print{
  .client-pagination{display:none!important}
  .clients-subnav{position:static!important}
}

/* ---- source style block #ayanPaginationTopFix ---- */
.client-pagination-top{
  position:sticky;
  top:126px;
  z-index:8500;
  margin:8px 0 10px;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
@media(max-width:760px){
  .client-pagination-top{top:182px}
}

/* ---- source style block #ayanTaxonomyAndDigitsStyle ---- */
.taxonomy-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.taxonomy-panel{background:#0f172a;border:1px solid #334155;border-radius:14px;padding:12px}
.taxonomy-panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.taxonomy-row{display:grid;grid-template-columns:1fr 54px 42px;gap:8px;align-items:center;margin:8px 0}
.taxonomy-row input[type="text"]{width:100%;min-width:0}
.taxonomy-row input[type="color"]{width:54px;min-width:54px;height:40px;padding:3px;border-radius:9px}
.taxonomy-row button{padding:8px;background:#991b1b}
.metric-bindings-panel{margin-top:14px}.metric-bindings-panel .taxonomy-panel-head{align-items:flex-start}.metric-bindings-panel .taxonomy-panel-head p{margin:5px 0 0;color:#94a3b8;font-size:12px}.metric-rule-row{border:1px solid #334155;border-radius:12px;margin:8px 0;overflow:hidden}.metric-rule-row summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;padding:11px 12px;background:#111827}.metric-rule-row summary span{color:#94a3b8;font-size:12px}.metric-rule-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px}.metric-rule-columns h4{margin:0 0 8px;font-size:12px}.metric-rule-options{display:flex;gap:6px;flex-wrap:wrap}.metric-rule-choice{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #334155;border-radius:999px;background:#020617;font-size:11px;cursor:pointer}.metric-rule-choice input{width:auto;min-width:0;margin:0}
@media(max-width:760px){.taxonomy-grid{grid-template-columns:1fr}}
@media(max-width:760px){.metric-rule-columns{grid-template-columns:1fr}}

/* ---- source style block #socialPrintRangeStyle ---- */
@media print{
  body.printing-social-clients .ayan-main-nav,
  body.printing-social-clients .clients-subnav,
  body.printing-social-clients .toolbar,
  body.printing-social-clients .analytics-dashboard,
  body.printing-social-clients .client-pagination,
  body.printing-social-clients .report-info,
  body.printing-social-clients .simple-modal{
    display:none!important;
  }
  body.printing-social-clients .ayan-view{display:none!important}
  body.printing-social-clients #clientsView{display:block!important}
  body.printing-social-clients #socialClientsSubView{display:block!important}
  body.printing-social-clients :is(#otherClientsSubView,#campaignListsSubView){display:none!important}
  body.printing-social-clients #clientsView .page{
    padding:0!important;
    margin:0!important;
    max-width:none!important;
    width:100%!important;
  }
  body.printing-social-clients .table-wrap{
    display:block!important;
    overflow:visible!important;
    border:0!important;
  }
  body.printing-social-clients #clientsTable{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    font-size:7.6px!important;
  }
  body.printing-social-clients #clientsTable thead{
    display:table-header-group!important;
  }
  body.printing-social-clients #clientsTable tr{
    page-break-inside:avoid!important;
    break-inside:avoid!important;
  }
  body.printing-social-clients #clientsTable th,
  body.printing-social-clients #clientsTable td{
    padding:3px 2px!important;
    white-space:normal!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
  }
  body.printing-social-clients .delete-col{display:none!important}
}

/* ---- source style block #ayanWhatsAppReadWindowStyle ---- */
.wa-read-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:9px;
}
.wa-read-tab{
  width:100%;
  padding:8px 7px;
  background:#0f172a;
  border:1px solid #334155;
  color:#cbd5e1;
  border-radius:9px;
  font-size:12px;
}
.wa-read-tab.active{
  background:#2563eb;
  border-color:#60a5fa;
  color:#fff;
}
.wa-read-tab span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  margin-inline-start:5px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  font-size:11px;
}
.wa-conversation.has-unread{
  border-inline-start:4px solid #22c55e!important;
}
.wa-unread-badge{
  display:inline-flex;
  min-width:22px;
  height:22px;
  padding:0 6px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#16a34a;
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.wa-chat-header{
  gap:12px;
}
.wa-chat-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-inline-start:auto;
}
.wa-delete-chat{
  background:#991b1b!important;
  border-color:#ef4444!important;
  padding:8px 10px!important;
  font-size:12px!important;
}
.wa-window-status{
  margin:0 10px 8px;
  padding:8px 11px;
  border:1px solid #334155;
  border-radius:10px;
  font-size:12px;
  font-weight:800;
}
.wa-window-status.open{
  color:#86efac;
  border-color:rgba(34,197,94,.45);
  background:rgba(22,163,74,.12);
}
.wa-window-status.closed{
  color:#fde68a;
  border-color:rgba(245,158,11,.45);
  background:rgba(202,138,4,.12);
}
.wa-window-status.waiting{
  color:#cbd5e1;
  background:#0f172a;
}
.wa-template-btn{min-width:145px}
@media(max-width:760px){
  .wa-read-tabs{grid-template-columns:1fr 1fr}
  .wa-chat-header{align-items:flex-start}
  .wa-chat-header-actions{width:100%;justify-content:flex-start}
}

/* ---- source style block #ayanOtherClientsAndThemeStyle ---- */
.other-quick-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(150px,1fr));
  gap:9px;
  margin:0 0 14px;
}
.other-quick-tabs button{
  min-height:46px;
  background:var(--bt-sec-bg);
  border:1px solid var(--bt-sec-bd);
  color:var(--bt-sec-fg);
  font-weight:600;
}
.other-quick-tabs button:hover{background:var(--bt-sec-h)}
.other-quick-tabs button.active{
  background:var(--bt-pri);
  border-color:var(--bt-pri);
  color:var(--bt-pri-fg);
}
.other-quick-tabs button span{
  display:inline-flex;
  min-width:24px;
  height:23px;
  align-items:center;
  justify-content:center;
  margin-inline-start:5px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:11px;
}
.ayan-theme-control{
  display:flex;
  align-items:center;
  gap:7px;
  color:#cbd5e1;
  font-size:12px;
  font-weight:800;
}
.ayan-theme-control select{
  width:auto;
  min-width:88px;
  padding:7px 9px;
}
#taxonomyClientsSubView .page{padding:18px}
@media(max-width:900px){
  .other-quick-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .other-quick-tabs{grid-template-columns:1fr}
}

/* Light mode is intentionally local to this browser/device. */
@media screen{
  body.theme-light,
  body.theme-light .ayan-system-shell{background:#f4f7fb!important;color:#0f172a!important}
  body.theme-light .ayan-main-nav{background:linear-gradient(135deg,#ffffff,#eaf2f8)!important;color:#0f172a!important;border-bottom-color:#cbd5e1!important}
  body.theme-light .ayan-brand small,
  body.theme-light .ayan-theme-control,
  body.theme-light .management-head p,
  body.theme-light .other-clients-head p,
  body.theme-light .metric-note,
  body.theme-light .wa-empty{color:#64748b!important}
  body.theme-light .clients-subnav{background:#f4f7fb!important}
  body.theme-light .toolbar,
  body.theme-light .dash-card,
  body.theme-light .mgmt-card,
  body.theme-light .taxonomy-panel,
  body.theme-light .simple-modal-box,
  body.theme-light .wa-panel,
  body.theme-light .wa-sidebar,
  body.theme-light .wa-main,
  body.theme-light .client-pagination{
    background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important;box-shadow:none!important
  }
  body.theme-light .metric-rule-row{border-color:#cbd5e1!important}
  body.theme-light .metric-rule-row summary{background:#f1f5f9!important;color:#0f172a!important}
  body.theme-light .metric-rule-row summary span,
  body.theme-light .metric-bindings-panel .taxonomy-panel-head p{color:#475569!important}
  body.theme-light .metric-rule-choice{background:#fff!important;color:#0f172a!important;border-color:#94a3b8!important}
  body.theme-light .status-bar{color:#166534!important}
  body.theme-light .comparison-positive{color:#166534!important}
  body.theme-light .wa-status.ok,
  body.theme-light .wa-window-status.open{color:#166534!important;border-color:#16a34a!important;background:#dcfce7!important}
  body.theme-light .interested-card::before,
  body.theme-light .sold-card::before{background:#15803d!important;width:6px!important}
  body.theme-light .green-dot{background:#15803d!important;box-shadow:0 0 0 2px #bbf7d0!important}
  body.theme-light input,
  body.theme-light select,
  body.theme-light textarea,
  body.theme-light .status-select,
  body.theme-light .category-select,
  body.theme-light .wa-composer textarea{
    background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important
  }
  body.theme-light .table-wrap,
  body.theme-light .other-table-wrap,
  body.theme-light table{background:#fff!important;border-color:#cbd5e1!important}
  body.theme-light th{background:#e2e8f0!important;color:#0f172a!important;border-color:#cbd5e1!important}
  body.theme-light td{background:#fff!important;color:#0f172a!important;border-color:#e2e8f0!important}
  body.theme-light tr:nth-child(even) td{background:#f8fafc!important}
  body.theme-light .dash-label{color:#475569!important}
  body.theme-light .dash-value{color:#0f172a!important}
  body.theme-light .management-page{color:#0f172a!important}
  body.theme-light .wa-conversation{background:#fff!important;color:#0f172a!important;border-color:#e2e8f0!important}
  body.theme-light .wa-conversation.active{background:#dbeafe!important}
  body.theme-light .wa-conversation-preview,
  body.theme-light .wa-chat-header small{color:#64748b!important}
  body.theme-light .wa-messages{background:#f8fafc!important}
  body.theme-light .wa-bubble.in{background:#fff!important;color:#0f172a!important;border-color:#e2e8f0!important}
  body.theme-light .range-hint{background:#fff!important;color:#475569!important;border-color:#cbd5e1!important}
}

/* ---- source style block #ayanFinalThemeAudit20260827 ---- */
@media screen{
 body:not(.theme-light),body:not(.theme-light) .management-page{color:#e5e7eb}
 body:not(.theme-light) .management-head h1,body:not(.theme-light) .management-head h2,body:not(.theme-light) .management-head h3,
 body:not(.theme-light) .insight-card h3,body:not(.theme-light) .insight-card .metric,body:not(.theme-light) .mgmt-card strong,
 body:not(.theme-light) .taxonomy-panel,body:not(.theme-light) .client-pagination-info{color:#f8fafc!important}
 body:not(.theme-light) .management-head p,body:not(.theme-light) .metric-note,body:not(.theme-light) .insight-card p,
 body:not(.theme-light) .campaign-spend-hint,body:not(.theme-light) .client-pagination-size{color:#cbd5e1!important}
 body:not(.theme-light) .score-pill{color:#f8fafc!important;background:#1e293b!important}
 body.theme-light .management-head h1,body.theme-light .management-head h2,body.theme-light .management-head h3,
 body.theme-light .insight-card h3,body.theme-light .insight-card .metric,body.theme-light .mgmt-card strong,
 body.theme-light .taxonomy-panel,body.theme-light .client-pagination-info{color:#0f172a!important}
 body.theme-light .insight-card{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}
 body.theme-light .insight-card p,body.theme-light .insight-card .action,body.theme-light .campaign-spend-hint,
 body.theme-light .client-pagination-size,body.theme-light .simple-modal-box label{color:#475569!important}
 body.theme-light .insight-card .action{background:#f8fafc!important;border-color:#cbd5e1!important}
 body.theme-light .score-pill{background:#e2e8f0!important;color:#0f172a!important}
 body.theme-light input::placeholder,body.theme-light textarea::placeholder{color:#64748b!important;opacity:1}
 body:not(.theme-light) input::placeholder,body:not(.theme-light) textarea::placeholder{color:#94a3b8!important;opacity:1}
 body.theme-light option{background:#fff;color:#0f172a}
 body:not(.theme-light) option{background:#020617;color:#f8fafc}
}

/* ---- source style block #ayanGlobalThemeContrastFinalV4 ---- */
/* ==========================================================
   FINAL GLOBAL THEME CONTRAST AUDIT
   Fixes text visibility in analytics, decision, reports,
   employee performance, campaigns, forms and alerts.
   ========================================================== */
@media screen{

  /* ---------- LIGHT MODE ---------- */
  body.theme-light{
    color:#111827!important;
  }

  body.theme-light .management-page,
  body.theme-light .management-page h1,
  body.theme-light .management-page h2,
  body.theme-light .management-page h3,
  body.theme-light .management-page strong,
  body.theme-light .management-page b{
    color:#111827!important;
  }

  body.theme-light .management-head p,
  body.theme-light .management-head small,
  body.theme-light .mgmt-card small,
  body.theme-light .metric-note,
  body.theme-light .campaign-spend-hint,
  body.theme-light .client-form-head small,
  body.theme-light .other-clients-head p,
  body.theme-light .report-title small,
  body.theme-light .report-kpi small{
    color:#475569!important;
  }

  body.theme-light .mgmt-card,
  body.theme-light .report-kpi,
  body.theme-light .insight-card,
  body.theme-light .smart-alert,
  body.theme-light .simple-modal-box{
    background:#ffffff!important;
    color:#111827!important;
    border-color:#cbd5e1!important;
    box-shadow:none!important;
  }

  body.theme-light .mgmt-card strong,
  body.theme-light .report-kpi strong,
  body.theme-light .insight-card h3,
  body.theme-light .insight-card .metric,
  body.theme-light .smart-alert strong,
  body.theme-light .simple-modal-box h3{
    color:#0f172a!important;
  }

  body.theme-light .insight-card p,
  body.theme-light .smart-alert p{
    color:#334155!important;
  }

  body.theme-light .insight-card .action{
    background:#f8fafc!important;
    color:#334155!important;
    border-color:#cbd5e1!important;
  }

  body.theme-light .comparison-dates label,
  body.theme-light .alert-settings label{
    color:#334155!important;
    font-weight:700!important;
  }

  body.theme-light .comparison-positive{color:#15803d!important}
  body.theme-light .comparison-negative{color:#b91c1c!important}
  body.theme-light .comparison-neutral{color:#475569!important}

  body.theme-light .smart-alert.high{
    border-inline-start-color:#dc2626!important;
  }
  body.theme-light .smart-alert.medium{
    border-inline-start-color:#d97706!important;
  }
  body.theme-light .smart-alert.low{
    border-inline-start-color:#0284c7!important;
  }

  body.theme-light .management-table,
  body.theme-light .management-table table,
  body.theme-light .management-table tbody{
    background:#fff!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light .management-table th{
    background:#e2e8f0!important;
    color:#0f172a!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light .management-table td{
    background:#fff!important;
    color:#111827!important;
    border-color:#e2e8f0!important;
  }
  body.theme-light .management-table tr:nth-child(even) td{
    background:#f8fafc!important;
  }

  body.theme-light .score-pill{
    background:#e2e8f0!important;
    color:#0f172a!important;
    border:1px solid #cbd5e1!important;
  }

  body.theme-light .executive-report{
    background:#fff!important;
    color:#111827!important;
  }
  body.theme-light .report-section,
  body.theme-light .report-section h3,
  body.theme-light .bar-row{
    color:#111827!important;
  }

  body.theme-light input,
  body.theme-light select,
  body.theme-light textarea{
    color:#111827!important;
    background:#fff!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light input::placeholder,
  body.theme-light textarea::placeholder{
    color:#64748b!important;
    opacity:1!important;
  }

  /* ---------- DARK MODE ---------- */
  body:not(.theme-light){
    color:#f1f5f9!important;
  }

  body:not(.theme-light) .management-page,
  body:not(.theme-light) .management-page h1,
  body:not(.theme-light) .management-page h2,
  body:not(.theme-light) .management-page h3,
  body:not(.theme-light) .management-page strong,
  body:not(.theme-light) .management-page b{
    color:#f8fafc!important;
  }

  body:not(.theme-light) .management-head p,
  body:not(.theme-light) .management-head small,
  body:not(.theme-light) .mgmt-card small,
  body:not(.theme-light) .metric-note,
  body:not(.theme-light) .campaign-spend-hint,
  body:not(.theme-light) .client-form-head small,
  body:not(.theme-light) .other-clients-head p{
    color:#cbd5e1!important;
  }

  body:not(.theme-light) .mgmt-card,
  body:not(.theme-light) .insight-card,
  body:not(.theme-light) .smart-alert,
  body:not(.theme-light) .simple-modal-box{
    background:#111827!important;
    color:#f8fafc!important;
    border-color:#334155!important;
  }

  body:not(.theme-light) .mgmt-card strong,
  body:not(.theme-light) .insight-card h3,
  body:not(.theme-light) .insight-card .metric,
  body:not(.theme-light) .smart-alert strong,
  body:not(.theme-light) .simple-modal-box h3{
    color:#f8fafc!important;
  }

  body:not(.theme-light) .insight-card p,
  body:not(.theme-light) .smart-alert p{
    color:#d1d5db!important;
  }

  body:not(.theme-light) .insight-card .action{
    background:#0b1220!important;
    color:#e5e7eb!important;
    border-color:#334155!important;
  }

  body:not(.theme-light) .comparison-dates label,
  body:not(.theme-light) .alert-settings label{
    color:#e2e8f0!important;
    font-weight:700!important;
  }

  body:not(.theme-light) .comparison-positive{color:#86efac!important}
  body:not(.theme-light) .comparison-negative{color:#fca5a5!important}
  body:not(.theme-light) .comparison-neutral{color:#cbd5e1!important}

  body:not(.theme-light) .management-table,
  body:not(.theme-light) .management-table table,
  body:not(.theme-light) .management-table tbody{
    background:#0f172a!important;
    border-color:#334155!important;
  }
  body:not(.theme-light) .management-table th{
    background:#1e293b!important;
    color:#f8fafc!important;
    border-color:#475569!important;
  }
  body:not(.theme-light) .management-table td{
    background:#0f172a!important;
    color:#e5e7eb!important;
    border-color:#334155!important;
  }
  body:not(.theme-light) .management-table tr:nth-child(even) td{
    background:#111827!important;
  }

  body:not(.theme-light) .score-pill{
    background:#1e293b!important;
    color:#f8fafc!important;
    border:1px solid #475569!important;
  }

  body:not(.theme-light) input,
  body:not(.theme-light) select,
  body:not(.theme-light) textarea{
    color:#f8fafc!important;
    background:#020617!important;
    border-color:#334155!important;
  }
  body:not(.theme-light) input::placeholder,
  body:not(.theme-light) textarea::placeholder{
    color:#94a3b8!important;
    opacity:1!important;
  }

  /* KPI / summary text must never inherit a faint color */
  body.theme-light .dash-card .dash-label,
  body.theme-light .dash-card small{
    color:#475569!important;
  }
  body.theme-light .dash-card .dash-value,
  body.theme-light .dash-card strong{
    color:#0f172a!important;
  }
  body:not(.theme-light) .dash-card .dash-label,
  body:not(.theme-light) .dash-card small{
    color:#cbd5e1!important;
  }
  body:not(.theme-light) .dash-card .dash-value,
  body:not(.theme-light) .dash-card strong{
    color:#f8fafc!important;
  }


  /* Avoid washed-out labels inside white KPI blocks */
  body.theme-light .management-cards small,
  body.theme-light .report-kpis small{
    opacity:1!important;
  }
}

/* ---- source style block #ayanReportsControlThemeAuditFinal20260827 ---- */
@media screen{
  /* ===== CONTROL CENTER — LIGHT ===== */
  body.theme-light #controlView,
  body.theme-light #controlView .management-page{background:#f4f7fb!important;color:#0f172a!important}
  body.theme-light #controlView .control-panel{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important;box-shadow:none!important}
  body.theme-light #controlView .control-panel h2,
  body.theme-light #controlView .control-panel h3,
  body.theme-light #controlView .control-panel strong,
  body.theme-light #controlView .control-panel b{color:#0f172a!important}
  body.theme-light #controlView .control-panel-head p,
  body.theme-light #controlView .metric-note{color:#475569!important;opacity:1!important}
  body.theme-light #controlView .comparison-dates label,
  body.theme-light #controlView .alert-settings label{color:#334155!important}
  body.theme-light #controlView .smart-alert{background:#fff!important;color:#0f172a!important;border-color:#cbd5e1!important}
  body.theme-light #controlView .smart-alert strong{color:#0f172a!important}
  body.theme-light #controlView .smart-alert p{color:#334155!important}
  body.theme-light #controlView .management-table,
  body.theme-light #controlView .management-table table,
  body.theme-light #controlView .management-table tbody{background:#fff!important;border-color:#cbd5e1!important}
  body.theme-light #controlView .management-table th{background:#e2e8f0!important;color:#0f172a!important;border-color:#cbd5e1!important}
  body.theme-light #controlView .management-table td{background:#fff!important;color:#111827!important;border-color:#e2e8f0!important}
  body.theme-light #controlView .management-table tr:nth-child(even) td{background:#f8fafc!important}

  /* ===== CONTROL CENTER — DARK ===== */
  body:not(.theme-light) #controlView,
  body:not(.theme-light) #controlView .management-page{background:#0f172a!important;color:#f8fafc!important}
  body:not(.theme-light) #controlView .control-panel{background:#111827!important;color:#f8fafc!important;border-color:#334155!important}
  body:not(.theme-light) #controlView .control-panel h2,
  body:not(.theme-light) #controlView .control-panel h3,
  body:not(.theme-light) #controlView .control-panel strong,
  body:not(.theme-light) #controlView .control-panel b{color:#f8fafc!important}
  body:not(.theme-light) #controlView .control-panel-head p,
  body:not(.theme-light) #controlView .metric-note{color:#cbd5e1!important;opacity:1!important}
  body:not(.theme-light) #controlView .comparison-dates label,
  body:not(.theme-light) #controlView .alert-settings label{color:#e2e8f0!important}
  body:not(.theme-light) #controlView .smart-alert{background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important}
  body:not(.theme-light) #controlView .smart-alert strong{color:#f8fafc!important}
  body:not(.theme-light) #controlView .smart-alert p{color:#d1d5db!important}
  body:not(.theme-light) #controlView .management-table th{background:#1e293b!important;color:#f8fafc!important;border-color:#475569!important}
  body:not(.theme-light) #controlView .management-table td{background:#0f172a!important;color:#e5e7eb!important;border-color:#334155!important}
  body:not(.theme-light) #controlView .management-table tr:nth-child(even) td{background:#111827!important}

  /* ===== REPORTS — LIGHT ===== */
  body.theme-light #reportsView,
  body.theme-light #reportsView .management-page{background:#f4f7fb!important;color:#0f172a!important}
  body.theme-light #reportsView .executive-report{background:#fff!important;color:#111827!important;border:1px solid #e2e8f0!important}
  body.theme-light #reportsView .report-title,
  body.theme-light #reportsView .report-title h1,
  body.theme-light #reportsView .report-title h2,
  body.theme-light #reportsView .report-section,
  body.theme-light #reportsView .report-section h3,
  body.theme-light #reportsView .bar-row{color:#111827!important}
  body.theme-light #reportsView .report-title small,
  body.theme-light #reportsView .report-kpi small,
  body.theme-light #reportsView .metric-note{color:#475569!important;opacity:1!important}
  body.theme-light #reportsView .report-kpi{background:#f8fafc!important;color:#0f172a!important;border-color:#cbd5e1!important}
  body.theme-light #reportsView .report-kpi strong{color:#0f172a!important}
  body.theme-light #reportsView .report-table th{background:#e2e8f0!important;color:#0f172a!important;border-color:#cbd5e1!important}
  body.theme-light #reportsView .report-table td{background:#fff!important;color:#111827!important;border-color:#cbd5e1!important}
  body.theme-light #reportsView .bar-track{background:#e2e8f0!important}
  body.theme-light #reportsView .bar-fill{background:#475569!important}

  /* ===== REPORTS — DARK ===== */
  body:not(.theme-light) #reportsView,
  body:not(.theme-light) #reportsView .management-page{background:#0f172a!important;color:#f8fafc!important}
  body:not(.theme-light) #reportsView .executive-report{background:#111827!important;color:#f8fafc!important;border:1px solid #334155!important}
  body:not(.theme-light) #reportsView .report-title{border-bottom-color:#334155!important;color:#f8fafc!important}
  body:not(.theme-light) #reportsView .report-title h1,
  body:not(.theme-light) #reportsView .report-title h2,
  body:not(.theme-light) #reportsView .report-section,
  body:not(.theme-light) #reportsView .report-section h3,
  body:not(.theme-light) #reportsView .bar-row{color:#f8fafc!important}
  body:not(.theme-light) #reportsView .report-title small,
  body:not(.theme-light) #reportsView .report-kpi small,
  body:not(.theme-light) #reportsView .metric-note{color:#cbd5e1!important;opacity:1!important}
  body:not(.theme-light) #reportsView .report-kpi{background:#0f172a!important;color:#f8fafc!important;border-color:#334155!important}
  body:not(.theme-light) #reportsView .report-kpi strong{color:#f8fafc!important}
  body:not(.theme-light) #reportsView .report-table{background:#0f172a!important;color:#e5e7eb!important}
  body:not(.theme-light) #reportsView .report-table th{background:#1e293b!important;color:#f8fafc!important;border-color:#475569!important}
  body:not(.theme-light) #reportsView .report-table td{background:#0f172a!important;color:#e5e7eb!important;border-color:#334155!important}
  body:not(.theme-light) #reportsView .report-table tr:nth-child(even) td{background:#111827!important}
  body:not(.theme-light) #reportsView .bar-track{background:#334155!important}
  body:not(.theme-light) #reportsView .bar-fill{background:#94a3b8!important}

  /* Keep semantic status colors readable in both themes */
  body.theme-light #controlView .comparison-positive{color:#15803d!important}
  body.theme-light #controlView .comparison-negative{color:#b91c1c!important}
  body.theme-light #controlView .comparison-neutral{color:#475569!important}
  body:not(.theme-light) #controlView .comparison-positive{color:#86efac!important}
  body:not(.theme-light) #controlView .comparison-negative{color:#fca5a5!important}
  body:not(.theme-light) #controlView .comparison-neutral{color:#cbd5e1!important}
}

/* ---- source style block #ayanWhatsAppThemeContrastFinalV1 ---- */
@media screen{

  /* =========================
     WHATSAPP — LIGHT MODE
     ========================= */
  body.theme-light #whatsappView{
    color:#111827!important;
    background:#f4f7fb!important;
  }

  body.theme-light #whatsappView .management-head h2,
  body.theme-light #whatsappView .management-head h3,
  body.theme-light #whatsappView .wa-chat-header strong,
  body.theme-light #whatsappView .wa-conversation strong{
    color:#0f172a!important;
  }

  body.theme-light #whatsappView .management-head p,
  body.theme-light #whatsappView .wa-chat-header small,
  body.theme-light #whatsappView .wa-conversation small,
  body.theme-light #whatsappView .wa-conversation-preview,
  body.theme-light #whatsappView .wa-bubble-time,
  body.theme-light #whatsappView .wa-empty,
  body.theme-light #whatsappView .metric-note{
    color:#64748b!important;
  }

  body.theme-light #whatsappView .wa-sidebar,
  body.theme-light #whatsappView .wa-chat-panel,
  body.theme-light #whatsappView .wa-chat-header,
  body.theme-light #whatsappView .wa-sidebar-tools,
  body.theme-light #whatsappView .wa-composer{
    background:#ffffff!important;
    color:#111827!important;
    border-color:#cbd5e1!important;
  }

  body.theme-light #whatsappView .wa-conversation{
    background:#ffffff!important;
    color:#111827!important;
    border-color:#e2e8f0!important;
  }
  body.theme-light #whatsappView .wa-conversation:hover{
    background:#f1f5f9!important;
  }
  body.theme-light #whatsappView .wa-conversation.active{
    background:#dbeafe!important;
    color:#0f172a!important;
  }

  body.theme-light #whatsappView .wa-read-tab{
    background:#ffffff!important;
    color:#334155!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light #whatsappView .wa-read-tab.active{
    background:#2563eb!important;
    color:#ffffff!important;
    border-color:#2563eb!important;
  }
  body.theme-light #whatsappView .wa-read-tab span{
    background:#e2e8f0!important;
    color:#0f172a!important;
  }
  body.theme-light #whatsappView .wa-read-tab.active span{
    background:rgba(255,255,255,.20)!important;
    color:#fff!important;
  }

  body.theme-light #whatsappView .wa-client-meta span{
    background:#f8fafc!important;
    color:#475569!important;
    border-color:#cbd5e1!important;
  }

  body.theme-light #whatsappView .wa-messages{
    background:#f8fafc!important;
  }

  body.theme-light #whatsappView .wa-bubble.in{
    background:#ffffff!important;
    color:#111827!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light #whatsappView .wa-bubble.out{
    background:#dcfce7!important;
    color:#14532d!important;
    border-color:#86efac!important;
  }
  body.theme-light #whatsappView .wa-bubble.out .wa-bubble-time{
    color:#166534!important;
  }

  body.theme-light #whatsappView .wa-composer textarea,
  body.theme-light #whatsappView .wa-sidebar-tools input,
  body.theme-light #whatsappView .wa-new-chat input{
    background:#ffffff!important;
    color:#0f172a!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light #whatsappView input::placeholder,
  body.theme-light #whatsappView textarea::placeholder{
    color:#64748b!important;
    opacity:1!important;
  }

  body.theme-light #whatsappView .wa-status.waiting{
    background:#f1f5f9!important;
    color:#475569!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light #whatsappView .wa-status.ok{
    background:#ecfdf5!important;
    color:#166534!important;
    border-color:#86efac!important;
  }
  body.theme-light #whatsappView .wa-status.bad{
    background:#fef2f2!important;
    color:#991b1b!important;
    border-color:#fca5a5!important;
  }

  body.theme-light #whatsappView .wa-window-status.waiting{
    background:#f1f5f9!important;
    color:#475569!important;
    border-color:#cbd5e1!important;
  }
  body.theme-light #whatsappView .wa-window-status.open{
    background:#ecfdf5!important;
    color:#166534!important;
    border-color:#86efac!important;
  }
  body.theme-light #whatsappView .wa-window-status.closed{
    background:#fffbeb!important;
    color:#92400e!important;
    border-color:#fcd34d!important;
  }

  /* =========================
     WHATSAPP — DARK MODE
     ========================= */
  body:not(.theme-light) #whatsappView{
    color:#f1f5f9!important;
    background:#0f172a!important;
  }

  body:not(.theme-light) #whatsappView .management-head h2,
  body:not(.theme-light) #whatsappView .management-head h3,
  body:not(.theme-light) #whatsappView .wa-chat-header strong,
  body:not(.theme-light) #whatsappView .wa-conversation strong{
    color:#f8fafc!important;
  }

  body:not(.theme-light) #whatsappView .management-head p,
  body:not(.theme-light) #whatsappView .wa-chat-header small,
  body:not(.theme-light) #whatsappView .wa-conversation small,
  body:not(.theme-light) #whatsappView .wa-conversation-preview,
  body:not(.theme-light) #whatsappView .wa-bubble-time,
  body:not(.theme-light) #whatsappView .wa-empty,
  body:not(.theme-light) #whatsappView .metric-note{
    color:#cbd5e1!important;
  }

  body:not(.theme-light) #whatsappView .wa-sidebar,
  body:not(.theme-light) #whatsappView .wa-chat-panel,
  body:not(.theme-light) #whatsappView .wa-chat-header,
  body:not(.theme-light) #whatsappView .wa-sidebar-tools,
  body:not(.theme-light) #whatsappView .wa-composer{
    background:#111827!important;
    color:#f1f5f9!important;
    border-color:#334155!important;
  }

  body:not(.theme-light) #whatsappView .wa-conversation{
    background:#111827!important;
    color:#e5e7eb!important;
    border-color:#334155!important;
  }
  body:not(.theme-light) #whatsappView .wa-conversation:hover,
  body:not(.theme-light) #whatsappView .wa-conversation.active{
    background:#1e293b!important;
  }

  body:not(.theme-light) #whatsappView .wa-read-tab{
    background:#0f172a!important;
    color:#cbd5e1!important;
    border-color:#334155!important;
  }
  body:not(.theme-light) #whatsappView .wa-read-tab.active{
    background:#2563eb!important;
    color:#ffffff!important;
    border-color:#60a5fa!important;
  }
  body:not(.theme-light) #whatsappView .wa-read-tab span{
    background:rgba(255,255,255,.10)!important;
    color:#e5e7eb!important;
  }

  body:not(.theme-light) #whatsappView .wa-client-meta span{
    background:#0f172a!important;
    color:#cbd5e1!important;
    border-color:#334155!important;
  }

  body:not(.theme-light) #whatsappView .wa-messages{
    background:#0b1220!important;
  }

  body:not(.theme-light) #whatsappView .wa-bubble.in{
    background:#1e293b!important;
    color:#f8fafc!important;
    border-color:#475569!important;
  }
  body:not(.theme-light) #whatsappView .wa-bubble.out{
    background:#14532d!important;
    color:#f0fdf4!important;
    border-color:#166534!important;
  }
  body:not(.theme-light) #whatsappView .wa-bubble.out .wa-bubble-time{
    color:#bbf7d0!important;
  }

  body:not(.theme-light) #whatsappView .wa-composer textarea,
  body:not(.theme-light) #whatsappView .wa-sidebar-tools input,
  body:not(.theme-light) #whatsappView .wa-new-chat input{
    background:#020617!important;
    color:#f8fafc!important;
    border-color:#334155!important;
  }

  body:not(.theme-light) #whatsappView input::placeholder,
  body:not(.theme-light) #whatsappView textarea::placeholder{
    color:#94a3b8!important;
    opacity:1!important;
  }

  body:not(.theme-light) #whatsappView .wa-status.waiting{
    background:#111827!important;
    color:#cbd5e1!important;
    border-color:#334155!important;
  }
  body:not(.theme-light) #whatsappView .wa-status.ok{
    background:rgba(34,197,94,.14)!important;
    color:#86efac!important;
    border-color:rgba(34,197,94,.35)!important;
  }
  body:not(.theme-light) #whatsappView .wa-status.bad{
    background:rgba(239,68,68,.14)!important;
    color:#fecaca!important;
    border-color:rgba(239,68,68,.35)!important;
  }

  body:not(.theme-light) #whatsappView .wa-window-status.waiting{
    background:#0f172a!important;
    color:#cbd5e1!important;
    border-color:#334155!important;
  }
  body:not(.theme-light) #whatsappView .wa-window-status.open{
    background:rgba(22,163,74,.12)!important;
    color:#86efac!important;
    border-color:rgba(34,197,94,.45)!important;
  }
  body:not(.theme-light) #whatsappView .wa-window-status.closed{
    background:rgba(202,138,4,.12)!important;
    color:#fde68a!important;
    border-color:rgba(245,158,11,.45)!important;
  }
}
