/* START.AI CRM Cloud Stylesheet - Phase 4 (Pipeline & Kanban Edition) */

.startai-crm-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    max-width: 100%;
    margin: 16px 0;
}

.startai-crm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.startai-crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.startai-crm-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.startai-crm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 8px;
}

.startai-crm-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.startai-crm-subtitle {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #64748b;
}


/* Context Banner Toggle & Collapsible Panel */
.startai-crm-meta-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}
.startai-crm-meta-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}
.startai-crm-meta-toggle.active {
    background: #e2e8f0;
    border-color: #64748b;
    color: #0f172a;
}
.startai-crm-meta-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.startai-crm-badge-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.startai-crm-version-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
}

.startai-crm-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
}

.status-online {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef9c3;
    color: #854d0e;
}

.startai-crm-body {
    padding: 12px 18px;
}

.startai-crm-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.startai-crm-meta-item {
    font-size: 12px;
}

.startai-crm-meta-label {
    color: #64748b;
    font-weight: 500;
    margin-right: 4px;
}

.startai-crm-meta-value {
    color: #0f172a;
    font-weight: 600;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Tabs */
.startai-crm-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 14px;
}

.startai-crm-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease;
}

.startai-crm-tab:hover {
    color: #714b67;
    background: #f8fafc;
}

.startai-crm-tab.active {
    color: #714b67;
    border-bottom-color: #714b67;
}

.startai-crm-tab-pane {
    display: none;
}

.startai-crm-tab-pane.active {
    display: block;
}

/* Toolbar & Forms */
.startai-crm-kanban-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.startai-crm-kanban-filter-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.startai-crm-kanban-summary-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.startai-crm-pill {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pill-deals {
    background: #e2e8f0;
    color: #334155;
}

.pill-value {
    background: #dcfce7;
    color: #15803d;
}

.pill-prorated {
    background: #fef3c7;
    color: #b45309;
}

.startai-crm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.startai-crm-search-bar {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 700px;
}

.startai-crm-input, .startai-crm-select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
}

.startai-crm-input:focus, .startai-crm-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.startai-crm-btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.startai-crm-btn-primary {
    background: #0284c7;
    color: #ffffff;
}

.startai-crm-btn-primary:hover {
    background: #0369a1;
}

.startai-crm-btn-success {
    background: #10b981;
    color: #ffffff;
}

.startai-crm-btn-success:hover {
    background: #059669;
}

.startai-crm-btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.startai-crm-btn-secondary:hover {
    background: #cbd5e1;
}

.startai-crm-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.startai-crm-btn-danger:hover {
    background: #dc2626;
}

.startai-crm-btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

/* Kanban Board Layout */
.startai-crm-kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: 480px;
}

.startai-crm-kanban-column {
    flex: 0 0 300px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 750px;
    transition: background 0.2s, border 0.2s;
}

.startai-crm-kanban-column.drag-over {
    background: #e0f2fe;
    border: 2px dashed #0284c7;
}

.startai-crm-kanban-column-header {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.startai-crm-kanban-stage-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.startai-crm-kanban-stage-name {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.startai-crm-kanban-stage-prob {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.startai-crm-kanban-stage-metrics {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.startai-crm-kanban-cards-container {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
}

/* Kanban Card */
.startai-crm-deal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: grab;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.startai-crm-deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.startai-crm-deal-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.startai-crm-deal-card-title {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}

.startai-crm-deal-card-customer {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.startai-crm-deal-card-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.startai-crm-deal-card-amount {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
}

.startai-crm-deal-card-prob {
    font-size: 11px;
    font-weight: 600;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 6px;
    border-radius: 4px;
}

.startai-crm-deal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.startai-crm-stale-badge {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.startai-crm-card-actions {
    display: flex;
    gap: 4px;
}

/* Modals */
.startai-crm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.startai-crm-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
}

.startai-crm-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 540px;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10;
}

.startai-crm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.startai-crm-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.startai-crm-close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.startai-crm-modal-body {
    padding: 18px 20px;
}

.startai-crm-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.startai-crm-form-group {
    margin-bottom: 14px;
}

.startai-crm-form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.startai-crm-celebration-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #a7f3d0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

/* Reports KPI Cards */
.startai-crm-funnel-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.startai-crm-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.startai-crm-kpi-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.startai-crm-kpi-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Table styles */
.startai-crm-table-wrapper {
    overflow-x: auto;
}

.startai-crm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.startai-crm-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #cbd5e1;
}

.startai-crm-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.startai-crm-table tr:hover {
    background: #f8fafc;
}

.startai-crm-empty-row {
    text-align: center;
    padding: 24px;
    color: #94a3b8;
}

/* Phase 5: Activity & Chatter Timeline Styling */
.startai-crm-timeline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.startai-crm-subform {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.startai-crm-timeline-stream {
    position: relative;
    padding-left: 28px;
}

.startai-crm-timeline-stream::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 11px;
    width: 2px;
    background: #e2e8f0;
}

.startai-crm-timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.startai-crm-timeline-bullet {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 2px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.startai-crm-timeline-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.startai-crm-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.startai-crm-timeline-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.startai-crm-timeline-time {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.startai-crm-timeline-summary {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.startai-crm-timeline-content {
    font-size: 12px;
    color: #334155;
    background: #f8fafc;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}

.startai-crm-btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    height: 28px;
}


/* ==========================================================================
   START.AI CRM Cloud - Phase 7 UI/UX Enhancements
   Fast-First Skeleton Shimmer, Quick Create, Pagination & Responsive Drawers
   ========================================================================== */

.startai-crm-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.startai-crm-quick-btn {
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.startai-crm-quick-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.35);
}

/* Skeleton Loading Shimmer */
@keyframes crm-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.startai-crm-skeleton-bar, 
.startai-crm-skeleton-card, 
.startai-crm-skeleton-header {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: crm-shimmer 1.5s infinite;
    border-radius: 6px;
}

.startai-crm-skeleton-column {
    flex: 0 0 300px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 480px;
}

.startai-crm-skeleton-header {
    height: 48px;
    border-radius: 6px;
}

.startai-crm-skeleton-card {
    height: 100px;
    border-radius: 6px;
}

.startai-crm-skeleton-row td {
    padding: 14px 14px;
}

.startai-crm-skeleton-bar {
    height: 20px;
    width: 100%;
}

/* Quick Create Modal Styles */
.startai-crm-quick-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.startai-crm-quick-tab {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.startai-crm-quick-tab:hover {
    background: #e2e8f0;
}

.startai-crm-quick-tab.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.startai-crm-quick-form {
    display: none;
}

.startai-crm-quick-form.active {
    display: block;
}

/* Entity Detail Drawers & Tabs */
.startai-crm-detail-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    padding-bottom: 8px;
}

.startai-crm-detail-tab {
    background: none;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -10px;
    transition: all 0.2s;
}

.startai-crm-detail-tab:hover {
    color: #0284c7;
}

.startai-crm-detail-tab.active {
    color: #0284c7;
    border-bottom-color: #0284c7;
}

/* Server-side Pagination Toolbar */
.startai-crm-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 12px;
}

.startai-crm-pagination-info {
    color: #64748b;
    font-weight: 500;
}

.startai-crm-pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.startai-crm-page-number {
    font-weight: 600;
    color: #1e293b;
    font-size: 12px;
}

/* Grid & Layout Utilities */
.startai-crm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.startai-crm-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.startai-crm-alert-warning {
    background: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
}

.startai-crm-alert-info {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0369a1;
}

.startai-crm-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    margin-top: 6px;
}

.btn-deal-reopen {
    background: #3b82f6;
    color: #ffffff;
}

.btn-deal-reopen:hover {
    background: #2563eb;
}

/* Responsive media queries */
@media (max-width: 1024px) {
    .startai-crm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .startai-crm-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .startai-crm-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Phase 8.2 Workforce & Two-Tier Assignment Styles */
.startai-crm-assignment-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
}

.startai-crm-assign-badge-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
}

.startai-crm-assign-badge-team {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    background: #ede9fe;
    color: #6d28d9;
}

.startai-crm-assign-badge-unassigned {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    background: #f1f5f9;
    color: #64748b;
}

.startai-crm-deal-card-assign-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Quick Create Dropdown Menu */
.startai-crm-dropdown {
    position: relative;
    display: inline-block;
}

.startai-crm-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    min-width: 210px;
    padding: 6px 0;
    display: none;
    animation: fadeInDropdown 0.15s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.startai-crm-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.startai-crm-dropdown-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.startai-crm-menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Modern Floating Toast Notifications */
.startai-crm-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.startai-crm-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.startai-crm-toast-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.startai-crm-toast-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.startai-crm-toast-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.startai-crm-toast-info {
    background: #f0f9ff;
    border: 1px solid #7dd3fc;
    color: #0369a1;
}

.startai-crm-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.startai-crm-toast-content {
    flex: 1;
}

.startai-crm-toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
    transition: opacity 0.15s;
}

.startai-crm-toast-close:hover {
    opacity: 1;
}

/* Input validation error styling */
.startai-crm-input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.startai-crm-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}




/* ==========================================================================
   START.AI CRM CLOUD — ODOO-STYLE MULTI-VIEW UI SYSTEM (PHASE 8.3 / RC04)
   Views: Kanban | List | Calendar | Pivot | Graph | Activity
   ========================================================================== */

/* 1. ODOO-STYLE CONTROL BAR */
.crm-odoo-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}

.crm-odoo-control-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.crm-odoo-btn-primary {
    background: #714b67;
    color: #ffffff;
    border: 1px solid #603d57;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crm-odoo-btn-primary:hover {
    background: #5b3a53;
    border-color: #4a2c43;
}

.crm-odoo-btn-secondary {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crm-odoo-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.crm-odoo-pipeline-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    font-size: 13px;
    color: #475569;
}

.crm-odoo-pipeline-label {
    font-weight: 600;
    color: #1e293b;
}

.crm-odoo-pipeline-dropdown {
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1e293b;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.crm-odoo-pipeline-gear {
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    padding: 2px 4px;
}

.crm-odoo-pipeline-gear:hover {
    color: #1e293b;
}

/* 2. UNIFIED SEARCH CONTAINER */
.crm-odoo-control-bar-center {
    flex: 1;
    max-width: 460px;
    min-width: 260px;
}

.crm-odoo-search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.crm-odoo-search-container:focus-within {
    border-color: #714b67;
    box-shadow: 0 0 0 2px rgba(113, 75, 103, 0.15);
}

.crm-odoo-search-icon {
    padding-left: 10px;
    color: #94a3b8;
    font-size: 13px;
}

.crm-odoo-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 8px;
    font-size: 13px;
    color: #1e293b;
    background: transparent;
}

.crm-odoo-search-caret {
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
}

.crm-odoo-search-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 12px;
}

.crm-odoo-search-menu-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.crm-odoo-menu-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.crm-odoo-menu-checkbox:hover {
    background: #f8fafc;
}

/* 3. PAGER & VIEW SWITCHER */
.crm-odoo-control-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}


.crm-odoo-kpi-summary {
    display: flex;
    align-items: center;
    margin-right: 8px;
}
.crm-odoo-kpi-chip {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.crm-odoo-pager {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
}

.crm-odoo-pager-buttons {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.crm-odoo-pager-btn {
    background: #ffffff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    transition: background 0.15s;
}

.crm-odoo-pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.crm-odoo-pager-btn:not(:disabled):hover {
    background: #f1f5f9;
}

.crm-odoo-view-switcher {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    overflow: hidden;
}

.crm-odoo-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    background: transparent;
    border: none;
    border-right: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.crm-odoo-view-btn:last-child {
    border-right: none;
}

.crm-odoo-view-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.crm-odoo-view-btn.active {
    background: #ffffff;
    color: #714b67;
    box-shadow: inset 0 2px 0 #714b67;
}

/* 4. VIEW HOST CONTAINERS */
.crm-odoo-view-host {
    width: 100%;
}

.crm-odoo-view-host:not(.active) {
    display: none !important;
}

/* 5. KANBAN CARD ENHANCEMENTS */
.crm-odoo-card-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
}

.crm-odoo-card-bottom-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.crm-odoo-card-bottom-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.crm-odoo-priority-stars {
    display: inline-flex;
    gap: 1px;
}

.crm-star {
    font-size: 13px;
    color: #cbd5e1;
    cursor: default;
}

.crm-star.filled {
    color: #f59e0b;
}

.crm-odoo-activity-clock-btn {
    background: transparent;
    border: none;
    padding: 2px 4px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}

.crm-odoo-activity-clock-btn.scheduled {
    color: #10b981;
}

.crm-odoo-activity-clock-btn.overdue {
    color: #ef4444;
}

.crm-odoo-activity-clock-btn.empty {
    color: #94a3b8;
}

.crm-odoo-activity-clock-btn:hover {
    background: #f1f5f9;
}

.crm-odoo-next-act-text {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.crm-odoo-close-date-chip {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
}

.crm-odoo-expected-rev {
    font-weight: 700;
    color: #059669;
}

.crm-odoo-avatar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.crm-odoo-avatar-badge.sm {
    width: 18px;
    height: 18px;
    font-size: 9px;
}

.crm-odoo-avatar-badge.unassigned {
    background: #e2e8f0;
    color: #94a3b8;
}

/* 6. LIST VIEW STYLES */
.crm-odoo-list-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.crm-odoo-list-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ede9fe;
    color: #6d28d9;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #ddd6fe;
}

.crm-odoo-deals-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.crm-odoo-deals-table th.sortable:hover {
    background: #f1f5f9;
}

.crm-odoo-col-toggle-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 13px;
    color: #475569;
}

.crm-odoo-col-toggle-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    padding: 8px;
    width: 190px;
    text-align: left;
}

.crm-odoo-col-toggle-menu label {
    display: block;
    font-size: 12px;
    color: #334155;
    padding: 4px;
    cursor: pointer;
}

.crm-odoo-col-toggle-menu label:hover {
    background: #f8fafc;
}

.crm-odoo-list-group-header td {
    background: #f8fafc !important;
    font-weight: 700;
    color: #1e293b;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}

.crm-odoo-list-footer-row td {
    background: #f8fafc;
    border-top: 2px solid #cbd5e1;
}

.crm-odoo-quick-comm-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    color: #334155;
    cursor: pointer;
}

.crm-odoo-quick-comm-btn:hover {
    background: #e2e8f0;
}

.crm-odoo-stage-pill {
    padding-left: 8px;
    font-size: 12px;
    font-weight: 500;
}

.crm-odoo-next-act-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    font-size: 11px;
    color: #334155;
}

.crm-odoo-next-act-pill.overdue {
    background: #fef2f2;
    color: #ef4444;
}

/* 7. CALENDAR VIEW STYLES */
.crm-odoo-calendar-shell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.crm-odoo-calendar-demo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
    padding: 8px 16px;
    font-size: 13px;
    color: #166534;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-demo-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
}

.crm-demo-badge-inline {
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 3px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 700;
}

.crm-odoo-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-odoo-calendar-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-odoo-calendar-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-odoo-btn-icon {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    transition: background 0.15s;
}

.crm-odoo-btn-icon:hover {
    background: #f1f5f9;
}

.crm-odoo-btn-icon.active {
    background: #714b67;
    color: #ffffff;
    border-color: #603d57;
}

.crm-odoo-cal-period-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-left: 8px;
}

.crm-odoo-calendar-body {
    display: flex;
    min-height: 520px;
}

.crm-odoo-calendar-main {
    flex: 1;
    overflow-x: auto;
}

.crm-odoo-calendar-sidebar {
    width: 250px;
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 14px;
}

.crm-odoo-cal-month-table {
    width: 100%;
    border-collapse: collapse;
}

.crm-odoo-cal-month-table th {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.crm-cal-week-col {
    width: 32px;
    color: #94a3b8 !important;
}

.crm-cal-week-num {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.crm-cal-day-cell {
    width: 14.28%;
    height: 84px;
    vertical-align: top;
    padding: 4px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.crm-cal-day-cell.outside-month {
    background: #fcfcfd;
    opacity: 0.55;
}

.crm-cal-day-num-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2px;
}

.crm-cal-day-num {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    padding: 2px 4px;
}

.crm-cal-day-num.today-circle {
    background: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.crm-cal-event-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 3px;
    font-size: 11px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.crm-mini-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: #0f172a;
}

.crm-mini-nav-btn {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
}

.crm-mini-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.crm-mini-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.crm-mini-day-btn {
    height: 26px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    color: #334155;
    cursor: pointer;
}

.crm-mini-day-btn:hover {
    background: #e2e8f0;
}

.crm-mini-day-btn.muted {
    opacity: 0.35;
}

.crm-mini-day-btn.today {
    border: 1px solid #ef4444;
    color: #ef4444;
    font-weight: 700;
}

.crm-mini-day-btn.selected {
    background: #714b67;
    color: #ffffff;
    font-weight: 700;
}

.crm-mini-day-btn.has-event::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3b82f6;
    margin: 1px auto 0;
}

.crm-mini-cal-legend {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.crm-mini-legend-title {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.crm-mini-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #334155;
    margin-bottom: 4px;
}

.crm-mini-legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* 8. PIVOT VIEW STYLES */
.crm-odoo-pivot-shell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.crm-odoo-pivot-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-odoo-pivot-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-odoo-pivot-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-odoo-measure-select {
    padding: 5px 12px;
    background: #714b67;
    color: #ffffff;
    border: 1px solid #603d57;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.crm-odoo-measure-select option {
    background: #ffffff;
    color: #1e293b;
}

.crm-odoo-pivot-table-container {
    overflow-x: auto;
    padding: 12px;
}

.crm-odoo-pivot-table {
    border-collapse: collapse;
    font-size: 13px;
}

.crm-odoo-pivot-table th, .crm-odoo-pivot-table td {
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
}

.crm-pivot-corner-cell {
    background: #f8fafc;
    min-width: 180px;
}

.crm-pivot-top-total-header {
    background: #f1f5f9;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.crm-pivot-col-header {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
    text-align: center;
    min-width: 140px;
}

.crm-pivot-col-header.total {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.crm-pivot-measure-subhead {
    background: #f8fafc;
    font-size: 11px;
    color: #64748b;
    text-align: right;
}

.crm-pivot-total-row td {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.crm-pivot-row-label {
    background: #ffffff;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.crm-pivot-row-label.indent {
    padding-left: 24px;
    font-weight: 500;
    color: #334155;
}

.crm-pivot-val-cell {
    text-align: right;
    color: #0f172a;
}

.crm-pivot-val-cell.grand-total, .crm-pivot-val-cell.row-total {
    font-weight: 700;
    background: #f8fafc;
}

/* 9. GRAPH VIEW STYLES */
.crm-odoo-graph-shell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.crm-odoo-graph-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-odoo-graph-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-odoo-graph-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crm-odoo-btn-group {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.crm-odoo-btn-group .crm-odoo-btn-icon {
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
}

.crm-odoo-btn-group .crm-odoo-btn-icon:last-child {
    border-right: none;
}

.crm-odoo-graph-canvas-wrap {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crm-odoo-graph-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12px;
}

.crm-graph-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.crm-graph-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.crm-odoo-graph-svg {
    width: 100%;
    max-width: 900px;
    height: auto;
}

/* 10. ACTIVITY VIEW STYLES */
.crm-odoo-activity-shell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.crm-odoo-activity-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.crm-odoo-activity-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.crm-odoo-activity-matrix {
    padding: 16px;
}

.crm-act-bucket-section {
    margin-bottom: 24px;
}

.crm-act-bucket-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.crm-act-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.crm-odoo-act-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crm-odoo-act-card.done {
    background: #f8fafc;
    opacity: 0.75;
}

.crm-odoo-act-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.crm-odoo-act-type-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.crm-odoo-act-due {
    font-size: 11px;
    color: #64748b;
}

.crm-odoo-act-due.overdue {
    color: #ef4444;
    font-weight: 600;
}

.crm-odoo-act-subject {
    font-size: 13px;
    color: #0f172a;
}

.crm-odoo-act-entity {
    font-size: 12px;
    color: #475569;
}

.crm-odoo-act-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.crm-odoo-act-assignee {
    font-size: 11px;
    color: #64748b;
}

/* 11. RESPONSIVE BREAKPOINTS (1366x768, 1440x900, 1680x1050) */
@media (max-width: 1440px) {
    .crm-odoo-control-bar-center {
        max-width: 360px;
    }
}

@media (max-width: 1366px) {
    .crm-odoo-control-bar {
        gap: 8px;
    }
    .crm-odoo-control-bar-center {
        max-width: 300px;
    }
    .crm-odoo-calendar-sidebar {
        width: 220px;
    }
}

@media (max-width: 1024px) {
    .crm-odoo-control-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .crm-odoo-control-bar-center {
        max-width: 100%;
    }
    .crm-odoo-control-bar-right {
        justify-content: space-between;
    }
    .crm-odoo-calendar-body {
        flex-direction: column;
    }
    .crm-odoo-calendar-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}
