/* YKG Panel — Atlas Logistic UI clone (blue accent, NO green) */

:root {
	--a-orange: #2563eb;
	--a-orange-deep: #1d4ed8;
	--a-orange-soft: #eff6ff;
	--a-orange-mid: #93c5fd;
	--a-orange-rgb: 37, 99, 235;
	--a-navy: #070730;
	--a-navy-2: #10122a;
	--a-bg: #f4f5f7;
	--a-card: #ffffff;
	--a-text: #1a1c2e;
	--a-muted: #8b90a5;
	--a-line: #e8eaf0;
	--a-blue: #3b82f6;
	--a-blue-soft: #eff6ff;
	--a-red-soft: #fff1f2;
	--a-red: #e11d48;
	--a-radius: 16px;
	--a-radius-sm: 12px;
	--a-side: 248px;
	--a-rail: 320px;
	--a-font: "Plus Jakarta Sans", system-ui, sans-serif;
	--a-shadow: 0 4px 24px rgba(16, 18, 42, 0.05);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--a-bg); }

body.atlas-body,
body.ykg-login-page {
	margin: 0;
	min-height: 100%;
	font-family: var(--a-font);
	color: var(--a-text);
	background: var(--a-bg);
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ========== LOGIN (orange/navy) ========== */
body.ykg-login-page { background: var(--a-navy); }

.ykg-login-shell {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	min-height: 100vh;
}

.ykg-login-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 3.5rem);
	background: #070730;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ykg-login-hero__media {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(160deg, rgba(5, 5, 33, 0.72), rgba(7, 7, 48, 0.55) 45%, rgba(5, 5, 33, 0.78)),
		var(--ykg-login-hero-bg, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	pointer-events: none;
}

.ykg-login-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
	pointer-events: none;
}

.ykg-login-hero__glow {
	position: absolute;
	width: 380px;
	height: 380px;
	right: -60px;
	top: 25%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--a-orange-rgb),0.35), transparent 70%);
	pointer-events: none;
}

.ykg-login-hero__content { position: relative; z-index: 1; max-width: 480px; }

.ykg-login-hero__logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
}

.ykg-login-hero__logo-img {
	display: block;
	width: auto;
	max-width: 320px;
	height: 110px;
	object-fit: contain;
	object-position: left center;
	filter: brightness(0) invert(1);
}

.ykg-mark,
.atlas-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--a-orange);
	color: #fff;
	font-weight: 800;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
}

.atlas-logo {
	background: transparent;
	color: var(--a-orange);
	width: auto;
	height: auto;
}

.ykg-login-hero__word { font-weight: 700; font-size: 1.1rem; }

.ykg-login-hero__title {
	margin: 0 0 0.9rem;
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.ykg-login-hero__lead {
	margin: 0 0 1.5rem;
	color: rgba(255,255,255,0.7);
	line-height: 1.55;
	max-width: 38ch;
}

.ykg-login-hero__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ykg-login-hero__points li {
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	font-size: 0.8rem;
	font-weight: 600;
}

.ykg-login-hero__route {
	display: flex;
	align-items: center;
	max-width: 260px;
	margin-top: 2rem;
	position: relative;
	z-index: 1;
}

.ykg-login-hero__pin {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--a-orange);
	box-shadow: 0 0 0 5px rgba(var(--a-orange-rgb),0.2);
}

.ykg-login-hero__pin--b { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,0.15); }

.ykg-login-hero__line {
	flex: 1;
	height: 2px;
	margin: 0 0.35rem;
	background: linear-gradient(90deg, var(--a-orange), rgba(255,255,255,0.45));
}

.ykg-login-panel {
	background: #f7f8fb;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.ykg-login-panel__back {
	align-self: flex-start;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--a-muted);
	margin-bottom: 2rem;
}

.ykg-login-panel__inner {
	width: min(400px, 100%);
	margin: auto;
}

.ykg-login-panel__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--a-orange);
}

.ykg-login-panel__inner h2 {
	margin: 0 0 0.35rem;
	font-size: 1.7rem;
	letter-spacing: -0.03em;
}

.ykg-login-panel__sub {
	margin: 0 0 1.5rem;
	color: var(--a-muted);
}

.ykg-login-alert {
	background: var(--a-red-soft);
	color: var(--a-red);
	padding: 0.85rem 1rem;
	border-radius: 12px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.ykg-login-form { display: grid; gap: 1rem; }

.ykg-login-form__field { display: grid; gap: 0.35rem; }

.ykg-login-form__field span {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--a-muted);
}

.ykg-login-form__field input {
	min-height: 50px;
	border: 1px solid var(--a-line);
	border-radius: 12px;
	padding: 0.65rem 0.95rem;
	font: inherit;
	background: #fff;
}

.ykg-login-form__field input:focus {
	outline: none;
	border-color: var(--a-orange);
	box-shadow: 0 0 0 4px rgba(var(--a-orange-rgb), 0.15);
}

.ykg-login-form__field input.is-invalid,
.ykg-login-form__field textarea.is-invalid,
.ykg-login-form__field select.is-invalid {
	border-color: var(--a-red);
}

.ykg-login-form__remember {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
	color: var(--a-muted);
}

.ykg-login-form__submit {
	min-height: 52px;
	border: 0;
	border-radius: 12px;
	background: var(--a-orange);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(var(--a-orange-rgb), 0.3);
}

.ykg-login-form__submit:hover { background: var(--a-orange-deep); }

.ykg-login-page.is-register .ykg-login-panel__inner {
	width: min(480px, 100%);
}

.ykg-login-switch {
	margin: 1.35rem 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--a-muted);
}

.ykg-login-switch a {
	color: var(--a-orange);
	font-weight: 700;
	margin-left: 0.25rem;
}

.ykg-login-switch a:hover { text-decoration: underline; }

.ykg-reg-steps {
	list-style: none;
	margin: 0 0 1.35rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.35rem;
}

.ykg-reg-steps li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.68rem;
	font-weight: 650;
	color: var(--a-muted);
	text-align: center;
}

.ykg-reg-steps li span {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #fff;
	border: 1px solid var(--a-line);
	font-size: 0.78rem;
}

.ykg-reg-steps li.is-active { color: var(--a-navy); }
.ykg-reg-steps li.is-active span {
	background: var(--a-orange);
	border-color: var(--a-orange);
	color: #fff;
}
.ykg-reg-steps li.is-done span {
	background: var(--a-orange-soft);
	border-color: var(--a-orange);
	color: var(--a-orange-deep);
}

.ykg-reg-pane__lead {
	margin: 0 0 0.9rem;
	font-size: 0.95rem;
	font-weight: 650;
	color: var(--a-navy);
}

.ykg-reg-type {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1.1rem;
}

.ykg-reg-type__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1rem 0.95rem;
	border: 1px solid var(--a-line);
	border-radius: 14px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ykg-reg-type__card strong {
	font-size: 0.95rem;
	color: var(--a-navy);
}

.ykg-reg-type__card span {
	font-size: 0.78rem;
	color: var(--a-muted);
	line-height: 1.35;
}

.ykg-reg-type__card.is-selected {
	border-color: var(--a-orange);
	box-shadow: 0 0 0 3px rgba(var(--a-orange-rgb), 0.12);
}

.ykg-reg-fields {
	display: grid;
	gap: 1rem;
	margin-bottom: 1rem;
}

.ykg-reg-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
}

.ykg-login-form__field textarea,
.ykg-login-form__field select {
	min-height: 50px;
	border: 1px solid var(--a-line);
	border-radius: 12px;
	padding: 0.65rem 0.95rem;
	font: inherit;
	background: #fff;
	width: 100%;
}

.ykg-login-form__field textarea { min-height: 96px; resize: vertical; }

.ykg-login-form__field textarea:focus,
.ykg-login-form__field select:focus {
	outline: none;
	border-color: var(--a-orange);
	box-shadow: 0 0 0 4px rgba(var(--a-orange-rgb), 0.15);
}

.ykg-login-form__check {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.82rem;
	color: var(--a-muted);
	line-height: 1.4;
	margin-bottom: 0.65rem;
}

.ykg-login-form__check input { margin-top: 0.2rem; }

.ykg-reg-actions {
	display: flex;
	gap: 0.65rem;
	margin-top: 0.5rem;
}

.ykg-reg-actions .ykg-login-form__submit { flex: 1; }
.ykg-reg-actions .ykg-btn--ghost {
	min-height: 52px;
	padding: 0 1.1rem;
	border: 1px solid var(--a-line);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	color: var(--a-navy);
}

.ykg-reg-form .ykg-login-alert--inline {
	margin-bottom: 0.85rem;
}

@media (max-width: 640px) {
	.ykg-reg-type { grid-template-columns: 1fr; }
	.ykg-reg-grid { grid-template-columns: 1fr; }
	.ykg-reg-steps li { font-size: 0.62rem; }
}

/* ========== APP SHELL ========== */
.atlas {
	display: grid;
	grid-template-columns: var(--a-side) 1fr;
	min-height: 100vh;
}

.atlas-side {
	position: sticky;
	top: 0;
	height: 100vh;
	background: #fff;
	border-right: 1px solid var(--a-line);
	display: flex;
	flex-direction: column;
	padding: 0.55rem 0.85rem 1.1rem;
	z-index: 40;
}

.atlas-side__brand {
	display: block;
	height: 72px;
	padding: 0;
	margin: 0 0 0.55rem;
	overflow: hidden;
	line-height: 0;
	font-weight: 800;
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	color: var(--a-navy);
}

.atlas-side__logo {
	display: block;
	width: 100%;
	height: 118px;
	margin-top: -22px;
	object-fit: contain;
	object-position: center;
}

.atlas-side__user {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0.35rem 1.1rem;
	padding: 0.55rem 0.65rem;
	background: var(--a-bg);
	border-radius: 14px;
}

.atlas-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--a-navy);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.85rem;
	flex-shrink: 0;
}

.atlas-avatar--sm { width: 34px; height: 34px; font-size: 0.75rem; }

.atlas-side__user-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}

.atlas-side__user-meta strong {
	font-size: 0.84rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atlas-side__user-meta small {
	font-size: 0.72rem;
	color: var(--a-muted);
}

.atlas-nav {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1;
	overflow-y: auto;
}

.atlas-nav__link {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 0.8rem;
	border-radius: 12px;
	color: #5c6278;
	font-size: 0.88rem;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
}

.atlas-nav__link:hover {
	background: #f7f8fb;
	color: var(--a-navy);
}

.atlas-nav__link.is-active {
	background: var(--a-orange-soft);
	color: var(--a-orange);
	font-weight: 650;
}

.atlas-nav__ico {
	display: grid;
	place-items: center;
	width: 20px;
	opacity: 0.9;
}

.atlas-nav__ico .ykg-ico {
	width: 18px;
	height: 18px;
}

.atlas-side__secondary {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--a-line);
	margin-top: 0.5rem;
}

.atlas-side__cta {
	margin: 0.85rem 0.25rem 0.25rem;
	padding: 1.1rem;
	border-radius: 16px;
	background: linear-gradient(160deg, #070730, #12143a);
	color: #fff;
}

.atlas-side__cta p {
	margin: 0 0 0.85rem;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.4;
}

.atlas-side__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 0.95rem;
	border-radius: 10px;
	background: var(--a-orange);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.atlas-workspace {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.atlas-top {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1.15rem 1.5rem 0.35rem;
}

.atlas-top__title {
	margin: 0;
	font-size: 1.65rem;
	font-weight: 750;
	letter-spacing: -0.03em;
}

.atlas-top__right { margin-left: auto; }

.atlas-menu {
	display: none;
	width: 40px;
	height: 40px;
	border: 0;
	background: #fff;
	border-radius: 10px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 10px;
	cursor: pointer;
	box-shadow: var(--a-shadow);
}

.atlas-menu span {
	display: block;
	height: 2px;
	background: var(--a-navy);
	border-radius: 2px;
}

.atlas-page { padding: 0.75rem 1.5rem 2rem; }

.atlas-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(7, 7, 48, 0.45);
	z-index: 30;
}

.atlas-flash {
	margin: 0.5rem 1.5rem 0;
	padding: 0.8rem 1rem;
	border-radius: 12px;
	font-size: 0.9rem;
	font-weight: 500;
}

.atlas-flash--success { background: var(--a-blue-soft); color: #1d4ed8; }
.atlas-flash--error { background: var(--a-red-soft); color: var(--a-red); }
.atlas-flash--info { background: var(--a-orange-soft); color: var(--a-orange-deep); }

/* Buttons */
.atlas-btn,
.ykg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 42px;
	padding: 0.55rem 1rem;
	border-radius: 11px;
	border: 0;
	font: inherit;
	font-weight: 650;
	font-size: 0.86rem;
	cursor: pointer;
	text-decoration: none;
}

.atlas-btn--sm,
.ykg-btn--sm { min-height: 36px; padding: 0.4rem 0.85rem; font-size: 0.8rem; }

.atlas-btn--primary,
.ykg-btn--primary {
	background: var(--a-orange);
	color: #fff;
	box-shadow: 0 8px 18px rgba(var(--a-orange-rgb), 0.25);
}

.atlas-btn--primary:hover,
.ykg-btn--primary:hover { background: var(--a-orange-deep); }

.ykg-btn--ghost {
	background: #fff;
	color: var(--a-text);
	border: 1px solid var(--a-line);
}

.ykg-btn--ghost-light {
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.18);
}

.atlas-text-link,
.ykg-text-link,
.ykg-link {
	color: var(--a-orange);
	font-weight: 650;
	font-size: 0.86rem;
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
}

/* Dashboard 3-col */
.atlas-dash {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--a-rail);
	gap: 1.15rem;
	align-items: start;
}

.atlas-dash__center {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1.05rem;
}

.atlas-freight {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.atlas-freight__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.95rem;
	border-radius: 999px;
	background: transparent;
	border: 1px solid var(--a-line);
	color: var(--a-muted);
	font-size: 0.82rem;
	font-weight: 650;
}

.atlas-freight__btn .ykg-ico { width: 14px; height: 14px; }

.atlas-freight__btn.is-active {
	background: var(--a-orange);
	border-color: var(--a-orange);
	color: #fff;
}

.atlas-kpi-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.85rem;
}

.atlas-kpi {
	background: var(--a-card);
	border-radius: var(--a-radius);
	padding: 1.15rem 1.2rem;
	box-shadow: var(--a-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.atlas-kpi__num {
	font-size: 1.7rem;
	letter-spacing: -0.04em;
	font-weight: 750;
	line-height: 1;
}

.atlas-kpi__label {
	font-size: 0.8rem;
	color: var(--a-muted);
	font-weight: 500;
}

.atlas-kpi__trend {
	font-size: 0.72rem;
	font-weight: 650;
	color: var(--a-muted);
	margin-top: 0.35rem;
}

.atlas-kpi__trend.is-up { color: var(--a-orange); }
.atlas-kpi__trend.is-warn { color: var(--a-blue); }

.atlas-kpi--dark {
	background: linear-gradient(145deg, #12122a, #070730);
	color: #fff;
	border: 0;
}

.atlas-kpi--dark .atlas-kpi__label,
.atlas-kpi--orange .atlas-kpi__label,
.atlas-kpi--dark .atlas-kpi__trend,
.atlas-kpi--orange .atlas-kpi__trend {
	color: rgba(255,255,255,0.7);
}

.atlas-kpi--orange {
	background: linear-gradient(145deg, var(--a-orange), var(--a-orange-deep));
	color: #fff;
	border: 0;
}

.atlas-kpi__num--sm {
	font-size: 1.25rem;
}

/* Analytics page */
.atlas-analytics {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.atlas-analytics__toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.atlas-analytics__title {
	margin: 0;
	font-size: 1.35rem;
	letter-spacing: -0.03em;
}

.atlas-analytics__kpis {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atlas-analytics__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr;
	gap: 1rem;
	align-items: start;
}

.atlas-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 24px;
	padding: 0 0.45rem;
	border-radius: 999px;
	background: #f1f2f6;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--a-muted);
}

.atlas-rank {
	list-style: none;
	margin: 0;
	padding: 0.85rem 1.15rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.atlas-rank li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 0.7rem;
	align-items: start;
}

.atlas-rank__n {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--a-orange-soft);
	color: var(--a-orange-deep);
	display: grid;
	place-items: center;
	font-size: 0.75rem;
	font-weight: 800;
}

.atlas-rank__body {
	min-width: 0;
}

.atlas-rank__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.3rem;
}

.atlas-rank__top strong {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--a-navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atlas-rank__top span {
	font-size: 0.72rem;
	font-weight: 650;
	color: var(--a-muted);
	flex-shrink: 0;
}

.atlas-rank__bar {
	height: 6px;
	border-radius: 999px;
	background: #eceef3;
	overflow: hidden;
	margin-bottom: 0.25rem;
}

.atlas-rank__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--a-orange);
}

.atlas-rank__body small {
	font-size: 0.74rem;
	color: var(--a-muted);
	font-weight: 600;
}

.atlas-rank__empty {
	display: block !important;
	color: var(--a-muted);
	font-size: 0.88rem;
	padding: 0.5rem 0;
}

.atlas-charts {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 0.95rem;
}

.atlas-card {
	background: var(--a-card);
	border-radius: var(--a-radius);
	box-shadow: var(--a-shadow);
	overflow: hidden;
}

.atlas-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.15rem 0.35rem;
}

.atlas-card__head h3 {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.atlas-card__head--table {
	padding: 1rem 1.15rem;
	border-bottom: 1px solid var(--a-line);
}

.atlas-search input {
	min-height: 36px;
	border: 1px solid var(--a-line);
	border-radius: 10px;
	padding: 0.35rem 0.75rem;
	font: inherit;
	font-size: 0.82rem;
	background: var(--a-bg);
	width: 180px;
}

.atlas-select {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 0.75rem;
	border-radius: 10px;
	background: #f1f2f6;
	color: #5c6278;
	font-size: 0.75rem;
	font-weight: 650;
}

.atlas-card__head--filter {
	align-items: flex-start;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.atlas-period {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;
	margin-left: auto;
}

.atlas-period__row {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.atlas-period__select {
	min-height: 34px;
	border: 0;
	border-radius: 10px;
	background: #f1f2f6;
	color: #5c6278;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 650;
	padding: 0 0.7rem;
	cursor: pointer;
}

.atlas-period__apply {
	min-height: 34px;
	border: 0;
	border-radius: 10px;
	background: var(--a-orange);
	color: #fff;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0 0.75rem;
	cursor: pointer;
}

.atlas-period__custom {
	display: none;
	grid-template-columns: 1fr 1fr;
	gap: 0.45rem;
	width: min(280px, 100%);
	padding: 0.55rem;
	border-radius: 12px;
	background: #f7f8fb;
	border: 1px solid var(--a-line);
}

.atlas-period__custom.is-open {
	display: grid;
}

.atlas-period__custom label {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.65rem;
	font-weight: 650;
	color: var(--a-muted);
}

.atlas-period__custom input[type="date"] {
	min-height: 32px;
	border: 1px solid var(--a-line);
	border-radius: 8px;
	padding: 0.25rem 0.4rem;
	font: inherit;
	font-size: 0.75rem;
	background: #fff;
	color: var(--a-text);
}

.atlas-period__hint {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.7rem;
	color: var(--a-muted);
	font-weight: 550;
}

.atlas-chart-empty {
	margin: 0;
	padding: 1rem 0;
	color: var(--a-muted);
	font-size: 0.85rem;
}

.atlas-qrow__zero {
	position: absolute;
	left: 0.7rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.72rem;
	font-weight: 700;
	color: #9aa0b4;
	pointer-events: none;
}

.atlas-card__head--stack {
	align-items: flex-start;
}

.atlas-stack-legend {
	display: flex;
	gap: 0.85rem;
	margin-top: 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--a-muted);
}

.atlas-stack-legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.atlas-stack-legend .sq-gray,
.atlas-stack-legend .line-gray {
	width: 14px;
	height: 3px;
	border-radius: 2px;
	background: #b8becc;
	display: inline-block;
}

.atlas-stack-legend .dot-orange {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--a-orange);
	display: inline-block;
}

/* Line chart */
.atlas-line {
	position: relative;
	padding: 0.35rem 0.85rem 0.9rem;
	min-height: 240px;
}

.atlas-line__svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
}

.atlas-line__grid {
	stroke: #eceef3;
	stroke-width: 1;
}

.atlas-line__ylabel,
.atlas-line__xlabel {
	fill: #9aa0b4;
	font-size: 10px;
	font-weight: 650;
	font-family: var(--a-font);
}

.atlas-line__path {
	stroke-width: 2.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.atlas-line__path--ship {
	stroke: #b8becc;
}

.atlas-line__path--del {
	stroke: var(--a-orange);
}

.atlas-line__dot {
	stroke: #fff;
	stroke-width: 2;
	cursor: pointer;
	transition: r 0.15s ease;
}

.atlas-line__dot--ship { fill: #9aa3b5; }
.atlas-line__dot--del { fill: var(--a-orange); }

.atlas-line__dot.is-active {
	r: 7;
}

.atlas-line__hit {
	fill: transparent;
	cursor: pointer;
}

.atlas-line__tooltip {
	position: absolute;
	z-index: 5;
	min-width: 120px;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	background: var(--a-navy);
	color: #fff;
	font-size: 0.75rem;
	line-height: 1.35;
	pointer-events: none;
	box-shadow: 0 10px 24px rgba(7, 7, 48, 0.25);
	transform: translate(-50%, calc(-100% - 10px));
}

.atlas-line__tooltip strong {
	display: block;
	font-size: 0.8rem;
	margin-bottom: 0.25rem;
}

.atlas-line__tooltip span {
	display: block;
	color: rgba(255,255,255,0.78);
}

.atlas-line__tooltip b {
	color: #fff;
	font-weight: 700;
}

/* Daily turnover / mode distribution */
.atlas-ciro {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.5rem 1.25rem 1.35rem;
	gap: 1.15rem;
}

.atlas-ciro__donut {
	--p-air: 0;
	--p-road: 0;
	--p-sea: 0;
	width: 168px;
	height: 168px;
	border-radius: 50%;
	background: conic-gradient(
		var(--a-orange) 0 calc(var(--p-air) * 1%),
		#070730 calc(var(--p-air) * 1%) calc((var(--p-air) + var(--p-road)) * 1%),
		#c5cad8 calc((var(--p-air) + var(--p-road)) * 1%) calc((var(--p-air) + var(--p-road) + var(--p-sea)) * 1%),
		#eceef4 calc((var(--p-air) + var(--p-road) + var(--p-sea)) * 1%) 100%
	);
	display: grid;
	place-items: center;
	position: relative;
}

.atlas-ciro__donut.is-empty {
	background: conic-gradient(#eceef4 0 100%);
}

.atlas-ciro__donut::before {
	content: "";
	position: absolute;
	inset: 26px;
	background: #fff;
	border-radius: 50%;
}

.atlas-ciro__center {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 110px;
	line-height: 1.2;
}

.atlas-ciro__center span {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--a-navy);
	margin-bottom: 0.2rem;
}

.atlas-ciro__center strong {
	display: block;
	font-size: 1.15rem;
	letter-spacing: -0.03em;
	font-weight: 800;
	color: var(--a-navy);
}

.atlas-ciro__list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.atlas-ciro__list li {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	gap: 0.75rem;
	align-items: center;
}

.atlas-ciro__badge {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	flex-shrink: 0;
	background: var(--a-orange);
}

.atlas-ciro__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.atlas-ciro__meta strong {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--a-navy);
}

.atlas-ciro__meta small {
	font-size: 0.78rem;
	color: var(--a-muted);
	font-weight: 600;
}

.atlas-ciro__count {
	font-size: 1rem;
	font-weight: 800;
	color: var(--a-navy);
}

/* Shipping Revenue — legacy (kept for safety) */
.atlas-rev {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	padding: 0.85rem 1.35rem 1.45rem;
}

.atlas-rev__donut {
	--pct: 81;
	width: 148px;
	height: 148px;
	border-radius: 50%;
	background: conic-gradient(
		var(--a-orange) 0 calc(var(--pct) * 1%),
		#eceef4 calc(var(--pct) * 1%) 100%
	);
	display: grid;
	place-items: center;
	position: relative;
	flex-shrink: 0;
}

.atlas-rev__donut::before {
	content: "";
	position: absolute;
	inset: 20px;
	background: #fff;
	border-radius: 50%;
}

.atlas-rev__donut-center {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 96px;
	line-height: 1.2;
}

.atlas-rev__donut-center span {
	display: block;
	font-size: 0.66rem;
	color: var(--a-muted);
	font-weight: 600;
	margin-bottom: 0.15rem;
}

.atlas-rev__donut-center strong {
	display: block;
	font-size: 1.2rem;
	letter-spacing: -0.035em;
	font-weight: 800;
	color: var(--a-navy);
	margin-bottom: 0.2rem;
}

.atlas-rev__donut-center em {
	display: block;
	font-style: normal;
	font-size: 0.6rem;
	color: #9aa0b4;
	font-weight: 550;
	line-height: 1.3;
}

.atlas-rev__quarters {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-width: 0;
	width: 100%;
}

.atlas-qrow {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 0.65rem;
	align-items: center;
	width: 100%;
}

.atlas-qrow__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: #8b90a5;
}

.atlas-qrow__track {
	height: 30px;
	border-radius: 999px;
	background: #eceef3;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.atlas-qrow__fill {
	height: 100%;
	max-width: 100%;
	border-radius: 999px;
	background: #b0b6c6;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	padding: 0 0.7rem;
	box-sizing: border-box;
	min-width: 4.5rem;
}

.atlas-qrow__fill span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1;
}

.atlas-qrow.is-highlight .atlas-qrow__fill {
	background: var(--a-navy);
}

.atlas-qrow.is-highlight .atlas-qrow__label {
	color: var(--a-navy);
	font-weight: 800;
}

/* Shipment Statistic — stacked bars */
.atlas-stack {
	display: grid;
	grid-template-columns: 36px 1fr;
	gap: 0.35rem;
	padding: 0.25rem 1.15rem 1rem 0.85rem;
	min-height: 220px;
}

.atlas-stack__y {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0.15rem 0 1.6rem;
	font-size: 0.65rem;
	font-weight: 650;
	color: #9aa0b4;
}

.atlas-stack__plot {
	position: relative;
	min-height: 190px;
	padding-bottom: 1.5rem;
}

.atlas-stack__grid {
	position: absolute;
	inset: 0 0 1.5rem 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	pointer-events: none;
}

.atlas-stack__grid span {
	display: block;
	height: 1px;
	background: #eceef3;
}

.atlas-stack__bars {
	position: relative;
	z-index: 1;
	height: 100%;
	min-height: 170px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.65rem;
	padding: 0 0.35rem;
}

.atlas-stack__col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	gap: 0.45rem;
}

.atlas-stack__bar {
	width: 100%;
	max-width: 34px;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 24px;
}

.atlas-stack__top {
	background: #eceef4;
	min-height: 4px;
}

.atlas-stack__bot {
	background: var(--a-orange);
	min-height: 8px;
	border-radius: 0 0 10px 10px;
}

.atlas-stack__col small {
	font-size: 0.7rem;
	font-weight: 650;
	color: var(--a-muted);
}

.c-orange { background: var(--a-orange); }
.c-navy { background: var(--a-navy); }
.c-gray { background: #c5cad8; }

.atlas-table-wrap { overflow-x: auto; }

.atlas-table,
.ykg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86rem;
}

.atlas-table th,
.atlas-table td,
.ykg-table th,
.ykg-table td {
	padding: 0.9rem 1.1rem;
	text-align: left;
	border-bottom: 1px solid var(--a-line);
	vertical-align: middle;
}

.atlas-table th,
.ykg-table th {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--a-muted);
	font-weight: 700;
	background: #fafbfd;
}

.atlas-table tbody tr:hover td,
.ykg-table tbody tr:hover td { background: #fafbfd; }

.atlas-table a { font-weight: 700; color: var(--a-navy); }
.atlas-table a:hover { color: var(--a-orange); }

.atlas-route {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
}

.atlas-route span { color: var(--a-muted); font-weight: 500; }

.atlas-empty,
.ykg-empty {
	text-align: center;
	color: var(--a-muted);
	padding: 2rem !important;
}

.atlas-status,
.ykg-status {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
}

.atlas-status--shipped,
.atlas-status--confirmed,
.ykg-status--shipped,
.ykg-status--confirmed {
	background: var(--a-orange-soft);
	color: var(--a-orange-deep);
}

.atlas-status--delivered,
.ykg-status--delivered {
	background: var(--a-blue-soft);
	color: #1d4ed8;
}

.atlas-status--pending,
.atlas-status--pending_quote,
.atlas-status--quoted,
.ykg-status--pending,
.ykg-status--pending_quote,
.ykg-status--quoted {
	background: #eef2ff;
	color: #4338ca;
}

.atlas-status--cancelled,
.atlas-status--draft,
.ykg-status--cancelled,
.ykg-status--draft {
	background: var(--a-red-soft);
	color: var(--a-red);
}

/* Right rail */
.atlas-rail {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
	position: sticky;
	top: 0.75rem;
}

.atlas-map {
	margin: 0.35rem 1rem 0;
	border-radius: 14px;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(var(--a-orange-rgb),0.06), transparent),
		#eef0f5;
	height: 140px;
}

.atlas-map svg { width: 100%; height: 100%; display: block; }

.atlas-track__meta { padding: 1rem 1.15rem 1.15rem; }

.atlas-track__id {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.9rem;
}

.atlas-track__id strong {
	font-size: 0.95rem;
	letter-spacing: -0.02em;
}

.atlas-track__route {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.atlas-track__route small {
	display: block;
	font-size: 0.68rem;
	color: var(--a-muted);
	margin-bottom: 0.2rem;
	font-weight: 600;
}

.atlas-track__route strong {
	font-size: 0.84rem;
	line-height: 1.25;
}

.atlas-courier {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.7rem;
	background: var(--a-bg);
	border-radius: 12px;
	margin-bottom: 0.85rem;
}

.atlas-courier strong { display: block; font-size: 0.84rem; }
.atlas-courier small { color: var(--a-muted); font-size: 0.72rem; }

.atlas-icon-btn {
	margin-left: auto;
	min-height: 32px;
	padding: 0 0.7rem;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--a-line);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--a-navy);
}

.atlas-track__empty {
	padding: 1rem 1.15rem 1.25rem;
	color: var(--a-muted);
	font-size: 0.88rem;
}

.atlas-timeline {
	list-style: none;
	margin: 0;
	padding: 0.35rem 1.15rem 1.15rem;
	position: relative;
}

.atlas-timeline::before {
	content: "";
	position: absolute;
	left: calc(1.15rem + 5px);
	top: 1rem;
	bottom: 1.4rem;
	width: 2px;
	background: var(--a-line);
}

.atlas-timeline li {
	display: grid;
	grid-template-columns: 14px 1fr;
	gap: 0.75rem;
	margin-bottom: 1rem;
	position: relative;
}

.atlas-timeline__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #c5cad8;
	margin-top: 0.2rem;
	z-index: 1;
}

.atlas-timeline li.is-done .atlas-timeline__dot {
	border-color: var(--a-orange);
	background: var(--a-orange);
}

.atlas-timeline strong {
	display: block;
	font-size: 0.84rem;
	margin-bottom: 0.15rem;
}

.atlas-timeline small {
	color: var(--a-muted);
	font-size: 0.72rem;
}

.atlas-activity {
	list-style: none;
	margin: 0;
	padding: 0.25rem 1.15rem 1.15rem;
}

.atlas-activity li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--a-line);
}

.atlas-activity li:last-child { border-bottom: 0; }

.atlas-activity strong {
	display: block;
	font-size: 0.84rem;
	margin-bottom: 0.15rem;
}

.atlas-activity span {
	font-size: 0.74rem;
	color: var(--a-muted);
}

/* Legacy page surfaces → Atlas tokens */
.ykg-card,
.ykg-surface {
	background: var(--a-card);
	border-radius: var(--a-radius);
	box-shadow: var(--a-shadow);
	margin-bottom: 1.15rem;
	overflow: hidden;
}

.ykg-card__head,
.ykg-surface__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid var(--a-line);
}

.ykg-card__head h2,
.ykg-surface__head h3 {
	margin: 0;
	font-size: 0.98rem;
}

.ykg-card--accent { border: 1px solid rgba(var(--a-orange-rgb), 0.3); }

.ykg-page__toolbar,
.ykg-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ykg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	flex: 1;
}

.ykg-filters input,
.ykg-filters select,
.ykg-fields input,
.ykg-fields select,
.ykg-fields textarea,
.ykg-upload-form input,
.ykg-upload-form select,
.ykg-package__grid input,
.ykg-invoice-row input,
.ykg-table input {
	min-height: 42px;
	border: 1px solid var(--a-line);
	border-radius: 10px;
	padding: 0.5rem 0.7rem;
	font: inherit;
	background: #fff;
}

.ykg-filters input:focus,
.ykg-fields input:focus,
.ykg-fields select:focus,
.ykg-fields textarea:focus {
	outline: none;
	border-color: var(--a-orange);
	box-shadow: 0 0 0 3px rgba(var(--a-orange-rgb), 0.12);
}

.ykg-mode-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.ykg-mode-tabs__item {
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--a-line);
	font-size: 0.82rem;
	font-weight: 650;
	color: var(--a-muted);
}

.ykg-mode-tabs__item.is-active {
	background: var(--a-orange);
	border-color: var(--a-orange);
	color: #fff;
}

.ykg-page__split {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 1.15rem;
	align-items: start;
}

.ykg-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	padding: 1.1rem 1.15rem 1.2rem;
}

.ykg-fields label,
.ykg-upload-form label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.78rem;
	font-weight: 650;
	color: var(--a-muted);
}

.ykg-field--full { grid-column: 1 / -1; }
.ykg-field--wide { grid-column: span 2; }

.ykg-form-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.15rem;
	margin-bottom: 1.15rem;
}

.ykg-form-grid--2 { grid-template-columns: 1fr 1fr; }

.ykg-price-preview__list {
	list-style: none;
	margin: 0;
	padding: 1rem 1.15rem;
}

.ykg-price-preview__list li {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--a-line);
	font-size: 0.9rem;
}

.ykg-price-preview__list li.is-total {
	border-bottom: 0;
	font-size: 1.05rem;
	padding-top: 0.85rem;
}

.ykg-price-preview__note { padding: 0 1.15rem 1.15rem; margin: 0; color: var(--a-muted); font-size: 0.82rem; }

.ykg-price-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.15rem;
	padding: 0 1.15rem 1rem;
}

.ykg-price-col {
	border: 1px solid var(--a-line);
	border-radius: 12px;
	background: #fafbfd;
	overflow: hidden;
}

.ykg-price-col__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border-bottom: 1px solid var(--a-line);
}

.ykg-price-col__head strong {
	font-size: 1rem;
	color: var(--a-navy);
}

.ykg-price-col__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.ykg-price-tpl-select {
	min-height: 34px;
	border: 1px solid var(--a-line);
	border-radius: 8px;
	padding: 0.25rem 0.5rem;
	font: inherit;
	background: #fff;
	max-width: 180px;
}

.ykg-price-col__list {
	display: flex;
	flex-direction: column;
	max-height: 520px;
	overflow: auto;
	padding: 0.5rem 0.75rem;
}

.ykg-price-row {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 0.55rem;
	align-items: center;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--a-line);
	font-size: 0.82rem;
	font-weight: 650;
	color: var(--a-muted);
}

.ykg-price-row:last-child { border-bottom: 0; }

.ykg-price-row input {
	min-height: 38px;
	border: 1px solid var(--a-line);
	border-radius: 8px;
	padding: 0.35rem 0.55rem;
	font: inherit;
	background: #fff;
	width: 100%;
}

.ykg-price-row--plus {
	margin-top: 0.35rem;
	padding-top: 0.65rem;
	border-top: 1px dashed var(--a-line);
	color: var(--a-navy);
}

.ykg-price-row small {
	display: block;
	font-weight: 500;
	color: var(--a-muted);
}

.ykg-price-col__save {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid var(--a-line);
	background: #fff;
}

.ykg-price-col__save input[type="text"] {
	flex: 1;
	min-width: 140px;
	min-height: 34px;
	border: 1px solid var(--a-line);
	border-radius: 8px;
	padding: 0.35rem 0.55rem;
	font: inherit;
}

.ykg-check-row {
	flex-direction: row !important;
	align-items: center;
	gap: 0.5rem !important;
}

.ykg-check-row input { width: auto; min-height: auto; }

@media (max-width: 980px) {
	.ykg-price-cols { grid-template-columns: 1fr; }
}

.ykg-packages { padding: 0 1.15rem 1.15rem; }

.ykg-package {
	border: 1px solid var(--a-line);
	border-radius: var(--a-radius-sm);
	padding: 1rem;
	margin-bottom: 0.75rem;
	background: #fafbfd;
}

.ykg-package__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.6rem;
}

.ykg-package__grid label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.72rem;
	font-weight: 650;
	color: var(--a-muted);
}

.ykg-invoice {
	margin-top: 0.95rem;
	padding-top: 0.85rem;
	border-top: 1px dashed var(--a-line);
}

.ykg-invoice__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.55rem;
}

.ykg-invoice__head strong {
	font-size: 0.84rem;
	color: var(--a-ink);
}

.ykg-btn--sm {
	min-height: 34px;
	padding: 0.35rem 0.7rem;
	font-size: 0.78rem;
}

.ykg-invoice__cols,
.ykg-invoice-row {
	display: grid;
	grid-template-columns: 1.1fr 1.6fr 0.7fr 1fr 0.8fr 36px;
	gap: 0.45rem;
	align-items: center;
}

.ykg-invoice__cols {
	margin-bottom: 0.35rem;
	padding: 0 0.1rem;
	font-size: 0.68rem;
	font-weight: 650;
	color: var(--a-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ykg-invoice-rows {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ykg-invoice-row .js-line-total {
	font-size: 0.86rem;
	text-align: right;
	color: var(--a-ink);
}

.ykg-invoice-row__remove {
	width: 36px;
	height: 36px;
	border: 1px solid var(--a-line);
	border-radius: 10px;
	background: #fff;
	color: var(--a-muted);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.ykg-invoice-row__remove:hover {
	border-color: #d94a4a;
	color: #d94a4a;
}

.ykg-package__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.15rem;
	margin-top: 0.7rem;
	font-size: 0.82rem;
	color: var(--a-muted);
}

.ykg-detail__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.85rem;
	margin-bottom: 1.15rem;
}

.ykg-detail__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.15rem;
	align-items: start;
}

.ykg-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.85rem;
	margin-bottom: 1.15rem;
}

.ykg-kpi-grid--finance { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ykg-kpi {
	background: var(--a-card);
	border-radius: var(--a-radius);
	padding: 1.05rem 1.15rem;
	box-shadow: var(--a-shadow);
}

.ykg-kpi--dark {
	background: linear-gradient(145deg, #12122a, #070730);
	color: #fff;
}

.ykg-kpi--accent {
	background: linear-gradient(145deg, var(--a-orange), var(--a-orange-deep));
	color: #fff;
}

.ykg-kpi__label {
	display: block;
	font-size: 0.75rem;
	color: var(--a-muted);
	margin-bottom: 0.4rem;
}

.ykg-kpi--dark .ykg-kpi__label,
.ykg-kpi--accent .ykg-kpi__label { color: rgba(255,255,255,0.7); }

.ykg-kpi__value {
	font-size: 1.4rem;
	letter-spacing: -0.03em;
	font-weight: 750;
}

.ykg-muted { color: var(--a-muted); font-size: 0.8rem; }
.ykg-badge {
	display: inline-flex;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: #eef1f6;
	font-size: 0.72rem;
	font-weight: 650;
}

.ykg-timeline {
	position: relative;
	padding: 1rem 1.15rem 1.15rem 1.7rem;
}

.ykg-timeline::before {
	content: "";
	position: absolute;
	left: 1.5rem;
	top: 1.3rem;
	bottom: 1.3rem;
	width: 2px;
	background: var(--a-line);
}

.ykg-timeline__item {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.ykg-timeline__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--a-navy);
	margin-top: 0.2rem;
	z-index: 1;
}

.ykg-timeline__dot.is-live {
	border-color: var(--a-orange);
	box-shadow: 0 0 0 4px rgba(var(--a-orange-rgb), 0.18);
}

.ykg-timeline__item p { margin: 0.15rem 0; color: var(--a-muted); font-size: 0.88rem; }

.ykg-activity {
	list-style: none;
	margin: 0;
	padding: 0.4rem 1.15rem 1.15rem;
}

.ykg-activity li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--a-line);
}

.ykg-activity li strong { display: block; margin-bottom: 0.15rem; }
.ykg-activity li span,
.ykg-activity li p { margin: 0.1rem 0; color: var(--a-muted); font-size: 0.88rem; }

.ykg-ticket-thread {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 0.4rem 1.15rem 1.15rem;
}

.ykg-ticket-msg {
	border: 1px solid var(--a-line);
	border-radius: 12px;
	padding: 0.85rem 1rem;
	background: #fff;
}

.ykg-ticket-msg.is-staff {
	border-color: rgba(var(--a-orange-rgb), 0.35);
	background: rgba(var(--a-orange-rgb), 0.04);
}

.ykg-ticket-msg header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.65rem;
	margin-bottom: 0.45rem;
}

.ykg-ticket-msg header small {
	margin-left: auto;
	color: var(--a-muted);
	font-size: 0.8rem;
}

.ykg-ticket-msg p {
	margin: 0;
	white-space: pre-wrap;
	line-height: 1.5;
}

.ykg-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.45rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--a-orange);
	background: rgba(var(--a-orange-rgb), 0.12);
}

.ykg-files {
	list-style: none;
	margin: 0;
	padding: 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.ykg-upload-form {
	display: grid;
	gap: 0.7rem;
	padding: 0 1.15rem 1.15rem;
}

.ykg-inline-form { display: inline; }

.ykg-empty-state {
	text-align: center;
	padding: 2.5rem 1.5rem;
}

.ykg-empty-state__visual {
	width: 56px;
	height: 56px;
	margin: 0 auto 0.85rem;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--a-orange-soft);
	color: var(--a-orange);
}

@media (max-width: 1200px) {
	.atlas-dash { grid-template-columns: 1fr; }
	.atlas-rail { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.atlas-charts { grid-template-columns: 1fr; }
	.atlas-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.atlas-analytics__grid { grid-template-columns: 1fr 1fr; }
	.atlas-analytics__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.ykg-login-shell { grid-template-columns: 1fr; }
	.ykg-login-hero { min-height: 38vh; }
	.atlas-rail { grid-template-columns: 1fr; }
	.atlas-analytics__grid { grid-template-columns: 1fr; }
	.ykg-form-grid,
	.ykg-form-grid--2,
	.ykg-detail__grid,
	.ykg-page__split { grid-template-columns: 1fr; }
	.ykg-package__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ykg-invoice__cols { display: none; }
	.ykg-invoice-row {
		grid-template-columns: 1fr 1fr;
		padding: 0.55rem;
		border: 1px solid var(--a-line);
		border-radius: 10px;
		background: #fff;
	}
	.ykg-invoice-row .js-line-total { grid-column: 1 / 2; text-align: left; }
	.ykg-invoice-row__remove { grid-column: 2 / 3; justify-self: end; }
	.ykg-field--wide { grid-column: 1 / -1; }
	.atlas-rev { grid-template-columns: 1fr; justify-items: center; }
	.atlas-rev__quarters { width: 100%; }
	.atlas-ciro { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 860px) {
	.atlas { grid-template-columns: 1fr; }
	.atlas-side {
		position: fixed;
		left: 0;
		top: 0;
		transform: translateX(-105%);
		transition: transform 0.25s ease;
		width: min(280px, 88vw);
		box-shadow: 8px 0 30px rgba(0,0,0,0.12);
	}
	.atlas.is-sidebar-open .atlas-side { transform: translateX(0); }
	.atlas.is-sidebar-open + .atlas-overlay { display: block; }
	.atlas-menu { display: inline-flex; }
	.atlas-kpi-row,
	.ykg-kpi-grid { grid-template-columns: 1fr 1fr; }
	.ykg-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
