@font-face {
	font-family: "Slabo";
	src: url("../fonts/Slabo27px-Regular.ttf") format("truetype");
}

:root {
	--page-bg: #f2efe8;
	--panel-bg: rgba(255, 255, 255, 0.88);
	--panel-border: rgba(19, 32, 38, 0.08);
	--text-main: #15242d;
	--text-soft: #5b6670;
	--brand: #132026;
	--accent: #d97706;
	--accent-2: #285e61;
	--success: #157347;
	--danger: #b42318;
	--shadow: 0 18px 40px rgba(19, 32, 38, 0.12);
	--radius: 22px;
}

* {
	box-sizing: border-box;
}

body.gapt-admin-body {
	margin: 0;
	min-height: 100vh;
	font-family: "Slabo", Georgia, serif;
	color: var(--text-main);
	background:
		radial-gradient(circle at top left, rgba(40, 94, 97, 0.16), transparent 32%),
		radial-gradient(circle at top right, rgba(217, 119, 6, 0.14), transparent 28%),
		linear-gradient(180deg, #faf7f0 0%, var(--page-bg) 100%);
}

.admin-shell {
	max-width: 1400px;
	margin: 0 auto;
	padding: 28px;
	display: grid;
	gap: 22px;
}

.card-panel {
	background: var(--panel-bg);
	backdrop-filter: blur(12px);
	border: 1px solid var(--panel-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px;
}

.admin-hero {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 18px;
	background: linear-gradient(135deg, rgba(19, 32, 38, 0.96), rgba(40, 94, 97, 0.9));
	color: #fff;
}

.hero-copy h1,
.panel-title h2,
.section-card h3 {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hero-copy h1 {
	font-size: clamp(2rem, 3vw, 3.1rem);
	line-height: 1.05;
	margin-top: 8px;
}

.hero-copy p,
.panel-title p,
.microcopy,
.summary-value,
.readonly-note p,
.summary-label {
	margin: 0;
	color: inherit;
	opacity: 0.88;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero-badges,
.side-actions,
.action-row,
.section-head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.badge-chip,
.summary-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
}

.badge-chip {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.16);
}

.badge-link {
	text-decoration: none;
	color: inherit;
	gap: 8px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.badge-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(19, 32, 38, 0.18);
	color: inherit;
}

.badge-link i {
	font-size: 1rem;
}

.badge-link-whatsapp {
	background: linear-gradient(135deg, #25d366, #12a853);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.14);
}

.auth-grid {
	display: grid;
	grid-template-columns: minmax(360px, 1fr) minmax(320px, 420px);
	gap: 22px;
	align-items: stretch;
}

.app-grid {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.side-panel {
	position: sticky;
	top: 18px;
}

.panel-title.compact {
	margin-bottom: 16px;
}

.panel-title.compact p {
	font-size: 0.97rem;
	color: var(--text-soft);
}

.summary-box {
	padding: 14px 0;
	border-top: 1px solid rgba(19, 32, 38, 0.08);
	display: grid;
	gap: 4px;
}

.summary-label {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-soft);
}

.summary-value {
	color: var(--text-main);
	font-size: 1.02rem;
}

.summary-value.small {
	font-size: 0.95rem;
	line-height: 1.45;
}

.summary-pill {
	width: fit-content;
	background: rgba(217, 119, 6, 0.12);
	color: var(--accent);
}

.grid-form {
	display: grid;
	gap: 14px;
}

.grid-form.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-form.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-form.cols-1 {
	grid-template-columns: 1fr;
}

.grid-form label,
.readonly-note,
.metric-box {
	display: grid;
	gap: 6px;
}

.grid-form label span,
.readonly-note span,
.metric-box span {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-soft);
}

.grid-form input,
.grid-form textarea {
	width: 100%;
	border-radius: 14px;
	border: 1px solid rgba(19, 32, 38, 0.14);
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.96);
	color: var(--text-main);
	outline: none;
}

.grid-form textarea {
	resize: vertical;
}

.grid-form input:focus,
.grid-form textarea:focus {
	border-color: rgba(40, 94, 97, 0.55);
	box-shadow: 0 0 0 3px rgba(40, 94, 97, 0.12);
}

.checkbox-field {
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(19, 32, 38, 0.12);
	background: rgba(255, 255, 255, 0.92);
}

.checkbox-field input {
	width: 18px;
	height: 18px;
}

.span-2 {
	grid-column: span 2;
}

.section-card {
	padding: 18px;
	border-radius: 18px;
	border: 1px solid rgba(19, 32, 38, 0.08);
	background: rgba(255, 255, 255, 0.68);
	display: grid;
	gap: 14px;
	margin-bottom: 16px;
}

.section-card h3 {
	font-size: 1.4rem;
}

.section-head {
	justify-content: space-between;
	align-items: center;
}

.table-wrap {
	overflow-x: auto;
}

.services-table,
.records-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 760px;
}

.services-table th,
.services-table td,
.records-table th,
.records-table td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(19, 32, 38, 0.08);
	vertical-align: top;
	text-align: left;
}

.services-table th,
.records-table th {
	font-size: 0.86rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-soft);
}

.service-input,
.service-textarea,
.service-number {
	width: 100%;
	border-radius: 12px;
	border: 1px solid rgba(19, 32, 38, 0.14);
	padding: 10px 12px;
	font-family: inherit;
	font-size: 0.97rem;
}

.service-textarea {
	min-height: 44px;
	resize: vertical;
}

.service-row-total {
	font-weight: 700;
	white-space: nowrap;
}

.row-remove-btn {
	border: 0;
	background: rgba(180, 35, 24, 0.1);
	color: var(--danger);
	border-radius: 999px;
	padding: 8px 11px;
	font-weight: 700;
	cursor: pointer;
}

.metric-box {
	padding: 18px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 242, 235, 0.9));
	border: 1px solid rgba(19, 32, 38, 0.08);
}

.metric-box strong {
	font-size: 1.5rem;
	color: var(--brand);
}

.readonly-note {
	padding: 14px;
	border-radius: 14px;
	background: rgba(19, 32, 38, 0.05);
}

.readonly-note p {
	color: var(--text-main);
	line-height: 1.5;
}

.action-btn {
	border: 0;
	border-radius: 999px;
	padding: 12px 18px;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.action-btn:hover {
	transform: translateY(-1px);
}

.action-btn.primary {
	background: var(--brand);
	color: #fff;
	box-shadow: 0 12px 28px rgba(19, 32, 38, 0.22);
}

.action-btn.secondary {
	background: rgba(40, 94, 97, 0.12);
	color: var(--accent-2);
}

.action-btn.ghost {
	background: transparent;
	border: 1px solid rgba(19, 32, 38, 0.16);
	color: var(--text-main);
}

.action-btn.small-btn {
	padding: 10px 14px;
}

.action-row {
	justify-content: flex-end;
}

.alert-box {
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid transparent;
	font-weight: 700;
}

.alert-box.success {
	background: rgba(21, 115, 71, 0.12);
	color: var(--success);
	border-color: rgba(21, 115, 71, 0.18);
}

.alert-box.error {
	background: rgba(180, 35, 24, 0.1);
	color: var(--danger);
	border-color: rgba(180, 35, 24, 0.18);
}

.login-panel {
	min-height: 100%;
	display: grid;
	align-content: start;
}

.login-brand-panel {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 239, 232, 0.92)),
		radial-gradient(circle at top right, rgba(40, 94, 97, 0.12), transparent 32%),
		radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.12), transparent 30%);
	display: grid;
	gap: 18px;
	align-content: center;
}

.login-brand-panel::before {
	content: "";
	position: absolute;
	inset: 18px;
	border-radius: 18px;
	border: 1px solid rgba(19, 32, 38, 0.08);
	pointer-events: none;
}

.brand-art {
	position: relative;
	z-index: 1;
	padding: 8px 8px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.brand-art img {
	max-width: 100%;
	height: auto;
	max-height: 220px;
	filter: drop-shadow(0 18px 24px rgba(19, 32, 38, 0.16));
}

.brand-copy,
.brand-features {
	position: relative;
	z-index: 1;
}

.brand-copy {
	display: grid;
	gap: 10px;
	text-align: left;
}

.eyebrow-dark {
	background: rgba(19, 32, 38, 0.08);
	color: var(--brand);
}

.brand-copy h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2vw, 2.2rem);
	line-height: 1.1;
	color: var(--brand);
}

.brand-copy p {
	margin: 0;
	color: var(--text-soft);
	font-size: 1rem;
	line-height: 1.6;
}

.brand-features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.feature-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(19, 32, 38, 0.08);
	box-shadow: 0 8px 18px rgba(19, 32, 38, 0.06);
	font-weight: 700;
	color: var(--brand);
	white-space: nowrap;
}

.records-panel {
	grid-column: 1 / -1;
}

.status-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
}

.status-tag.draft {
	background: rgba(40, 94, 97, 0.12);
	color: var(--accent-2);
}

.status-tag.approved {
	background: rgba(21, 115, 71, 0.12);
	color: var(--success);
}

.records-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.inline-link {
	border: 0;
	background: transparent;
	color: var(--accent-2);
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}

@media (max-width: 1100px) {
	.auth-grid {
		grid-template-columns: 1fr;
	}

	.app-grid {
		grid-template-columns: 1fr;
	}

	.side-panel {
		position: static;
}
}

@media (max-width: 820px) {
	.admin-shell {
		padding: 16px;
	}

	.login-brand-panel {
		padding: 20px;
	}

	.admin-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.grid-form.cols-2,
	.grid-form.cols-3 {
		grid-template-columns: 1fr;
}

	.span-2 {
		grid-column: auto;
}

	.action-row,
	.side-actions {
		justify-content: stretch;
}

	.action-row .action-btn,
	.side-actions .action-btn,
	.section-head .action-btn,
	.auth-grid .action-btn {
		width: 100%;
	}
}