/*
 * FILE: assets/css/templates/tpl-add-tickets.css
 * TEMPLATE: Add Ticket Page (addticketpackages.php)
 * Scoped under: .c2w-tp  (existing root class preserved)
 */

/* ─── Override global heading styles ─── */
.c2w-tp h1,
.c2w-tp h2 {
	text-align: left !important;
	text-transform: none !important;
	margin-bottom: 0 !important;
}

/* ─── Shell ─── (full-width; side padding comes from the dashboard shell) */
.c2w-tp {
	padding: 4px 0 32px;
	background: transparent;
	min-height: 0;
	font-family: 'Segoe UI', Arial, sans-serif;
}

/* ─── Page header (breadcrumb + emoji title) ─── */
.c2w-tp-pagehead { margin-bottom: 22px; }
.c2w-tp-crumb { font-size: 12px; color: #6b7a99; margin-bottom: 12px; }
.c2w-tp-crumb a { color: #1a237e; text-decoration: none; }
.c2w-tp-pagehead h1 {
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #1a1a2e !important;
	line-height: 1.2 !important;
	margin: 0 0 6px !important;
}
.c2w-tp-pagehead p {
	font-size: 14px;
	color: #6b7a99;
	line-height: 1.55;
	margin: 0;
	max-width: 760px;
}

/* ─── Back link ─── */
.c2w-tp-back a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #1a237e;
	text-decoration: none;
	margin-bottom: 20px;
}

.c2w-tp-back a:hover {
	color: #3949ab;
}

.c2w-tp-back svg {
	width: 16px;
	height: 16px;
}

/* ─── Hero ─── */
.c2w-tp-hero {
	margin: 0 auto 32px;
}

.c2w-tp-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #3949ab;
	margin-bottom: 8px;
}

.c2w-tp-hero h1 {
	font-size: 28px !important;
	font-weight: 900 !important;
	color: #1a237e !important;
	line-height: 1.2 !important;
	margin: 0 0 10px !important;
}

.c2w-tp-hero p {
	font-size: 14px;
	color: #4b5563;
	line-height: 1.6;
	margin: 0;
}

/* ─── Two-column body ─── */
.c2w-tp-body {
	display: grid;
	/* The packages table needs more room than the small New Package form; at 1fr 1fr its
	   Action column was cut off. */
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 24px;
	margin: 0 auto;
}

@media (max-width: 1100px) {
	.c2w-tp-body {
		grid-template-columns: 1fr;
	}
}

/* ─── Cards ─── */
.c2w-tp-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	overflow: hidden;
}

.c2w-tp-card-head {
	padding: 18px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.c2w-tp-card-head h2 {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #1a237e !important;
	margin: 0 0 4px !important;
}

.c2w-tp-card-head p {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
}

/* ─── Repeater form ─── */
.c2w-tp-card form {
	padding: 20px;
}

.c2w-tp-card .repeater [data-repeatable] fieldset {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
	border: none;
	padding: 0;
}

.c2w-tp-card .repeater fieldset label {
	display: none; /* the "+" labels are presentational */
}

.c2w-tp-card .repeater input[type="text"] {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 13px;
	transition: border-color .15s;
}

.c2w-tp-card .repeater input[type="text"]:focus {
	outline: none;
	border-color: #3949ab;
	box-shadow: 0 0 0 3px rgba(57,73,171,.15);
}

.c2w-tp-card .repeater .button-show {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #3949ab !important;
	background: transparent;
	border: 1.5px dashed #3949ab;
	border-radius: 8px;
	padding: 9px 16px;
	text-decoration: none !important;
	cursor: pointer;
	transition: all .15s;
	margin-top: 6px;
}
/* #150 — on hover fill with the palette colour and turn text WHITE so it stays
   readable. (The base color:...!important above was beating style.css's hover white,
   leaving indigo text on the navy fill — unreadable.) */
.c2w-tp-card .repeater .button-show:hover {
	background: #3949ab;
	border-color: #3949ab;
	color: #fff !important;
}

/* #150 — per-row Remove button. !important on bg/border/color to beat the theme's
   global button{ background:var(--c2w-button-bg)!important } (which would turn it solid). */
.c2w-tp-card .repeater [data-repeatable] { display: flex; flex-direction: column; }
.c2w-tp-card .repeater .c2w-tp-delrow {
	align-self: flex-end;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 6px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	background: #fff !important;
	border: 1px solid #d32f2f !important;
	color: #d32f2f !important;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: none !important;
	transition: all .15s;
}
.c2w-tp-card .repeater .c2w-tp-delrow:hover {
	background: #d32f2f !important;
	color: #fff !important;
}

.c2w-tp-card .ticket-button {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 11px;
	background: #1a237e; /* #149 — was hardcoded navy; follow the palette */
	color: #fff !important;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s;
}

.c2w-tp-card .ticket-button:disabled,
.c2w-tp-card .ticket-button.disabled {
	opacity: .5;
	cursor: not-allowed;
}

.c2w-tp-card .ticket-button:not(:disabled):hover {
	background: #3949ab;
}

/* ─── Ticket packages table ─── */
.c2w-tp-table-wrap{overflow-x:auto;border:1px solid #eef0f5;border-radius:8px}
.c2w-tp-table{width:100%;border-collapse:collapse;font-size:13px}
.c2w-tp-table thead th{background:#f5f7fb;color:#3b4566;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;text-align:left;padding:12px 14px;border-bottom:1px solid #e3e7ef}
.c2w-tp-table tbody td{padding:12px 14px;border-bottom:1px solid #eef0f5;color:#0a1f44;font-size:13.5px;vertical-align:middle}
.c2w-tp-table tbody tr:last-child td{border-bottom:0}
.c2w-tp-table .c2w-tp-pname{font-weight:700}
.c2w-tp-table .c2w-tp-price{font-weight:800}
.c2w-tp-table .c2w-tp-per{display:block;margin-top:2px;font-size:11px;color:#6b7390;font-weight:600}
.c2w-tp-table th.c2w-tp-actions-col,.c2w-tp-table td.c2w-tp-actions-col{text-align:right}
.c2w-tp-action-btn{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e3e7ef;color:#1a237e;font-size:11.5px;font-weight:700;padding:7px 14px;border-radius:6px;text-decoration:none;text-transform:uppercase;letter-spacing:.04em;transition:all .15s}
.c2w-tp-action-btn:hover{background:var(--c2w-primary,#1a237e);border-color:var(--c2w-primary,#1a237e);color:#fff}
.c2w-tp-empty{padding:32px 16px;text-align:center;color:#6b7390;font-size:13.5px}
.c2w-tp-empty b{display:block;color:#1a237e;font-size:14px;font-weight:700;margin-bottom:4px}

/* ─── Package edit (inc/c2w-package-edit.php) ─── */
.c2w-tp-notice{margin:0 0 16px;padding:12px 16px;border-radius:8px;font-size:14px;font-weight:600}
.c2w-tp-notice.is-ok{background:#ecfdf3;border:1px solid #a6e9c1;color:#05603a}
.c2w-tp-notice.is-err{background:#fef3f2;border:1px solid #fecdca;color:#b42318}
.c2w-tp-lock{margin:0 0 16px;padding:12px 16px;border-radius:8px;background:#fffaeb;border:1px solid #fedf89;color:#7a2e0e;font-size:13.5px;line-height:1.5}
.c2w-tp-edit-status{margin:0 0 14px;font-size:13px;color:#6b7390}
.c2w-tp-edit-field{display:block;margin:0 0 12px}
.c2w-tp-edit-field span{display:block;margin:0 0 6px;font-size:12px;font-weight:700;color:#3b4566;text-transform:uppercase;letter-spacing:.05em}
.c2w-tp-edit-field input,.c2w-tp-edit-field select{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;background:#fff}
.c2w-tp-edit-field input:focus,.c2w-tp-edit-field select:focus{outline:none;border-color:var(--c2w-primary,#3949ab);box-shadow:0 0 0 3px rgba(57,73,171,.15)}
.c2w-tp-edit-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.c2w-tp-edit-hint{margin:0 0 4px;font-size:12px;color:#6b7390}
.c2w-tp-edit-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:12px}
.c2w-tp-edit-actions .ticket-button{width:auto;margin-top:0;padding:11px 24px}
.c2w-tp-edit-cancel{font-size:14px;font-weight:600;color:#6b7390;text-decoration:none}
.c2w-tp-edit-cancel:hover{text-decoration:underline}
.c2w-tp-status{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
.c2w-tp-status.is-live{background:#ecfdf3;color:#05603a}
.c2w-tp-status.is-draft{background:#f2f4f7;color:#475467}
.c2w-tp-table tbody tr.is-editing{background:#f5f8ff}
.c2w-tp-action-btn.is-locked{cursor:not-allowed;opacity:.65;white-space:nowrap}
.c2w-tp-action-btn.is-locked:hover{background:#fff;color:inherit;border-color:#e3e7ef}
@media (max-width:600px){.c2w-tp-edit-row{grid-template-columns:1fr}.c2w-tp-edit-actions{flex-direction:column-reverse;align-items:stretch}.c2w-tp-edit-actions .ticket-button{width:100%}}
