/* EDS Admin Panel – client admin skin. Colours come from inline CSS variables. */

body.eds-ap {
	--eds-ink: #0f172a;
	--eds-muted: #64748b;
	--eds-line: #e5e7eb;
	--eds-card: #ffffff;
	--eds-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .04);
	--eds-side-w: 224px;
	background: var(--eds-bg);
	color: var(--eds-ink);
	font-family: var(--eds-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
}

body.eds-ap #wpwrap,
body.eds-ap #wpcontent,
body.eds-ap #wpbody,
body.eds-ap #wpbody-content { background: transparent; }

body.eds-ap.eds-ap-lao { line-height: 1.6; }
body.eds-ap.eds-ap-lao #adminmenu a,
body.eds-ap.eds-ap-lao .wrap h1 { line-height: 1.5; }

/* ---------- Sidebar ---------- */

body.eds-ap #adminmenuback,
body.eds-ap #adminmenuwrap,
body.eds-ap #adminmenu { background: var(--eds-sidebar); }

body.eds-ap #adminmenuback { border-right: 1px solid var(--eds-sidebar-line); }

body.eds-ap #adminmenu a { color: var(--eds-sidebar-ink); }
body.eds-ap #adminmenu div.wp-menu-image:before { color: var(--eds-sidebar-muted); transition: color .15s; }

body.eds-ap #adminmenu li.menu-top:hover,
body.eds-ap #adminmenu li.opensub > a.menu-top,
body.eds-ap #adminmenu li > a.menu-top:focus { background: transparent; color: var(--eds-active-ink); }

body.eds-ap #adminmenu li.menu-top > a.menu-top:hover,
body.eds-ap #adminmenu li.opensub > a.menu-top { background: var(--eds-sidebar-hover); color: var(--eds-active-ink); }

body.eds-ap #adminmenu li.menu-top:hover div.wp-menu-image:before,
body.eds-ap #adminmenu li.opensub div.wp-menu-image:before { color: var(--eds-accent); }

body.eds-ap #adminmenu li.current a.menu-top,
body.eds-ap #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
body.eds-ap #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
body.eds-ap .folded #adminmenu li.current.menu-top {
	background: var(--eds-accent-soft);
	color: var(--eds-active-ink);
	font-weight: 600;
}
body.eds-ap #adminmenu li.current div.wp-menu-image:before,
body.eds-ap #adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
body.eds-ap #adminmenu a.current:hover div.wp-menu-image:before { color: var(--eds-accent); }
body.eds-ap.eds-ap-sidebar-dark #adminmenu li.current div.wp-menu-image:before,
body.eds-ap.eds-ap-sidebar-dark #adminmenu li.wp-has-current-submenu div.wp-menu-image:before { color: #fff; }

/* Arrows pointing into the content area */
body.eds-ap ul#adminmenu a.wp-has-current-submenu:after,
body.eds-ap ul#adminmenu > li.current > a.current:after,
body.eds-ap #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,
body.eds-ap #adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after,
body.eds-ap #adminmenu .wp-menu-arrow { display: none; border: 0; }

/* Open (current) submenu */
body.eds-ap #adminmenu .wp-has-current-submenu .wp-submenu,
body.eds-ap #adminmenu .wp-has-current-submenu.opensub .wp-submenu,
body.eds-ap #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
	background: transparent;
	box-shadow: none;
}
body.eds-ap #adminmenu .wp-submenu a { color: var(--eds-sidebar-ink); opacity: .82; }
body.eds-ap #adminmenu .wp-submenu a:hover,
body.eds-ap #adminmenu .wp-submenu a:focus { color: var(--eds-accent); opacity: 1; box-shadow: none; }
body.eds-ap #adminmenu .wp-submenu li.current a,
body.eds-ap #adminmenu .wp-submenu li.current a:hover { color: var(--eds-active-ink); opacity: 1; font-weight: 600; }

/* Flyout submenu */
body.eds-ap #adminmenu .wp-not-current-submenu .wp-submenu {
	background: var(--eds-card);
	border-radius: var(--eds-radius);
	box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
	border: 1px solid var(--eds-line);
	padding: 6px 0;
}
body.eds-ap #adminmenu .wp-not-current-submenu .wp-submenu a { color: #334155; }
body.eds-ap #adminmenu .wp-not-current-submenu .wp-submenu a:hover { color: var(--eds-accent); }
body.eds-ap #adminmenu .wp-not-current-submenu .wp-submenu-head { color: var(--eds-ink); font-weight: 600; }

/* Bubbles */
body.eds-ap #adminmenu .awaiting-mod,
body.eds-ap #adminmenu .menu-counter { background: var(--eds-accent); color: var(--eds-accent-ink); }
body.eds-ap #adminmenu .update-plugins { display: none; }

/* Separators and collapse */
body.eds-ap #adminmenu li.wp-menu-separator { height: auto; margin: 0; }
body.eds-ap #adminmenu div.separator { height: 1px; padding: 0; margin: 8px 18px; background: var(--eds-sidebar-line); }
body.eds-ap #collapse-button { color: var(--eds-sidebar-muted); }
body.eds-ap #collapse-button:hover { color: var(--eds-accent); }

/* Wider, rounded sidebar on desktop */
@media screen and (min-width: 961px) {
	body.eds-ap:not(.folded) #adminmenuback,
	body.eds-ap:not(.folded) #adminmenuwrap,
	body.eds-ap:not(.folded) #adminmenu { width: var(--eds-side-w); }
	body.eds-ap:not(.folded) #wpcontent,
	body.eds-ap:not(.folded) #wpfooter { margin-left: var(--eds-side-w); }
	body.eds-ap:not(.folded) #adminmenu .wp-not-current-submenu .wp-submenu { left: var(--eds-side-w); }
	body.eds-ap:not(.folded) .interface-interface-skeleton,
	body.eds-ap:not(.folded) .edit-post-layout .components-editor-notices__snackbar { left: var(--eds-side-w); }
	body.eds-ap:not(.folded) #adminmenu { padding-top: 6px; }

	body.eds-ap:not(.folded) #adminmenu li.menu-top > a.menu-top {
		margin: 1px 10px;
		border-radius: 8px;
		padding: 3px 0;
	}
	body.eds-ap:not(.folded) #adminmenu .wp-has-current-submenu .wp-submenu { padding: 4px 0 8px; }
	body.eds-ap:not(.folded) #adminmenu .wp-has-current-submenu .wp-submenu a { padding-left: 48px; }
	body.eds-ap:not(.folded) #adminmenu .wp-submenu-head,
	body.eds-ap:not(.folded) #adminmenu a.menu-top { font-size: 14px; }
	body.eds-ap:not(.folded) #collapse-menu { margin: 8px 10px 16px; }

	/* Brand at the top of the sidebar */
	body.eds-ap:not(.folded) #adminmenuwrap::before {
		content: var(--eds-brand, "");
		display: block;
		margin: 16px 20px 8px;
		min-height: 22px;
		font-size: 17px;
		font-weight: 700;
		line-height: 1.3;
		color: var(--eds-sidebar-ink);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	body.eds-ap.eds-ap-has-logo:not(.folded) #adminmenuwrap::before {
		content: "";
		height: 52px;
		background: var(--eds-logo) no-repeat left center / contain;
	}
	/* Dark sidebar: logos are usually made for white, so give them a white tile. */
	body.eds-ap.eds-ap-sidebar-dark.eds-ap-has-logo.eds-ap-logo-tile:not(.folded) #adminmenuwrap::before {
		box-sizing: content-box;
		height: 44px;
		margin: 14px 14px 10px;
		padding: 8px 12px;
		background-color: #fff;
		background-position: center;
		background-origin: content-box;
		border-radius: var(--eds-radius);
	}
	/* Logo straight on the dark sidebar (light logo, or tile turned off). */
	body.eds-ap.eds-ap-sidebar-dark.eds-ap-has-logo:not(.eds-ap-logo-tile):not(.folded) #adminmenuwrap::before {
		height: 38px;
		padding: 18px 18px 14px;
		background-origin: content-box;
		border-bottom: 1px solid var(--eds-sidebar-line);
		margin-bottom: 6px;
	}
	/* Small line under the menu, e.g. Back office - EDS. */
	body.eds-ap.eds-ap-has-side-footer:not(.folded) #adminmenuwrap::after {
		content: var(--eds-side-footer);
		display: block;
		padding: 14px 22px 18px;
		font-size: 11px;
		color: var(--eds-sidebar-muted);
	}
}

/* ---------- Admin bar ---------- */

body.eds-ap #wpadminbar {
	background: var(--eds-card);
	border-bottom: 1px solid var(--eds-line);
	box-shadow: none;
}
body.eds-ap #wpadminbar .ab-item,
body.eds-ap #wpadminbar a.ab-item,
body.eds-ap #wpadminbar > #wp-toolbar span.ab-label,
body.eds-ap #wpadminbar > #wp-toolbar span.noticon,
body.eds-ap #wpadminbar #adminbarsearch:before,
body.eds-ap #wpadminbar .ab-icon:before,
body.eds-ap #wpadminbar .ab-item:before,
body.eds-ap #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,
body.eds-ap #wpadminbar #wp-admin-bar-site-name > .ab-item:before,
body.eds-ap #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
body.eds-ap #wpadminbar #wp-admin-bar-command-palette .ab-icon:before,
body.eds-ap #wpadminbar #wp-admin-bar-search .ab-item:before,
body.eds-ap #wpadminbar #wp-admin-bar-my-account > .ab-item:before { color: #334155; }
body.eds-ap #wpadminbar .menupop.hover > .ab-item:before,
body.eds-ap #wpadminbar .ab-top-menu > li.hover > .ab-item .ab-icon:before { color: var(--eds-accent); }
body.eds-ap #wpadminbar .ab-top-menu > li:hover > .ab-item,
body.eds-ap #wpadminbar .ab-top-menu > li.hover > .ab-item,
body.eds-ap #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus {
	background: var(--eds-accent-soft);
	color: var(--eds-accent);
}
body.eds-ap #wpadminbar .ab-top-menu > li:hover > .ab-item .ab-icon:before,
body.eds-ap #wpadminbar .ab-top-menu > li:hover > .ab-item:before { color: var(--eds-accent); }
body.eds-ap #wpadminbar .menupop .ab-sub-wrapper,
body.eds-ap #wpadminbar .shortlink-input {
	background: var(--eds-card);
	border: 1px solid var(--eds-line);
	border-radius: 0 0 var(--eds-radius) var(--eds-radius);
	box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}
body.eds-ap #wpadminbar .quicklinks .menupop ul li a,
body.eds-ap #wpadminbar .quicklinks .menupop ul li .ab-item,
body.eds-ap #wpadminbar #wp-admin-bar-user-info .display-name,
body.eds-ap #wpadminbar #wp-admin-bar-user-info .username { color: #334155; }
body.eds-ap #wpadminbar .quicklinks .menupop ul li a:hover { color: var(--eds-accent); }
body.eds-ap #wpadminbar .quicklinks .menupop ul.ab-sub-secondary { background: #f8fafc; }
body.eds-ap #wpadminbar #wp-admin-bar-my-account.with-avatar > a img { border-radius: 50%; border: 0; }

#wpadminbar #wp-admin-bar-eds-ap-preview > .ab-item {
	background: #f59e0b !important;
	color: #1f2937 !important;
	font-weight: 600;
}

/* ---------- Content ---------- */

body.eds-ap .wrap { margin-top: 18px; }
body.eds-ap .wrap > h1,
body.eds-ap .wrap h1.wp-heading-inline { font-size: 24px; font-weight: 700; color: var(--eds-ink); }

body.eds-ap .button,
body.eds-ap .button-secondary {
	border-radius: 8px;
	border-color: var(--eds-line);
	color: var(--eds-ink);
	background: var(--eds-card);
}
body.eds-ap .button:hover,
body.eds-ap .button-secondary:hover { border-color: var(--eds-accent); color: var(--eds-accent); background: var(--eds-card); }

body.eds-ap .button-primary,
body.eds-ap .wrap .page-title-action,
body.eds-ap .wrap .add-new-h2 {
	background: var(--eds-accent);
	border-color: var(--eds-accent);
	color: var(--eds-accent-ink);
	border-radius: 8px;
	box-shadow: none;
	text-shadow: none;
}
body.eds-ap .button-primary:hover,
body.eds-ap .button-primary:focus,
body.eds-ap .wrap .page-title-action:hover {
	background: var(--eds-accent);
	border-color: var(--eds-accent);
	color: var(--eds-accent-ink);
	filter: brightness(.92);
}
body.eds-ap .wrap .page-title-action { padding: 4px 14px; top: -2px; }

body.eds-ap input[type="text"],
body.eds-ap input[type="search"],
body.eds-ap input[type="email"],
body.eds-ap input[type="url"],
body.eds-ap input[type="number"],
body.eds-ap input[type="password"],
body.eds-ap input[type="date"],
body.eds-ap input[type="tel"],
body.eds-ap select,
body.eds-ap textarea { border-radius: 8px; border-color: #d1d5db; }
body.eds-ap input:focus,
body.eds-ap select:focus,
body.eds-ap textarea:focus {
	border-color: var(--eds-accent);
	box-shadow: 0 0 0 3px var(--eds-accent-soft);
	outline: none;
}

body.eds-ap .postbox,
body.eds-ap .stuffbox,
body.eds-ap .card,
body.eds-ap .welcome-panel,
body.eds-ap .wp-list-table,
body.eds-ap .tablenav .actions select {
	border-color: var(--eds-line);
}
body.eds-ap .postbox,
body.eds-ap .stuffbox,
body.eds-ap .card {
	border-radius: var(--eds-radius);
	box-shadow: var(--eds-shadow);
}
body.eds-ap .postbox .postbox-header { border-bottom-color: var(--eds-line); }
body.eds-ap .wp-list-table {
	border-radius: var(--eds-radius);
	box-shadow: var(--eds-shadow);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--eds-card);
}
body.eds-ap .wp-list-table thead th,
body.eds-ap .wp-list-table thead td,
body.eds-ap .wp-list-table tfoot th,
body.eds-ap .wp-list-table tfoot td { background: #f8fafc; font-weight: 600; }
body.eds-ap .striped > tbody > :nth-child(odd) { background: #fbfcfe; }
body.eds-ap .wp-list-table a.row-title,
body.eds-ap .subsubsub a.current { color: var(--eds-accent); }
body.eds-ap .subsubsub a.current .count { color: var(--eds-muted); }

body.eds-ap .notice,
body.eds-ap div.updated,
body.eds-ap div.error { border-radius: 8px; box-shadow: var(--eds-shadow); }
body.eds-ap .update-nag { display: none; }

body.eds-ap #wpfooter { color: var(--eds-muted); }
body.eds-ap #wpfooter .eds-ap-footer { font-style: normal; }

/* ---------- Dashboard ---------- */

body.eds-ap.index-php .wrap > h1 { display: none; }
body.eds-ap.eds-ap-no-widgets #dashboard-widgets-wrap { display: none; }

.eds-ap-dash { margin: 22px 20px 6px 2px; }
.eds-ap-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 26px;
	border-radius: calc(var(--eds-radius) + 4px);
	background: linear-gradient(120deg, var(--eds-accent), color-mix(in srgb, var(--eds-accent) 70%, #0f172a));
	color: var(--eds-accent-ink);
}
.eds-ap-hero h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.35; color: inherit; }
.eds-ap-hero p { margin: 0; opacity: .86; font-size: 14px; color: inherit; }
.eds-ap-hero img { max-height: 46px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; }

.eds-ap-section-title { margin: 26px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--eds-muted); }
.eds-ap-lao .eds-ap-section-title { text-transform: none; letter-spacing: 0; font-size: 14px; }

.eds-ap-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
}
.eds-ap-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px;
	background: var(--eds-card);
	border: 1px solid var(--eds-line);
	border-radius: var(--eds-radius);
	box-shadow: var(--eds-shadow);
	text-decoration: none;
	color: var(--eds-ink);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.eds-ap-card:hover,
.eds-ap-card:focus {
	transform: translateY(-2px);
	border-color: var(--eds-accent);
	box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
	color: var(--eds-ink);
	outline: none;
}
.eds-ap-card-icon {
	flex: 0 0 42px;
	height: 42px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--eds-accent-soft);
	color: var(--eds-accent);
}
.eds-ap-card-icon .dashicons { font-size: 22px; width: 22px; height: 22px; }
.eds-ap-card-icon img { width: 22px; height: 22px; }
.eds-ap-card strong { display: block; font-size: 15px; line-height: 1.35; margin: 2px 0 3px; }
.eds-ap-card span.eds-ap-card-desc { display: block; color: var(--eds-muted); font-size: 13px; line-height: 1.45; }
.eds-ap-card .eds-ap-count {
	display: inline-block;
	margin-left: 6px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--eds-accent);
	color: var(--eds-accent-ink);
	font-size: 12px;
	line-height: 20px;
	vertical-align: 2px;
}

@media screen and (max-width: 782px) {
	.eds-ap-dash { margin: 16px 12px 0 0; }
	.eds-ap-hero { padding: 18px; }
	.eds-ap-hero img { display: none; }
	.eds-ap-cards { grid-template-columns: 1fr; }
}

/* ---------- Menu count bubbles ---------- */

body.eds-ap #adminmenu .eds-ap-badge {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	background: var(--eds-accent);
	color: var(--eds-accent-ink);
}

/* ---------- Dark admin bar ---------- */

body.eds-ap.eds-ap-bar-dark #wpadminbar {
	background: color-mix(in srgb, var(--eds-sidebar) 72%, #000);
	border-bottom-color: transparent;
}
body.eds-ap.eds-ap-bar-dark #wpadminbar .ab-item,
body.eds-ap.eds-ap-bar-dark #wpadminbar a.ab-item,
body.eds-ap.eds-ap-bar-dark #wpadminbar > #wp-toolbar span.ab-label,
body.eds-ap.eds-ap-bar-dark #wpadminbar .ab-icon:before,
body.eds-ap.eds-ap-bar-dark #wpadminbar .ab-item:before,
body.eds-ap.eds-ap-bar-dark #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before,
body.eds-ap.eds-ap-bar-dark #wpadminbar #wp-admin-bar-site-name > .ab-item:before,
body.eds-ap.eds-ap-bar-dark #wpadminbar #wp-admin-bar-command-palette .ab-icon:before,
body.eds-ap.eds-ap-bar-dark #wpadminbar #wp-admin-bar-my-account > .ab-item:before { color: rgba(255, 255, 255, .88); }
body.eds-ap.eds-ap-bar-dark #wpadminbar #wp-admin-bar-site-name > .ab-item { font-weight: 700; color: #fff; }
body.eds-ap.eds-ap-bar-dark #wpadminbar .ab-top-menu > li:hover > .ab-item,
body.eds-ap.eds-ap-bar-dark #wpadminbar .ab-top-menu > li.hover > .ab-item,
body.eds-ap.eds-ap-bar-dark #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus { background: rgba(255, 255, 255, .08); color: #fff; }
body.eds-ap.eds-ap-bar-dark #wpadminbar #wp-admin-bar-eds-ap-view-site > .ab-item { opacity: .7; }
body.eds-ap.eds-ap-bar-dark #wpadminbar #wp-admin-bar-eds-ap-view-site > .ab-item:hover { opacity: 1; }

/* Language switch */
#wpadminbar #wp-admin-bar-eds-ap-lang > .ab-item { display: flex; align-items: center; gap: 6px; cursor: default; }
#wpadminbar #wp-admin-bar-eds-ap-lang a { color: inherit; opacity: .6; text-decoration: none; padding: 0; height: auto; display: inline; }
#wpadminbar #wp-admin-bar-eds-ap-lang a:hover { opacity: 1; }
#wpadminbar #wp-admin-bar-eds-ap-lang .eds-ap-lang-on { font-weight: 700; }
#wpadminbar #wp-admin-bar-eds-ap-lang .eds-ap-lang-dot { opacity: .5; }
@media screen and (max-width: 782px) {
	#wpadminbar #wp-admin-bar-eds-ap-lang,
	#wpadminbar #wp-admin-bar-eds-ap-view-site { display: block; }
	#wpadminbar #wp-admin-bar-eds-ap-lang > .ab-item,
	#wpadminbar #wp-admin-bar-eds-ap-view-site > .ab-item { padding: 0 8px; font-size: 14px; white-space: nowrap; }
}

/* ---------- Dashboard: plain greeting, stats, buttons, panels ---------- */

.eds-ap-greet h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--eds-ink); }
body.eds-ap-sidebar-dark .eds-ap-greet h2 { color: var(--eds-sidebar); }
.eds-ap-greet p { margin: 0; font-size: 13px; color: var(--eds-muted); }

.eds-ap-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 18px;
}
.eds-ap-stat {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px;
	background: var(--eds-card);
	border: 1px solid var(--eds-line);
	border-radius: 8px;
	text-decoration: none;
	color: var(--eds-ink);
	transition: border-color .15s, box-shadow .15s;
}
a.eds-ap-stat:hover,
a.eds-ap-stat:focus { border-color: var(--eds-accent); box-shadow: 0 6px 18px rgba(15, 23, 42, .07); color: var(--eds-ink); outline: none; }
.eds-ap-stat-icon {
	flex: 0 0 38px;
	height: 38px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--eds-accent) 12%, #fff);
	color: var(--eds-accent);
}
.eds-ap-stat-icon .dashicons { font-size: 20px; width: 20px; height: 20px; }
.eds-ap-stat-icon img { width: 20px; height: 20px; }
.eds-ap-stat-body { display: block; min-width: 0; }
.eds-ap-stat-num { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--eds-ink); }
body.eds-ap-sidebar-dark .eds-ap-stat-num { color: var(--eds-sidebar); }
.eds-ap-stat strong { display: block; font-size: 15px; line-height: 1.4; margin-top: 4px; }
.eds-ap-stat .eds-ap-card-desc { display: block; font-size: 13px; color: var(--eds-muted); line-height: 1.45; }

.eds-ap-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.eds-ap-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 16px;
	box-sizing: border-box;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s;
}
.eds-ap-btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
.eds-ap-btn img { width: 18px; height: 18px; }
.eds-ap-btn.is-primary { background: var(--eds-accent); color: var(--eds-accent-ink); font-weight: 700; }
.eds-ap-btn.is-primary:hover,
.eds-ap-btn.is-primary:focus { background: color-mix(in srgb, var(--eds-accent) 88%, #000); color: var(--eds-accent-ink); }
.eds-ap-btn.is-secondary { background: #fff; border-color: #cbd5e1; color: var(--eds-ink); }
body.eds-ap-sidebar-dark .eds-ap-btn.is-secondary { color: var(--eds-sidebar); }
.eds-ap-btn.is-secondary:hover,
.eds-ap-btn.is-secondary:focus { border-color: var(--eds-accent); color: var(--eds-accent); }

.eds-ap-panels { display: grid; gap: 16px; margin-top: 20px; align-items: start; }
.eds-ap-panels.cols-2 { grid-template-columns: 1.55fr 1fr; }
.eds-ap-panel {
	background: var(--eds-card);
	border: 1px solid var(--eds-line);
	border-radius: 8px;
	overflow: hidden;
	min-width: 0;
}
.eds-ap-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.eds-ap-panel-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--eds-ink); }
.eds-ap-panel-head a { color: color-mix(in srgb, var(--eds-accent) 90%, #000); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.eds-ap-panel-head a:hover { text-decoration: underline; }
.eds-ap-panel-empty { margin: 0; padding: 4px 16px 18px; color: var(--eds-muted); }

.eds-ap-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eds-ap-table th { text-align: left; padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--eds-muted); background: #f8fafc; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; }
.eds-ap-table td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; color: var(--eds-ink); vertical-align: middle; }
.eds-ap-table tr:last-child td { border-bottom: 0; }
.eds-ap-table th:first-child,
.eds-ap-table td:first-child { padding-left: 16px; }
.eds-ap-table td a { color: inherit; text-decoration: none; }
.eds-ap-table td a:hover { color: var(--eds-accent); }
.eds-ap-table tr.is-new td { font-weight: 700; }

.eds-ap-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.eds-ap-chip.is-blue { background: #e6f0fa; color: #1e6497; }
.eds-ap-chip.is-amber { background: #fff4d6; color: #8a5a00; }
.eds-ap-chip.is-purple { background: #efe9fb; color: #5b3fa0; }
.eds-ap-chip.is-green { background: #e3f4ea; color: #1f7a4d; }
.eds-ap-chip.is-grey { background: #f1f2f4; color: #5a616b; }
.eds-ap-chip.is-red { background: #fde8e7; color: #b3261e; }
.eds-ap-chip.is-orange { background: #fff0e3; color: #b34d00; }
.eds-ap-chip.is-teal { background: #e0f4f3; color: #0f6e68; }

.eds-ap-list { margin: 0; padding: 0 16px 6px; list-style: none; }
.eds-ap-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid #eef0f3; }
.eds-ap-list-main { min-width: 0; }
.eds-ap-list-main strong { display: block; font-size: 14px; line-height: 1.45; }
.eds-ap-list-main strong a { color: var(--eds-ink); text-decoration: none; }
.eds-ap-list-main strong a:hover { color: var(--eds-accent); }
.eds-ap-list-date { display: block; font-size: 12px; color: var(--eds-muted); }
.eds-ap-list-date.is-warn { color: #b3261e; font-weight: 700; }
.eds-ap-list-count { flex: none; font-size: 13px; color: var(--eds-muted); white-space: nowrap; }

@media screen and (max-width: 1100px) {
	.eds-ap-panels.cols-2 { grid-template-columns: 1fr; }
}
@media screen and (max-width: 782px) {
	.eds-ap-stats { grid-template-columns: 1fr; }
	.eds-ap-table th:nth-child(n+3):not(:last-child),
	.eds-ap-table td:nth-child(n+3):not(:last-child) { display: none; }
}
