.adv-com-wrap {
	max-width: 1200px;
}

.adv-com-page-header {
	align-items: center;
	border-bottom: 3px solid #dc2626;
	display: flex;
	gap: 16px;
	margin-bottom: 22px;
	padding-bottom: 14px;
}

.adv-com-page-header__logo {
	display: block;
	height: auto;
	max-height: 68px;
	width: auto;
}

.adv-com-page-title {
	color: #1a1212;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.adv-com-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	margin: 0 0 24px;
	overflow: hidden;
}

.adv-com-card--form,
.adv-com-card--table {
	padding: 0;
}

.adv-com-card__header {
	align-items: flex-start;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	gap: 16px;
	padding: 22px 24px;
}

.adv-com-card__header--compact {
	align-items: center;
	background: #f8fafc;
}

.adv-com-card__icon {
	align-items: center;
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
	border: 1px solid #fecaca;
	border-radius: 14px;
	color: #dc2626;
	display: inline-flex;
	flex: 0 0 auto;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.adv-com-card__icon svg {
	display: block;
	fill: currentColor;
	height: 24px;
	width: 24px;
}

.adv-com-card__title {
	color: #0f172a;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 6px;
}

.adv-com-card__subtitle {
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.adv-com-card .adv-com-form,
.adv-com-card .adv-com-table-wrap,
.adv-com-card > .adv-com-stats-grid {
	padding: 24px;
}

.adv-com-card > .adv-com-stats-grid {
	padding-top: 0;
}

.adv-com-grid,
.adv-com-stats-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.adv-com-stat {
	align-items: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	display: flex;
	gap: 16px;
	padding: 18px;
}

.adv-com-stat__icon {
	align-items: center;
	border-radius: 14px;
	display: inline-flex;
	flex: 0 0 auto;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.adv-com-stat__icon svg {
	display: block;
	fill: currentColor;
	height: 24px;
	width: 24px;
}

.adv-com-stat__content {
	min-width: 0;
}

.adv-com-stat__label {
	color: #64748b;
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.adv-com-stat__value {
	color: #0f172a;
	display: block;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
}

.adv-com-stat--teal .adv-com-stat__icon {
	background: #fef2f2;
	color: #dc2626;
}

.adv-com-stat--blue .adv-com-stat__icon {
	background: #eff6ff;
	color: #1d4ed8;
}

.adv-com-stat--violet .adv-com-stat__icon {
	background: #f5f3ff;
	color: #6d28d9;
}

.adv-com-stat--amber .adv-com-stat__icon {
	background: #fffbeb;
	color: #b45309;
}

.adv-com-stat--rose .adv-com-stat__icon {
	background: #fff1f2;
	color: #be123c;
}

.adv-com-stat--slate .adv-com-stat__icon {
	background: #f8fafc;
	color: #334155;
}

.adv-com-form-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 18px;
}

.adv-com-form-hint {
	color: #64748b;
	font-size: 14px;
	margin: 0 0 16px;
}

.adv-com-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.adv-com-field--full {
	grid-column: 1 / -1;
}

.adv-com-field--checkbox,
.adv-com-field--checkboxes {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
}

.adv-com-field label {
	color: #334155;
	font-size: 14px;
	font-weight: 700;
}

.adv-com-input,
.adv-com-form input[type="text"],
.adv-com-form input[type="email"],
.adv-com-form input[type="number"],
.adv-com-form input[type="date"],
.adv-com-form select,
.adv-com-form textarea,
.adv-com-dashboard .regular-text,
.adv-com-dashboard .large-text {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
	box-sizing: border-box;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.4;
	max-width: 100%;
	padding: 12px 14px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	width: 100%;
}

.adv-com-input:focus,
.adv-com-form input:focus,
.adv-com-form select:focus,
.adv-com-form textarea:focus,
.adv-com-dashboard .regular-text:focus,
.adv-com-dashboard .large-text:focus {
	border-color: #ef4444;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
	outline: none;
}

.adv-com-input--textarea,
.adv-com-form textarea,
.adv-com-dashboard .large-text {
	min-height: 110px;
	resize: vertical;
}

.adv-com-checkline {
	align-items: center;
	color: #334155;
	display: inline-flex;
	font-weight: 600;
	gap: 8px;
}

.adv-com-form-actions {
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
	padding-top: 20px;
}

.adv-com-btn,
.adv-com-dashboard .button,
.adv-com-dashboard .button-primary,
.adv-com-dashboard .button-secondary {
	border-radius: 999px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	min-height: 42px !important;
	padding: 10px 20px !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease !important;
}

.adv-com-btn--primary,
.adv-com-dashboard .button-primary {
	background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%) !important;
	border: 0 !important;
	box-shadow: 0 10px 24px rgba(220, 38, 38, 0.26) !important;
	color: #fff !important;
}

.adv-com-btn--primary:hover,
.adv-com-dashboard .button-primary:hover {
	background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%) !important;
	box-shadow: 0 12px 28px rgba(220, 38, 38, 0.32) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.adv-com-btn--ghost,
.adv-com-dashboard .button:not(.button-primary):not(.button-link-delete) {
	background: #fff !important;
	border: 1px solid #cbd5e1 !important;
	color: #0f172a !important;
}

.adv-com-btn--ghost:hover,
.adv-com-dashboard .button:not(.button-primary):not(.button-link-delete):hover {
	background: #f8fafc !important;
	border-color: #94a3b8 !important;
	color: #0f172a !important;
}

.adv-com-btn--danger,
.adv-com-dashboard .button-link-delete {
	background: #fff1f2 !important;
	border: 1px solid #fecdd3 !important;
	color: #be123c !important;
}

.adv-com-btn--danger:hover,
.adv-com-dashboard .button-link-delete:hover {
	background: #ffe4e6 !important;
	border-color: #fda4af !important;
	color: #9f1239 !important;
}

.adv-com-table-wrap {
	overflow-x: auto;
}

.adv-com-data-table,
.adv-com-dashboard .widefat {
	background: transparent;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.adv-com-data-table thead th,
.adv-com-dashboard .widefat thead th {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 14px 16px;
	text-transform: uppercase;
}

.adv-com-data-table tbody td,
.adv-com-dashboard .widefat tbody td {
	border-bottom: 1px solid #eef2f7;
	color: #0f172a;
	padding: 16px;
	vertical-align: middle;
}

.adv-com-data-table tbody tr:last-child td,
.adv-com-dashboard .widefat tbody tr:last-child td {
	border-bottom: 0;
}

.adv-com-data-table tbody tr:hover td,
.adv-com-dashboard .widefat tbody tr:hover td {
	background: #fcfdff;
}

.adv-com-empty {
	color: #64748b;
	padding: 28px 16px !important;
	text-align: center;
}

.adv-com-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.adv-com-actions form {
	display: inline-block;
	margin: 0;
}

.adv-com-badge {
	border-radius: 999px;
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
}

.adv-com-badge--active {
	background: #d1fae5;
	color: #065f46;
}

.adv-com-badge--inactive {
	background: #fee2e2;
	color: #991b1b;
}

.adv-com-badge--pending {
	background: #fef3c7;
	color: #92400e;
}

.adv-com-badge--success {
	background: #d1fae5;
	color: #065f46;
}

.adv-com-badge--warning {
	background: #fef3c7;
	color: #92400e;
}

.adv-com-badge--danger {
	background: #fee2e2;
	color: #991b1b;
}

.adv-com-notice-inline,
.adv-com-dashboard .notice {
	border-left-width: 4px;
	border-radius: 12px;
	box-shadow: none;
	margin: 0 0 20px;
}

.adv-com-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.adv-com-family {
	border-top: 1px dashed #e2e8f0;
	margin: 4px 0 8px;
	padding-top: 18px;
}

.adv-com-family__title {
	align-items: center;
	color: #0f172a;
	display: flex;
	font-size: 16px;
	font-weight: 700;
	gap: 10px;
	margin: 0 0 12px;
}

.adv-com-family__hint {
	background: #fee2e2;
	border-radius: 999px;
	color: #b91c1c;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
}

.adv-com-family-table th {
	background: #fef2f2;
}

.adv-com-family-table td {
	padding: 8px 10px;
}

.adv-com-family-table .adv-com-input {
	min-width: 140px;
}

.adv-com-checkgrid {
	display: grid;
	gap: 8px 18px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.adv-com-dashboard .notice p {
	margin: 0.75em 0;
}

.adv-com-import-columns {
	padding: 0 24px 8px;
}

.adv-com-import-columns__title {
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 12px;
}

.adv-com-import-columns__list {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.adv-com-import-columns__list li {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	padding: 10px 12px;
}

.adv-com-import-columns__label {
	color: #0f172a;
	font-size: 14px;
	font-weight: 700;
}

.adv-com-import-columns__key {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: #64748b;
	font-size: 12px;
	padding: 2px 8px;
}

.adv-com-file-upload {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.adv-com-file-upload--block {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.adv-com-file-upload__input {
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	width: 0.1px;
	z-index: -1;
}

.adv-com-file-upload__button {
	cursor: pointer;
	margin: 0;
}

.adv-com-file-upload__name {
	color: #64748b;
	font-size: 14px;
	font-weight: 600;
}

.adv-com-card .adv-com-form {
	padding: 0 24px 24px;
}

.adv-com-form-actions {
	margin-top: 8px;
}

@media (max-width: 782px) {
	.adv-com-form-grid {
		grid-template-columns: 1fr;
	}

	.adv-com-card__header,
	.adv-com-card .adv-com-form,
	.adv-com-card .adv-com-table-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.adv-com-card__header {
		padding-top: 18px;
		padding-bottom: 18px;
	}

	.adv-com-data-table thead th,
	.adv-com-data-table tbody td,
	.adv-com-dashboard .widefat thead th,
	.adv-com-dashboard .widefat tbody td {
		padding-left: 12px;
		padding-right: 12px;
	}
}

.adv-com-divider {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 22px 0;
}

.adv-com-bank-assign {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
}

.adv-com-bank-assign__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.adv-com-bank-assign .adv-com-input {
	min-width: 0;
	width: auto;
	height: 34px;
	padding: 4px 8px;
}

.adv-com-bank-assign select.adv-com-input {
	max-width: 200px;
}

.adv-com-bank-assign .adv-com-input--year {
	width: 80px;
}

.adv-com-bank-assign .adv-com-input--amount {
	width: 110px;
}

.adv-com-bank-assign .adv-com-btn {
	height: 34px;
}
