/* ============================================
   EmpanelCRM — Global Styles
   Matches EmpanelJMS visual language
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    height: 100%;
}

a { color: var(--theme-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.page-container { padding: 24px 28px; max-width: 1600px; }

.page-header {
    display: flex; align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.page-header-left { display: flex; align-items: flex-start; gap: 12px; flex-direction: column; }
.page-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.page-title { font-size: 24px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.page-subtitle { font-size: 13px; color: #64748b; margin-top: 2px; }

.page-subtitle-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.btn-back {
    background: none; border: none; color: var(--theme-primary);
    cursor: pointer; font-size: 13px; font-weight: 500; padding: 0;
    font-family: 'Inter', sans-serif;
}
.btn-back:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    background: var(--theme-primary);
    color: #fff; border: none;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--theme-gradient-start); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
    background: #fff; color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 500;
    cursor: pointer; font-family: 'Inter', sans-serif;
    transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: #f9fafb; border-color: var(--theme-primary); color: var(--theme-primary); }

.btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }

.icon-btn {
    background: none; border: none; cursor: pointer;
    padding: 4px 8px; border-radius: 6px; font-size: 16px;
    transition: background 0.15s;
}
.icon-btn:hover { background: #f1f5f9; }

/* ── Stats strip ─────────────────────────────────────────────── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid transparent;
}

.stat-card.stat-blue  { border-left-color: #3b82f6; }
.stat-card.stat-green { border-left-color: #22c55e; }
.stat-card.stat-purple{ border-left-color: #8b5cf6; }
.stat-card.stat-teal  { border-left-color: #14b8a6; }
.stat-card.stat-red   { border-left-color: #ef4444; }
.stat-card.stat-orange{ border-left-color: #f97316; }
.stat-card.stat-grey  { border-left-color: #94a3b8; }

.stat-value { font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.stat-label { font-size: 11px; font-weight: 500; color: #64748b; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Section headers ─────────────────────────────────────────── */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; margin-top: 8px;
}
.section-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.section-link { font-size: 12px; color: var(--theme-primary); font-weight: 500; }

/* ── Pipeline strip (dashboard) ──────────────────────────────── */
.pipeline-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.pipeline-stage-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #94a3b8;
    border-radius: 10px;
    padding: 14px;
}

.pipeline-stage-name { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #64748b; margin-bottom: 6px; }
.pipeline-stage-count { font-size: 20px; font-weight: 700; color: #0f172a; }
.pipeline-stage-value { font-size: 12px; color: #64748b; margin-top: 2px; }

/* ── Dashboard grid ──────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.panel-title { font-size: 14px; font-weight: 600; color: #0f172a; }
.panel-link { font-size: 12px; color: var(--theme-primary); }

/* ── Task list (dashboard) ───────────────────────────────────── */
.task-list { padding: 8px; }

.task-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 8px; border-radius: 8px;
}
.task-item:hover { background: #f8fafc; }
.task-item.task-overdue { background: #fef2f2; }

.task-priority-dot {
    width: 8px; height: 8px; border-radius: 50%;
    margin-top: 5px; flex-shrink: 0;
}
.priority-low    { background: #94a3b8; }
.priority-medium { background: #3b82f6; }
.priority-high   { background: #f97316; }
.priority-urgent { background: #ef4444; }

.task-subject { font-size: 13px; font-weight: 500; color: #1e293b; }
.task-meta { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.task-county { font-size: 11px; color: var(--theme-primary); }
.task-due { font-size: 11px; color: #64748b; }

/* ── Conferences (dashboard) ─────────────────────────────────── */
.conference-list { padding: 8px; }
.conf-item { padding: 10px 8px; border-radius: 8px; cursor: pointer; }
.conf-item:hover { background: #f8fafc; }
.conf-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.conf-meta { display: flex; gap: 8px; font-size: 11px; color: #64748b; margin-top: 3px; flex-wrap: wrap; align-items: center; }

/* ── RFP list (dashboard) ────────────────────────────────────── */
.rfp-list { padding: 8px; }
.rfp-item { padding: 10px 8px; border-radius: 8px; cursor: pointer; }
.rfp-item:hover { background: #f8fafc; }
.rfp-item.rfp-urgent { background: #fef9c3; }
.rfp-title { font-size: 13px; font-weight: 600; color: #1e293b; }
.rfp-meta { display: flex; gap: 8px; font-size: 11px; color: #64748b; margin-top: 3px; flex-wrap: wrap; }
.rfp-due { font-weight: 500; }

/* ── Filter bar ──────────────────────────────────────────────── */
.filter-bar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; flex-wrap: wrap;
}

.filter-search {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #d1d5db;
    border-radius: 8px; padding: 6px 12px;
    flex: 1; min-width: 240px;
}
.filter-search svg { color: #94a3b8; flex-shrink: 0; }
.filter-input {
    border: none; outline: none; font-size: 13px;
    font-family: 'Inter', sans-serif; flex: 1; background: transparent;
}

.filter-select {
    background: #fff; border: 1px solid #d1d5db;
    border-radius: 8px; padding: 7px 12px;
    font-size: 13px; font-family: 'Inter', sans-serif;
    color: #374151; cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--theme-primary); }

/* ── Data table ──────────────────────────────────────────────── */
.data-table-wrap {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden;
    overflow-x: auto;
}

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

.data-table th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--theme-primary); }
.data-table th.text-right { text-align: right; }

.sort-inactive { color: #cbd5e1; margin-left: 4px; }
.sort-active { color: var(--theme-primary); margin-left: 4px; }

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #374151;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-row { cursor: pointer; transition: background 0.1s; }
.data-row:hover td { background: #f8fafc; }
.row-overdue td { background: #fef2f2; }
.text-right { text-align: right; }

.county-name-cell { display: flex; align-items: center; gap: 10px; }
.county-avatar {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--theme-primary-light);
    color: var(--theme-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0;
    text-transform: uppercase;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 20px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: #ede9fe; color: #7c3aed; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-orange { background: #ffedd5; color: #ea580c; }

.tier-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    background: #f1f5f9; color: #475569;
    border: 1px solid #e2e8f0;
}

.tier-badge-sm {
    display: inline-flex; align-items: center;
    padding: 2px 7px; border-radius: 20px;
    font-size: 10px; font-weight: 600;
    background: #f1f5f9; color: #64748b;
}

.stage-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    margin-right: 6px; flex-shrink: 0;
}

.stage-pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px; border-radius: 20px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    background: #f1f5f9; color: #475569;
}
.status-planning   { background: #dbeafe; color: #1d4ed8; }
.status-confirmed  { background: #dcfce7; color: #16a34a; }
.status-attended   { background: #ede9fe; color: #7c3aed; }
.status-cancelled    { background: #fee2e2; color: #dc2626; }
.status-notattending { background: #f1f5f9; color: #64748b; }

/* ── Priority badges ─────────────────────────────────────────── */
.priority-badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 20px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
}
.priority-badge.priority-low    { background: #f1f5f9; color: #64748b; }
.priority-badge.priority-medium { background: #dbeafe; color: #1d4ed8; }
.priority-badge.priority-high   { background: #ffedd5; color: #ea580c; }
.priority-badge.priority-urgent { background: #fee2e2; color: #dc2626; }

/* ── Pager ───────────────────────────────────────────────────── */
.pager {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 16px;
}
.pager-btn {
    background: #fff; border: 1px solid #d1d5db;
    padding: 6px 14px; border-radius: 6px;
    font-size: 13px; cursor: pointer; font-family: 'Inter', sans-serif;
}
.pager-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-btn:not(:disabled):hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.pager-info { font-size: 13px; color: #64748b; }

/* ── Tabs ────────────────────────────────────────────────────── */
.tab-nav {
    display: flex; gap: 2px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.tab-btn {
    background: none; border: none; cursor: pointer;
    padding: 10px 18px;
    font-size: 13px; font-weight: 500; color: #64748b;
    font-family: 'Inter', sans-serif;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    display: flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--theme-primary); }
.tab-btn.active { color: var(--theme-primary); border-bottom-color: var(--theme-primary); font-weight: 600; }

.tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; font-size: 10px; font-weight: 700;
    background: #f1f5f9; color: #64748b;
}
.tab-badge.badge-red { background: #fee2e2; color: #dc2626; }

.tab-actions {
    display: flex; justify-content: flex-end;
    margin-bottom: 14px;
}

/* ── Detail grid ─────────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.detail-section {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 16px;
}

.detail-section-full { grid-column: 1 / -1; }
.detail-section-title { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.3px; }

.detail-fields { display: flex; flex-direction: column; gap: 8px; }

.detail-field { display: flex; flex-direction: column; gap: 2px; }
.detail-field-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.4px; }
.detail-field-value { font-size: 13px; color: #1e293b; }
.detail-field-value.link { color: var(--theme-primary); }

.notes-body { font-size: 13px; color: #374151; line-height: 1.6; white-space: pre-wrap; }

/* ── Stage buttons ───────────────────────────────────────────── */
.stage-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.stage-select-btn {
    padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: 'Inter', sans-serif;
    border: 2px solid var(--stage-color, #94a3b8);
    color: var(--stage-color, #64748b);
    background: transparent;
    transition: all 0.15s;
}
.stage-select-btn:hover,
.stage-select-btn.active {
    background: var(--stage-color, #94a3b8);
    color: #fff;
}

/* ── Contact cards ───────────────────────────────────────────── */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.contact-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 16px;
    display: flex; gap: 12px;
    cursor: pointer; transition: all 0.15s;
}
.contact-card:hover { border-color: var(--theme-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.contact-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--theme-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; flex-shrink: 0;
}

.contact-body { min-width: 0; flex: 1; }
.contact-name { font-size: 14px; font-weight: 600; color: #0f172a; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.contact-title { font-size: 12px; color: #64748b; margin-top: 2px; }
.contact-county { font-size: 12px; color: var(--theme-primary); margin-top: 2px; }
.contact-email, .contact-phone { font-size: 12px; color: #475569; margin-top: 2px; }

/* ── Deal cards ──────────────────────────────────────────────── */
.deal-cards { display: flex; flex-direction: column; gap: 12px; }

.deal-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 16px;
}
.deal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.deal-name { font-size: 15px; font-weight: 600; color: #0f172a; }
.deal-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.deal-field { display: flex; flex-direction: column; gap: 2px; }
.deal-field span { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.3px; }
.deal-field strong { font-size: 13px; font-weight: 600; color: #1e293b; }

/* ── Activity timeline ───────────────────────────────────────── */
.activity-timeline { display: flex; flex-direction: column; gap: 0; }

.activity-item {
    display: flex; gap: 14px;
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s;
}
.activity-item:hover { background: #fafbfc; }
.activity-item:last-child { border-bottom: none; }

.activity-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.activity-body { flex: 1; min-width: 0; }
.activity-header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.activity-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--theme-primary); }
.activity-county { font-size: 12px; color: #1e293b; font-weight: 600; }
.activity-date { font-size: 11px; color: #94a3b8; margin-left: auto; }
.activity-by { font-size: 11px; color: #94a3b8; }
.activity-subject { font-size: 14px; font-weight: 600; color: #0f172a; }
.activity-notes { font-size: 13px; color: #475569; margin-top: 4px; line-height: 1.5; }
.activity-outcome { font-size: 12px; color: #16a34a; margin-top: 4px; }
.activity-nextstep { font-size: 12px; color: #7c3aed; margin-top: 4px; }

/* ── Tasks page ──────────────────────────────────────────────── */
.task-sections { display: flex; flex-direction: column; gap: 20px; }
.task-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.task-section-header { padding: 12px 16px; font-size: 13px; font-weight: 700; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.overdue-header { background: #fef2f2; color: #dc2626; }
.today-header { background: #eff6ff; color: #1d4ed8; }

.task-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid #f8fafc;
    transition: background 0.1s;
}
.task-row:hover { background: #f9fafb; }
.task-row:last-child { border-bottom: none; }
.task-row.task-overdue { background: #fef2f2; }
.task-row.task-done { opacity: 0.55; }

.complete-btn {
    background: none; border: 2px solid #d1d5db;
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; font-size: 11px; color: #94a3b8;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
    transition: all 0.15s;
}
.complete-btn:hover { border-color: #22c55e; color: #22c55e; }
.complete-check { color: #22c55e; font-size: 15px; }

.task-row-body { flex: 1; min-width: 0; }
.task-row-subject { font-size: 13px; font-weight: 500; color: #1e293b; }
.task-row-meta { display: flex; gap: 8px; margin-top: 3px; flex-wrap: wrap; align-items: center; }
.task-county-link { font-size: 11px; color: var(--theme-primary); cursor: pointer; }
.task-county-link:hover { text-decoration: underline; }
.task-assigned { font-size: 11px; color: #94a3b8; }
.text-strike { text-decoration: line-through; }

/* ── Pipeline board ──────────────────────────────────────────── */
.pipeline-board {
    display: flex; gap: 14px;
    overflow-x: auto; padding-bottom: 16px;
    align-items: flex-start;
}

.pipeline-column {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; min-width: 230px;
    max-width: 260px; flex-shrink: 0;
    overflow: hidden;
}

.pipeline-col-header {
    padding: 12px 14px;
    border-top: 4px solid #94a3b8;
    background: #fff;
    display: flex; flex-direction: column; gap: 2px;
}
.pipeline-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #374151; }
.pipeline-col-count { font-size: 11px; color: #64748b; }
.pipeline-col-value { font-size: 12px; font-weight: 600; color: #0f172a; }

.pipeline-col-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }

.pipeline-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 12px;
    cursor: pointer; transition: all 0.15s;
}
.pipeline-card:hover { border-color: var(--theme-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.pipeline-card-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.pipeline-card-meta { display: flex; gap: 6px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.pipeline-card-value { font-size: 12px; font-weight: 600; color: #16a34a; margin-left: auto; }
.pipeline-card-owner { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.pipeline-card-activity { font-size: 10px; color: #cbd5e1; margin-top: 2px; }
.pipeline-empty { font-size: 12px; color: #cbd5e1; text-align: center; padding: 20px 0; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; overflow: hidden;
}

.form-section { padding: 24px 28px; border-bottom: 1px solid #f1f5f9; }
.form-section:last-of-type { border-bottom: none; }
.form-section-title { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.4px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.form-col-2 { grid-column: span 2; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
    font-size: 12px; font-weight: 600; color: #374151;
    text-transform: none;
}
.form-hint { font-size: 11px; color: #94a3b8; font-weight: 400; }

.form-input {
    border: 1px solid #d1d5db; border-radius: 8px;
    padding: 8px 12px; font-size: 13px;
    font-family: 'Inter', sans-serif; color: #1e293b;
    transition: all 0.15s;
    background: #fff;
}
.form-input:focus { outline: none; border-color: var(--theme-primary); box-shadow: 0 0 0 3px var(--theme-primary-light); }
.form-input.input-error { border-color: #ef4444; }

.form-textarea {
    border: 1px solid #d1d5db; border-radius: 8px;
    padding: 8px 12px; font-size: 13px;
    font-family: 'Inter', sans-serif; color: #1e293b;
    resize: vertical; min-height: 80px;
    transition: border-color 0.15s;
}
.form-textarea:focus { outline: none; border-color: var(--theme-primary); box-shadow: 0 0 0 3px var(--theme-primary-light); }

.form-checks { display: flex; gap: 20px; flex-wrap: wrap; }
.form-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--theme-primary); }
.form-check-row { display: flex; align-items: center; margin-bottom: 12px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-actions {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 28px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.field-error { font-size: 11px; color: #ef4444; margin-top: 2px; }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}

.modal {
    background: #fff; border-radius: 16px;
    width: 100%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.2s ease;
}
.modal-sm { max-width: 400px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f5f9;
}
.modal-header h3 { font-size: 16px; font-weight: 700; color: #0f172a; }
.modal-close {
    background: none; border: none; cursor: pointer;
    font-size: 18px; color: #94a3b8; padding: 4px;
    border-radius: 6px; line-height: 1;
}
.modal-close:hover { background: #f1f5f9; color: #374151; }

.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

/* ── States ──────────────────────────────────────────────────── */
.loading-state {
    display: flex; align-items: center; gap: 10px;
    padding: 40px 20px; justify-content: center;
    color: #64748b; font-size: 14px;
}
.error-state {
    padding: 40px 20px; text-align: center;
    color: #dc2626; font-size: 14px;
}
.empty-state {
    padding: 60px 20px; text-align: center;
    color: #94a3b8; font-size: 14px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
}
.empty-state-sm {
    padding: 24px 16px; text-align: center;
    color: #94a3b8; font-size: 13px;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner-sm {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ───────────────────────────────────────────────────── */
.toast-container {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    background: #1e293b; color: #fff;
    padding: 12px 16px; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    min-width: 280px; max-width: 380px;
    font-size: 13px; font-weight: 500;
    border-left: 4px solid #64748b;
}
.toast-success { border-left-color: #22c55e; }
.toast-error   { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info    { border-left-color: #3b82f6; }
.toast-message { flex: 1; }
.toast-close { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 14px; padding: 0 4px; }
.toast-in  { animation: toastIn 0.25s ease; }
.toast-out { animation: toastIn 0.2s ease reverse; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Login page ──────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    padding: 24px;
}

.login-card {
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 420px;
    padding: 40px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

.login-header { text-align: center; margin-bottom: 28px; }
.login-logo {
    width: 72px; height: 72px; border-radius: 18px;
    background: linear-gradient(135deg, var(--theme-gradient-start), var(--theme-gradient-end));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}
.login-title { font-size: 24px; font-weight: 800; color: #0f172a; }
.login-subtitle { font-size: 13px; color: #64748b; margin-top: 4px; }

.login-alert {
    background: #fef2f2; border: 1px solid #fecaca;
    color: #dc2626; border-radius: 8px;
    padding: 10px 14px; font-size: 13px;
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}

.login-footer {
    text-align: center; margin-top: 24px;
    font-size: 11px; color: #94a3b8;
}

/* ── Coming soon ─────────────────────────────────────────────── */
.coming-soon {
    text-align: center; padding: 80px 20px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 16px; margin-top: 16px;
}
.coming-soon-icon { font-size: 56px; margin-bottom: 16px; }
.coming-soon h2 { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.coming-soon p { font-size: 14px; color: #64748b; max-width: 400px; margin: 0 auto; line-height: 1.6; }
.coming-soon-note { font-size: 12px; color: #94a3b8; margin-top: 8px; }

/* ── Utility ─────────────────────────────────────────────────── */
.fw-600   { font-weight: 600; }
.text-danger { color: #dc2626; }
.task-table-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; overflow-x: auto; }

/* ── View toggle (List / Map) ───────────────────────────────── */
.view-toggle {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.view-toggle-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px;
    font-size: 12px; font-weight: 500;
    color: #64748b; background: transparent; border: none;
    cursor: pointer; font-family: "Inter", sans-serif;
    transition: all 0.15s;
}
.view-toggle-btn:hover { background: #f8fafc; color: #374151; }
.view-toggle-btn.active { background: var(--theme-primary); color: #fff; }
.view-toggle-btn + .view-toggle-btn { border-left: 1px solid #d1d5db; }

/* ── Conference map ──────────────────────────────────────────── */
.conf-map-wrap { position: relative; }

.conf-map-legend {
    position: absolute; bottom: 20px; left: 20px; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 10px 14px;
    display: flex; gap: 14px; flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-legend-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: #374151;
}

.map-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.dot-upcoming  { background: #f97316; }
.dot-confirmed { background: #22c55e; }
.dot-attended  { background: #8b5cf6; }
.dot-planning  { background: #3b82f6; }

/* ── Map unmapped note ───────────────────────────────────────── */
.map-unmapped-note {
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    padding: 0 4px;
}

/* ── Probability slider ──────────────────────────────────────── */
.probability-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.probability-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    appearance: none;
    background: linear-gradient(to right, var(--theme-primary) 0%, var(--theme-primary) var(--val, 50%), #e2e8f0 var(--val, 50%));
    outline: none;
    cursor: pointer;
    border: none;
    padding: 0;
}

.probability-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.probability-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.probability-value {
    min-width: 96px;
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-primary);
    text-align: right;
}

.probability-reset {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
}
.probability-reset:hover { color: #ef4444; background: #fee2e2; }

.probability-weighted {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    padding: 6px 10px;
    background: var(--theme-primary-light);
    border-radius: 6px;
    border-left: 3px solid var(--theme-primary);
}
.probability-weighted strong { color: var(--theme-primary); }

/* ── Conference Calendar ─────────────────────────────────────── */
.cal-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cal-month-label {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    min-width: 190px;
    text-align: center;
}

.cal-nav-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #374151;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.cal-nav-btn:hover { border-color: var(--theme-primary); color: var(--theme-primary); box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

.cal-today-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 12px; font-weight: 600;
    color: #475569; cursor: pointer;
    font-family: "Inter", sans-serif;
    transition: all 0.15s;
    margin-left: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.cal-today-btn:hover { border-color: var(--theme-primary); color: var(--theme-primary); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 130px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    background: #cbd5e1;
    gap: 1px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.cal-header-cell {
    background: var(--theme-primary);
    padding: 12px 0;
    height: auto !important;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.9);
}

.cal-cell {
    background: #fff;
    height: 130px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.1s;
    overflow: hidden;
}
.cal-cell:hover { background: #f8fafc; }

.cal-cell-out { background: #f8fafc; }
.cal-cell-out:hover { background: #f1f5f9; }
.cal-cell-out .cal-day-num { color: #cbd5e1; }

.cal-cell-today {
    background: #eff6ff;
}
.cal-cell-today:hover { background: #dbeafe; }

.cal-cell-today .cal-day-num {
    background: var(--theme-primary);
    color: #fff;
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cal-day-num {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 3px;
    flex-shrink: 0;
    border-radius: 50%;
}

.cal-event {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    border-left: 3px solid transparent;
}
.cal-event:hover { filter: brightness(0.92); transform: translateX(1px); }

.cal-event-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.7;
}

.cal-event-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status-specific event colors — with left border accent */
.cal-event-planning     { background: #dbeafe; color: #1d4ed8; border-left-color: #3b82f6; }
.cal-event-confirmed    { background: #dcfce7; color: #15803d; border-left-color: #22c55e; }
.cal-event-attended     { background: #ede9fe; color: #6d28d9; border-left-color: #8b5cf6; }
.cal-event-notattending { background: #f1f5f9; color: #475569; border-left-color: #94a3b8; }
.cal-event-cancelled    { background: #fee2e2; color: #b91c1c; border-left-color: #ef4444; }

/* Calendar legend */
.cal-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.cal-legend-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 3px;
    border-left: 3px solid transparent;
}

.cal-legend-dot.status-planning     { background: #dbeafe; border-color: #3b82f6; }
.cal-legend-dot.status-confirmed    { background: #dcfce7; border-color: #22c55e; }
.cal-legend-dot.status-attended     { background: #ede9fe; border-color: #8b5cf6; }
.cal-legend-dot.status-notattending { background: #f1f5f9; border-color: #94a3b8; }
.cal-legend-dot.status-cancelled    { background: #fee2e2; border-color: #ef4444; }

/* ── Table link ─────────────────────────────────────────────── */
.table-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 500;
    color: var(--theme-primary);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--theme-primary-light);
    transition: background 0.15s;
    white-space: nowrap;
}
.table-link:hover { background: var(--theme-primary-medium); text-decoration: none; }

/* ── Projected Income Chart ──────────────────────────────────── */
.projection-chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px 16px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.projection-totals {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.projection-total-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 20px;
}
.projection-total-item:first-child { padding-left: 0; }

.projection-total-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.projection-total-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.projection-total-weighted {
    color: var(--theme-primary);
}

.projection-total-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* Bar chart */
.projection-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 180px;
    padding-bottom: 0;
}

.projection-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.projection-bar-wrap {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    min-height: 0;
}

/* Tooltip */
.projection-bar-col:hover .projection-bar-tooltip { opacity: 1; pointer-events: none; }

.projection-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.projection-bar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e293b;
}

.tooltip-month { font-weight: 700; margin-bottom: 5px; color: #e2e8f0; }
.tooltip-line  { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.tooltip-dot   { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.dot-est       { background: #cbd5e1; }
.dot-wgt       { background: var(--theme-primary); }

/* The bars themselves */
.projection-bar-est {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    background: #e2e8f0;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
    min-height: 3px;
}

.projection-bar-wgt {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    background: linear-gradient(180deg, var(--theme-secondary) 0%, var(--theme-primary) 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.4s cubic-bezier(0.4,0,0.2,1) 0.05s;
    min-height: 3px;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.projection-bar-col:hover .projection-bar-est { background: #cbd5e1; }
.projection-bar-col:hover .projection-bar-wgt { filter: brightness(1.1); }

.projection-bar-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
    white-space: nowrap;
}

.projection-bar-value {
    font-size: 9px;
    font-weight: 700;
    color: var(--theme-primary);
    text-align: center;
    white-space: nowrap;
}

/* Legend */
.projection-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.projection-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.projection-legend-dot {
    width: 12px; height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}
.dot-est-lg { background: #e2e8f0; border: 1px solid #cbd5e1; }
.dot-wgt-lg { background: var(--theme-primary); }

/* ── Activity Feed ───────────────────────────────────────────── */
.activity-feed-list { display: flex; flex-direction: column; gap: 2px; }

.feed-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
    transition: background 0.12s;
}
.feed-item:hover { background: #f8fafc; }

.feed-icon {
    font-size: 18px; flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; border-radius: 8px;
}

.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 12px; font-weight: 600; color: #0f172a; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.feed-court { font-size: 11px; font-weight: 600; color: var(--theme-primary); }
.feed-time  { font-size: 10px; color: #94a3b8; }
.feed-user  { font-size: 10px; color: #64748b; }
.feed-outcome { font-size: 11px; color: #475569; margin-top: 2px; font-style: italic; }

/* ── Document List ───────────────────────────────────────────── */
.document-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.document-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; background: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 8px;
    transition: border-color 0.12s;
}
.document-item:hover { border-color: #cbd5e1; }

.document-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.document-body { flex: 1; min-width: 0; }
.document-name { font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.document-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #64748b; flex-wrap: wrap; }
.document-notes { font-size: 11px; color: #64748b; margin-top: 3px; font-style: italic; }

/* ── Import page ─────────────────────────────────────────────── */
.upload-dropzone {
    border: 2px dashed #cbd5e1; border-radius: 12px;
    padding: 40px; text-align: center; color: #64748b;
    transition: all 0.2s; background: #fafbfc;
}
.upload-dropzone.dragging { border-color: var(--theme-primary); background: #eff6ff; }
.upload-dropzone:hover { border-color: #94a3b8; }
.upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-input { display: none; }

.import-summary-bar {
    display: flex; gap: 16px; padding: 12px 16px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; margin-bottom: 12px;
}
.import-stat { font-size: 13px; font-weight: 600; color: #374151; }
.import-ok   { color: #16a34a; }
.import-warn { color: #d97706; }
.row-invalid { background: #fff7f7 !important; }

/* ── Reports page ────────────────────────────────────────────── */
.report-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }

.report-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 20px 24px; box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.report-card-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; margin-bottom: 10px; }
.report-stat-big { font-size: 28px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.report-stat-sub { font-size: 12px; color: #64748b; margin-bottom: 3px; }

.win-rate-bar-wrap { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.win-rate-label { font-size: 11px; font-weight: 600; color: #64748b; white-space: nowrap; }
.win-rate-bar { flex: 1; height: 10px; background: #fee2e2; border-radius: 5px; overflow: hidden; }
.win-rate-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 5px; transition: width 0.6s; }
.win-rate-pct { font-size: 14px; font-weight: 700; color: #16a34a; min-width: 40px; text-align: right; }

.pipe-bar-cell { width: 100%; height: 12px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.pipe-bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s; min-width: 3px; }

/* ── Template editor ─────────────────────────────────────────── */
.templates-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }

.template-list-panel {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 8px; overflow-y: auto; max-height: 700px;
}
.template-group-header {
    padding: 8px 10px 4px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.7px; color: #94a3b8;
}
.template-item {
    padding: 10px 12px; border-radius: 8px; cursor: pointer;
    transition: background 0.12s; margin-bottom: 2px;
}
.template-item:hover { background: #f8fafc; }
.template-item.active { background: #eff6ff; border-left: 3px solid var(--theme-primary); }
.template-item-name { font-size: 13px; font-weight: 600; color: #0f172a; }
.template-item-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.template-editor-panel {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px;
}
.template-empty-editor { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; color: #94a3b8; text-align: center; }
.template-editor { display: flex; flex-direction: column; gap: 14px; }
.template-tokens { font-size: 11px; color: #64748b; margin-bottom: 6px; }
.template-tokens code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 11px; margin: 0 2px; }

.template-preview-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.template-preview-name { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.template-preview-subject { font-size: 13px; color: #64748b; }
.template-preview-actions { display: flex; gap: 8px; }
.template-preview-body { white-space: pre-wrap; font-size: 13px; line-height: 1.7; color: #374151; background: #f8fafc; padding: 16px; border-radius: 8px; border: 1px solid #e2e8f0; font-family: Georgia, serif; }
.template-preview-footer { margin-top: 12px; font-size: 11px; color: #94a3b8; }

/* ── Extended stat cards ─────────────────────────────────────── */
.stat-card.stat-teal   { border-top: 3px solid #0d9488; }
.stat-card.stat-orange { border-top: 3px solid #f97316; }
.stat-card.stat-red    { border-top: 3px solid #ef4444; }
.stat-sub { font-size: 10px; color: #94a3b8; margin-top: 2px; }

.row-inactive { opacity: 0.5; }

/* Empty month bars */
.bar-col-empty .projection-bar-est { background: #f1f5f9; }
.bar-col-empty .projection-bar-label { color: #cbd5e1; }
.bar-col-empty .projection-bar-wrap::after {
    content: "";
    position: absolute;
    bottom: 0; left: 10%; width: 80%;
    height: 3px; background: #f1f5f9;
    border-radius: 2px;
}

/* ── Deal Edit Layout ────────────────────────────────────────── */
.deal-edit-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 16px;
    align-items: start;
}

.deal-total-header {
    display: flex; flex-direction: column; align-items: flex-end;
}
.deal-total-label  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; }
.deal-total-value  { font-size: 20px; font-weight: 700; color: #0f172a; }
.deal-total-arr    { color: var(--theme-primary); }

/* ── Product Lines ───────────────────────────────────────────── */
.product-line {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: all 0.15s;
    background: #fafbfc;
}

.product-line-active {
    background: #fff;
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(59,130,246,0.08);
}

.product-line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-line-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.product-line-toggle input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--theme-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.product-line-name {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #374151;
}

.product-line-active .product-line-name { color: #0f172a; }

.product-line-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    margin-left: 26px;
    line-height: 1.5;
}

.product-line-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-total-onetime {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.product-total-arr {
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-primary);
}

.product-line-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    margin-left: 26px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.product-price-field { display: flex; flex-direction: column; gap: 4px; }
.product-price-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: #94a3b8; }

.product-price-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.15s;
}
.product-price-input-wrap:focus-within { border-color: var(--theme-primary); background: #fff; }

.price-prefix {
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
}

.product-price-input {
    border: none;
    outline: none;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    width: 100%;
    background: transparent;
    font-family: "Inter", sans-serif;
}

/* Totals footer */
.product-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 4px;
}

.product-totals-left { font-size: 11px; color: #94a3b8; }
.product-totals-right { display: flex; gap: 20px; align-items: center; }

.product-total-block { display: flex; flex-direction: column; align-items: flex-end; }
.product-total-block-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #94a3b8; }
.product-total-block-value { font-size: 18px; font-weight: 700; color: #0f172a; }
.product-total-block-arr .product-total-block-value { color: var(--theme-primary); }

/* Prevent extra decimal places on number inputs */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { opacity: 1; }

/* ── Pricing Model Toggle ────────────────────────────────────── */
.pricing-model-toggle {
    display: flex;
    gap: 4px;
    margin: 8px 0 6px 26px;
}

.pricing-model-btn {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    transition: all 0.15s;
}
.pricing-model-btn:hover { border-color: #94a3b8; }
.pricing-model-btn.active-license {
    background: #eff6ff; color: #1d4ed8; border-color: #93c5fd;
}
.pricing-model-btn.active-saas {
    background: #ede9fe; color: #6d28d9; border-color: #c4b5fd;
}

/* ── TCV Comparison Grid ─────────────────────────────────────── */
.tcv-grid {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.tcv-row {
    display: grid;
    grid-template-columns: 110px repeat(5, 1fr);
    gap: 0;
    padding: 8px 12px;
    font-size: 12px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}
.tcv-row:last-child { border-bottom: none; }

.tcv-header {
    background: #f1f5f9;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
}
.tcv-header span { text-align: right; }
.tcv-header span:first-child { text-align: left; }

.tcv-license { background: #fafcff; }
.tcv-saas    { background: #fdf9ff; }
.tcv-total   { background: #fff; font-weight: 700; }

.tcv-row span { text-align: right; color: #374151; }
.tcv-row span:first-child { text-align: left; }

.tcv-row-dim { opacity: 0.4; }

.tcv-model-label {
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
}
.tcv-label-license { color: #1d4ed8; }
.tcv-label-saas    { color: #6d28d9; }

.tcv-breakeven-note {
    grid-column: 1 / -1;
    padding: 8px 12px;
    font-size: 11px;
    color: #64748b;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
}

/* ── Intelligence Pages ──────────────────────────────────────── */
.competitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
    margin-top: 4px;
}

.competitor-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.competitor-card-header {
    padding-left: 12px;
    margin-bottom: 12px;
}
.competitor-name     { font-size:15px; font-weight:700; color:#0f172a; }
.competitor-winrate  { font-size:12px; font-weight:600; margin-top:2px; }
.competitor-section  { margin-bottom:10px; }
.competitor-section-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:#94a3b8; margin-bottom:4px; }
.competitor-section-body  { font-size:12px; color:#374151; line-height:1.6; }

/* Urgency badges */
.urgency-badge { padding:3px 10px; border-radius:12px; font-size:11px; font-weight:700; }
.urgency-hot      { background:#fee2e2; color:#dc2626; }
.urgency-warm     { background:#ffedd5; color:#c2410c; }
.urgency-watch    { background:#fef9c3; color:#a16207; }
.urgency-upcoming { background:#dcfce7; color:#15803d; }

/* Budget window badges */
.budget-window-badge { font-size:11px; font-weight:600; }

/* Row highlights */
.row-hot { background: #fff7f7 !important; }

/* Info banner */
.info-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #1e40af;
}

/* Health score */
.health-score-wrap { display:flex; flex-direction:column; gap:4px; min-width:150px; }
.health-score-bar  { height:8px; background:#f1f5f9; border-radius:4px; overflow:hidden; }
.health-score-fill { height:100%; border-radius:4px; transition:width 0.4s; }
.health-score-label { font-size:11px; font-weight:700; }

/* Forecast chart */
.forecast-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding: 0 8px;
}

.forecast-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}
.forecast-bar-col:hover .forecast-bar-tooltip { opacity:1; }
.forecast-bar-tooltip {
    position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%);
    background:#1e293b; color:#fff; border-radius:8px; padding:8px 12px;
    font-size:11px; white-space:nowrap; opacity:0; transition:opacity 0.15s;
    z-index:100; pointer-events:none; box-shadow:0 4px 12px rgba(0,0,0,0.3);
}
.forecast-bar-tooltip::after { content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:5px solid transparent; border-top-color:#1e293b; }
.forecast-bar-wrap { flex:1; width:100%; position:relative; display:flex; align-items:flex-end; }
.forecast-bar-total { width:100%; background:linear-gradient(180deg,var(--theme-secondary) 0%,var(--theme-primary) 100%); border-radius:6px 6px 0 0; min-height:4px; transition:height 0.5s; }
.forecast-bar-label { font-size:11px; font-weight:600; color:#64748b; }
.forecast-bar-value { font-size:10px; font-weight:700; color:var(--theme-primary); }

.text-green { color:#16a34a; font-weight:600; }

/* ── Mobile / PWA Responsive ─────────────────────────────────── */
@media (max-width: 768px) {

    /* Sidebar collapses to bottom nav on mobile */
    .main-navigation {
        position: fixed !important;
        bottom: 0; left: 0; right: 0;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        padding: 0 !important;
        z-index: 1000;
        border-top: 1px solid rgba(255,255,255,0.1);
        border-right: none !important;
    }

    .nav-app-brand, .nav-header, .nav-section-label,
    .nav-user-profile, .nav-toggle-btn, .nav-app-brand-collapsed { display: none !important; }

    .nav-menu { flex-direction: row !important; overflow-x: auto; padding: 0 !important; gap: 0 !important; }
    .nav-item  { flex-direction: column !important; padding: 8px 12px !important; min-width: 60px; font-size: 9px !important; gap: 2px !important; border-radius: 0 !important; }
    .nav-icon  { width: 20px !important; height: 20px !important; }
    .nav-label { font-size: 9px !important; white-space: nowrap; overflow: hidden; }
    .nav-section-bottom { margin-top: 0 !important; border-top: none !important; }

    /* Push content above bottom nav */
    .main-content-area { margin-left: 0 !important; padding-bottom: 70px !important; }

    /* Stack page headers */
    .page-header { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
    .page-header-right { flex-wrap: wrap !important; }

    /* Full width cards */
    .form-grid { grid-template-columns: 1fr !important; }
    .form-col-2 { grid-column: 1 !important; }
    .detail-grid { grid-template-columns: 1fr !important; }
    .report-grid-2 { grid-template-columns: 1fr !important; }
    .templates-layout { grid-template-columns: 1fr !important; }
    .deal-edit-layout { grid-template-columns: 1fr !important; }
    .competitor-grid { grid-template-columns: 1fr !important; }

    /* Tables scroll horizontally */
    .data-table-wrap { overflow-x: auto !important; }
    .data-table { min-width: 600px; }

    /* Stats strip wraps */
    .stats-strip { flex-wrap: wrap !important; }
    .stat-card { min-width: 140px !important; flex: 1 !important; }

    /* Dashboard grid stacks */
    .dashboard-grid { grid-template-columns: 1fr !important; }

    /* Projection chart: fewer labels */
    .projection-bar-value { font-size: 8px !important; }
    .projection-bar-label { font-size: 8px !important; }

    /* Filter bar wraps */
    .filter-bar { flex-wrap: wrap !important; gap: 8px !important; }
    .filter-search { width: 100% !important; }
}

/* ── Booking Page (Public) ───────────────────────────────────── */
.booking-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 40px 16px;
}

.booking-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%; max-width: 520px;
    overflow: hidden;
}

.booking-header {
    background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
    padding: 28px 32px 20px;
    color: #fff;
}

.booking-brand { display:flex; flex-direction:column; gap:2px; margin-bottom:16px; }
.booking-brand-name { font-size:20px; font-weight:800; color:#fff; }
.booking-brand-tag  { font-size:11px; color:rgba(255,255,255,0.6); text-transform:uppercase; letter-spacing:0.5px; }
.booking-title      { font-size:22px; font-weight:700; color:#fff; margin-bottom:8px; }
.booking-subtitle   { font-size:13px; color:rgba(255,255,255,0.8); line-height:1.5; }

.booking-form { padding:28px 32px; }
.booking-unavailable, .booking-confirmed { padding:40px 32px; text-align:center; }
.booking-confirmed-time { background:#f0fdf4; border:1px solid #86efac; border-radius:10px; padding:16px; margin:16px 0; font-weight:600; color:#15803d; font-size:14px; line-height:1.8; }

/* Booking link display */
.booking-link-display {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 8px 12px;
    font-size: 12px; font-family: monospace; color: #374151;
    word-break: break-all;
}

/* Slot grid */
.slot-grid { display:flex; flex-wrap:wrap; gap:8px; }
.slot-chip {
    display:flex; align-items:center; gap:6px;
    background:#eff6ff; border:1px solid #bfdbfe;
    border-radius:8px; padding:6px 10px;
    font-size:12px;
}
.slot-chip-date { font-weight:700; color:#1e40af; }
.slot-chip-time { color:#3b82f6; }
.slot-chip-dur  { color:#94a3b8; font-size:10px; }
.slot-chip-del  { background:none; border:none; color:#94a3b8; cursor:pointer; font-size:12px; padding:0; line-height:1; }
.slot-chip-del:hover { color:#ef4444; }

/* Sequence styles */
.sequences-layout { display:grid; grid-template-columns:280px 1fr; gap:16px; }
.seq-list-panel { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:8px; overflow-y:auto; max-height:600px; }
.seq-item { padding:10px 12px; border-radius:8px; cursor:pointer; transition:background 0.12s; margin-bottom:2px; }
.seq-item:hover { background:#f8fafc; }
.seq-item.active { background:#eff6ff; border-left:3px solid var(--theme-primary); }
.seq-item-name { font-size:13px; font-weight:600; color:#0f172a; }
.seq-item-meta { font-size:11px; color:#94a3b8; margin-top:2px; display:flex; gap:8px; flex-wrap:wrap; }
.seq-editor-panel { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:20px; }

.seq-step-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.seq-step-day { font-size:11px; font-weight:700; color:#64748b; white-space:nowrap; width:50px; }

.seq-steps-view { display:flex; flex-direction:column; gap:8px; }
.seq-step-view { display:flex; align-items:center; gap:12px; padding:10px 14px; background:#f8fafc; border-radius:8px; border-left:3px solid var(--theme-primary); }
.seq-step-view-day { font-weight:700; font-size:12px; color:var(--theme-primary); min-width:50px; }
.seq-step-view-arrow { color:#94a3b8; }
.seq-step-view-template { font-size:13px; color:#374151; }

.queue-item { background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:12px 14px; margin-bottom:8px; }
.queue-item-header { display:flex; gap:10px; align-items:center; margin-bottom:4px; }
.queue-item-subject { font-size:12px; color:#64748b; margin-bottom:8px; }
.queue-item-actions { display:flex; gap:8px; }

/* ── Contact Cards ───────────────────────────────────────────── */
.contact-card {
    position: relative;
    cursor: pointer;
}
.contact-card-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.contact-card:hover .contact-card-actions { opacity: 1; }
.contact-link {
    font-size: 11px;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}
.contact-link:hover { text-decoration: underline; }
.badge-orange { background:#fff7ed; color:#c2410c; }

/* ── @Mention Textarea ───────────────────────────────────────── */
.mention-wrap { position: relative; }
.mention-dropdown {
    position: absolute; left: 0; right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
}
.mention-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; cursor: pointer; transition: background 0.1s;
}
.mention-option:hover, .mention-option-active { background: #eff6ff; }
.mention-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--theme-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.mention-name  { font-size: 13px; font-weight: 600; color: #0f172a; }
.mention-email { font-size: 11px; color: #94a3b8; }

/* ── Notification Bell ───────────────────────────────────────── */
.notif-bell-wrap { position: relative; }
.notif-bell {
    background: none; border: none; cursor: pointer;
    font-size: 20px; padding: 4px 8px; position: relative;
    border-radius: 8px; transition: background 0.15s;
}
.notif-bell:hover { background: #f1f5f9; }
.notif-badge {
    position: absolute; top: -2px; right: -2px;
    background: #ef4444; color: #fff;
    font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px; padding: 0 3px;
    display: flex; align-items: center; justify-content: center;
    font-family: "Inter", sans-serif;
}
.notif-panel {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 340px; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 300; overflow: hidden;
}
.notif-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #f1f5f9;
    font-size: 13px; font-weight: 700; color: #0f172a;
}
.notif-mark-read {
    background: none; border: none; cursor: pointer;
    font-size: 11px; color: #2563eb; font-family: "Inter", sans-serif;
}
.notif-empty { padding: 24px; text-align: center; font-size: 12px; color: #94a3b8; }
.notif-item {
    display: flex; gap: 10px; padding: 12px 16px;
    border-bottom: 1px solid #f8fafc; cursor: pointer;
    transition: background 0.1s;
}
.notif-item:hover { background: #f8fafc; }
.notif-unread { background: #eff6ff; }
.notif-unread:hover { background: #dbeafe; }
.notif-item-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--theme-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 12px; font-weight: 600; color: #0f172a; line-height: 1.4; }
.notif-item-body-text { font-size: 11px; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 10px; color: #94a3b8; margin-top: 3px; }

/* ── Legislative Alerts ──────────────────────────────────────── */
.legislation-state-block { margin-bottom: 20px; }
.legislation-state-header {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 10px 10px 0 0;
    padding: 14px 16px; margin-bottom: 0;
}
.legislation-state-name { font-size: 18px; font-weight: 800; color: #0f172a; }
.row-client { background: #f0fdf4 !important; }

/* ── Follow-up task box ──────────────────────────────────────── */
.follow-up-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 4px;
}
