/* ── View toggle ── */
.houzez-view-toggle { display: flex; border: 1px solid #dce0e0; border-radius: 8px; overflow: hidden; }
.houzez-view-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: transparent; border: none; cursor: pointer; color: #9ca3af; transition: background .15s, color .15s; }
.houzez-view-btn + .houzez-view-btn { border-left: 1px solid #dce0e0; }
.houzez-view-btn:hover { background: #f3f4f6; color: #374151; }
.houzez-view-btn.active { background: #f3f4f6; color: #111827; }

/* ── Layout ── */
.houzez-data-content { background-color: rgba(122, 122, 122, 0) !important; }
.deals-table-wrap { padding: 0 !important; margin: 0; height: 100% !important; }

/* ── Table ── */
table { border-radius: 24px !important; box-shadow: 0 4px 8px rgba(122, 122, 122, 0.16); }
.deal-content-wrap table thead tr th { color: #54595F; font-size: 14px; padding: 24px 8px; }
.deal-content-wrap table thead tr th:first-child { padding-left: 16px; }
.deal-content-wrap table thead tr th:last-child { padding-right: 16px; }
.deal-content-wrap table tbody tr td {
    padding: 16px 8px;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    vertical-align: middle;
    white-space: nowrap !important;
    font-weight: 300;
    text-transform: capitalize;
}
.deal-content-wrap table tbody tr td:first-child { padding-left: 16px; }
.deal-content-wrap table tbody tr td:last-child { padding-right: 16px; }

/* ── Status badge ── */
.deal-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}
.deal-status-badge.status-won {
    background-color: #28A74529;
    color: #28A745;
}
.deal-status-badge.status-active {
    background-color: #FFC10729;
    color: #FF8F00;
}

/* ── Due date badge ── */
.due-date-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid currentColor;
}
.due-date-badge.date-passed {
    color: #DC3545;
    background-color: rgba(220, 53, 69, 0.16);
}
.due-date-badge.date-upcoming {
    color: #FF8F00;
    background-color: rgba(255, 193, 7, 0.16);
}

/* ── Kanban board ── */
.houzez-kanban-board { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 16px; align-items: flex-start; }
.houzez-kanban-col { flex: 0 0 240px; background: rgba(84, 89, 95, 0.24); border-radius: 10px; border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.houzez-kanban-col-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.houzez-kanban-col-title { font-size: 13px; font-weight: 600; color: #374151; }
.houzez-kanban-col-count { color: #6b7280; font-size: 10px; font-weight: 600; text-align: center; }
.houzez-kanban-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; max-height: 400px; width: 272px; transition: background .15s; overflow-y: auto; }
.houzez-kanban-cards.drag-over { background: #eff6ff; border-radius: 8px; }

/* ── Kanban card ── */
.houzez-kanban-card { background: #fff; border-radius: 8px; padding: 16px 12px; cursor: grab; transition: box-shadow .15s, opacity .15s; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.houzez-kanban-card:active { cursor: grabbing; }
.houzez-kanban-card.dragging { opacity: .45; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.houzez-kanban-card-title { font-weight: 700; color: #000; font-size: 14px; line-height: 1.6; text-transform: capitalize; }
.houzez-kanban-card-value { display: inline-block; background: #5485D614; color: #5485D6; font-size: 12px; font-weight: 400; border-radius: 4px; padding: 2px 4px; border: 1px solid #5485D6; }
.houzez-kanban-card-row { display: flex; align-items: center; gap: 5px; color: #54595F; font-size: 12px; }
.houzez-kanban-card-row svg { flex-shrink: 0; opacity: .6; }
.houzez-kanban-card-footer { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #f3f4f6; }
.houzez-kanban-card-icon { color: #9ca3af; display: flex; align-items: center; transition: color .15s; }
.houzez-kanban-card-icon:hover { color: #374151; }
.houzez-kanban-card-actions { margin-left: auto; display: flex; gap: 8px; }
.houzez-kanban-card-actions a { color: #9ca3af; display: flex; align-items: center; transition: color .15s; }
.houzez-kanban-card-actions a:hover { color: #374151; }
.houzez-kanban-card-actions a.delete-deal-js:hover { color: #dc2626; }

/* ── Kanban due badge ── */
.houzez-kanban-due-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 4px; font-size: 12px; font-weight: 300; border: 1px solid currentColor; }
.houzez-kanban-due-badge.date-passed { color: #DC3545; background-color: rgba(220, 53, 69, 0.16); }
.houzez-kanban-due-badge.date-upcoming { color: #FF8F00; background-color: rgba(255, 193, 7, 0.16); }

/* ── Kanban add column ── */
.houzez-kanban-add-col { background: rgba(84, 89, 95, 0.08) !important; border: 2px dashed #d1d5db !important; min-height: 80px !important; justify-content: center; align-items: center; cursor: pointer; }
.houzez-kanban-add-stage-btn { display: flex; align-items: center; justify-content: center; gap: 6px; color: #9ca3af; font-size: 13px; font-weight: 600; padding: 20px; width: 100%; cursor: pointer; transition: color .15s; }
.houzez-kanban-add-stage-btn:hover { color: #374151; }
.houzez-kanban-col-footer { padding: 8px 10px; border-top: 1px solid #e5e7eb; }
.houzez-kanban-add-deal { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #9ca3af; text-decoration: none; transition: color .15s; }
.houzez-kanban-add-deal:hover { color: #374151; }
