.ptl-panel,
.ptl-admin-wrap {
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
}

.ptl-panel[dir="ltr"],
.ptl-admin-wrap[dir="ltr"] {
	direction: ltr;
	text-align: left;
}

.ptl-panel *,
.ptl-panel *::before,
.ptl-panel *::after,
.ptl-admin-wrap *,
.ptl-admin-wrap *::before,
.ptl-admin-wrap *::after {
	box-sizing: border-box;
}

.ptl-panel {
	max-width: 1120px;
	margin: 24px auto;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #111827;
}

.ptl-panel h3,
.ptl-panel h4,
.ptl-admin-wrap h1,
.ptl-admin-wrap h2 {
	margin-top: 0;
}

.ptl-panel-login {
	text-align: center;
}

.ptl-panel-login form,
.ptl-panel-login .login,
.ptl-panel-login [class*="login"] {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.ptl-verification-intro {
	position: relative;
	margin: 0 0 18px;
	padding: 18px 20px;
	border: 1px solid #e2e8f0;
	background: linear-gradient(135deg, #f8fafc 0%, #ffffff 58%, #fff7ed 100%);
}

.ptl-verification-intro::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 5px;
	height: 100%;
	background: #f59e0b;
}

.ptl-panel[dir="ltr"] .ptl-verification-intro::before {
	right: auto;
	left: 0;
}

.ptl-verification-intro span {
	display: inline-flex;
	margin-bottom: 8px;
	color: #e11d48;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0;
}

.ptl-verification-intro h4 {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 20px;
	font-weight: 900;
}

.ptl-verification-intro p {
	margin: 0;
	color: #475569;
	line-height: 1.9;
}

.ptl-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.ptl-account-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ptl-account-nav {
	display: grid;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.ptl-account-nav a {
	display: block;
	padding: 13px 16px;
	border-bottom: 1px solid #e5e7eb;
	color: #374151;
	font-weight: 700;
	text-decoration: none;
}

.ptl-account-nav a:last-child {
	border-bottom: 0;
}

.ptl-account-nav a:hover,
.ptl-account-nav a.is-active {
	background: #1d4ed8;
	color: #fff;
}

.ptl-account-nav a.ptl-account-logout {
	color: #991b1b;
}

.ptl-account-nav a.ptl-account-logout:hover {
	background: #fee2e2;
	color: #991b1b;
}

.ptl-account-content {
	min-width: 0;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.ptl-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ptl-section {
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
}

.ptl-section-full {
	margin-top: 20px;
}

.ptl-form {
	display: grid;
	gap: 14px;
}

.ptl-field {
	display: grid;
	gap: 6px;
	margin: 0;
	font-weight: 600;
}

.ptl-field input,
.ptl-field select,
.ptl-field textarea,
.ptl-admin-wrap input[type="text"],
.ptl-admin-wrap input[type="url"],
.ptl-admin-wrap select,
.ptl-admin-wrap textarea {
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #111827;
	font: inherit;
}

.ptl-field textarea,
.ptl-admin-wrap textarea {
	min-height: 100px;
}

.ptl-field input::placeholder,
.ptl-field textarea::placeholder {
	color: #9ca3af;
	opacity: 1;
}

.ptl-field-help {
	color: #6b7280;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.6;
}

.ptl-button,
.ptl-panel input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 6px;
	background: #1d4ed8;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ptl-button:hover,
.ptl-panel input[type="submit"]:hover {
	background: #1e40af;
	color: #fff;
}

.ptl-button:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.ptl-muted {
	color: #6b7280;
	font-size: 13px;
}

.ptl-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 6px;
	border: 1px solid transparent;
}

.ptl-alert-success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.ptl-alert-info {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1e40af;
}

.ptl-alert-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.ptl-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #e5e7eb;
	color: #374151;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.ptl-badge-approved,
.ptl-badge-completed {
	background: #dcfce7;
	color: #166534;
}

.ptl-badge-pending,
.ptl-badge-in_review {
	background: #fef3c7;
	color: #92400e;
}

.ptl-badge-rejected {
	background: #fee2e2;
	color: #991b1b;
}

.ptl-badge-preparing {
	background: #dbeafe;
	color: #1e40af;
}

.ptl-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.ptl-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.ptl-table th,
.ptl-table td {
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	text-align: right;
	vertical-align: top;
}

.ptl-panel[dir="ltr"] .ptl-table th,
.ptl-panel[dir="ltr"] .ptl-table td,
.ptl-admin-wrap[dir="ltr"] .ptl-table th,
.ptl-admin-wrap[dir="ltr"] .ptl-table td,
.ptl-admin-wrap[dir="ltr"] .widefat th,
.ptl-admin-wrap[dir="ltr"] .widefat td {
	text-align: left;
}

.ptl-table th {
	background: #f3f4f6;
	font-weight: 700;
}

.ptl-profile-summary th {
	width: 220px;
}

.ptl-quote-result {
	min-height: 0;
}

.ptl-quote-result.is-loading {
	color: #1d4ed8;
	font-weight: 700;
}

.ptl-price-box {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: baseline;
	gap: 8px;
	margin-top: 6px;
	padding: 14px;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	background: #f0fdf4;
	color: #166534;
}

.ptl-price-box strong {
	font-size: 28px;
	line-height: 1.2;
}

.ptl-price-label {
	font-weight: 700;
}

.ptl-admin-wrap {
	margin-top: 22px;
	color: #1f2937;
}

.ptl-admin-wrap h1 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 18px 20px;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	color: #0f172a;
	font-size: 24px;
	font-weight: 800;
}

.ptl-admin-wrap h1::before {
	content: "P";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #1d4ed8;
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
}

.ptl-admin-wrap .notice {
	border-radius: 8px;
}

.ptl-admin-wrap .widefat {
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	border-spacing: 0;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

.ptl-admin-wrap .widefat thead th {
	background: #f1f5f9;
	border-bottom: 1px solid #dbe3ef;
	color: #334155;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
}

.ptl-admin-wrap .widefat tbody td,
.ptl-admin-wrap .widefat tbody th {
	border-bottom: 1px solid #edf2f7;
	color: #1f2937;
}

.ptl-admin-wrap .widefat tbody tr:hover td,
.ptl-admin-wrap .widefat tbody tr:hover th {
	background: #f8fbff;
}

.ptl-admin-wrap .button {
	border-color: #cbd5e1;
	border-radius: 6px;
	color: #1f2937;
	font-weight: 700;
}

.ptl-admin-wrap .button-primary {
	border-color: #1d4ed8;
	background: #1d4ed8;
	color: #fff;
}

.ptl-admin-wrap .tablenav {
	margin: 16px 0 0;
}

.ptl-admin-wrap .tablenav-pages {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

.ptl-admin-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 34px;
	margin: 0 2px;
	padding: 0 10px;
	border: 1px solid #dbe3ef;
	border-radius: 6px;
	background: #fff;
	text-decoration: none;
}

.ptl-admin-wrap .page-numbers.current {
	border-color: #1d4ed8;
	background: #1d4ed8;
	color: #fff;
	font-weight: 800;
}

.ptl-admin-table td,
.ptl-admin-table th {
	vertical-align: top;
}

.ptl-admin-table strong {
	color: #0f172a;
}

.ptl-admin-inline-form,
.ptl-admin-status-form {
	display: grid;
	gap: 8px;
	min-width: 210px;
}

.ptl-admin-status-form {
	grid-template-columns: minmax(120px, 1fr) auto;
	align-items: center;
}

.ptl-admin-detail-grid {
	display: grid;
	grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
	gap: 20px;
	margin: 16px 0 20px;
}

.ptl-admin-detail-box {
	padding: 18px;
	border: 1px solid #dbe3ef;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ptl-admin-detail-box h2 {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
}

.ptl-admin-list-box {
	margin-top: 20px;
}

.ptl-manual-price-panel.is-collapsed {
	display: none;
}

.ptl-manual-price-rows {
	display: grid;
	gap: 14px;
}

.ptl-manual-price-date-field {
	display: grid;
	gap: 6px;
	margin: 0 0 14px;
	max-width: 360px;
	font-weight: 700;
}

.ptl-manual-price-date-field input {
	width: 100%;
	min-height: 40px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font: inherit;
}

.ptl-manual-price-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(140px, 1fr)) auto;
	gap: 12px;
	align-items: end;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
}

.ptl-manual-price-row label {
	display: grid;
	gap: 6px;
	margin: 0;
	font-weight: 700;
}

.ptl-manual-price-row input {
	width: 100%;
	min-height: 40px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font: inherit;
}

.ptl-currency-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ptl-currency-quick button {
	min-height: 26px;
	padding: 0 10px;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.ptl-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ptl-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.ptl-danger-button {
	border-color: #fecaca !important;
	background: #fff5f5 !important;
	color: #991b1b !important;
}

.ptl-delete-confirm {
	display: grid;
	gap: 8px;
	max-width: 360px;
	padding: 10px;
	border: 1px solid #fecaca;
	border-radius: 8px;
	background: #fff7f7;
}

.ptl-delete-confirm.is-collapsed {
	display: none;
}

.ptl-delete-confirm label {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	color: #7f1d1d;
	font-weight: 700;
}

.ptl-delete-confirm input[type="text"] {
	width: 100%;
	min-height: 36px;
	border: 1px solid #fecaca;
	border-radius: 6px;
}

.ptl-price-items-row.is-collapsed {
	display: none;
}

.ptl-price-items-row td {
	background: #f8fafc;
}

.ptl-price-items-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0 18px;
}

.ptl-manual-prices-widget {
	padding: 24px;
	border-color: #d9e0ea;
	background: #fff;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
}

.ptl-price-visual {
	position: relative;
	min-height: 180px;
	margin-bottom: 22px;
	overflow: hidden;
	border: 1px solid #d9e0ea;
	background: #142033;
	color: #fff;
}

.ptl-price-visual img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	opacity: 0.48;
}

.ptl-price-visual-copy {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 26px 32px;
	background: linear-gradient(180deg, rgba(20, 32, 51, 0) 0%, rgba(20, 32, 51, 0.86) 100%);
}

.ptl-price-visual-copy h3 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.5;
}

.ptl-price-visual-copy p {
	max-width: 720px;
	margin: 0;
	color: #e5e7eb;
	font-size: 15px;
	line-height: 1.8;
}

.ptl-price-board {
	display: grid;
	gap: 16px;
	padding: 24px;
	border: 1px solid #d9e0ea;
	background: #fff;
}

.ptl-price-card {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	border: 1px solid #d9e0ea;
	background: #fff;
}

.ptl-price-card-date {
	display: grid;
	align-content: center;
	gap: 8px;
	padding: 18px;
	border-left: 1px solid #d9e0ea;
	background: #f8fafc;
}

.ptl-panel[dir="ltr"] .ptl-price-card-date {
	border-right: 1px solid #d9e0ea;
	border-left: 0;
}

.ptl-price-card-date span {
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
}

.ptl-price-card-date strong {
	color: #0f172a;
	font-size: 18px;
	font-weight: 900;
}

.ptl-price-table-wrap {
	overflow-x: auto;
}

.ptl-price-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.ptl-price-table th,
.ptl-price-table td {
	padding: 14px 18px;
	border-bottom: 1px solid #eef2f7;
	text-align: right;
	vertical-align: middle;
}

.ptl-panel[dir="ltr"] .ptl-price-table th,
.ptl-panel[dir="ltr"] .ptl-price-table td {
	text-align: left;
}

.ptl-price-table th {
	background: #fff;
	color: #64748b;
	font-size: 12px;
	font-weight: 900;
}

.ptl-price-table td {
	color: #111827;
	font-weight: 800;
}

.ptl-price-table tbody tr:last-child td {
	border-bottom: 0;
}

.ptl-price-table td:nth-child(2) {
	color: #e11d48;
	font-weight: 900;
}

.ptl-front-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
}

.ptl-front-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 34px;
	padding: 0 10px;
	border: 1px solid #dbe3ef;
	border-radius: 6px;
	background: #fff;
	text-decoration: none;
}

.ptl-front-pagination .page-numbers.current {
	border-color: #1d4ed8;
	background: #1d4ed8;
	color: #fff;
	font-weight: 800;
}

.ptl-admin-meta-table th {
	width: 220px;
	color: #475569;
	font-weight: 800;
}

.ptl-reject-row {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) auto;
	gap: 6px;
}

.ptl-admin-wrap .ltr {
	direction: ltr;
	text-align: left;
}

@media (max-width: 782px) {
	.ptl-panel {
		margin: 16px auto;
		padding: 16px;
	}

	.ptl-grid {
		grid-template-columns: 1fr;
	}

	.ptl-account-layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ptl-price-visual img {
		height: 190px;
	}

	.ptl-price-visual-copy {
		padding: 18px;
	}

	.ptl-price-visual-copy h3 {
		font-size: 22px;
	}

	.ptl-price-board {
		padding: 14px;
	}

	.ptl-price-card {
		grid-template-columns: 1fr;
	}

	.ptl-price-card-date,
	.ptl-panel[dir="ltr"] .ptl-price-card-date {
		border-right: 0;
		border-left: 0;
		border-bottom: 1px solid #d9e0ea;
	}

	.ptl-dashboard-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.ptl-admin-status-form,
	.ptl-admin-detail-grid,
	.ptl-manual-price-row,
	.ptl-reject-row {
		grid-template-columns: 1fr;
	}
}

.ptl-panel,
.ptl-panel *,
.ptl-panel *::before,
.ptl-panel *::after,
.ptl-admin-wrap,
.ptl-admin-wrap *,
.ptl-admin-wrap *::before,
.ptl-admin-wrap *::after {
	border-radius: 0 !important;
}
