/* WhatsApp — Odoo Enterprise parity */
.wa-odo { display: flex; flex-direction: column; gap: 16px; min-height: 42vh; }
.wa-odo-nav-brand {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin-right: 4px;
}
.wa-odo-nav-brand-label {
    font-weight: 650; margin-right: 10px; color: #25D366; font-size: 0.95rem;
}
.wa-odo-toolbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding-bottom: 8px;
}
.wa-odo-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wa-odo-toolbar .btn-primary,
.wa-odo-form__toolbar .btn-primary {
    background: var(--o-brand, #714B67) !important;
    border-color: var(--o-brand, #714B67) !important;
}
.wa-odo-title { margin: 0; font-size: 1.1rem; font-weight: 650; color: var(--sfe-navy, #1e2b3c); }
.wa-odo-gear { opacity: 0.45; font-size: 0.85em; }
.wa-odo-search { flex: 1 1 240px; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.wa-odo-search input[type="search"] {
    width: 100%; min-height: 34px; border: 1px solid #ced4da; border-radius: 4px;
    padding: 0 12px 0 32px; font-size: 0.875rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 10px center no-repeat;
}
.wa-odo-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-odo-pill {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px;
    border-radius: 999px; background: #f1eef2; color: #5a3d55; font-size: 0.8rem; text-decoration: none;
}
.wa-odo-pill.is-active { background: #e8dff0; font-weight: 600; }
.wa-odo-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 0.85rem; color: #6c757d; }
.wa-odo-views { display: inline-flex; border: 1px solid #dee2e6; border-radius: 4px; overflow: hidden; }
.wa-odo-view-btn {
    padding: 4px 8px; text-decoration: none; color: #495057; background: #fff; border-right: 1px solid #dee2e6;
}
.wa-odo-view-btn:last-child { border-right: 0; }
.wa-odo-view-btn.is-active { background: #495057; color: #fff; }

.wa-odo-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 64px 24px; text-align: center; color: #495057;
}
.wa-odo-empty__art {
    width: 88px; height: 88px; border-radius: 50%; background: #f3eaf8;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #714B67;
}
.wa-odo-empty__art--doc { border-radius: 50%; }

.wa-odo-table .wa-odo-check-col { width: 36px; }
.wa-odo-drag { opacity: 0.35; margin-right: 6px; cursor: grab; }
.wa-odo-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; background: #875A7B; color: #fff;
    font-size: 0.7rem; font-weight: 700; margin-right: 6px; vertical-align: middle;
}
.wa-odo-badge {
    display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
    background: #e9ecef; color: #495057;
}
.wa-odo-badge.state-approved, .wa-odo-badge.state-sent, .wa-odo-badge.state-delivered, .wa-odo-badge.state-read {
    background: #d1e7dd; color: #0f5132;
}
.wa-odo-badge.state-pending { background: #cff4fc; color: #055160; }
.wa-odo-badge.state-draft, .wa-odo-badge.state-failed { background: #e9ecef; color: #495057; }

.wa-odo-kanban {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.wa-odo-card {
    background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.wa-odo-card__meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 0.8rem; }

.wa-odo-demo-banner {
    background: #e7f1ff; border: 1px solid #b6d4fe; color: #084298;
    padding: 10px 14px; border-radius: 6px; font-size: 0.875rem;
}

.wa-odo-statusbar {
    display: flex; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 0;
}
.wa-odo-statusbar__step {
    padding: 6px 14px; background: #e9ecef; color: #6c757d; font-size: 0.8rem; font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    margin-left: -4px;
}
.wa-odo-statusbar__step:first-child { border-radius: 4px 0 0 4px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.wa-odo-statusbar__step.is-active { background: #0d9488; color: #fff; }
.wa-odo-statusbar__step.is-done { background: #99f6e4; color: #115e59; }

.wa-odo-form-grid { display: flex; flex-direction: column; gap: 16px; }
.wa-odo-form-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px;
}
@media (max-width: 900px) {
    .wa-odo-form-cols { grid-template-columns: 1fr; }
}
.wa-odo-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.wa-odo-field--full { grid-column: 1 / -1; }
.wa-odo-field label { font-size: 0.8rem; font-weight: 600; color: #495057; }
.wa-odo-field input, .wa-odo-field select, .wa-odo-field textarea,
.wa-odo-tabs__panel textarea {
    width: 100%; min-height: 34px; border: 1px solid #ced4da; border-radius: 4px;
    padding: 6px 10px; font: inherit;
}
.wa-odo-tabs { border: 1px solid #dee2e6; border-radius: 6px; overflow: hidden; }
.wa-odo-tabs__nav { display: flex; gap: 0; background: #f8f9fa; border-bottom: 1px solid #dee2e6; }
.wa-odo-tab {
    border: 0; background: transparent; padding: 10px 16px; cursor: pointer; font: inherit; color: #6c757d;
}
.wa-odo-tab.is-active { background: #fff; color: #212529; font-weight: 600; border-bottom: 2px solid #714B67; }
.wa-odo-tabs__panel { padding: 14px; position: relative; }
.wa-odo-var-btn {
    position: absolute; right: 20px; bottom: 20px;
    border: 0; background: transparent; color: #0d6efd; cursor: pointer; font: inherit;
}
.wa-odo-preview-panel {
    border: 1px solid #dee2e6; border-radius: 8px; padding: 16px; background: #f8f9fa; max-width: 420px;
}
.wa-odo-bubble {
    background: #dcf8c6; border-radius: 8px; padding: 12px 14px; white-space: pre-wrap;
}
.wa-odo-footer-preview { font-size: 0.8rem; color: #6c757d; margin-top: 8px; }
.wa-odo-chatter {
    border-top: 1px solid #eee; padding-top: 12px; margin-top: 8px;
}
.wa-odo-chatter__tabs { display: flex; gap: 16px; margin-bottom: 8px; font-size: 0.875rem; color: #6c757d; }
.wa-odo-chatter__tabs .is-active { color: #714B67; font-weight: 600; border-bottom: 2px solid #714B67; padding-bottom: 4px; }
