.single-asset-page,
.asset-library{
	padding-bottom: 64px;
}
/* --- Assettype taxonomy archive --- */
.assettype-archive .assettype-header .title {
	margin: 0 0 4px;
}

.assettype-archive .assettype-desc {
	color: var(--tk-text-secondary, #5F5E5A);
	margin: 0;
}

.assettype-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.assettype-grid {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 16px;
	align-items: start;
}

.assettype-col .col-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}

.assettype-post-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 70vh;
	overflow-y: auto;
}

.assettype-post-item .assettype-post-link {
	display: flex;
	gap: 12px;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid var(--tk-card-border, rgba(0, 0, 0, 0.08));
	background-color: var(--tk-card-bg, #fff);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}

.assettype-post-item .assettype-post-link:hover {
	border-color: var(--tk-card-border-hover, rgba(0, 0, 0, 0.18));
}

.assettype-post-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
}

.assettype-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.assettype-post-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
}

.assettype-post-meta {
	margin: 0 0 6px;
	font-size: 12px;
	color: var(--tk-text-muted, #888780);
}

.assettype-post-excerpt {
	margin: 0;
	font-size: 13px;
	color: var(--tk-text-secondary, #5F5E5A);
}

.assettype-pagination {
	margin-top: 12px;
}

.assettype-empty,
.client-empty {
	margin: 0;
	color: var(--tk-text-muted, #888780);
}

.client-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.client-avatar img {
	border-radius: 50%;
}

.client-info .client-name {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
}

.client-row {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--tk-text-secondary, #5F5E5A);
}

.client-row .client-label {
	display: inline-block;
	min-width: 110px;
	color: var(--tk-text-muted, #888780);
	font-weight: 500;
}

.client-ticket-summary {
	padding-top: 12px;
	border-top: 1px solid var(--tk-card-divider, rgba(0, 0, 0, 0.06));
}

.client-ticket-summary h4 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.client-ticket-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--primary-color);
	text-decoration: none;
}

/* --- Add Asset button --- */
.add-asset-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 8px;
	background-color: var(--primary-color);
	color: #fff;
	border: 0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.add-asset-btn:hover {
	opacity: 0.9;
}

.add-asset-btn .plus {
	font-size: 16px;
	line-height: 1;
}

/* --- Add Asset modal --- */
.asset-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}

.asset-modal.is-open {
	display: flex;
}

.asset-modal-dialog {
	background-color: var(--tk-card-bg, #fff);
	border-radius: 12px;
	width: 100%;
	max-width: 520px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	max-height: 90vh;
	overflow-y: auto;
}

.asset-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--tk-card-divider, rgba(0, 0, 0, 0.08));
}

.asset-modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.asset-modal-close {
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--tk-text-muted, #888780);
}

.asset-modal-body {
	padding: 20px;
}

.asset-modal-body .field {
	margin-bottom: 14px;
}

.asset-modal-body label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--tk-text-secondary, #5F5E5A);
}
.asset-modal-body select,
.asset-modal-body input[type="text"],
.asset-modal-body textarea,
.asset-modal-body input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--rad);
    border: 1px solid var(--tk-card-border, rgba(0, 0, 0, 0.15));
    background-color: var(--tk-input-bg, #fff);
    color: inherit;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.asset-modal-body textarea {
	min-height: 110px;
	resize: vertical;
}

.asset-modal-body .field-hint {
	font-size: 12px;
	color: var(--tk-text-muted, #888780);
	margin-top: 4px;
}

.asset-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 16px 0px 0px;
	border-top: 1px solid var(--tk-card-divider, rgba(0, 0, 0, 0.08));
}

/* .asset-modal-footer .btn-cancel,
.asset-modal-footer .btn-submit {
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 0;
}

.asset-modal-footer .btn-cancel {
	background-color: transparent;
	border: 1px solid var(--tk-card-border, rgba(0, 0, 0, 0.15));
	color: inherit;
}

.asset-modal-footer .btn-submit {
	background-color: var(--primary-color);
	color: #fff;
}
 */
.asset-modal-footer .btn-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.asset-modal-feedback {
	margin: 0 20px 12px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	display: none;
}

.asset-modal-feedback.is-error {
	display: block;
	background-color: #fdecec;
	color: #a93636;
}

.asset-modal-feedback.is-success {
	display: block;
	background-color: #e7f6ea;
	color: #256a36;
}

/* --- Asset Library (page-assets.php) --- */
.asset-library .library-desc {
	margin: 0;
	color: var(--tk-text-secondary, #5F5E5A);
	font-size: 14px;
	max-width: 760px;
}

.library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.library-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: inherit;
	text-decoration: none;
}

.library-card-preview {
	width: 100%;
	aspect-ratio: 367 / 240;
	border-radius: 4px;
	overflow: hidden;
	background-color: #d6d6d6;
	display: flex;
	align-items: center;
	justify-content: center;
}

.library-card-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.library-card:hover .library-card-preview img {
	transform: scale(1.02);
}
.file-icon-placeholder,
.library-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #EAEBEC 0%, #4F4E57 100%);
    mask-image: url('/wp-content/themes/tradievolt/assets/img/tradievoltlogo.svg');
    mask-size: 40%;
    mask-repeat: no-repeat;
    mask-position: center;
}

.library-card-info {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.library-card-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.library-card-title {
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 500;
	color: var(--text-color);
}

.library-card-meta {
	margin: 0;
	font-size: 12px;
	color: var(--text-gray);
	display: flex;
	align-items: center;
	gap: 8px;
}
.library-card-meta svg circle{
	fill: var(--text-gray);
}
.library-empty {
	color: var(--tk-text-muted, #888780);
}

/* --- Taxonomy archive (asset grid) --- */
.assets-grid-page {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

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

.asset-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.asset-card-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	overflow: hidden;
	background-color: #d6d6d6;
	text-decoration: none;
	color: inherit;
}

.asset-card-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.asset-card-preview .asset-card-pdf {
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
	pointer-events: none;
}

.asset-card-preview .file-icon-placeholder {
	width: 64px;
	height: 64px;
}

.asset-card-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 4px;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 6px;
	padding: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	z-index: 2;
}

.asset-card-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 0;
	background: transparent;
	color: var(--tk-text-secondary, #5F5E5A);
	cursor: pointer;
	border-radius: 4px;
	padding: 0;
}

.asset-card-action:hover {
	background-color: rgba(0, 0, 0, 0.06);
	color: var(--tk-text-primary, #1a1a1a);
}

.asset-card-menu {
	position: absolute;
	top: 44px;
	right: 10px;
	min-width: 200px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 6px;
	display: none;
	z-index: 3;
}

.asset-card.menu-open .asset-card-menu {
	display: block;
}

.asset-card-menu-name {
	padding: 8px 10px 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--tk-text-secondary, #5F5E5A);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.asset-card-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	background: transparent;
	color: var(--tk-text-primary, #1a1a1a);
	font-size: 13px;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	border-radius: 6px;
}

.asset-card-menu-item:hover,
.asset-card-menu-item.is-active {
	background-color: rgba(0, 0, 0, 0.04);
}

.asset-card-menu-item .menu-ico {
	color: var(--tk-text-muted, #888780);
	flex-shrink: 0;
}

.asset-card-menu-item .menu-arrow {
	margin-left: auto;
	color: var(--tk-text-muted, #888780);
}

.asset-card-menu-meta {
	margin-top: 6px;
	padding: 8px 10px 4px;
	font-size: 11px;
	color: var(--tk-text-muted, #888780);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.asset-card-submenu {
	position: absolute;
	top: 0;
	left: 100%;
	margin-left: 6px;
	min-width: 160px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 6px;
	display: none;
}

.asset-card.submenu-open .asset-card-submenu {
	display: block;
}

.asset-card-submenu-item {
	display: block;
	padding: 8px 10px;
	font-size: 13px;
	color: var(--tk-text-primary, #1a1a1a);
	text-decoration: none;
	border-radius: 6px;
}

.asset-card-submenu-item:hover {
	background-color: rgba(0, 0, 0, 0.04);
}

.asset-card-info {
	display: block;
	color: inherit;
	text-decoration: none;
}

.asset-card-title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.asset-card-meta {
	margin: 0;
	font-size: 12px;
	color: var(--tk-text-muted, #888780);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.asset-card-meta .dot {
	margin: 0 4px;
}

@media (max-width: 600px) {
	.asset-card-submenu {
		left: auto;
		right: 100%;
		margin-left: 0;
		margin-right: 6px;
	}
}

/* --- Single asset page --- */
.single-asset-page {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.single-asset-top {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 16px;
	row-gap: 6px;
	align-items: center;
}

.single-asset-breadcrumb {
	grid-column: 1 / 2;
	font-size: 13px;
	color: var(--tk-text-muted, #888780);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.single-asset-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.single-asset-breadcrumb a:hover {
	color: var(--tk-text-primary, #1a1a1a);
}

.single-asset-breadcrumb .sep {
	opacity: 0.6;
}

.single-asset-title {
	grid-column: 1 / 2;
	margin: 0;
	font-size: var(--main-title);
}

.request-changes-btn {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: var(--rad);
    transition: background-color 0.3s ease;
    text-decoration: none;
    line-height: 1;
    font-weight: 500;
    font-size: 14px;
    -webkit-font-smoothing: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.request-changes-btn:hover {
	background-color: color-mix(in srgb, var(--primary-color) 90%, #111111);
}

.request-changes-btn .plus {
	font-size: 16px;
	line-height: 1;
}

.active-ticket-notice {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 8px;
	background-color: rgba(245, 158, 11, 0.12);
	color: rgba(245, 158, 11, 1);
	border: 1px solid rgba(245, 158, 11, 0.35);
	font-size: 13px;
	font-weight: 600;
	cursor: help;
	width: fit-content;
}

.single-asset-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) min(450px,100%);
	gap: 20px;
	align-items: start;
}

/* Version accordion */
.version-list {
    background-color: var(--white-color);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.version-item {
	border-top: inherit;
}

.version-item:first-child {
	border-top: 0;
}

.version-item > summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 24px;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
}

.version-item > summary::-webkit-details-marker {
	display: none;
}

.version-label {
	font-weight: 500;
	color: var(--text-color);
	font-family: var(--title-family);
	font-size: 16px;
}

.version-meta {
	color: var(--text-gray);
	font-size: 14px;
	flex: 1;
}

/* Push the "Download all" button + toggle chevron to the right edge of the
   summary regardless of whether .version-meta is rendered. */
.version-item > summary > .version-label {
	margin-right: auto;
}

.version-download-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid var(--border-color, #EAEBEC);
	color: var(--text-color, #111);
	font-size: 13px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-family: var(--font-family, inherit);
	transition: background 0.15s ease, border-color 0.15s ease;
}
.version-download-all:hover {
	background: var(--body-color, #F9FAFB);
	border-color: var(--text-color, #111);
}
.version-download-all svg {
	display: block;
}
.version-download-all.is-loading {
	pointer-events: none;
	color: var(--text-gray, #4F4E57);
}
.version-download-all.is-loading svg {
	display: none;
}
.version-download-all.is-loading::before {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid color-mix(in srgb, var(--text-color, #111) 20%, transparent);
	border-top-color: var(--primary-color, #185FA5);
	border-radius: 50%;
	animation: tv-spin 0.7s linear infinite;
	flex-shrink: 0;
}

.version-toggle {
	width: 14px;
	height: 14px;
	position: relative;
	flex-shrink: 0;
}

.version-toggle::before,
.version-toggle::after {
	content: '';
	position: absolute;
	background-color: var(--text-color);
}

.version-toggle::before {
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	transform: translateY(-50%);
}

.version-toggle::after {
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	transform: translateX(-50%);
	transition: transform 0.15s ease;
}

.version-item[open] .version-toggle::after {
	transform: translateX(-50%) scaleY(0);
}

.version-body {
	padding: 4px 20px 20px;
}
/* Files within a version sit on one row, three per line. */
.version-body .sub-grid-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.version-body .assets-lib-card .assets-lib-media object {
    width: 100%;
    height: 100%;
}
.version-preview {
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	background-color: #ececec;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
}

.version-preview img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 320px;
	object-fit: contain;
}

.version-preview .version-pdf {
	width: 100%;
	height: 480px;
	border: 0;
	display: block;
	background-color: #fff;
}

.version-preview .version-pdf-fallback {
	margin: 0;
	padding: 24px;
	color: var(--tk-text-muted, #888780);
	font-size: 13px;
	text-align: center;
}

.version-preview .file-icon-placeholder {
	width: 96px;
	height: 96px;
}

/* File-type icon inside the version preview slot - replaces the generic
   TradieVolt-logo placeholder for non-image / non-PDF files (DOC, XLS,
   PPT, ZIP, …). Emitted by $render_preview in single-asset.php.
   Uses a thin stroke and a muted tone so it reads as a subtle placeholder
   rather than a heavy graphic. */
.assets-lib-media .assets-lib-file-icon--preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #F2F3F4 0%, #D9DADE 100%);
	color: #6B7280;
}
.assets-lib-media .assets-lib-file-icon--preview svg {
	width: 44%;
	max-width: 104px;
	height: auto;
}

.version-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.version-name {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.version-type {
	margin: 0;
	font-size: 13px;
	color: var(--tk-text-muted, #888780);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.version-download {
	align-self: flex-start;
	margin-top: 4px;
	font-size: 13px;
	color: var(--primary-color, #2563eb);
	text-decoration: none;
	font-weight: 500;
}

.version-empty {
	padding: 24px;
	text-align: center;
	color: var(--tk-text-muted, #888780);
}

/* Right side column */
.single-asset-side {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.client-panel,
.ticket-panel {
	padding: 24px;
}

.client-panel .client-card {
	margin-bottom: 0;
}

.panel-title {
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
	color: var(--text-color);
}

.ticket-panel-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 70vh;
	overflow-y: auto;
}

.ticket-panel-empty {
	margin: 0;
	color: var(--tk-text-muted, #888780);
	font-size: 13px;
}

.single-asset-side .box-wrapper-item + .box-wrapper-item {
	margin-top: 0;
}

.asset-video-panel {
	padding: 24px;
}

.asset-video-panel .panel-title {
	margin-bottom: 12px;
}

.asset-video-trigger {
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
	cursor: pointer;
	border-radius: var(--rad);
	overflow: hidden;
	background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 30%, #1a0303), #000);
	color: #fff;
	position: relative;
	aspect-ratio: 16 / 9;
	font-family: inherit;
}

.asset-video-trigger:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

.asset-video-trigger-thumb {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.asset-video-trigger-icon {
	width: 56px;
	height: 56px;
	color: rgba(255, 255, 255, 0.95);
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
	transition: transform 0.2s ease;
}

.asset-video-trigger:hover .asset-video-trigger-icon,
.asset-video-trigger:focus-visible .asset-video-trigger-icon {
	transform: scale(1.12);
}

.asset-video-trigger-label {
	position: absolute;
	left: 14px;
	bottom: 12px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.asset-video-modal[hidden] {
	display: none;
}

.asset-video-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.asset-video-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(2px);
}

.asset-video-modal-dialog {
	position: relative;
	width: min(92vw, 960px);
	max-height: 90vh;
	background: #000;
	border-radius: var(--rad);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.asset-video-modal-player {
	display: block;
	width: 100%;
	max-height: 90vh;
	background: #000;
}

.asset-video-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: 0;
	color: #fff;
	padding: 6px;
	cursor: pointer;
	line-height: 0;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.asset-video-modal-close:hover {
	opacity: 1;
}

body.asset-video-open {
	overflow: hidden;
}

.ticket-status-pill {
    align-self: flex-start;
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background-color: #CCCCCC;
    color: #111111;
    display: inline-block;
    line-height: 1.4;
}

.related-ticket.status-new .ticket-status-pill,
.related-ticket.status-active .ticket-status-pill,
.related-ticket.status-open .ticket-status-pill {
	background-color: #DF1515;
	color: #fff;
}
.related-ticket.tickets-card{
	display: flex;
    flex-direction: column;
    gap: 5px;
}
.related-ticket-tags {
	font-size: 12px;
	color: var(--tk-text-muted, #888780);
}

.related-ticket-title {
	margin: 2px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.related-ticket-desc {
	margin: 0;
	font-size: 13px;
	color: var(--tk-text-secondary, #5F5E5A);
}

.related-ticket-time {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--tk-text-muted, #888780);
}

/* Ticket owner (customer) chip on the asset-page ticket cards. */
.ticket-owner-name {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 500;
	color: var(--tk-text-secondary, #5F5E5A);
}

.ticket-owner-name svg {
	flex-shrink: 0;
	color: var(--tk-text-muted, #888780);
}
/* Tickets Card */
/* Dashboard Tickets */
.dashboard-tickets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    flex: 1;
    min-height: 0;
    /* height: 500px; */
}
.dashboard-tickets-grid.ticketing-grid--three{
	grid-template-columns: repeat(3, 1fr);
}
.dashboard-tickets-item {
    padding: 0 !important;
    border: 1px solid var(--border-color);
    border-radius: var(--rad);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: clip;
    --dashboard-bg-color: var(--white-color);
    --dashboard-header-color: var(--border-color);
    --dashboard-primary-color: var(--primary-color);
	background-color: transparent;
}
.dashboard-tickets-item.dashboard-tickets-unassigned{
	--dashboard-header-color: color-mix(in srgb, var(--primary-color) 15%, var(--white-color));
    --dashboard-bg-color: color-mix(in srgb, var(--primary-color) 5%, var(--white-color));
    --dashboard-primary-color: var(--primary-color);
}
.dashboard-tickets-item.dashboard-tickets-open {
	--dashboard-header-color: #D9EFE0;
    --dashboard-bg-color: #EDF7F0;
    --dashboard-primary-color: #3B6D11;
}
.dashboard-tickets-item.dashboard-tickets-close {
	--dashboard-bg-color: #F3F2EF;
    --dashboard-header-color: #E5E4DF;
    --dashboard-primary-color: #5F5E5A;
}

.dashboard-tickets-item + .dashboard-tickets-item{
	margin: 0 !important;
}
.dashboard-tickets-head {
    margin-bottom: 0;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--dashboard-header-color);
	color: var(--dashboard-primary-color);
}
summary.dashboard-tickets-head{
	cursor: pointer;
}

.dashboard-tickets-head .ticket-icon {
	--size: 24px;
	flex: 0 0 var(--size);
	width: var(--size);
	height: var(--size);
	margin-right: 8px;
}
.dashboard-tickets-head .ticket-count{
	margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
	align-self: center;
    line-height: 1.2;
}
html.dark-theme .dashboard-tickets-item.dashboard-tickets-open{
	--dashboard-header-color: #091710;
	--dashboard-bg-color: #0d1f14;
	--dashboard-primary-color: #97C459;
}
html.dark-theme .dashboard-tickets-item.dashboard-tickets-close{
	--dashboard-header-color: #141312;
    --dashboard-bg-color: #1c1b19;
    --dashboard-primary-color: #a09e98;
}
html.dark-theme .dashboard-tickets-head .ticket-count{
	background-color: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}
.tickets-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 450px;
    padding-right: 16px;
    overflow: auto;
    /* margin-right: -20px; */
    padding: 12px;
    flex: 1;
    background-color: var(--dashboard-bg-color);
}

.tickets-card {
    padding: 16px 16px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--rad);
    color: inherit;
    text-decoration: none;
    background-color: var(--white-color);
    border-radius: var(--rad);
    /* Anchor the absolutely-positioned .tickets-breadcrumbs (unread dot
       + comment count) so it can sit on the same visual row as the
       ticket-id pill at the top-right of the card. */
    position: relative;
}
.tickets-card:hover{
    background-color: var(--body-color);
}

.tickets-card .tickets-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1;
    /* Sits in the top-right corner, vertically aligned with the
       ticket-id pill's centreline via the card's top padding. */
    position: absolute;
    top: 16px;
    right: 16px;
}
.tickets-card .ticket-id {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
/*     letter-spacing: 0.02em; */
    color: var(--text-gray);
    background: var(--body-color, rgba(0,0,0,0.04));
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    border-radius: 4px;
    padding: 3px 6px;
    margin-bottom: 6px;
    margin-top: 0px;
/*     font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; */
	align-self: flex-start;
}

/* Custom-document (Form #7) indicator - sits inline next to the
   ticket-id chip on cards so staff can spot commission tickets at a
   glance from any list view (kanban, sidebar, dashboard).
   .tv-claim-doc-badge is the Form #9 counterpart: same chip, green
   instead of red, because a claim is already paid and needs no scoping.
   .tv-onboarding-badge is the third: the ticket seeded at signup, in its own
   blue so the three are told apart by colour and not only by reading them.
   .tv-general-enquiry-badge is the fourth, in purple - a question rather than
   work against a document, and the only one of the four whose ticket carries no
   asset at all, so it is the chip that explains an otherwise bare card. */
.tv-custom-doc-badge,
.tv-claim-doc-badge,
.tv-onboarding-badge,
.tv-general-enquiry-badge {
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-color, #b91c1c);
    background: color-mix(in srgb, var(--primary-color, #b91c1c) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color, #b91c1c) 30%, transparent);
    border-radius: 4px;
    padding: 3px 6px;
    margin: 0 0 6px 6px;
    align-self: flex-start;
    white-space: nowrap;
}
.tv-claim-doc-badge {
    color: var(--secondary-color, #008237);
    background: color-mix(in srgb, var(--secondary-color, #008237) 10%, transparent);
    border-color: color-mix(in srgb, var(--secondary-color, #008237) 30%, transparent);
}
.tv-onboarding-badge {
    color: var(--onboarding-color, #1D4ED8);
    background: color-mix(in srgb, var(--onboarding-color, #1D4ED8) 10%, transparent);
    border-color: color-mix(in srgb, var(--onboarding-color, #1D4ED8) 30%, transparent);
}
/* --purple already exists in all three palettes (main.css) with a lighter value
   for dark, so this needs no new token. */
.tv-general-enquiry-badge {
    color: var(--purple, #6d28d9);
    background: color-mix(in srgb, var(--purple, #6d28d9) 10%, transparent);
    border-color: color-mix(in srgb, var(--purple, #6d28d9) 30%, transparent);
}
.tickets-card .tickets-breadcrumbs > span:first-child {
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-unread-dot {
    /* The unread-reply indicator was making ticket cards feel noisy. Hidden
       site-wide via a single CSS rule rather than touching the ~9 PHP render
       sites; flip back to `inline-block` here to restore the badge. */
    display: none;
}
.ticket-comment-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 1;
    color: var(--text-gray, #6b7280);
    flex-shrink: 0;
	margin-left: auto;
}
.ticket-unread-dot ~ .ticket-comment-count svg {
    fill: color-mix(in srgb, var(--secondary-color) 70%, var(--white-color));
    stroke: color-mix(in srgb, var(--secondary-color) 70%, var(--white-color));
}
.ticket-comment-count svg {
    width: 12px;
    height: 12px;
    display: block;
}
/* Who is carrying the ticket - only rendered in the VA board's "Assigned to
others" column (va/tickets.php). Sits above the .ticket-reported divider so it
groups with the card body rather than looking like part of the footer. */
.tickets-card .ticket-assigned-agent {
    display: block;
    margin-top: 6px;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.4;
}

.tickets-card .ticket-reported {
    display: flex;
    gap: 6px;
    white-space: nowrap;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.4;
	position: relative;
	margin-top: 22px;
}
.tickets-card .ticket-reported:before{
	content: '';
	position: absolute;
	top: -10px;
	left: -16px;
	right: -16px;
	height: 1px;
	background-color: var(--border-color);
}
.customer-ticketing {
    min-height: 0px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1;
}
.customer-ticketing .dashboard-tickets-grid.ticketing-grid{
	height: 0px;
}
.customer-ticketing .tickets-card-list{
/* 	max-height: unset; */
	max-height: calc(var(--vh,100vh) - var(--off-top,250px) - var(--head-height, 53px));
}


/* Customer Assets Library Card */
.sub-grid-row {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px 10px;
}

.assets-lib-card {
    display: flex;
    gap: 12px;
    flex-direction: column;
	position: relative;
}

.assets-lib-card .assets-lib-media{
    width: 100%;
    height: auto;
    aspect-ratio: 35/24;
    border-radius: 4px;
	overflow: hidden;
    background-color: #B0AFB4;
    position: relative;
}
.assets-lib-card .assets-lib-media object{
	width: 100%;
	height: 100%;
}
/* When the thumbnail is rendered as an <a> (so clicking it opens the
   preview modal), neutralise the default anchor behaviour without losing
   layout from the rule above. */
a.assets-lib-media {
    display: block;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.assets-lib-card .assets-lib-media::before {
    background-color: #111111;
    opacity: 0;
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}
.assets-lib-card:hover .assets-lib-media::before{
    opacity: 0.4;
}
.assets-lib-card .assets-lib-media img{
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
	border: 1px solid var(--border-color);
}
.assets-lib-card .controls{
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
	z-index: 1;
}
.assets-lib-card .control-btn{
    --size: 26px;
    width: var(--size);
    height: var(--size);
	position: relative;
}
.assets-lib-card .control-btn .control-icon{
    background-color: var(--light-gary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: grid;
    place-content: center;
    height: 100%;
    width: 100%;
    padding: 6px;
    cursor: pointer;
	color: var(--text-gray);
}
.assets-lib-card .control-btn .control-icon span{
    width: 14px;
    height: 14px;
    display: block;
    background-color: currentcolor;
    mask-image: var(--icon);
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}

.assets-lib-card dialog.downdown-dialog {
    border: 0;
    background-color: transparent;
	top: calc(100% + 4px);
	z-index: 1000;
}
.assets-lib-card .dialog-container {
    background-color: var(--body-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
	width: 190px;
	box-shadow: 4px 4px 10px 0px #0000000D;
}
.assets-lib-card .dialog-head {
    padding: 12px;
    border-bottom: inherit;
}
.assets-lib-card .dialog-title{
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
	color: var(--text-color);
    font-family: var(--font-family);
}
.assets-lib-card .dialog-foot {
    padding: 12px;
    border-top: inherit;
}
.assets-lib-card .dialog-foot .update-info{
	white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    font-family: var(--font-family);
	color: #cccccc;
}
.assets-lib-card .dialog-body {
    padding: 8px 0;
}


.assets-lib-card ul.dialog-nav {
    list-style: none;
}

.assets-lib-card ul.dialog-nav > li {
    position: relative;
}

.assets-lib-card ul.dialog-nav .dialog-nav-item {
    padding: 5px 12px;
    display: grid;
    grid-template-columns: 16px auto;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-gray);
    line-height: 1;
    cursor: pointer;
}
.assets-lib-card ul.dialog-nav .dialog-nav-item:has(~ *){
    background-image: url('data:image/svg+xml,<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.601562 6.59961L3.60156 3.59961L0.601562 0.599609" stroke="%234F4E57" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-position: calc(100% - 10px);
    background-repeat: no-repeat;
}

.assets-lib-card ul.dialog-nav .dialog-nav-item .dialog-nav-icon {
    width: 100%;
    height: auto;
    display: grid;
    background-color: var(--text-gray);
    aspect-ratio: 1;
    mask-image: var(--icon);
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
}
.assets-lib-card ul.dialog-nav .dialog-sub-nav{
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    width: 164px;
    background-color: var(--body-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 0;
	display: none;
	box-shadow: 4px 4px 10px 0px #0000000D;
}
.assets-lib-card ul.dialog-nav .dialog-sub-nav a{
    padding: 8px 12px;
    display: grid;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-gray);
    line-height: 1;
}

.assets-lib-card ul.dialog-nav li:hover{
    background-color: var(--border-color);
}
.assets-lib-card ul.dialog-nav li:hover .dialog-sub-nav{
    display: block;
}
.assets-lib-card .assets-lib-title {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-family);
    line-height: 1;
	word-break: break-word;
}

.assets-lib-card .assets-lib-detail {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.assets-lib-card .assets-lib-detail .dot {
    width: 5px;
    height: 5px;
    background-color: currentColor;
    border-radius: 100px;
}
.assets-lib-content{
	text-decoration: none;
	color: inherit;
}
/* .assets-lib-content .assets-lib-title:hover{
	color: var(--primary-color);
} */

@media (max-width: 1024px) {
	.single-asset-grid {
		grid-template-columns: 100%;
	}
}

@media (max-width: 900px) {
	.assettype-grid,
	.single-asset-top {
		grid-template-columns: 100%;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
	.request-changes-btn {
		grid-column: 1 / 2;
		grid-row: auto;
		justify-self: flex-start;
	}
}

/* ===== Asset-card collage (Windows-style folder thumbnail) =====
   Shown when an asset has more than one uploaded version. Up to 4 tiles
   share the existing .assets-lib-media tile (aspect-ratio + rounded corners
   are inherited from .assets-lib-card .assets-lib-media). */
.assets-lib-media.has-collage {
	display: grid;
	gap: 2px;
}

.assets-lib-media.has-collage .collage-tile {
	overflow: hidden;
	background: #B0AFB4;
	display: grid;
	place-items: center;
	min-height: 0;
	min-width: 0;
}

.assets-lib-media.has-collage .collage-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
	border-radius: 0;
}

.assets-lib-media.has-collage .file-icon-placeholder {
	width: 36px;
	height: 36px;
}
.sub-grid-item .assets-lib-card .assets-lib-media.has-collage .file-icon-placeholder{
	width: 100%;
	height: 100%;
}
/* 2 versions - side by side. */
.assets-lib-media.collage-2 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
	background-color: transparent;
}

/* 3 versions - 1 large left, 2 stacked right. */
.assets-lib-media.collage-3 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	background-color: transparent;
}
.assets-lib-media.collage-3 .collage-tile:first-child {
	grid-row: 1 / span 2;
}

/* 4+ versions - 2×2. */
.assets-lib-media.collage-4 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	background-color: transparent;
}



.admin-user-detail .admin-detail-back { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--text-gray); text-decoration:none; margin-bottom:14px; }
.admin-user-detail .admin-detail-back:hover { color:var(--primary-color); }
.admin-stat-grid{
	display: flex;
	border: 1px solid var(--border-color);
	border-radius: var(--rad);
	background: var(--white-color);
	overflow: hidden;
}

.stat-col{
	flex: 1;
	padding: 20px 24px;
	border-right: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	transition: background-color .15s ease;
}
.stat-col:last-child{ border-right: none; }
/* .stat-col:hover{ background-color: var(--box-hover-color); } */

.stat-label{
	font-family: var(--font-family);
	font-size: var(--small-text);
	color: var(--text-gray);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.stat-edit-btn{
	background: transparent;
	border: 1px solid var(--border-color, rgba(0,0,0,0.12));
	color: var(--text-gray);
	width: 22px;
	height: 22px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: color .15s, border-color .15s;
}
.stat-edit-btn:hover{
	color: var(--primary-color);
	border-color: var(--primary-color);
}
.stat-value{
	font-family: var(--title-family);
	font-size: 28px;
	font-weight: 600;
	color: var(--text-color);
	margin-top: 8px;
	line-height: 1.1;
}
.stat-sub{
	font-family: var(--font-family);
	font-size: 12px;
	color: var(--text-gray);
	margin-top: 10px;
}

.stat-pill{
	display: inline-flex;
	align-items: center;
	gap: 3px;
	width: fit-content;
	font-family: var(--font-family);
	font-size: 12px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	margin-top: 10px;
}
.pill-open{
	color: var(--primary-color);
	background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}
.pill-closed{
	color: var(--secondary-color);
	background: color-mix(in srgb, var(--secondary-color) 10%, transparent);
}

@media (max-width: 640px){
	.admin-stat-grid{ 
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1px;
		background-color: var(--border-color);
	}
	.admin-stat-grid .stat-col{
		border: 0;
		background-color: var(--white-color);
	}
	.admin-stat-grid .stat-col:first-child,
	.admin-stat-grid .stat-col:last-child{ 
		order: -1;
	}
}
.admin-detail-profile { margin-top:6px; }
.admin-detail-credit-log { margin-top:24px; padding:20px 22px; }
.admin-detail-credit-log .credit-empty {
    padding: 10px 20px 14px;
}
.admin-detail-credit-log__head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; }
.admin-detail-credit-log__head .section-heading {
	margin:0;
	font-family:var(--title-family);
	font-size:12px;
	font-weight:700;
	letter-spacing:.06em;
	text-transform:uppercase;
	color:var(--text-color);
}
.admin-detail-credit-log__sub { font-size:12px; color:var(--text-gray); }
.admin-detail-credit-log__head-right { display:inline-flex; align-items:center; gap:14px; }
.admin-detail-credit-log__edit {
	display:inline-flex;
	align-items:center;
	gap:6px;
	padding:6px 12px;
	background: var(--white-color);
	border:1px solid var(--border-color);
	border-radius:var(--rad);
	font-size: 12px;
	font-weight: 400;
	color:var(--text-color);
	cursor:pointer;
	transition:background .12s ease, border-color .12s ease;
}
.admin-detail-credit-log__edit:hover {
	background:var(--box-hover-color, #f6f7f9);
	border-color:var(--primary-color, #DF1515);
	color:var(--primary-color, #DF1515);
}
.admin-detail-credit-log__edit svg { flex-shrink:0; }
.admin-detail-credit-log__scroll { max-height:360px; overflow:auto; border-radius:var(--rad); border:1px solid var(--border-color); }
/* Log rows aren't clickable - override .admin-table's row-pointer defaults. */
.credit-log-table.admin-table > * { display:table; width:100%; }
.credit-log-table.admin-table tbody tr { cursor:default; font-size: 14px;}
.credit-log-table.admin-table tbody tr:hover { background:transparent; }
.credit-log-table.admin-table .thead th { position:sticky; top:0; z-index:1; background:var(--light-gary); padding:14px 20px; }
.credit-log-table.admin-table tbody td { padding:16px 20px; }
.credit-log-table.admin-table .thead th.num,
.credit-log-table.admin-table tbody td.num { text-align:right; font-variant-numeric:tabular-nums; }
.credit-log-table .role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.credit-log-table td:has(.role-badge) {
    text-align: center;
}
.credit-log-table.admin-table tbody td:last-child { color:var(--text-gray); white-space:normal; width: 45%; }
.credit-log-table .role-badge.role-credit { 
    background: color-mix(in srgb, var(--secondary-color) 10%, var(--white-color));
    color: var(--secondary-color);
}
.credit-log-table .role-badge.role-debit  { 
	background: color-mix(in srgb, var(--primary-color) 10%, var(--white-color));
	color: var(--primary-color);
}
.admin-detail-body { display:block; }
.admin-user-detail--two-col .admin-detail-body { display:grid; grid-template-columns: minmax(0, 1fr) 380px; gap:20px; align-items:flex-start; }
.admin-user-detail--two-col .admin-detail-main { min-width:0; }
.dashboard-tickets-head .title {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
aside.admin-detail-side .tickets-card-list {
	max-height: unset;
/* 	max-height: max(calc(var(--vh) - 210px + 110px),100%); */
}

aside.admin-detail-side {
	align-self: stretch;
    height: auto;
    position: relative;
    width: min(380px,100%);
    min-height: calc(var(--vh) - 166px);
}

aside.admin-detail-side .dashboard-tickets-item {
    width: 100%;
    position: absolute;
    inset: 0;
}
@media (max-width: 768px) {
	.admin-user-detail--two-col .admin-detail-body { grid-template-columns: minmax(0,1fr); }
	.admin-detail-side .tickets-card-list { max-height: none; }
}
.admin-detail-title { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.admin-detail-title .admin-detail-title-text { min-width:0; }
.admin-detail-title .admin-detail-created-by { margin-top:4px; font-size:12px; color:var(--text-gray); }
.admin-detail-title .admin-detail-created-by strong { font-weight:600; color:var(--text-color); }
.delete-staff-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; background: var(--white-color); color: var(--primary-color); border:1px solid var(--primary-color); border-radius:var(--rad); font-size:13px; font-weight:600; cursor:pointer; transition:opacity .12s ease; }
.delete-staff-btn:hover { opacity: 50%; }
.delete-staff-modal { position:fixed; inset:0; z-index:1200; display:none; align-items:center; justify-content:center; padding:20px; }
.delete-staff-modal.is-open { display:flex; }
.delete-staff-modal__overlay { position:absolute; inset:0; 	background: color-mix(in srgb, var(--text-gray),transparent); }
.delete-staff-modal__dialog { position:relative; background:var(--white-color); border-radius:var(--rad); width:100%; max-width:440px; box-shadow:0 20px 50px rgba(15,23,42,.25); }
.delete-staff-modal__head { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--border-color); }
.delete-staff-modal__head h3 { margin:0; font-size:17px; font-weight:600; color:var(--text-color); }
.delete-staff-modal__close { background:transparent; border:0; color:var(--text-gray); cursor:pointer; padding:4px; border-radius:6px; }
.delete-staff-modal__close:hover { background:var(--box-hover-color); color:var(--text-color); }
.delete-staff-modal__body { padding:18px 22px 22px; display:flex; flex-direction:column; gap:12px; }
.delete-staff-modal__body p { margin:0; font-size:13.5px; color:var(--text-color); line-height:1.5; }
.delete-staff-modal__warn { color:var(--text-gray); }
.delete-staff-modal__error { font-size:12.5px; color:#b91c1c; background:#fee2e2; border:1px solid #fecaca; border-radius:6px; padding:8px 10px; }
.delete-staff-modal__actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.delete-staff-modal .btn-secondary { padding:8px 14px; background:transparent; border:1px solid var(--border-color); color:var(--text-color); border-radius:var(--rad); font-size:13px; cursor:pointer; }
.delete-staff-modal .btn-secondary:hover { background:var(--box-hover-color); }
.delete-staff-modal .btn-danger { padding:8px 16px; background:#dc2626; color:#fff; border:0; border-radius:var(--rad); font-size:13px; font-weight:600; cursor:pointer; }
.delete-staff-modal .btn-danger:hover { background:#b91c1c; }
.delete-staff-modal .btn-danger:disabled { opacity:.6; cursor:wait; }



.admin-detail-credit-log__head {
    margin: 0;
    padding: 14px 20px;
}

.admin-detail-credit-log.box-wrapper-item .admin-detail-credit-log__scroll{
    border-width: 1px 0px 0px;
    border-radius: 0;
    max-height: calc(10 * 54px);
}

.admin-detail-credit-log__head .section-heading {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: capitalize;
}