/* SC Public Pleadings – TABLE LIST MODE */
.pp-section {
	--pp-gap: 12px;
	--pp-br: 14px;
	--pp-border: #e7e7ef;
}

/* Search Bar */
.pp-section .pp-bar {
	display:flex;
	gap:var(--pp-gap);
	flex-wrap:wrap;
	align-items:center;
	margin-bottom:10px;
}

.pp-section .pp-field {
	position:relative;
	flex:1 1 320px;
}

.pp-section .pp-field input {
	width:100%;
	padding:10px 34px 10px 12px;
	border:1px solid var(--pp-border);
	border-radius:var(--pp-br);
	background:#fff;
}

.pp-section .pp-clear {
	position:absolute;
	right:8px;
	top:50%;
	transform:translateY(-50%);
	border:0;
	background:transparent;
	font-size:16px;
	cursor:pointer;
}

.pp-section .pp-status {
	margin:4px 0 12px;
	opacity:.8;
}

/* ============================
   TABLE
   ============================ */

.pp-section table.pp-table {
	width:100%;
	border-collapse:collapse;
	table-layout:fixed;
	border:1px solid var(--pp-border);
	border-radius:var(--pp-br);
	overflow:hidden;
}

/* Header */
.pp-section .pp-table thead th {
	text-align:left;
	padding:12px 14px;
	background:#f5f5fa;
	border-bottom:2px solid var(--pp-border);
	font-size:.95rem;
	font-weight:600;
}

/* Body */
.pp-section .pp-table td {
	padding:12px 14px;
	border-bottom:1px solid #eee;
	vertical-align:top;
}

/* G.R. Number column (22%) */
.pp-section .pp-table th:nth-child(1),
.pp-section .pp-table td:nth-child(1) {
	width:22%;
	white-space:nowrap;
	font-weight:600;
}

/* Title column (58%) */
.pp-section .pp-table th:nth-child(2),
.pp-section .pp-table td:nth-child(2) {
	width:58%;
}

.pp-section .pp-table td:nth-child(2) a {
	color:#1d3a6c;
	font-weight:600;
	text-decoration:none;

	display:-webkit-box;
	-webkit-line-clamp:2;
	-webkit-box-orient:vertical;
	overflow:hidden;
}

/* Date column (20%) */
.pp-section .pp-table th:nth-child(3),
.pp-section .pp-table td:nth-child(3) {
	width:20%;
	white-space:nowrap;
	opacity:.9;
}

/* Hover */
.pp-section .pp-table tbody tr:hover td {
	background:#fafafa;
}

/* No Results */
.pp-section .pp-empty {
	padding:16px;
	text-align:center;
	opacity:.7;
}

/* ==========================================
   MOBILE RESPONSIVE FIX (Major Improvements)
   ========================================== */
   @media (max-width:600px) {

	/* Hide header */
	.pp-section .pp-table thead {
		display:none;
	}

	/* Block rows */
	.pp-section .pp-table tr {
		display:block;
		padding:12px 0;
		border-bottom:1px solid #eee;
	}

	/* Stack cells */
	.pp-section .pp-table td {
		display:block;
		padding:6px 0;
		width:100% !important;     /* all cells full width */
		white-space:normal;
	}

	/* OVERRIDE column widths on mobile */
	.pp-section .pp-table th,
	.pp-section .pp-table td {
		width:100% !important;     /* kill the 22/58/20 split */
	}

	/* G.R. number on top */
	.pp-section .pp-table td:nth-child(1) {
		font-weight:700;
		font-size:1rem;
		margin-bottom:4px;
	}

	/* Title below – full width + 2-line clamp */
	.pp-section .pp-table td:nth-child(2) a {
		font-size:.95rem;
		font-weight:600;
		display:-webkit-box !important;
		-webkit-line-clamp:2;
		-webkit-box-orient:vertical;
		overflow:hidden;
		white-space:normal;
		margin-bottom:4px;
	}

	/* Date last */
	.pp-section .pp-table td:nth-child(3) {
		font-size:.85rem;
		opacity:.7;
	}


    /* Force Title column to full width on mobile */
    .pp-section .pp-table td:nth-child(2),
    .pp-section .pp-table th:nth-child(2) {
        width:100% !important;
    }
}
