/**
 * Display Docs — frontend styles.
 *
 * A clean, professional look suited to an official documents/notifications
 * table: deep navy header, crisp white body, a single accent color for
 * actions, generous spacing. No gradients — flat, high-contrast, easy to
 * scan at speed (which is what most visitors are doing on a jobs portal).
 */

.frpd-wrap {
	margin: 1.5em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------------------------------------------------------------------
   Search box
--------------------------------------------------------------------- */
.frpd-search {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.frpd-search-input {
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	min-width: 240px;
	flex: 1 1 auto;
	font-size: 14px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.frpd-search-input:focus {
	outline: none;
	border-color: #0f3d5f;
	box-shadow: 0 0 0 3px rgba(15,61,95,0.12);
}
.frpd-search-btn {
	padding: 10px 22px;
	border: 1px solid #0f3d5f;
	background: #0f3d5f;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.15s;
}
.frpd-search-btn:hover { background: #0b2c46; }
.frpd-search-clear {
	align-self: center;
	font-size: 13px;
	color: #b91c1c;
	text-decoration: none;
	font-weight: 600;
}
.frpd-search-clear:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Table shell
--------------------------------------------------------------------- */
.frpd-table-scroll {
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #d7dee5;
	box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}

/* Fixed layout (like a Gutenberg table) — columns keep a set share of the
   available width instead of growing with their content, so the table
   never has to scroll sideways on narrow screens. */
.frpd-wrap .frpd-table {
	width: 100% !important;
	max-width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse;
	font-size: 14.5px;
	background: #fff;
}

/* Header */
.frpd-table thead th {
	text-align: left;
	background: #0f3d5f;
	color: #ffffff;
	padding: 14px 18px;
	font-weight: 600;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
	border-bottom: 3px solid #0b2c46;
}

/* Body */
.frpd-table tbody td {
	padding: 13px 18px;
	border-bottom: 1px solid #e6eaef;
	vertical-align: middle;
	color: #1e293b;
}
.frpd-table tbody tr:nth-child(even) { background: #f7f9fb; }
.frpd-table tbody tr:nth-child(odd) { background: #ffffff; }
.frpd-table tbody tr:hover { background: #eaf1f7; }
.frpd-table tbody tr:last-child td { border-bottom: none; }

.frpd-col-name {
	width: 52%;
	font-weight: 500;
	word-break: break-word;
	overflow-wrap: break-word;
}
.frpd-col-date {
	width: 26%;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	word-break: break-word;
}
.frpd-col-date::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #0f3d5f;
	margin-right: 8px;
	vertical-align: middle;
}
.frpd-col-action { width: 22%; text-align: center; }
.frpd-cta-short { display: none; }

/* Click Here button — solid accent, no gradient */
.frpd-click-here {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	background: #b91c1c;
	color: #fff !important;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.15s, transform 0.1s;
}
.frpd-click-here::before { content: "\2193"; font-weight: 700; } /* ↓ */
.frpd-click-here:hover {
	background: #991616;
	transform: translateY(-1px);
	color: #fff !important;
}

/* ---------------------------------------------------------------------
   Empty state
--------------------------------------------------------------------- */
.frpd-empty {
	padding: 24px 20px;
	background: #f7f9fb;
	border: 1px solid #d7dee5;
	border-left: 4px solid #0f3d5f;
	border-radius: 4px;
	color: #475569;
	text-align: center;
	font-size: 14.5px;
}

/* ---------------------------------------------------------------------
   Pagination
--------------------------------------------------------------------- */
.frpd-pagination {
	margin-top: 16px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
}
.frpd-pagination a,
.frpd-pagination span {
	padding: 7px 13px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	text-decoration: none;
	color: #0f3d5f;
	font-size: 13px;
	font-weight: 600;
	background: #fff;
	transition: background 0.15s, border-color 0.15s;
}
.frpd-pagination span.current {
	background: #0f3d5f;
	border-color: #0f3d5f;
	color: #fff;
}
.frpd-pagination a:hover { background: #eaf1f7; border-color: #0f3d5f; }
.frpd-pagination span.dots { border: none; background: transparent; padding: 7px 4px; color: #94a3b8; }

/* ---------------------------------------------------------------------
   Mobile — table stays a real table, fixed-width columns just get
   tighter and the button switches to its short label, so nothing ever
   needs to scroll sideways.
--------------------------------------------------------------------- */
@media (max-width: 600px) {
	.frpd-table { font-size: 13px; }
	.frpd-table thead th,
	.frpd-table tbody td { padding: 10px 8px; }
	.frpd-col-name { width: 45%; }
	.frpd-col-date { width: 30%; font-size: 11.5px; }
	.frpd-col-date::before { width: 5px; height: 5px; margin-right: 5px; }
	.frpd-col-action { width: 25%; }
	.frpd-click-here { padding: 7px 8px; font-size: 10.5px; gap: 3px; }
	.frpd-cta-full { display: none; }
	.frpd-cta-short { display: inline; }
	.frpd-table thead th { font-size: 11px; letter-spacing: 0.03em; }
}
