.communication-dashboard-v2 {
    --cd-purple: #5749e8;
    --cd-ink: #192133;
    --cd-muted: #8b96aa;
    --cd-line: #e5e9f1;
    --cd-bg: #f7f9fc;
    color: var(--cd-ink);
    font-size: 14px;
}

.communication-dashboard-v2 * { box-sizing: border-box; }
.communication-dashboard-v2 a { color: inherit; text-decoration: none; }
.cdash-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.cdash-heading h1 { margin: 0 0 5px; font-size: 24px; font-weight: 750; letter-spacing: -.03em; }
.cdash-heading p { margin: 0; color: #9aa5b8; }
.cdash-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 17px; border-radius: 9px; font-weight: 700; }
.cdash-btn-primary { color: #fff !important; background: linear-gradient(135deg, #6358ef, #4c3bdd); box-shadow: 0 8px 18px rgba(82, 69, 224, .2); }

.cdash-shortcuts, .cdash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.cdash-shortcut { min-height: 82px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; box-shadow: 0 2px 3px rgba(24, 32, 49, .03); font-weight: 650; transition: .18s ease; }
.cdash-shortcut:hover { transform: translateY(-2px); border-color: #cfcafa; box-shadow: 0 8px 18px rgba(43, 48, 68, .07); }
.cdash-shortcut iconify-icon { color: var(--cd-purple); font-size: 23px; }
.cdash-shortcut:nth-child(2) iconify-icon { color: #f1a200; }
.cdash-shortcut:nth-child(3) iconify-icon { color: #ff526b; }
.cdash-shortcut:nth-child(4) iconify-icon { color: #9a48ed; }
.cdash-shortcut:nth-child(5) iconify-icon { color: #20b8a7; }
.cdash-shortcut:nth-child(6) iconify-icon { color: #2676dc; }
.cdash-shortcut.is-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #655cf0, #4a39d9); box-shadow: 0 9px 19px rgba(76, 59, 217, .22); }
.cdash-shortcut.is-primary iconify-icon { color: #fff; }

.cdash-kpi { min-height: 112px; padding: 15px 16px; background: #fff; border: 1px solid var(--cd-line); border-radius: 12px; box-shadow: 0 2px 3px rgba(24, 32, 49, .03); }
.cdash-kpi-top { display: flex; justify-content: space-between; align-items: center; color: #9ba6b8; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.cdash-kpi-top i, .cdash-panel-title h2 > i { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-style: normal; }
.cdash-kpi-top iconify-icon { font-size: 17px; }
.cdash-kpi strong { display: block; margin: 9px 0 2px; font-size: 25px; line-height: 1; }
.cdash-kpi small { color: #9aa5b7; font-size: 11px; }
.cdash-kpi small.is-positive { color: #19ae78; }
.cdash-kpi small.is-negative { color: #f15a68; }
.is-purple {  background: #eef0ff; }
.is-blue { color: #279ee7 !important; background: #eaf8ff; }
.is-pink { color: #ff5775 !important; background: #fff0f3; }
.is-amber { color: #ef9d00 !important; background: #fff8df; }
.is-green {  background: #e9fbf4; }
.is-red { color: #f35f68 !important; background: #fff0f1; }
.is-slate { color: #77849a !important; background: #eef2f7; }

.cdash-grid { display: grid; gap: 16px; margin-bottom: 20px; }
.cdash-grid-top, .cdash-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cdash-grid-chart { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.cdash-panel { min-width: 0; background: #fff; border: 1px solid var(--cd-line); border-radius: 13px; box-shadow: 0 2px 4px rgba(26, 34, 49, .03); overflow: hidden; }
.cdash-panel-title { min-height: 52px; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cdash-panel-title h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 750; }
.cdash-panel-title h2 > i { width: 25px; height: 25px; font-size: 16px; }
.cdash-panel-title > a { color: var(--cd-purple); font-size: 11px; font-weight: 700; }
.cdash-panel-title small { display: block; margin-top: 2px; color: #a4aec0; font-size: 11px; }
.cdash-count { padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.cdash-list { padding: 0 13px 13px; }
.cdash-list-row, .cdash-account-row { min-height: 48px; margin-bottom: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; background: #f7f9fc; border-radius: 9px; }
.cdash-list-row > span, .cdash-account-row > span { flex: 1; min-width: 0; }
.cdash-list-row strong, .cdash-account-row strong { display: block; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cdash-list-row small, .cdash-account-row small, .cdash-approval-row small { display: block; margin-top: 2px; color: #a2adc0; font-size: 10px; }
.cdash-platform { width: 29px; height: 29px; flex: 0 0 29px; display: inline-flex; align-items: center; justify-content: center; color: #62728b; background: #eaf0f7; border-radius: 8px; font-style: normal; font-size: 17px; }
.cdash-platform.is-linkedin { color: #1877d2; background: #e9f2ff; }
.cdash-platform.is-twitter { color: #111827; background: #edf1f5; }
.cdash-platform.is-instagram { color: #ed538c; background: #ffeaf2; }
.cdash-platform.is-facebook { color: #3477d3; background: #eaf1fb; }
.cdash-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #c9d2df; }
.cdash-dot.is-published { background: #2dcc9c; }
.cdash-dot.is-scheduled { background: #f3b21c; }
.cdash-dot.is-failed { background: #f06170; }
.cdash-status { padding: 4px 8px; border-radius: 99px; color: #8490a2; background: #eef2f7; font-size: 10px; font-weight: 700; white-space: nowrap; }
.cdash-status.is-active { color: #159c70; background: #e5faef; }
.cdash-add-row, .cdash-new-draft { min-height: 37px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #7e89a0 !important; border: 1px dashed #d6dce7; border-radius: 8px; font-size: 11px; }
.cdash-approval-row { margin-bottom: 8px; padding: 10px; background: #fffcf2; border: 1px solid #f8dfa0; border-radius: 9px; }
.cdash-approval-row strong { display: block; color: #3c4658; font-size: 12px; }
.cdash-inline-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.cdash-inline-actions form { margin: 0; }
.cdash-action { padding: 5px 10px; color: #718097; background: #edf1f6; border: 0; border-radius: 7px; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.cdash-action.is-approve { color: #148b66; background: #d9f7e9; }
.cdash-empty { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #a1acbd; text-align: center; font-size: 12px; }
.cdash-empty iconify-icon { font-size: 25px; }

.cdash-chart-panel { min-height: 265px; }
.cdash-chart-wrap { height: 205px; padding: 0 12px 8px; }
.cdash-chart-wrap canvas { width: 100%; height: 100%; display: block; }
.cdash-legend { display: flex; gap: 12px; color: #8d98a9; font-size: 10px; }
.cdash-legend span { display: flex; align-items: center; gap: 5px; }
.cdash-legend i { width: 8px; height: 3px; border-radius: 2px; }
.cdash-legend .is-planned { background: #5b50e6; }
.cdash-legend .is-published { background: #ff6f83; }
.cdash-week { padding: 5px 16px 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cdash-week > div { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9ba6b9; font-size: 9px; }
.cdash-week strong { width: 27px; height: 27px; display: grid; place-items: center; color: #6f7b90; border-radius: 8px; font-size: 11px; }
.cdash-week .is-today strong { color: #fff; background: var(--cd-purple); }
.cdash-week i { width: 4px; height: 4px; background: #f4b312; border-radius: 50%; }
.cdash-subtitle { margin: 0; padding: 0 16px 6px; color: #7d899e; font-size: 9px; text-transform: uppercase; }
.cdash-upcoming { padding: 0 13px 13px; }
.cdash-upcoming a { margin-top: 7px; padding: 8px 9px; display: flex; align-items: center; border-left: 3px solid #ffbd22; border-radius: 7px; background: #fffbef; }
.cdash-upcoming a span { flex: 1; min-width: 0; }
.cdash-upcoming strong, .cdash-upcoming small { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cdash-upcoming small { color: #9ca7b8; }
.cdash-upcoming p { color: #9ba6b8; font-size: 11px; text-align: center; }

.cdash-card-list { padding: 0 13px 13px; }
.cdash-campaign { position: relative; min-height: 82px; margin-bottom: 10px; padding: 13px; display: block; border: 1px solid #dedffc; border-radius: 9px; background: linear-gradient(135deg, #f6f5ff, #fff); }
.cdash-campaign:nth-child(2n) { border-color: #ffe2da; background: linear-gradient(135deg, #fff5f2, #fff); }
.cdash-campaign .cdash-status { position: absolute; top: 10px; right: 10px; }
.cdash-campaign strong, .cdash-campaign small { display: block; padding-right: 58px; }
.cdash-campaign strong { color: #374153; font-size: 12px; }
.cdash-campaign small, .cdash-platforms { margin-top: 5px; color: #99a4b6; font-size: 10px; }
.cdash-platforms { color: #6258df; }
.cdash-schedule-list, .cdash-ranked-list, .cdash-idea-list, .cdash-activity { padding: 0 13px 13px; }
.cdash-schedule-list > a { min-height: 50px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eef1f5; }
.cdash-schedule-list time { width: 34px; display: flex; flex-direction: column; align-items: center; color: #6354e7; }
.cdash-schedule-list time b { font-size: 16px; line-height: 1; }
.cdash-schedule-list time span { margin-top: 2px; font-size: 8px; text-transform: uppercase; }
.cdash-schedule-list > a > span { flex: 1; min-width: 0; }
.cdash-schedule-list strong, .cdash-schedule-list small { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cdash-schedule-list small { color: #9da8b9; }
.cdash-ranked-list a { min-height: 45px; margin-bottom: 7px; padding: 7px 9px; display: flex; align-items: center; gap: 9px; background: #f7f9fc; border-radius: 8px; }
.cdash-ranked-list a:first-child { border: 1px solid #f6dfa2; background: #fffbef; }
.cdash-ranked-list a > b { width: 23px; height: 23px; display: grid; place-items: center; color: #7c879a; background: #e7ecf2; border-radius: 50%; font-size: 10px; }
.cdash-ranked-list a:first-child > b { color: #fff; background: #f5b719; }
.cdash-ranked-list span { flex: 1; min-width: 0; }
.cdash-ranked-list strong, .cdash-ranked-list small { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cdash-ranked-list small { color: #9da8b9; }
.cdash-idea-list a { min-height: 36px; margin-bottom: 7px; padding: 7px 9px; display: flex; align-items: center; gap: 8px; background: #fffcf2; border: 1px solid #f6e8bc; border-radius: 8px; font-size: 10px; }
.cdash-idea-list a > i { width: 7px; height: 7px; background: #f4b719; border-radius: 50%; }
.cdash-idea-list a > i.is-high { background: #f26070; }
.cdash-idea-list a > span { flex: 1; }
.cdash-generate { min-height: 32px; margin: 0 13px 13px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff !important; background: linear-gradient(90deg, #ffbb16, #ff8b3d); border-radius: 8px; font-size: 10px; font-weight: 700; }
.cdash-activity > div { position: relative; min-height: 47px; display: flex; gap: 9px; }
.cdash-activity > div:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 1px; background: #e8ecf2; }
.cdash-activity > div > i { z-index: 1; width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 50%; font-style: normal; }
.cdash-activity span { min-width: 0; }
.cdash-activity strong, .cdash-activity small, .cdash-activity time { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cdash-activity small, .cdash-activity time { color: #9da8ba; }
.cdash-activity time { margin-top: 2px; font-size: 9px; }

.cdash-connection { min-height: 66px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; color: #fff; background: linear-gradient(100deg, #3474ec, #214fd7); border-radius: 12px; box-shadow: 0 8px 20px rgba(39, 88, 218, .2); }
.cdash-connection > i { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.14); border-radius: 9px; font-style: normal; font-size: 22px; }
.cdash-connection > span { flex: 1; min-width: 0; }
.cdash-connection strong, .cdash-connection small { display: block; }
.cdash-connection small { margin-top: 2px; color: #bcd0ff; font-size: 11px; }
.cdash-connection > b { padding: 6px 12px; color: #bff5d9; background: rgba(24, 204, 133, .18); border-radius: 9px; font-size: 10px; }
.cdash-connection > a { padding: 8px 14px; color: #315ddb !important; background: #fff; border-radius: 8px; font-size: 11px; font-weight: 750; }

@media (max-width: 1200px) {
    .cdash-shortcuts, .cdash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cdash-grid-top, .cdash-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .cdash-grid-chart, .cdash-grid-top, .cdash-grid-three { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .cdash-heading { align-items: flex-start; flex-direction: column; }
    .cdash-heading .cdash-btn { width: 100%; }
    .cdash-shortcuts, .cdash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdash-connection { align-items: flex-start; flex-wrap: wrap; }
    .cdash-connection > span { flex-basis: calc(100% - 50px); }
}
