/* Marketing Automation — Campañas Odoo */
.mkt-odo {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 42vh;
}

.mkt-odo-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-bottom: 8px;
}

.mkt-odo-new__btn {
    background: var(--o-brand, #714B67) !important;
    border-color: var(--o-brand, #714B67) !important;
    min-height: 32px;
    padding: 0 14px;
    font-size: 0.875rem;
}

.mkt-odo-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--sfe-navy, #1e2b3c);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mkt-odo-title-gear {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.95rem;
}

.mkt-odo-search {
    flex: 1 1 220px;
    max-width: 420px;
    margin: 0 auto;
}

.mkt-odo-search input[type="search"] {
    width: 100%;
    min-height: 34px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0 12px 0 32px;
    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;
    font-size: 0.875rem;
}

.mkt-odo-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.mkt-odo-views {
    display: inline-flex;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
}

.mkt-odo-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    color: #495057;
    text-decoration: none;
    background: #fff;
}

.mkt-odo-view-btn.is-active {
    background: #714B67;
    color: #fff;
}

.mkt-odo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 48px 20px;
    color: #495057;
}

.mkt-odo-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #875A7B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.mkt-odo-empty h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e2b3c;
}

.mkt-odo-empty p {
    margin: 0;
    max-width: 420px;
    font-size: 0.9rem;
    color: #6c757d;
}

.mkt-odo-empty--sm {
    padding: 28px 16px;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    background: #fafafa;
}

.mkt-odo-board-wrap {
    position: relative;
    min-height: 320px;
}

.mkt-odo-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 14px;
    align-items: start;
    overflow-x: auto;
}

.mkt-odo-empty--overlay {
    position: absolute;
    inset: 48px 0 0;
    pointer-events: none;
}

.mkt-odo-col {
    background: #f4f3f5;
    border-radius: 8px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.mkt-odo-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 0.875rem;
}

.mkt-odo-col__count {
    color: #6c757d;
    font-size: 0.8125rem;
}

.mkt-odo-col__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 10px 12px;
    min-height: 80px;
}

.mkt-odo-col__body.is-dragover {
    outline: 2px dashed #875A7B;
    outline-offset: -4px;
}

.mkt-odo-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: grab;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mkt-odo-card:active {
    cursor: grabbing;
}

.mkt-odo-card__title {
    display: block;
    font-weight: 600;
    color: #1e2b3c;
    text-decoration: none;
    font-size: 0.9rem;
}

.mkt-odo-card__desc {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: #6c757d;
}

.mkt-odo-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #868e96;
}

.mkt-odo-card__foot a {
    color: #714B67;
    text-decoration: none;
}

.mkt-odo-modal[hidden] {
    display: none !important;
}

.mkt-odo-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mkt-odo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.mkt-odo-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    padding: 20px 22px 16px;
}

.mkt-odo-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mkt-odo-modal__head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #1e2b3c;
}

.mkt-odo-modal__x {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.mkt-odo-modal__sub {
    margin: 8px 0 14px;
    color: #6c757d;
    font-size: 0.875rem;
}

.mkt-odo-modal__tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 14px;
}

.mkt-odo-tab {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.mkt-odo-tab.is-active {
    color: #714B67;
    border-bottom-color: #714B67;
    font-weight: 600;
}

.mkt-odo-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.mkt-odo-tpl {
    flex: 0 0 220px;
    scroll-snap-align: start;
    text-align: left;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    padding: 14px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 140px;
}

.mkt-odo-tpl.is-selected {
    border-color: #714B67;
    box-shadow: 0 0 0 2px rgba(113, 75, 103, 0.2);
    background: #f8f4f7;
}

.mkt-odo-tpl__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ece4ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #714B67;
}

.mkt-odo-tpl strong {
    font-size: 0.9rem;
    color: #1e2b3c;
}

.mkt-odo-tpl span:last-child {
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.35;
}

.mkt-odo-modal__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

.mkt-odo-modal__foot .btn-primary {
    background: var(--o-brand, #714B67) !important;
    border-color: var(--o-brand, #714B67) !important;
}

.mkt-odo-modal__foot .btn-link {
    border: 0;
    background: transparent;
    color: #6c757d;
    text-decoration: none;
    cursor: pointer;
}

.mkt-odo-report {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 900px) {
    .mkt-odo-board {
        grid-template-columns: minmax(240px, 1fr);
    }
}
