/* BAC Insurance Documents — Frontend widget styles */

.bac-docs-widget {
	margin: 0 0 24px;
}

/* ---- Bulk view: per-insurer section ---- */
.bac-insurer-section {
	margin-bottom: 36px;
}

.bac-insurer-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.25em;
	font-weight: 700;
	color: #003366;
	margin: 0;
	padding: 10px 14px 10px 0;
	border-bottom: 2px solid #003366;
	cursor: pointer;
	user-select: none;
}

.bac-accordion-arrow {
	font-size: 0.7em;
	flex-shrink: 0;
	margin-left: 10px;
	transition: transform 0.2s ease;
	display: inline-block;
}

.bac-insurer-title[aria-expanded="true"] .bac-accordion-arrow {
	transform: rotate(90deg);
}

.bac-insurer-body {
	margin-top: 12px;
}

/* ---- Heading ---- */
.bac-docs-heading {
	margin: 0 0 12px;
	font-size: 1.4em;
	font-weight: 700;
}

.bac-docs-sub-heading {
	font-size: 1.1em !important;
	font-weight: 600 !important;
	color: #F26727 !important;
	margin: 6px 0 8px !important;
	text-transform: none !important;
}

.bac-docs-sub-text {
	font-size: 0.95em;
	color: #555;
	margin: 0 0 20px;
	line-height: 1.6;
	font-style: italic;
}

.bac-docs-insurer {
	font-size: 1.05em;
	font-weight: 600;
	color: #555;
	margin: 0 0 14px;
}

/* ---- Notice messages ---- */
.bac-docs-notice {
	padding: 14px 16px;
	background: #f8f9fa;
	border-left: 4px solid #ccd0d4;
	color: #555;
	border-radius: 0 3px 3px 0;
}

.bac-docs-editor-notice {
	border-left-color: #0073aa;
	font-size: 13px;
	line-height: 1.6;
}

.bac-docs-editor-notice code {
	background: #e8eef5;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 12px;
}

/* ---- Tab navigation ---- */
.bac-doc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid #003366;
	margin-bottom: 0;
	padding-bottom: 0;
}

.bac-doc-tab {
	padding: 10px 22px !important;
	background: #e8ecf0;
	border: 1px solid #ccd0d4;
	border-bottom: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	border-radius: 4px 4px 0 0;
	transition: background 0.15s ease;
	position: relative;
	bottom: -2px;
	line-height: 1;
}

.bac-doc-tab:hover {
	background: #d4dae0;
}

.bac-doc-tab.active {
	background: #003366;
	color: #fff;
	border-color: #003366;
	z-index: 1;
}

/* ---- Tab panels ---- */
.bac-tab-panel {
	border: 1px solid #e0e4e8;
	border-top: none;
	border-radius: 0 0 4px 4px;
	overflow-x: auto;
	padding: 10px 16px;
}

/* ---- Documents table ---- */
.bac-docs-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

/* Column widths: Risk Class | Effective Date | Version | Download */
.bac-docs-table thead th:nth-child(1) { width: 35%; }  /* Risk Class */
.bac-docs-table thead th:nth-child(2) { width: 15%; }  /* Effective Date */
.bac-docs-table thead th:nth-child(3) { width: 35%; }  /* Version */
.bac-docs-table thead th:nth-child(4) { width: 15%; }  /* Download */

.bac-docs-table thead th {
	background: #003366;
	color: #fff;
	padding: 12px 16px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	white-space: nowrap;
}

.bac-docs-table tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid #e8ecf0;
	font-size: 14px;
	vertical-align: middle;
}

.bac-docs-table tbody tr:last-child td {
	border-bottom: none;
}

.bac-docs-table tbody tr:nth-child(even) {
	background: #f5f7fa;
}

.bac-docs-table tbody tr:hover {
	background: #edf2f7;
}

/* Download button */
.bac-download-btn {
	display: inline-block;
	padding: 7px 16px;
	background: #003366;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 4px;
	letter-spacing: 0.3px;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.bac-download-btn:hover,
.bac-download-btn:focus {
	background: #004a99;
	color: #fff !important;
	text-decoration: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
	.bac-docs-table thead th:nth-child(2),
	.bac-docs-table tbody td:nth-child(2) {
		display: none; /* Hide Effective Date on small screens */
	}

	.bac-docs-table thead th,
	.bac-docs-table tbody td {
		padding: 10px 12px;
		font-size: 13px;
	}

	.bac-doc-tab {
		padding: 8px 14px;
		font-size: 13px;
	}
}
