/* ==========================================================================
   Dawsony Admin Utilities — Settings UI
   Brand: #36648b (steel blue)
   ========================================================================== */

:root {
	--dau-brand: #36648b;
	--dau-brand-dark: #2a4f6e;
	--dau-brand-light: #4a87b5;
	--dau-brand-bg: #edf2f7;
	--dau-success: #16a34a;
	--dau-radius: 8px;
	--dau-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
	--dau-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
	--dau-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Override WP wrap spacing — negative left margin offsets #wpcontent padding */
.dau-wrap {
	margin: -8px 0 0 -20px;
	overflow-x: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	background: var(--dau-brand-bg);
	min-height: 100vh;
}

/* ---------- Header ---------- */

.dau-header {
	background: linear-gradient(135deg, var(--dau-brand) 0%, var(--dau-brand-dark) 100%);
	padding: 0;
	margin-bottom: 0;
}

.dau-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dau-header-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dau-header-logo {
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	background: #fff;
	padding: 2px;
}

.dau-header h1 {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.dau-header-version {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.15);
	padding: 2px 8px;
	border-radius: 10px;
	margin-top: 2px;
}

/* ---------- Toast / Success Notice ---------- */

.dau-toast {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #f0fdf4;
	color: var(--dau-success);
	font-weight: 500;
	font-size: 13px;
	border-bottom: 1px solid #bbf7d0;
}

.dau-toast svg {
	flex-shrink: 0;
}

/* ---------- Body layout: sidebar + main ---------- */

.dau-body {
	display: flex;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 24px 0;
	gap: 24px;
}

/* ---------- Sidebar ---------- */

.dau-sidebar {
	width: 200px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	box-shadow: var(--dau-shadow-sm);
	overflow: hidden;
	position: sticky;
	top: 32px;
}

.dau-sidebar-item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: background 0.12s, color 0.12s;
	line-height: 1.4;
}

.dau-sidebar-item:hover {
	background: #f8fafc;
	color: #1e293b;
	text-decoration: none;
}

.dau-sidebar-item .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #94a3b8;
	transition: color 0.12s;
}

.dau-sidebar-item:hover .dashicons {
	color: #64748b;
}

.dau-sidebar-item-active {
	background: var(--dau-brand-bg);
	color: var(--dau-brand);
	border-left-color: var(--dau-brand);
	font-weight: 600;
}

.dau-sidebar-item-active .dashicons {
	color: var(--dau-brand);
}

/* ---------- Main content ---------- */

.dau-main {
	flex: 1;
	min-width: 0;
	padding-bottom: 24px;
}

/* ---------- Content area ---------- */

.dau-content {
	padding: 0 0 24px;
	min-height: 400px;
}

/* ---------- Pro banner container ---------- */

.dau-upgrade-wrap {
	margin-top: 24px;
	padding-bottom: 24px;
}

/* ---------- Upgrade card (sidebar gradient banner) ---------- */

.dau-upgrade-card {
	background: linear-gradient(145deg, #1e3a5f 0%, #36648b 100%);
	border-radius: var(--dau-radius);
	padding: 20px;
	margin: 16px 0;
	box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
}

.dau-upgrade-card__inner {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dau-upgrade-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	background: rgba(255, 255, 255, 0.18);
	color: #fff !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 3px 9px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.dau-upgrade-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dau-upgrade-card__title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #fff !important;
	line-height: 1.3 !important;
}

.dau-upgrade-card__desc {
	margin: 0 !important;
	font-size: 12px !important;
	color: rgba(255, 255, 255, 0.8) !important;
	line-height: 1.5 !important;
}

.dau-upgrade-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	background: #fff;
	color: #1e3a5f !important;
	border: none !important;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	text-align: center;
}

.dau-upgrade-card__btn:hover {
	background: #f0f6fe;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	color: #1e3a5f !important;
}

/* ---------- Promo card (settings tab white card) ---------- */

.dau-promo-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: 3px solid var(--dau-brand);
	border-radius: var(--dau-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
}

.dau-promo-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	background: var(--dau-brand);
	color: #fff !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 3px 9px;
	border-radius: 20px;
	margin-bottom: 10px;
}

.dau-promo-card__title {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
}

.dau-promo-card__desc {
	margin: 0 0 14px !important;
	font-size: 13px !important;
	color: #64748b !important;
	line-height: 1.5 !important;
}

.dau-promo-card__btn {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	background: var(--dau-brand);
	color: #fff !important;
	border: none !important;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.dau-promo-card__btn:hover {
	background: var(--dau-brand-dark);
	color: #fff !important;
}

/* ---------- Module Cards ---------- */

.dau-modules-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
}

.dau-module-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 20px;
	box-shadow: var(--dau-shadow-sm);
	transition: box-shadow 0.2s, border-color 0.2s;
	position: relative;
}

.dau-module-card:hover {
	box-shadow: var(--dau-shadow);
}

.dau-module-card.dau-module-enabled {
	border-color: var(--dau-brand-light);
	box-shadow: var(--dau-shadow), inset 0 0 0 1px var(--dau-brand-light);
}

.dau-module-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	gap: 12px;
}

.dau-module-toggle strong {
	font-size: 14px;
	color: #1e293b;
}

/* Toggle switch — uses a span overlay so WP admin checkbox styles don't interfere */
.dau-toggle-wrap {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
}

.dau-toggle-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.dau-toggle-track {
	display: block;
	width: 44px;
	height: 24px;
	background: #cbd5e1;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.2s;
	position: relative;
}

.dau-toggle-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}

.dau-toggle-input:checked + .dau-toggle-track {
	background: var(--dau-brand);
}

.dau-toggle-input:checked + .dau-toggle-track .dau-toggle-knob {
	transform: translateX(20px);
}

.dau-toggle-input:focus + .dau-toggle-track {
	box-shadow: 0 0 0 2px rgba(54, 100, 139, 0.35);
}

.dau-module-card .description {
	margin: 10px 0 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
}

.dau-module-card .dau-module-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 2px 8px;
	border-radius: 10px;
	margin-top: 10px;
}

.dau-module-enabled .dau-module-status {
	background: #dbeafe;
	color: var(--dau-brand);
}

.dau-module-card:not(.dau-module-enabled) .dau-module-status {
	background: #f1f5f9;
	color: #94a3b8;
}

/* ---------- Form Tables ---------- */

.dau-content .form-table {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	box-shadow: var(--dau-shadow-sm);
	margin-top: 0;
}

.dau-content .form-table th {
	width: 200px;
	padding: 16px 20px;
	font-weight: 600;
	color: #334155;
	vertical-align: top;
}

.dau-content .form-table td {
	padding: 16px 20px;
}

.dau-content .form-table tr {
	border-bottom: 1px solid #f1f5f9;
}

.dau-content .form-table tr:last-child {
	border-bottom: none;
}

.dau-content h2 {
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px;
}

.dau-content .submit {
	margin-top: 16px;
	padding: 0;
}

.dau-content .submit .button-primary {
	background: var(--dau-brand);
	border-color: var(--dau-brand-dark);
	border-radius: 6px;
	padding: 6px 20px;
	font-size: 13px;
	font-weight: 500;
	height: auto;
	line-height: 1.6;
	transition: background 0.15s, box-shadow 0.15s;
}

.dau-content .submit .button-primary:hover {
	background: var(--dau-brand-dark);
	border-color: var(--dau-brand-dark);
}

.dau-content .submit .button-primary:focus {
	box-shadow: 0 0 0 2px rgba(54, 100, 139, 0.4);
}

/* ---------- Debug Snapshot ---------- */

.dau-snapshot-table {
	border-collapse: collapse;
	width: 100%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	box-shadow: var(--dau-shadow-sm);
	overflow: hidden;
}

.dau-snapshot-table th,
.dau-snapshot-table td {
	text-align: left;
	padding: 12px 16px;
	font-size: 13px;
}

.dau-snapshot-table tr {
	border-bottom: 1px solid #f1f5f9;
}

.dau-snapshot-table tr:last-child {
	border-bottom: none;
}

.dau-snapshot-table th {
	font-weight: 600;
	width: 200px;
	color: #334155;
	background: #f8fafc;
}

.dau-snapshot-table td {
	color: #475569;
}

.dau-snapshot-plugins-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dau-snapshot-plugins-list li {
	padding: 3px 0;
	color: #475569;
}

.dau-content .button-secondary {
	border-radius: 6px;
}

/* ---------- Dashboard Widgets Manager ---------- */

.dau-widgets-role-section {
	margin-bottom: 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	box-shadow: var(--dau-shadow-sm);
	overflow: hidden;
}

.dau-widgets-role-section h3 {
	margin: 0;
	padding: 14px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	background: #f8fafc;
	border-bottom: 1px solid #f1f5f9;
}

.dau-widget-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0;
	padding: 12px 20px;
}

.dau-widget-list label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 0;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	min-width: 0;
}

.dau-widget-list label input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 2px;
}

.dau-widget-info {
	min-width: 0;
	overflow: hidden;
}

.dau-widget-info code {
	display: block;
	font-size: 10px;
	color: #94a3b8;
	background: #f1f5f9;
	padding: 1px 6px;
	border-radius: 4px;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: fit-content;
	max-width: 100%;
}

/* ---------- Info / Description Cards ---------- */

.dau-content > .description,
.dau-content .dau-info-text {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 16px 20px;
	margin-bottom: 16px;
	color: #475569;
	font-size: 13px;
	line-height: 1.6;
}

/* ---------- Notice overrides inside content ---------- */

.dau-content .notice {
	margin: 0 0 16px;
	border-radius: var(--dau-radius);
	box-shadow: var(--dau-shadow-sm);
}

/* ---------- Footer ---------- */

.dau-footer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	text-align: center;
	font-size: 12px;
	color: #94a3b8;
}

.dau-footer a {
	color: var(--dau-brand);
	text-decoration: none;
}

.dau-footer a:hover {
	text-decoration: underline;
}

.dau-footer-pro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #16a34a;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 4px;
}

.dau-footer-pro .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* ---------- Help Tab ---------- */

.dau-help-modules {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-help-modules > h3 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.dau-help-modules-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
}

.dau-help-module-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 14px 16px;
}

.dau-help-module-card strong {
	display: block;
	font-size: 13px;
	color: #1e293b;
	margin-bottom: 4px;
}

.dau-help-module-card p {
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.5;
	color: #64748b;
}

.dau-help-location {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	color: var(--dau-brand);
	background: #dbeafe;
	padding: 2px 8px;
	border-radius: 10px;
}

.dau-help-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.dau-help-link-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 32px 24px 24px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-help-link-card strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 4px;
}

.dau-help-link-card p {
	margin: 0 0 12px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

/* ---------- Help: Pro Features & Coming Soon ---------- */

.dau-help-pro-features {
	margin-top: 24px;
}

.dau-help-pro-features h3 {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.dau-help-coming-soon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.dau-help-coming-soon-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 18px 20px;
}

.dau-help-pro-card {
	border-top: 3px solid var(--dau-brand);
	padding: 24px 20px;
}

.dau-help-coming-soon-card .dau-help-coming-soon-icon {
	font-size: 22px;
	margin-bottom: 8px;
	line-height: 1;
}

.dau-help-coming-soon-card .dau-help-coming-soon-icon .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.dau-help-coming-soon-card strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 6px;
}

.dau-help-coming-soon-card p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

/* ---------- Import / Export Tab ---------- */

.dau-ie-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.dau-ie-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 20px 24px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-ie-section h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.dau-ie-section p {
	margin: 0 0 14px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

.dau-ie-warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 12px;
	color: #92400e;
	line-height: 1.5;
	margin-bottom: 14px;
}

.dau-ie-file-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.dau-ie-file-input {
	font-size: 13px;
	color: #475569;
}

.dau-ie-button {
	border-radius: 6px;
}

.dau-ie-notice {
	padding: 12px 16px;
	border-radius: var(--dau-radius);
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 16px;
}

.dau-ie-notice-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.dau-ie-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* ---------- Environment Badge Personal Pref ---------- */

.dau-env-personal-wrap {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 16px 20px;
	margin-top: 20px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-env-personal-wrap h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.dau-env-personal-wrap .description {
	margin-top: 8px;
}

/* ---------- Environment Badge Settings Tab ---------- */

.dau-env-preview-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.dau-env-preview-card {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px 16px;
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dau-env-preview-card.dau-env-current {
	border-color: var(--dau-brand);
	box-shadow: 0 0 0 3px rgba(54, 100, 139, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dau-env-preview-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	color: #fff;
	border-radius: 6px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dau-env-preview-pill .dau-env-dot-prev {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	flex-shrink: 0;
}

.dau-env-preview-name {
	display: block;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.dau-env-current-label {
	display: inline-block;
	margin-top: 6px;
	font-size: 10px;
	font-weight: 600;
	color: var(--dau-brand);
	background: #dbeafe;
	padding: 2px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.dau-env-howto {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-env-howto h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.dau-env-howto p {
	margin: 0 0 12px;
	font-size: 13px;
	color: #475569;
	line-height: 1.6;
}

.dau-env-howto p:last-child {
	margin-bottom: 0;
}

.dau-env-howto pre {
	background: #1e293b;
	color: #e2e8f0;
	padding: 14px 18px;
	border-radius: 6px;
	font-size: 12.5px;
	line-height: 1.6;
	overflow-x: auto;
	margin: 10px 0;
}

.dau-env-howto pre .comment { color: #64748b; }
.dau-env-howto pre .string { color: #86efac; }
.dau-env-howto pre .fn { color: #93c5fd; }
.dau-env-howto pre .const { color: #fbbf24; }

.dau-env-howto .dau-env-or {
	display: block;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 14px 0;
}

.dau-env-roles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 4px 16px;
}

.dau-env-role-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	transition: background 0.15s;
}

.dau-env-role-label:hover {
	background: #f1f5f9;
}

.dau-env-roles-wrap {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 16px 20px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-env-roles-wrap h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.dau-env-roles-wrap .description {
	margin-top: 12px;
}

/* ---------- Notice Board Settings Tab ---------- */

.dau-nb-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	padding: 20px 24px;
	margin-bottom: 20px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-nb-section h3 {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.dau-nb-section .description {
	margin-top: 8px;
}

.dau-nb-textarea {
	width: 100%;
	min-height: 100px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.6;
	color: #334155;
	resize: vertical;
	transition: border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.dau-nb-textarea:focus {
	border-color: var(--dau-brand);
	box-shadow: 0 0 0 2px rgba(54, 100, 139, 0.2);
	outline: none;
}

.dau-nb-type-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

.dau-nb-type-option {
	position: relative;
	cursor: pointer;
}

.dau-nb-type-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dau-nb-type-card {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.dau-nb-type-option input:checked + .dau-nb-type-card {
	border-color: var(--dau-nb-color);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dau-nb-color) 15%, transparent);
	color: #1e293b;
}

.dau-nb-type-option:hover .dau-nb-type-card {
	border-color: #cbd5e1;
}

.dau-nb-type-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.dau-nb-preview {
	margin-bottom: 20px;
}

.dau-nb-preview h3 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.dau-nb-preview-notice {
	border-left: 4px solid var(--dau-nb-preview-color, #3b82f6);
	background: var(--dau-nb-preview-bg, #eff6ff);
	padding: 12px 16px;
	border-radius: 0 6px 6px 0;
	font-size: 13px;
	color: #334155;
	line-height: 1.5;
	box-shadow: var(--dau-shadow-sm);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dau-nb-preview-notice .dau-nb-preview-x {
	color: #94a3b8;
	font-size: 18px;
	cursor: default;
	flex-shrink: 0;
}

.dau-nb-preview-empty {
	padding: 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	font-style: italic;
	background: #f8fafc;
	border-radius: var(--dau-radius);
	border: 1px dashed #e2e8f0;
}

.dau-nb-roles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 4px 16px;
}

.dau-nb-role-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	transition: background 0.15s;
}

.dau-nb-role-label:hover {
	background: #f1f5f9;
}

.dau-nb-bottom-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.dau-nb-expiry-input {
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px;
	color: #334155;
}

.dau-nb-expiry-input:focus {
	border-color: var(--dau-brand);
	box-shadow: 0 0 0 2px rgba(54, 100, 139, 0.2);
	outline: none;
}

.dau-nb-reset-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
	cursor: pointer;
}

/* ---------- Handoff Report Tab ---------- */

.dau-handoff-section {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dau-radius);
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: var(--dau-shadow-sm);
}

.dau-handoff-section-title {
	margin: 0;
	padding: 14px 20px;
	font-size: 13px;
	font-weight: 700;
	color: var(--dau-brand);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

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

.dau-handoff-table thead tr {
	background: #f1f5f9;
}

.dau-handoff-table th {
	text-align: left;
	padding: 10px 20px;
	font-weight: 600;
	color: #334155;
	width: 200px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: top;
}

.dau-handoff-table thead th {
	width: auto;
}

.dau-handoff-table td {
	padding: 10px 20px;
	color: #475569;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: top;
}

.dau-handoff-table tr:last-child th,
.dau-handoff-table tr:last-child td {
	border-bottom: none;
}

.dau-handoff-table a {
	color: var(--dau-brand);
	text-decoration: none;
}

.dau-handoff-table a:hover { text-decoration: underline; }

@media print {
	.dau-wrap { background: #fff; margin: 0; }
	.dau-header,
	.dau-sidebar,
	.dau-upgrade-wrap,
	.dau-footer,
	.button,
	.notice { display: none !important; }
	.dau-body { display: block; padding: 0; }
	.dau-main { padding: 0; }
	.dau-handoff-section { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	.dau-wrap {
		margin: -8px 0 0 -10px;
	}

	.dau-header-inner {
		padding: 16px;
	}

	.dau-body {
		flex-direction: column;
		padding: 16px 16px 0;
	}

	.dau-sidebar {
		width: 100%;
		position: static;
		display: flex;
		flex-wrap: wrap;
		flex-direction: row;
	}

	.dau-sidebar-item {
		border-left: none;
		border-bottom: 2px solid transparent;
		flex: 0 0 auto;
		font-size: 12px;
		padding: 9px 12px;
	}

	.dau-sidebar-item .dashicons {
		display: none;
	}

	.dau-sidebar-item-active {
		border-bottom-color: var(--dau-brand);
		border-left-color: transparent;
	}

	.dau-upgrade-wrap {
		padding: 0 0 16px;
	}

	.dau-content {
		padding: 0 0 16px;
	}

	.dau-modules-grid {
		grid-template-columns: 1fr;
	}

	.dau-content .form-table th {
		width: auto;
	}

	.dau-ie-row {
		grid-template-columns: 1fr;
	}

	.dau-help-modules-grid {
		grid-template-columns: 1fr;
	}

	.dau-help-links {
		grid-template-columns: 1fr;
	}

	.dau-nb-type-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.dau-nb-bottom-row {
		grid-template-columns: 1fr;
	}
}
