.bocrm-page {
    --bocrm-ink: #1c2434;
    --bocrm-muted: #5b6578;
    --bocrm-line: rgba(28, 36, 52, 0.08);
    --bocrm-card: #ffffff;
    --bocrm-wash: #f4f6fb;
    --bocrm-accent: #2f6fed;
    max-width: 1280px;
    margin-inline: auto;
    padding-block: 8px 32px;
}

.bocrm-hero {
    background: linear-gradient(135deg, #1c2434 0%, #2a3a5c 55%, #2f6fed 160%);
    color: #fff;
    border-radius: 24px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 18px 40px rgba(28, 36, 52, 0.18);
}

.bocrm-hero h1,
.bocrm-hero .mud-typography-h4 {
    color: #fff !important;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.bocrm-hero-sub {
    color: rgba(255, 255, 255, 0.78) !important;
    max-width: 42rem;
}

.bocrm-hero-stat {
    min-width: 7.5rem;
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.bocrm-hero-stat-value {
    color: #fff !important;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.bocrm-hero-stat-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bocrm-toolbar {
    background: var(--bocrm-card);
    border: 1px solid var(--bocrm-line);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.bocrm-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bocrm-chip {
    border-radius: 999px !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.bocrm-chip-lead { background: #e8f1ff !important; color: #1d4ed8 !important; }
.bocrm-chip-warming { background: #f3e8ff !important; color: #7c3aed !important; }
.bocrm-chip-cold { background: #f1f5f9 !important; color: #64748b !important; }
.bocrm-chip-wait { background: #fff7ed !important; color: #c2410c !important; }
.bocrm-chip-first { background: #ecfeff !important; color: #0e7490 !important; }
.bocrm-chip-customer { background: #ecfdf5 !important; color: #047857 !important; }

.bocrm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.bocrm-card {
    background: var(--bocrm-card);
    border: 1px solid var(--bocrm-line);
    border-radius: 20px;
    padding: 20px 20px 16px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    min-height: 188px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bocrm-card:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 111, 237, 0.28);
    box-shadow: 0 16px 32px rgba(28, 36, 52, 0.1);
}

.bocrm-card-name {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--bocrm-ink);
    line-height: 1.25;
}

.bocrm-meta {
    color: var(--bocrm-muted);
    font-size: 0.86rem;
}

.bocrm-empty {
    text-align: center;
    padding: 64px 24px;
    background: var(--bocrm-card);
    border-radius: 24px;
    border: 1px dashed rgba(47, 111, 237, 0.28);
}

.bocrm-empty-icon {
    width: 72px;
    height: 72px;
    margin-inline: auto 0;
    margin-bottom: 16px;
    border-radius: 20px;
    background: #e8f1ff;
    display: grid;
    place-items: center;
    color: #2f6fed;
}

.bocrm-workspace {
    background: var(--bocrm-card);
    border-radius: 24px;
    border: 1px solid var(--bocrm-line);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.bocrm-workspace-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--bocrm-ink);
}

.bocrm-office-panel {
    background: var(--bocrm-wash);
    border-radius: 16px;
    padding: 16px 18px;
    border: 1px solid var(--bocrm-line);
}

.bocrm-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 16px;
    margin-top: 16px;
}

.bocrm-fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bocrm-muted);
}

.bocrm-fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bocrm-ink);
    word-break: break-word;
}

.bocrm-timeline {
    position: relative;
    padding-inline-start: 18px;
}

.bocrm-timeline::before {
    content: "";
    position: absolute;
    inset-inline-start: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e2e8f0;
}

.bocrm-tl-item {
    position: relative;
    padding: 0 0 22px 22px;
}

.bocrm-tl-dot {
    position: absolute;
    inset-inline-start: -15px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #cbd5e1;
}

.bocrm-file-tile {
    border: 1px solid var(--bocrm-line);
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    height: 100%;
}

.bocrm-file-preview {
    height: 140px;
    border-radius: 12px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.bocrm-file-preview img,
.bocrm-file-preview iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.bocrm-drop {
    border: 1.5px dashed #93c5fd;
    background: #f8fbff;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.bocrm-table {
    background: #fff;
    border: 1px solid var(--bocrm-line);
    border-radius: 18px;
    overflow: hidden;
}

.bocrm-table .mud-table-root {
    background: transparent;
}

.bocrm-table .mud-table-row {
    cursor: pointer;
}

.bocrm-file-peek {
    margin-top: 8px;
    max-width: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.bocrm-file-peek img,
.bocrm-file-peek iframe {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 0;
    display: block;
}

html[dir="rtl"] .bocrm-page {
    font-family: "Segoe UI", "Arial Hebrew", sans-serif;
}
