/* ─────────────────────────────────────────────────────────────
   Meeting & RFI Reviewer — Custom Styles
   ───────────────────────────────────────────────────────────── */

/* Document type toggle */
.bcmr-type-toggle {
	display: flex;
	gap: 0;
	border: 1px solid var(--bca-border, #d1d5db);
	border-radius: 8px;
	overflow: hidden;
	width: fit-content;
}

.bcmr-type-btn {
	padding: 8px 20px;
	background: #fff;
	border: none;
	border-right: 1px solid var(--bca-border, #d1d5db);
	cursor: pointer;
	font-size: .875rem;
	color: var(--bca-muted, #6b7280);
	transition: background .15s, color .15s;
	font-family: inherit;
}
.bcmr-type-btn:last-child { border-right: none; }
.bcmr-type-btn:hover { background: #f0f9ff; color: #0369a1 !important; }
.bcmr-type-btn--active {
	background: #1e3a8a;
	color: #fff !important;
	font-weight: 600;
}

/* Result header */
/* Result header uses shared .bcdr-result-header from draw-request.css */
.bcmr-type-pill--header {
	display: inline-block;
	margin-bottom: 8px;
}
.bcmr-type-pill {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 99px;
	background: #dbeafe;
	color: #1e40af;
	font-size: .8rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.bcmr-type-pill--rfi { background: #fef3c7; color: #92400e; }

/* Type indicator dots in history */
.bcmr-type-dot { font-size: 1rem; margin-right: 4px; flex-shrink: 0; }
.bcmr-type-dot--rfi {}

/* KPI row */
.bcmr-kpi-row {
	display: flex;
	gap: 10px;
	margin: 14px 0 18px;
	flex-wrap: wrap;
}
.bcmr-kpi {
	flex: 1;
	min-width: 120px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 10px 12px;
}
.bcmr-kpi__label {
	font-size: .72rem;
	color: #0369a1;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 4px;
}
.bcmr-kpi__value {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0c4a6e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Attendees line */
.bcmr-attendees {
	font-size: .85rem;
	color: var(--bca-muted, #6b7280);
	margin: -8px 0 14px;
}

/* Sections */
.bcmr-section { margin: 16px 0; }
.bcmr-sec-title {
	font-size: .9rem;
	font-weight: 700;
	color: #1e3a8a;
	border-bottom: 2px solid #dbeafe;
	padding-bottom: 5px;
	margin: 0 0 8px;
}
.bcmr-sec-title--warn  { color: #b45309; border-bottom-color: #fde68a; }
.bcmr-sec-title--danger { color: #dc2626; border-bottom-color: #fca5a5; }

.bcmr-sum-box {
	background: #f8fafc;
	border-left: 3px solid #3b82f6;
	padding: 10px 14px;
	font-size: .875rem;
	line-height: 1.55;
	border-radius: 0 6px 6px 0;
	color: #374151;
}

.bcmr-reason-box {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: .875rem;
	line-height: 1.55;
	color: #374151;
}

/* Lists */
.bcmr-clean-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bcmr-clean-list li {
	padding: 6px 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: .875rem;
	line-height: 1.45;
}
.bcmr-clean-list li:last-child { border-bottom: none; }

/* Tables */
.bcmr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .85rem;
}
.bcmr-table th {
	background: #eff6ff;
	color: #1e3a8a;
	font-weight: 700;
	padding: 6px 10px;
	border: 1px solid #dbeafe;
	text-align: left;
}
.bcmr-table td {
	padding: 6px 10px;
	border: 1px solid #e5e7eb;
	vertical-align: top;
}
.bcmr-table tr:nth-child(even) td { background: #f9fafb; }

/* Severity / priority badges */
.bcmr-sev {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 99px;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-right: 4px;
}
.bcmr-sev--high   { background: #fee2e2; color: #b91c1c; }
.bcmr-sev--medium { background: #fef3c7; color: #b45309; }
.bcmr-sev--low    { background: #f0fdf4; color: #15803d; }

/* Legitimacy badges */
.bcmr-leg-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 99px;
	font-weight: 700;
	font-size: .85rem;
	margin-bottom: 8px;
}
.bcmr-leg--ok     { background: #dcfce7; color: #15803d; }
.bcmr-leg--warn   { background: #fef3c7; color: #b45309; }
.bcmr-leg--danger { background: #fee2e2; color: #b91c1c; }

/* Impact pills (decisions) */
.bcmr-impact-pill {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 99px;
	font-size: .75rem;
	font-weight: 600;
}
.bcmr-impact-pill--cost     { background: #fee2e2; color: #b91c1c; }
.bcmr-impact-pill--schedule { background: #fef3c7; color: #b45309; }
.bcmr-impact-pill--scope    { background: #ede9fe; color: #6d28d9; }
.bcmr-impact-pill--none     { background: #f3f4f6; color: #6b7280; }

/* Carried-over marker */
.bcmr-carried { color: #9333ea; font-size: .8rem; }
.bcmr-status  { color: #9ca3af; font-size: .8rem; }
.bcmr-muted   { color: #9ca3af; font-size: .8rem; }

/* ── Result action buttons ────────────────────────────────── */
.bcmr-wrap .bcdr-result-actions {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--bca-border, #e5e7eb);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Empty state inside multiselect dropdown */
.bcdr-ms__empty {
	padding: 10px 14px;
	font-size: .8rem;
	color: var(--bca-muted, #9ca3af);
	margin: 0;
}
/* Disabled trigger when no records exist */
.bcdr-ms__trigger--disabled {
	opacity: .55;
	cursor: default;
	pointer-events: none;
}

/* ── Dropzone small variant ───────────────────────────────── */
.bcmr-wrap .bcdr-dropzone--sm {
	min-height: 80px;
	padding: 12px 16px;
}
.bcmr-wrap .bcdr-dropzone__icon--sm { width: 28px; height: 28px; }

/*
 * Shared draw-request.css uses a full-bleed invisible file input (inset:0, z-index:1).
 * Drag events then target <input type="file">, which does not accept OS file drops reliably.
 * Clip the input to a 1px box; <label for="id"> still opens the picker on click, and dragover/drop
 * hit the dashed zone (SVG / label surface) like Draw Request’s <div> dropzones.
 */
.bcmr-wrap .bcdr-dropzone .bcdr-file-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	inset: auto !important;
	left: 0 !important;
	top: 0 !important;
	z-index: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
