/* Content Files — cards manager. Mirrors the B2B Clients card look (Content/b2b-clients.css)
   with clean op-file-* names. Cards-only (no list toggle) by design. */

.op-files-upload {
	border: 2px dashed #cfd3db;
	border-radius: 10px;
	padding: 14px 16px;
	background: #fbfbfc;
	transition: border-color .15s ease, background .15s ease;
}

.op-files-upload--drag {
	border-color: #5a4fcf;
	background: #efeefb;
}

.op-files-browse {
	color: #5a4fcf;
	cursor: pointer;
	text-decoration: underline;
}

.op-files-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.op-file-card {
	border: 1px solid #e6e8ec;
	border-radius: 11px;
	padding: 14px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: box-shadow .14s ease, border-color .14s ease;
}

	.op-file-card:hover {
		box-shadow: 0 6px 20px rgba(20, 24, 40, .09);
		border-color: #d7d9e0;
	}

.op-file-card__top {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.op-file-icon {
	width: 40px;
	height: 40px;
	border-radius: 9px;
	flex: none;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
}

.op-file-meta {
	min-width: 0;
}

.op-file-name {
	font-size: 13.5px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.op-file-sub {
	font-size: 11.5px;
	color: #6b7280;
}

.op-file-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	border-radius: 6px;
	padding: 2px 8px;
	background: #eef0f3;
	color: #5b6270;
}

.op-file-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border-top: 1px solid #eef0f3;
	padding-top: 10px;
	margin-top: auto;
}

.op-files-empty {
	text-align: center;
	color: #6b7280;
	padding: 48px 16px;
}

	.op-files-empty i {
		color: #cfd3db;
		margin-bottom: 12px;
	}

	.op-files-empty p {
		margin: 8px 0;
	}

/* Local skeleton shimmer (in case the global .skeleton-line isn't present on this route) */
.op-file-card .skeleton-line {
	background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%);
	background-size: 400% 100%;
	animation: opFileShimmer 1.2s ease infinite;
	border-radius: 4px;
}

@keyframes opFileShimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

/* ------------------------------------------------------------------
   File picker modal (TinyMCE "Insert file" — Content Files initiative)
   Compact list rows, denser than the manager cards.
   ------------------------------------------------------------------ */
.op-file-picker-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 8px;
	border-bottom: 1px solid #eef0f3;
}

	.op-file-picker-row:last-child {
		border-bottom: 0;
	}

	.op-file-picker-row:hover {
		background: #f7f8fa;
	}

.op-file-picker-icon {
	width: 38px;
	height: 30px;
	border-radius: 6px;
	flex: none;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .02em;
}

.op-file-picker-info {
	flex: 1 1 auto;
	min-width: 0;
}

.op-file-picker-name {
	font-size: 13.5px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.op-file-picker-sub {
	font-size: 11.5px;
	color: #6b7280;
}

.op-file-picker-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
}

.op-file-picker-catselect {
	max-width: 170px;
}
