/* ─────────────────────────────────────────────────────────────────────────
	 1) Container & Tab Headers
───────────────────────────────────────────────────────────────────────── */
#form-summary-container {
	width: 530px;
}

#summary-tabs .summary-heading {
	font-size: 25px !important;
	align-self: center !important;
}

/* The outermost wrapper */
#summary-tabs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-bottom: 1rem;
	list-style: none;
}

/* Each tab item is 100% width initially, with its own top+bottom border */
.tab-item {
	margin: 0;
}

/* Flex‐based header: title on left, icons on right */
.tab-item .tab-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	background-color: #f9f9f9;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
}

/* Hover state darkens slightly */
.tab-item .tab-header:hover {
	background-color: #f1f1f1;
}

/* The “active” tab: white background and a thicker blue underline */
.tab-item.active .tab-header {
	background-color: #fff;
	border-bottom: 2px solid #007BFF;
}

/* ─────────────────────────────────────────────────────────────────────────
	 2) Titles & Icons
───────────────────────────────────────────────────────────────────────── */

/* Page name text */
.tab-title {
	text-transform: capitalize;
	font-weight: bold;
	font-size: 1rem;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 70%;
}

/* Container for both icons, spaced slightly apart */
.tab-actions {
	display: flex;
	align-items: center;
}

/* Edit icon (pencil) */
.edit-icon {
	font-size: 1rem;
	color: #555;
	margin-left: 0.75rem;
}

.edit-icon:hover {
	color: #007BFF;
}

/* View icon (down arrow) */
.view-icon {
	font-size: 1rem;
	color: #555;
	margin-left: 0.5rem;
}

.view-icon:hover {
	color: #007BFF;
}

/* ─────────────────────────────────────────────────────────────────────────
	 3) Tab Panes & Tables
───────────────────────────────────────────────────────────────────────── */

/* Container for all tab panes */
.tabs-content {
	margin-top: 0.5rem;
}

/* Each pane is hidden by default; .active panes are visible */
.tab-content {
	display: none;
	border: 1px solid #ccc;
	border-top: none;
	padding: 1rem;
	background-color: #fff;
}

.tab-content.active {
	display: block;
}

/* Table cells: thin border, padding, consistent font */
.summary-table {
	display: flex;
	flex-wrap: wrap;
	/* gap: 10px; */
}

.summary-row {
	flex: 1 1 calc(50% - 10px);
	/* Two columns with gap accounted */
	/* background-color: #f0f0f0; */
	border: 1px solid #ccc;
	box-sizing: border-box;
}

.summary-row-long {
	flex: 1 1 100%;
}

.summary-row-label {
	background: #EAF2FA;
	color: black;
	padding: 10px;
	margin: 0px;
}

.summary-row-value {
	padding: 10px;
	padding-left: 20px;
	background: #fff;
	margin: 0;
}

.prev-edit-icon {
	position: relative;
	top: 10px;
	padding: 10px !important;
	font-size: 14px !important;
	background-color: rgb(28, 55, 100) !important;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.prev-edit-icon:hover {
	background-color: #007bff !important;
}

.tab-item.open .view-icon {
	transform: rotate(180deg);
	transition: transform 0.3s ease;
}

.view-icon {
	transition: transform 0.3s ease;
}

/* ─────────────────────────────────────────────────────────────────────────
	 4) Responsive Behavior
───────────────────────────────────────────────────────────────────────── */

/* On very narrow screens, allow title to wrap and icons to stack */
@media (max-width: 480px) {
	.tab-item .tab-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.tab-actions {
		margin-top: 0.25rem;
	}
}