/* ninja — mobile-first staff site. iPhone/Android tablet/phone friendly.
 * Big tap targets (≥48px), high contrast, bottom-nav-friendly safe-area
 * insets, minimal cognitive load. Designed for shop-floor + on-the-road.
 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
	margin: 0; padding: 0;
	background: #0f172a;
	color: #f1f5f9;
	font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	min-height: 100vh;
	overscroll-behavior: contain;
}

body {
	display: flex;
	flex-direction: column;
}

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

.ninja-bar {
	position: sticky; top: 0; z-index: 10;
	background: #0f172a;
	display: flex; align-items: center; justify-content: space-between;
	padding: env(safe-area-inset-top) 16px 8px;
	min-height: calc(48px + env(safe-area-inset-top));
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ninja-bar .brand { font-size: 18px; }
.ninja-bar .who { font-size: 13px; opacity: 0.7; font-family: ui-monospace, monospace; }

.ninja-home {
	flex: 1;
	padding: 16px 14px 80px;
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
}

.hero { padding: 8px 4px 18px; }
.hero-greet { font-size: 26px; font-weight: 700; }
.hero-sub { font-size: 14px; opacity: 0.7; margin-top: 2px; }

.ninja-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 24px;
}
.ninja-tile {
	background: #1e293b;
	border-radius: 14px;
	padding: 16px 14px;
	min-height: 110px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid rgba(255,255,255,0.06);
	border-left: 4px solid var(--accent, #2563eb);
	transition: transform .12s, background .12s;
	-webkit-user-select: none; user-select: none;
}
.ninja-tile:active { transform: scale(0.97); background: #273548; }
.ninja-tile .emoji { font-size: 30px; line-height: 1; }
.ninja-tile .lbl { font-size: 17px; font-weight: 700; }
.ninja-tile .sub { font-size: 12px; opacity: 0.7; margin-top: auto; }

.quick {
	background: #1e293b;
	border-radius: 14px;
	padding: 14px 12px;
	border: 1px solid rgba(255,255,255,0.06);
}
.quick-h {
	font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .4px; opacity: 0.55; margin-bottom: 8px;
}
.quick-row {
	display: grid;
	grid-template-columns: 60px 1fr;
	grid-template-rows: auto auto;
	gap: 0 8px;
	padding: 10px 6px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.quick-row:last-child { border-bottom: 0; }
.quick-row:active { background: #273548; }
.quick-row .qr-no {
	grid-row: 1 / 3;
	font-family: ui-monospace, monospace;
	font-weight: 700;
	color: #93c5fd;
	align-self: center;
}
.quick-row .qr-cust { font-size: 14px; font-weight: 600; }
.quick-row .qr-title { font-size: 12px; opacity: 0.7; grid-column: 2; }
.quick .empty { padding: 14px; text-align: center; opacity: 0.5; font-size: 13px; }

.ninja-foot {
	position: fixed; bottom: 0; left: 0; right: 0;
	padding: 8px 16px calc(env(safe-area-inset-bottom) + 8px);
	background: linear-gradient(0deg, #0f172a 60%, transparent);
	text-align: center;
}
.full-site {
	display: inline-block;
	padding: 8px 18px;
	background: rgba(255,255,255,0.08);
	border-radius: 999px;
	font-size: 12px;
	opacity: 0.7;
}
.full-site:active { opacity: 1; background: rgba(255,255,255,0.16); }

/* === jobs page === */
.ninja-list {
	flex: 1;
	padding: 8px 0 80px;
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
}
.ninja-search {
	margin: 8px 14px;
	background: #1e293b;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	height: 44px;
	border: 1px solid rgba(255,255,255,0.08);
}
.ninja-search input {
	flex: 1;
	background: transparent;
	border: 0;
	color: #f1f5f9;
	font: inherit;
	outline: none;
}
.ninja-search input::placeholder { color: rgba(241,245,249,0.5); }

.job-card {
	margin: 8px 14px;
	background: #1e293b;
	border-radius: 12px;
	padding: 12px 14px;
	border: 1px solid rgba(255,255,255,0.06);
	display: grid;
	grid-template-columns: 70px 1fr auto;
	grid-template-rows: auto auto auto;
	gap: 2px 10px;
	min-height: 70px;
}
.job-card:active { background: #273548; }
.job-card .jc-no {
	grid-row: 1 / 4;
	font-family: ui-monospace, monospace;
	font-size: 14px;
	font-weight: 700;
	color: #93c5fd;
	align-self: center;
}
.job-card .jc-cust { font-size: 15px; font-weight: 600; }
.job-card .jc-title { font-size: 13px; opacity: 0.7; }
.job-card .jc-meta {
	font-size: 11px; opacity: 0.55;
	display: flex; gap: 8px; align-items: center;
	font-family: ui-monospace, monospace;
}
.job-card .jc-state {
	grid-row: 1 / 4;
	align-self: center;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(147,197,253,0.15);
	color: #93c5fd;
	letter-spacing: .3px;
	white-space: nowrap;
}

/* === sub-page back-bar === */
.subbar {
	position: sticky; top: 0; z-index: 10;
	background: #0f172a;
	display: flex; align-items: center; gap: 12px;
	padding: env(safe-area-inset-top) 16px 8px;
	min-height: calc(48px + env(safe-area-inset-top));
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.subbar a.back {
	background: rgba(255,255,255,0.08);
	width: 36px; height: 36px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 18px;
}
.subbar a.back:active { background: rgba(255,255,255,0.16); }
.subbar h1 { font-size: 17px; font-weight: 700; margin: 0; flex: 1; }
