/**
 * Contract Awards table — supplemental styles.
 * Depends on cso-table.css for base table variables.
 *
 * @package Crucible_SAM_Opportunities
 * @since   0.1.3
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.cso-fpds-wrap {
	font-size: 14px;
	line-height: 1.5;
}

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.cso-fpds-filters {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 16px;
}

.cso-fpds-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.cso-fpds-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 180px;
	min-width: 140px;
}

.cso-fpds-field--dates {
	flex: 1 1 320px;
	flex-direction: row;
	align-items: flex-end;
	gap: 6px;
	flex-wrap: wrap;
}

.cso-fpds-field--dates label {
	width: 100%;
}

.cso-fpds-field--dates .cso-fpds-input {
	flex: 1 1 130px;
}

.cso-fpds-date-sep {
	align-self: center;
	color: #6c757d;
	font-size: 12px;
}

.cso-fpds-field label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #495057;
	margin-bottom: 4px;
}

.cso-fpds-input {
	border: 1px solid #ced4da;
	border-radius: 3px;
	padding: 6px 8px;
	font-size: 13px;
	background: #fff;
	transition: border-color 0.15s;
}

.cso-fpds-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba( 0, 115, 170, 0.15 );
}

.cso-fpds-filter-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cso-fpds-count {
	font-size: 12px;
	color: #6c757d;
	margin-left: 4px;
}

/* ── Error notice ─────────────────────────────────────────────────────────── */
.cso-fpds-error {
	background: #fff5f5;
	border-left: 4px solid #dc3232;
	padding: 10px 14px;
	font-size: 13px;
	color: #c0392b;
	margin-bottom: 12px;
	border-radius: 0 3px 3px 0;
}

/* ── Table ───────────────────────────────────────────────────────────────── */
.cso-fpds-table-wrap {
	overflow-x: auto;
}

.cso-fpds-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.cso-fpds-table thead th {
	background: #1a5276;
	color: #fff;
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.cso-fpds-table tbody tr:nth-child( even ) {
	background: #f4f9fd;
}

.cso-fpds-table tbody tr:hover {
	background: #eaf3fa;
}

.cso-fpds-table td {
	padding: 9px 12px;
	border-bottom: 1px solid #e3eaf0;
	vertical-align: top;
}

.cso-fpds-table a {
	color: #0073aa;
	text-decoration: none;
}

.cso-fpds-table a:hover {
	text-decoration: underline;
}

.cso-fpds-row-message td {
	text-align: center;
	padding: 24px;
	color: #6c757d;
	font-style: italic;
}

/* NAICS / PSC cell */
.cso-fpds-code {
	display: inline-block;
	background: #e9ecef;
	border-radius: 3px;
	padding: 1px 5px;
	font-size: 11px;
	font-family: monospace;
	font-style: normal;
	margin-right: 4px;
}

.cso-fpds-code--psc {
	background: #d1ecf1;
	color: #0c5460;
}

.cso-fpds-desc {
	display: block;
	font-size: 11px;
	color: #6c757d;
	margin-top: 2px;
}

/* Agency subtier */
.cso-fpds-subtier {
	display: block;
	font-size: 11px;
	color: #6c757d;
	margin-top: 2px;
}

/* Amount */
.cso-fpds-col-amount {
	white-space: nowrap;
	text-align: right;
}

.cso-fpds-col-date {
	white-space: nowrap;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.cso-fpds-pagination {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	padding: 12px 0;
	font-size: 13px;
}

.cso-fpds-page-btn {
	min-width: 34px;
	text-align: center;
	padding: 4px 8px;
}

.cso-fpds-page-btn--current {
	background: #1a5276;
	color: #fff;
	border-color: #1a5276;
	cursor: default;
}

.cso-fpds-ellipsis {
	padding: 0 4px;
	color: #6c757d;
}

.cso-fpds-pagination-info {
	margin-left: 8px;
	font-size: 12px;
	color: #6c757d;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
	.cso-fpds-field {
		flex: 1 1 100%;
	}
	.cso-fpds-field--dates {
		flex: 1 1 100%;
	}
	.cso-fpds-col-naics,
	.cso-fpds-col-pop {
		display: none;
	}
}
