/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme customized by Kan Nguyen
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.k-admin-tours {
	overflow-x: auto;
	padding: 1.25rem 0;
	-webkit-overflow-scrolling: touch;
}

.k-admin-tours__inner {
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(0.75rem, 2vw, 1.25rem);
	padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.k-admin-tours__alert {
	margin: 0 0 1rem;
	padding: 0.875rem 1rem;
	border-radius: 10px;
	border: 1px solid #f5c2c7;
	background: #f8d7da;
	color: #842029;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.k-admin-tours__empty {
	margin: 0;
	padding: 2rem 1rem;
	text-align: center;
	color: #5c6b7a;
	font-size: 1rem;
	background: #f4f6f8;
	border-radius: 12px;
	border: 1px dashed #c5cdd6;
}

.k-admin-tours__empty--in-panel {
	margin-top: 0;
}

.k-tours-price-desc {
	margin: 0 0 0.75rem;
	font-size: 0.825rem;
	color: #475569;
	line-height: 1.6;
}

.k-tours-price-desc strong {
	color: #0f172a;
	font-weight: 600;
}

.k-tours-price-desc code {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 0.1em 0.4em;
	font-size: 0.8rem;
	color: #334155;
}

.k-tours-tabs-wrap {
	margin-bottom: 0;
}

.k-tours-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.25rem;
	border-bottom: 2px solid rgba(22, 101, 52, 0.2);
	margin-bottom: 0;
}

.k-tours-tab {
	margin: 0;
	padding: 0.7rem 1.15rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	color: #64748b;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	cursor: pointer;
	margin-bottom: -2px;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.k-tours-tab:focus-visible {
	outline: 2px solid #166534;
	outline-offset: 2px;
}

.k-tours-tab--active {
	color: #166534;
	font-weight: 600;
	border-bottom-color: #166534;
	background: rgba(22, 101, 52, 0.06);
	border-radius: 8px 8px 0 0;
	cursor: default;
}

.k-tours-panel {
	padding-top: 0.75rem;
}

.k-tours-table-scroll {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 28px rgba(22, 101, 52, 0.12);
	border: 1px solid rgba(22, 101, 52, 0.16);
	background: #fff;
}

.k-tours-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #1e293b;
}

.k-tours-th {
	padding: 0.75rem 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	background: #166534;
	color: #f0fdf4;
	border-bottom: 2px solid #14532d;
	vertical-align: bottom;
	white-space: nowrap;
}

.k-tours-th--left {
	text-align: left;
	min-width: 10rem;
}

.k-tours-th--right {
	text-align: center;
}

.k-tours-td {
	padding: 0.7rem 0.875rem;
	border-bottom: 1px solid #e8edf2;
	vertical-align: top;
	transition: background-color 0.15s ease;
}

.k-tours-td--left {
	text-align: left;
	font-weight: 500;
	color: #0f172a;
}

.k-tours-td--right {
	text-align: center;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: #334155;
}

.k-tours-tr:last-child .k-tours-td {
	border-bottom: none;
}

.k-tours-tr:hover .k-tours-td {
	background: #ecfdf3;
}

.k-tours-td--stack {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

@media (max-width: 782px) {
	.k-tours-th,
	.k-tours-td {
		padding: 0.55rem 0.65rem;
		font-size: 0.8125rem;
	}
}

.k-admin-control {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.5rem;
	margin: 0 0 1.5rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 0.5rem;
	max-width: 480px;
}

.k-admin-control__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #14532d;
}

.k-admin-control__hint {
	margin: 0;
	font-size: 0.8125rem;
	color: #475569;
	line-height: 1.5;
}

.k-admin-control__btn {
	align-self: flex-start;
	padding: 0.5rem 1.25rem;
	background: #166534;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	border: none;
	border-radius: 0.375rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.k-admin-control__btn:hover {
	background: #14532d;
}

.k-admin-control__btn:disabled {
	background: #86efac;
	cursor: not-allowed;
}

.k-admin-control__msg {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
}

.k-admin-control__msg--ok {
	color: #166534;
}

.k-admin-control__msg--err {
	color: #b91c1c;
}

.k-tours-td--clickable {
	cursor: pointer;
	user-select: none;
}

.k-tours-td--clickable:hover {
	color: #1d4ed8;
}

.k-edit-icon {
	opacity: 0;
	font-size: 0.8rem;
	margin-left: 0.3rem;
	transition: opacity 0.15s;
}

.k-tours-td--clickable:hover .k-edit-icon {
	opacity: 1;
}

.k-price-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.k-price-modal[hidden] {
	display: none;
}

.k-price-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.k-price-modal__box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	width: 96%;
	max-width: 1000px;
	display: flex;
	flex-direction: column;
}

.k-price-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1.1rem 0.7rem;
	border-bottom: 1px solid #e2e8f0;
	border-radius: 14px 14px 0 0;
}

.k-price-modal__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #020617;
	margin: 0;
}

.k-price-modal__close {
	background: none;
	border: none;
	font-size: 1.4rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 0.1rem 0.4rem;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}

.k-price-modal__close:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.k-price-modal__body {
	padding: 0.75rem 1rem;
	display: flex;
	flex-direction: row;
	gap: 0.6rem;
}

.k-price-modal__section {
	flex: 1;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	min-width: 0;
}

.k-price-modal__section-label {
	padding: 0.3rem 0.7rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
}

.k-price-modal__section-label--ta {
	background: #eff6ff;
	color: #1e3a8a;
	border-bottom: 1px solid #dbeafe;
}

.k-price-modal__section-label--sale {
	background: #fffbeb;
	color: #92400e;
	border-bottom: 1px solid #fde68a;
}

.k-price-modal__section-label--web {
	background: #f0fdf4;
	color: #14532d;
	border-bottom: 1px solid #bbf7d0;
}

.k-price-modal__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
}

.k-price-modal__field {
	padding: 0.4rem 0.6rem;
	border-right: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}

.k-price-modal__field:nth-child(2n) {
	border-right: none;
}

.k-price-modal__field:nth-last-child(-n+2) {
	border-bottom: none;
}

.k-price-modal__field:last-child {
	border-right: none;
}

.k-price-modal__label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.k-price-modal__input {
	width: 100%;
	border: 1px solid #64748b;
	border-radius: 5px;
	padding: 0.45rem 0.55rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #020617;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
	background: #ffffff;
}

.k-price-modal__input:focus {
	border-color: #1d4ed8;
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25);
}

.k-price-modal__footer {
	padding: 0.6rem 1rem;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	justify-content: flex-end;
	border-radius: 0 0 14px 14px;
}

.k-price-modal__msg {
	flex: 1;
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
}

.k-price-modal__msg--ok {
	color: #15803d;
}

.k-price-modal__msg--err {
	color: #b91c1c;
}

.k-price-modal__btn {
	padding: 0.55rem 1.2rem;
	border-radius: 7px;
	font-size: 0.95rem;
	font-weight: 700;
	border: none;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
}

.k-price-modal__btn--cancel {
	background: #f1f5f9;
	color: #475569;
}

.k-price-modal__btn--cancel:hover {
	background: #e2e8f0;
}

.k-price-modal__btn--save {
	background: #16a34a;
	color: #fff;
}

.k-price-modal__btn--save:hover {
	background: #15803d;
}

.k-price-modal__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
