/* ==========================================================================
   RevoFi Batch Tracker — Public Page Styles
   Status badge colors per RC-06 spec (must match manufacturing info page):
     open          → #4ADE80
     filling       → #FFED00
     locked        → #FB923C
     manufacturing → #60A5FA
     complete      → #4ADE80
   (1.3.0: no Shipped stage; no order or device counts on the public page.)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.rbt-tracker {
	max-width: 820px;
	margin: 0 auto;
	padding: 2rem 0;
	color: rgba(255, 255, 255, 0.9);
	font-family: inherit;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.rbt-section {
	margin-bottom: 3rem;
}

.rbt-section__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	letter-spacing: 0.01em;
}

.rbt-empty {
	color: rgba(255, 255, 255, 0.70);
	font-size: 0.9375rem;
	padding: 1.25rem 1.5rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	background: rgba(255, 255, 255, 0.03);
	margin: 0 0 3rem;
}

/* --------------------------------------------------------------------------
   Order Lookup
   -------------------------------------------------------------------------- */
.rbt-lookup {
	margin-bottom: 3rem;
	padding: 1.75rem;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	background: rgba(255, 255, 255, 0.05);
}

.rbt-lookup .rbt-section__title {
	border-bottom: none;
	margin-bottom: 1rem;
}

.rbt-lookup__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
}

.rbt-lookup__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	flex: 1 1 200px;
}

.rbt-lookup__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.70);
}

.rbt-lookup__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.625rem 0.875rem;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	color: #ffffff;
	font-size: 0.9375rem;
	outline: none;
	transition: border-color 0.2s;
	-moz-appearance: textfield;
}

.rbt-lookup__input::-webkit-outer-spin-button,
.rbt-lookup__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.rbt-lookup__input:focus {
	border-color: rgba(255, 255, 255, 0.35);
}

.rbt-lookup__input:focus-visible,
.rbt-lookup__btn:focus-visible {
	outline: 2px solid #FFED00;
	outline-offset: 2px;
}

.rbt-lookup__input::placeholder {
	color: rgba(255, 255, 255, 0.30);
}

.rbt-lookup__btn {
	padding: 0.625rem 1.25rem;
	background: #FFED00;
	color: #000000;
	border: none;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, opacity 0.2s;
}

.rbt-lookup__btn:hover {
	background: #E6D500;
}

.rbt-lookup__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Lookup result area */
.rbt-lookup__result {
	margin-top: 1rem;
	min-height: 0;
}

.rbt-lookup__result:empty {
	display: none;
}

.rbt-lookup-found {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	background: rgba(255, 237, 0, 0.08);
	border: 1px solid rgba(255, 237, 0, 0.30);
}

.rbt-lookup-found__heading {
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 0.5rem;
}

.rbt-lookup-found__status {
	display: inline-block;
}

.rbt-lookup-not-found {
	padding: 0.875rem 1rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.10);
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.60);
}

.rbt-lookup-error {
	color: #fca5a5;
	font-size: 0.9rem;
	padding: 0.75rem 0;
}

/* --------------------------------------------------------------------------
   Status Badge (shared between cards and lookup result)
   -------------------------------------------------------------------------- */
.rbt-status-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	border: 1px solid transparent;
}

.rbt-status-badge--sm {
	padding: 0.2rem 0.6rem;
	font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Batch Cards Grid
   -------------------------------------------------------------------------- */
.rbt-batch-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.rbt-batch-grid {
		grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Batch Card — dark styling per revofi.ai baseline
   -------------------------------------------------------------------------- */
.rbt-batch-card {
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.10);
	background: rgba(255, 255, 255, 0.05);
	padding: 1.5rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* Highlighted card (shown when customer's order is in this batch) */
.rbt-batch-card--highlighted {
	border-color: rgba(255, 237, 0, 0.40);
	box-shadow: 0 0 20px rgba(255, 237, 0, 0.10);
}

.rbt-batch-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1rem;
}

.rbt-batch-card__number {
	font-size: 1.0625rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 0.25rem;
	letter-spacing: 0.01em;
}

/* Your-order highlight message */
.rbt-batch-card__your-order {
	display: none;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #FFED00;
	margin: 0.5rem 0 0;
}

.rbt-batch-card--highlighted .rbt-batch-card__your-order {
	display: block;
}

/* Fill bar */
.rbt-batch-card__fill {
	margin-bottom: 0.875rem;
}

.rbt-fill-bar__track {
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.10);
	overflow: hidden;
	margin-bottom: 0.375rem;
}

.rbt-fill-bar__fill {
	height: 100%;
	border-radius: 3px;
	background: #FFED00;
	transition: width 0.4s ease;
}

.rbt-fill-bar__label {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.70);
}

.rbt-batch-card__description {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Historical batches table
   -------------------------------------------------------------------------- */
.rbt-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.rbt-history-table th,
.rbt-history-table td {
	text-align: left;
	padding: 0.625rem 0.875rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rbt-history-table th {
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.50);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: rgba(255, 255, 255, 0.03);
}

.rbt-history-table td {
	color: rgba(255, 255, 255, 0.70);
}

.rbt-history-table tbody tr:hover td {
	background: rgba(255, 255, 255, 0.03);
}

.rbt-batch-row--highlighted td {
	background: rgba(255, 237, 0, 0.08);
	color: #ffffff;
}
