/* Shared approval colors for the customer view, planner, and post editor. */
:root{
  --approval-green:#206f43;
  --approval-green-border:#78bd94;
  --approval-green-bg:#edf8f0;
  --approval-orange:#a65b08;
  --approval-orange-border:#e1ad69;
  --approval-orange-bg:#fff4e3;
  --approval-red:#aa303b;
  --approval-red-border:#dc969a;
  --approval-red-bg:#fff0f1;
  --approval-blue:#315f9b;
  --approval-blue-border:#b8d0ee;
  --approval-blue-bg:#e9f2ff;
  --approval-neutral:#4c5c65;
  --approval-neutral-border:#d4dfe3;
  --approval-neutral-bg:#f1f4f5;
}

.status{border:1px solid transparent;border-radius:999px;padding:3px 7px;font-weight:700;line-height:1.2}
.status.approved,.status.posted{color:var(--approval-green);background:var(--approval-green-bg);border-color:var(--approval-green-border)}
.status.conditional{color:var(--approval-orange);background:var(--approval-orange-bg);border-color:var(--approval-orange-border)}
.status.changes{color:var(--approval-red);background:var(--approval-red-bg);border-color:var(--approval-red-border)}
.status.pending{color:var(--approval-blue);background:var(--approval-blue-bg);border-color:var(--approval-blue-border)}
.status.draft,.status.scheduled{color:var(--approval-neutral);background:var(--approval-neutral-bg);border-color:var(--approval-neutral-border)}
.meta-calendar-status.status{border:0}
.status-legend i.approved,.status-legend i.posted,.sidebar-status-dot.approved,.sidebar-status-dot.posted{background:var(--approval-green)}
.status-legend i.conditional,.sidebar-status-dot.conditional{background:var(--approval-orange)}
.status-legend i.changes,.sidebar-status-dot.changes{background:var(--approval-red)}
.status-legend i.pending,.sidebar-status-dot.pending{background:var(--approval-blue)}
.status-legend i.draft,.sidebar-status-dot.draft{background:#87959d}
.sidebar-status-filter:hover,.sidebar-status-filter.active{background:#eaf0f2;color:#26343c}
.sidebar-status-filter.active .sidebar-status-count{color:#4c5c65}
.customer-portal .portal-post.portal-pending .status{background:var(--approval-blue);border-color:var(--approval-blue);color:#fff;animation:approval-pending-pulse 1.8s ease-in-out infinite}
.customer-portal .portal-post.portal-pending .portal-card-action{color:var(--approval-blue)}
@keyframes approval-pending-pulse{50%{box-shadow:0 0 0 4px #315f9b3d;background:#244f84}}

.post.approved,.post.posted,.post.conditional{background:#f5fbf7;border-color:#cce5d4}
.post.conditional{background:#fffbf4;border-color:#efdbbb}
.post.changes{background:#fff7f7;border-color:#f0cbd0}
.post.draft{background:#f8fafb;border-color:#dfe6e9}
.list-ad-span.approved,.list-ad-span.posted{background:#f5fbf7!important;border-color:#cce5d4!important}
.list-ad-span.conditional{background:#fffbf4!important;border-color:#efdbbb!important}
.list-ad-span.changes{background:#fff7f7!important;border-color:#f0cbd0!important}
.list-ad-span.draft{background:#f8fafb!important;border-color:#dfe6e9!important}
.list-ad-span.approved .ad-resize-handle,.list-ad-span.posted .ad-resize-handle{background:var(--approval-green)}
.list-ad-span.conditional .ad-resize-handle{background:var(--approval-orange)}
.list-ad-span.changes .ad-resize-handle{background:var(--approval-red)}
.list-ad-rowline.approved,.list-ad-rowline.posted{border-color:var(--approval-green-border)}
.list-ad-rowline.conditional{border-color:var(--approval-orange-border)}
.list-ad-rowline.changes{border-color:var(--approval-red-border)}
.gantt-bar.approved,.gantt-bar.posted{background:var(--approval-green-bg);color:var(--approval-green)}
.gantt-bar.conditional{background:var(--approval-orange-bg);color:var(--approval-orange)}
.gantt-bar.changes{background:var(--approval-red-bg);color:var(--approval-red)}
.gantt-bar.pending{background:var(--approval-blue-bg);color:var(--approval-blue)}

.detail .status-choice.draft,.detail .status-choice.scheduled{
  --choice-bg:var(--approval-neutral-bg);--choice-border:var(--approval-neutral-border);--choice-color:var(--approval-neutral)
}
.detail .status-choice.pending{
  --choice-bg:var(--approval-blue-bg);--choice-border:var(--approval-blue-border);--choice-color:var(--approval-blue)
}
.detail .status-choice.approved,.detail .status-choice.posted{
  --choice-bg:var(--approval-green-bg);--choice-border:var(--approval-green-border);--choice-color:var(--approval-green)
}
.detail .status-choice.conditional{
  --choice-bg:var(--approval-orange-bg);--choice-border:var(--approval-orange-border);--choice-color:var(--approval-orange)
}
.detail .status-choice.changes{
  --choice-bg:var(--approval-red-bg);--choice-border:var(--approval-red-border);--choice-color:var(--approval-red)
}
.detail .status-choice:disabled:not(.is-active){opacity:.55;cursor:default}
.detail .status-choice:disabled:not(.is-active):hover{background:#fff;border-color:#dfe4e6}

/* Approval decisions use color; the conversation stays neutral. */
.customer-feedback{border-color:#dce4e7;background:#fff;box-shadow:0 2px 8px #17233308}
.customer-feedback.approved{border-color:var(--approval-green-border);background:#fbfefc}
.customer-feedback.conditional{border-color:var(--approval-orange-border);background:#fffdf9}
.customer-feedback.changes{border-color:var(--approval-red-border);background:#fffafb}
.customer-feedback.pending{border-color:var(--approval-blue-border);background:#fbfdff}
.customer-feedback.draft{border-color:var(--approval-neutral-border);background:#fff}
.customer-feedback-heading{align-items:flex-start;gap:11px}
.customer-feedback-heading div{min-width:0}
.customer-feedback-heading b{font-size:14px;line-height:1.3}
.customer-feedback-heading small{font-size:12px;line-height:1.4;color:#5d6a73}
.customer-feedback-icon{flex:none;background:var(--approval-neutral-bg);color:var(--approval-neutral)}
.customer-feedback.approved .customer-feedback-icon{background:var(--approval-green-bg);color:var(--approval-green)}
.customer-feedback.conditional .customer-feedback-icon{background:var(--approval-orange-bg);color:var(--approval-orange)}
.customer-feedback.changes .customer-feedback-icon{background:var(--approval-red-bg);color:var(--approval-red)}
.customer-feedback.pending .customer-feedback-icon{background:var(--approval-blue-bg);color:var(--approval-blue)}
.approval-pill{flex:none;max-width:130px;border:1px solid var(--approval-neutral-border);border-radius:999px;padding:5px 9px;background:var(--approval-neutral-bg);color:var(--approval-neutral);font-size:10px;line-height:1.25;text-align:center}
.approval-pill.approved{background:var(--approval-green-bg);border-color:var(--approval-green-border);color:var(--approval-green)}
.approval-pill.conditional{background:var(--approval-orange-bg);border-color:var(--approval-orange-border);color:var(--approval-orange)}
.approval-pill.changes{background:var(--approval-red-bg);border-color:var(--approval-red-border);color:var(--approval-red)}
.approval-pill.pending{background:var(--approval-blue-bg);border-color:var(--approval-blue-border);color:var(--approval-blue)}
.customer-feedback .review-next-approval{background:var(--approval-red-bg);color:var(--approval-red)}
.customer-feedback.conditional .review-next-approval{background:var(--approval-orange-bg);color:var(--approval-orange)}
.customer-feedback-message{border-left-color:#c7d1d6;background:#f7f9fa}
.customer-feedback-message b{color:#46545d}
.customer-feedback-message.decision-approved{border-left-color:var(--approval-green-border);background:#f7fcf8}
.customer-feedback-message.decision-approved b{color:var(--approval-green)}
.customer-feedback-message.decision-conditional{border-left-color:var(--approval-orange-border);background:#fffaf2}
.customer-feedback-message.decision-conditional b{color:var(--approval-orange)}
.customer-feedback-message.decision-changes{border-left-color:var(--approval-red-border);background:#fff7f7}
.customer-feedback-message.decision-changes b{color:var(--approval-red)}
.review-conversation .customer-feedback-message{border-left-color:#c7d1d6;background:#fff}
.review-conversation .customer-feedback-message.decision-approved{border-left-color:var(--approval-green-border);background:#f7fcf8}
.review-conversation .customer-feedback-message.decision-conditional{border-left-color:var(--approval-orange-border);background:#fffaf2}
.review-conversation .customer-feedback-message.decision-changes{border-left-color:var(--approval-red-border);background:#fff7f7}
.review-conversation .customer-feedback-message.team-message{border-right-color:#8c9da6;background:#f3f6f7}
.review-conversation .customer-feedback-message.team-message b{color:#40515a}
.customer-feedback .review-decision-history h3,.customer-feedback .review-chat h3{font:700 14px Manrope,sans-serif;color:#26343c}
.customer-feedback .review-chat{border-top:1px solid #dce4e7;padding-top:18px}
.customer-feedback .review-reply-form{margin-top:14px;padding:14px;border:1px solid #dce4e7;border-radius:10px;background:#f7f9fa}
.customer-feedback .review-reply-form textarea{border-color:#ccd7dc;background:#fff}
.customer-feedback .review-reply-form textarea:focus-visible{outline:2px solid #526b82;outline-offset:1px}
.feedback-bubble.approved{background:var(--approval-green)}
.feedback-bubble.approved.unread{animation-name:feedback-pulse-approved-green}
.feedback-bubble.approved.conditional{background:var(--approval-orange)}
.feedback-bubble.approved.conditional.unread{animation-name:feedback-pulse-approved-orange}
@keyframes feedback-pulse-approved-green{
  0%,100%{transform:scale(.92);box-shadow:0 0 0 2px #206f4355,0 3px 10px #17233355}
  50%{transform:scale(1.28);box-shadow:0 0 0 10px #206f4300,0 3px 12px #17233366}
}
@keyframes feedback-pulse-approved-orange{
  0%,100%{transform:scale(.92);box-shadow:0 0 0 2px #a65b0855,0 3px 10px #17233355}
  50%{transform:scale(1.28);box-shadow:0 0 0 10px #a65b0800,0 3px 12px #17233366}
}

.review-status-card.approved,.review-status-card.posted{
  --choice-bg:var(--approval-green-bg);--choice-border:var(--approval-green-border);--choice-color:var(--approval-green)
}
.review-status-card.conditional{
  --choice-bg:var(--approval-orange-bg);--choice-border:var(--approval-orange-border);--choice-color:var(--approval-orange)
}
.review-status-card.changes{
  --choice-bg:var(--approval-red-bg);--choice-border:var(--approval-red-border);--choice-color:var(--approval-red)
}
.review-status-card.pending{
  --choice-bg:var(--approval-blue-bg);--choice-border:var(--approval-blue-border);--choice-color:var(--approval-blue)
}
.reviewactions .review-action-approved{background:var(--approval-green-bg);border-color:var(--approval-green-border);color:var(--approval-green)}
.reviewactions .review-action-approved:hover{background:#dff3e5}

@media(max-width:400px){
  .customer-feedback-heading{flex-wrap:wrap}
  .customer-feedback-heading div{flex:1 1 calc(100% - 45px)}
  .customer-feedback-heading .approval-pill{margin-left:43px}
}
@media(prefers-reduced-motion:reduce){
  .customer-portal .portal-post.portal-pending .status{animation:none}
}
