/* /Components/RecordGrid.razor.rz.scp.css */
/* Milestone 7: the grid sits in an inset card; colors come from the app.css tokens. */
.record-grid-scroll[b-1pijcglagy] {
	overflow-x: auto;
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--card-shadow);
}

.record-grid[b-1pijcglagy] {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.925rem;
}

.record-grid th[b-1pijcglagy],
.record-grid td[b-1pijcglagy] {
	padding: 0.5rem 0.65rem;
	border-bottom: 1px solid var(--separator);
	text-align: left;
	vertical-align: middle;
}

.record-grid tbody tr:last-child td[b-1pijcglagy] {
	border-bottom: 0;
}

.record-grid th[b-1pijcglagy] {
	background: var(--surface);
	white-space: nowrap;
}

.record-grid th > button[b-1pijcglagy],
.record-grid th .th-sort[b-1pijcglagy] {
	min-height: 0;
	padding: 0.15rem 0;
	background: none;
	color: var(--text-2);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.record-grid th > button:hover:not(:disabled)[b-1pijcglagy],
.record-grid th .th-sort:hover:not(:disabled)[b-1pijcglagy] {
	background: none;
	color: var(--text);
}

.record-grid th[aria-sort="ascending"] > button[b-1pijcglagy]::after,
.record-grid th[aria-sort="ascending"] .th-sort[b-1pijcglagy]::after {
	content: " ▲";
}

.record-grid th[aria-sort="descending"] > button[b-1pijcglagy]::after,
.record-grid th[aria-sort="descending"] .th-sort[b-1pijcglagy]::after {
	content: " ▼";
}

.record-grid tbody tr:hover[b-1pijcglagy] {
	background: var(--surface-hover);
}

/* Milestone 7 (owner, 2026-10-15): display cells stay on one line; long text is cut with an ellipsis (full text in the
   cell's title). Editable child-row cells hold editors and are not truncated. */
.record-grid td.grid-text[b-1pijcglagy] {
	max-width: 18rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.record-grid .numeric[b-1pijcglagy] {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.record-grid tr.selected[b-1pijcglagy] {
	background: var(--accent-tint);
}
/* /Components/RecordListPage.razor.rz.scp.css */
.list-paging[b-q3yp3qjesi] {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 0.75rem;
	color: var(--text-2);
	font-size: 0.9rem;
}
/* /Components/SprintBoardFormTab.razor.rz.scp.css */
/* Milestone 9 Sprint Board. Column and card colors follow desktop's (SprintBoard.Designer.cs: RoyalBlue/AliceBlue,
   Goldenrod/Ivory, LimeGreen/Honeydew; SprintStickyItem.PaintItem: MistyRose, light yellow, light green, Lavender,
   Moccasin, PaleTurquoise), as light-dark() tokens (DD-077). */

.sprint-board[b-asya0wgfzl] {
	--board-not-started: light-dark(#4169e1, #7d9cff);
	--board-not-started-bg: light-dark(rgba(65, 105, 225, 0.07), rgba(125, 156, 255, 0.08));
	--board-in-progress: light-dark(#b8860b, #e8b84a);
	--board-in-progress-bg: light-dark(rgba(218, 165, 32, 0.08), rgba(232, 184, 74, 0.08));
	--board-complete: light-dark(#2e9d2e, #5fd35f);
	--board-complete-bg: light-dark(rgba(50, 205, 50, 0.08), rgba(95, 211, 95, 0.07));
	--tone-p0: light-dark(#ccffcc, #24402a);
	--tone-p1: light-dark(#ffe4e1, #4a2a2c);
	--tone-p2: light-dark(#ffff99, #46431f);
	--tone-p3: light-dark(#ccffcc, #24402a);
	--tone-p4: light-dark(#e6e6fa, #33304d);
	--tone-complete: light-dark(#ccffcc, #24402a);
	--tone-cancelled: light-dark(#ffe4b5, #4a3a22);
	--tone-wad: light-dark(#afeeee, #1f4446);
	--tone-text: light-dark(#1c1c1e, #f2f2f7);
	--tone-text-2: light-dark(#3a3a3c, #c7c7cc);
	/* desktop SprintStickyItem.SetSize (SprintStickyItem.cs:66-74): Normal 190x128, Medium 143x96, Small 95x66 pixels at
	   desktop's 13px UI font. Expressed in rem at that ratio (190 / 13 = 14.6rem), so the compact style (13px root) shows
	   desktop's sizes and the regular style scales them with its larger text. */
	--card-width: 14.6rem;
	--card-height: 9.85rem;
	--card-lines: 3;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-top: 0.75rem;
}

.sprint-board[data-size="medium"][b-asya0wgfzl] { --card-width: 11rem; --card-height: 7.4rem; --card-lines: 2; }
.sprint-board[data-size="small"][b-asya0wgfzl] { --card-width: 7.3rem; --card-height: 5.1rem; --card-lines: 0; }

.board-toolbar[b-asya0wgfzl] { flex-wrap: wrap; }
.board-toolbar .form-buttons[b-asya0wgfzl] { flex-wrap: wrap; gap: 0.4rem; }

/* A small segmented control (order, size, phone column switch). */
.board-segment[b-asya0wgfzl] {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: var(--segment-bg);
}
.board-segment button[b-asya0wgfzl] {
	min-height: 1.9rem;
	padding: 0.2rem 0.7rem;
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	font-size: 0.85rem;
	white-space: nowrap;
}
.board-segment button[aria-pressed="true"][b-asya0wgfzl],
.board-segment button[aria-selected="true"][b-asya0wgfzl] {
	background: var(--segment-selected);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	font-weight: 600;
}

.board-columns-bar[b-asya0wgfzl] { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.board-chips[b-asya0wgfzl] { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.board-chip[aria-pressed="false"][b-asya0wgfzl], .board-chips .chip-button[aria-pressed="false"][b-asya0wgfzl] { opacity: 0.6; }
.board-chips .chip-button[aria-pressed="true"][b-asya0wgfzl] { background: var(--accent-tint-strong); }
.board-total[b-asya0wgfzl] { color: var(--text-2); font-size: 0.85rem; }
.board-count[b-asya0wgfzl] {
	display: inline-grid;
	place-items: center;
	min-width: 1.4rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--segment-bg);
	color: var(--text-2);
	font-size: 0.75rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.board-dot[b-asya0wgfzl] { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.35rem; border-radius: 999px; background: currentColor; }
.col-not-started .board-dot[b-asya0wgfzl] { background: var(--board-not-started); }
.col-in-progress .board-dot[b-asya0wgfzl] { background: var(--board-in-progress); }
.col-complete .board-dot[b-asya0wgfzl] { background: var(--board-complete); }

.board-message.warning[b-asya0wgfzl] { color: var(--warning); background: var(--warning-tint); }

.board-columns[b-asya0wgfzl] {
	display: grid;
	grid-template-columns: repeat(var(--board-columns), minmax(0, 1fr));
	gap: 0.75rem;
	align-items: start;
}
.board-column[b-asya0wgfzl] {
	min-width: 0;
	border-radius: var(--radius-card);
	background: var(--surface);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}
.board-column-header[b-asya0wgfzl] {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0;
	padding: 0.55rem 0.8rem;
	border-top: 3px solid transparent;
	font-size: 0.9rem;
	font-weight: 600;
}
.col-not-started .board-column-header[b-asya0wgfzl] { border-top-color: var(--board-not-started); }
.col-in-progress .board-column-header[b-asya0wgfzl] { border-top-color: var(--board-in-progress); }
.col-complete .board-column-header[b-asya0wgfzl] { border-top-color: var(--board-complete); }
.board-column-body[b-asya0wgfzl] {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-height: 4rem;
	padding: 0.6rem;
}
.col-not-started .board-column-body[b-asya0wgfzl] { background: var(--board-not-started-bg); }
.col-in-progress .board-column-body[b-asya0wgfzl] { background: var(--board-in-progress-bg); }
.col-complete .board-column-body[b-asya0wgfzl] { background: var(--board-complete-bg); }
.board-empty[b-asya0wgfzl] { margin: 0.5rem; color: var(--text-3); font-size: 0.85rem; }

/* desktop FlowLayoutPanel (SprintBoard.Designer.cs flowBacklog/flowInProgress/flowComplete: the default LeftToRight with
   WrapContents): cards flow left to right and wrap into as many columns as fit the column's width. SetFlowBreak: each
   owner (or priority) starts a new line of cards (SprintBoard.LoadBoard, SprintBoard.cs:154-165). */
.board-row[b-asya0wgfzl] { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5rem; }
.board-row + .board-row[b-asya0wgfzl] { padding-top: 0.5rem; border-top: 1px dashed var(--separator); }

.board-card[b-asya0wgfzl] {
	position: relative;
	display: flex;
	flex: none;
	width: var(--card-width);
	min-height: var(--card-height);
	max-width: 100%;
	border-radius: 10px;
	color: var(--tone-text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.board-card.tone-p0[b-asya0wgfzl] { background: var(--tone-p0); }
.board-card.tone-p1[b-asya0wgfzl] { background: var(--tone-p1); }
.board-card.tone-p2[b-asya0wgfzl] { background: var(--tone-p2); }
.board-card.tone-p3[b-asya0wgfzl] { background: var(--tone-p3); }
.board-card.tone-p4[b-asya0wgfzl] { background: var(--tone-p4); }
.board-card.tone-complete[b-asya0wgfzl] { background: var(--tone-complete); }
.board-card.tone-cancelled[b-asya0wgfzl] { background: var(--tone-cancelled); }
.board-card.tone-wad[b-asya0wgfzl] { background: var(--tone-wad); }

.board-card-main[b-asya0wgfzl] {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.2rem;
	flex: 1 1 auto;
	justify-content: flex-start;
	width: 100%;
	min-height: 0;
	padding: 0.45rem 0.55rem 0.55rem;
	border-radius: 10px;
	background: transparent;
	color: inherit;
	text-align: left;
	font-size: 0.82rem;
	line-height: 1.25;
}
.board-card-main:hover:not(:disabled)[b-asya0wgfzl] { background: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.06)); }
.board-card-main:disabled[b-asya0wgfzl] { opacity: 1; cursor: default; }
.board-card-main:focus-visible[b-asya0wgfzl] { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* The head leaves room at its end for the More button in the corner. */
.board-card-head[b-asya0wgfzl] { display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; padding-right: 1.6rem; }
.board-card-caption[b-asya0wgfzl] { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; }
.board-card-caption strong[b-asya0wgfzl] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card-marks[b-asya0wgfzl] { display: inline-flex; gap: 0.15rem; color: var(--tone-text-2); }
.board-card-marks[b-asya0wgfzl]  .board-priority { color: var(--tone-text); }
.tone-p1 .board-card-marks[b-asya0wgfzl]  .board-priority { color: light-dark(#c0262d, #ff8a8a); }
.board-card-owner[b-asya0wgfzl] { color: var(--tone-text-2); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card-overview[b-asya0wgfzl] {
	display: -webkit-box;
	-webkit-line-clamp: var(--card-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.sprint-board[data-size="small"] .board-card-overview[b-asya0wgfzl] { display: none; }
.board-progress[b-asya0wgfzl] { display: block; height: 4px; border-radius: 2px; background: rgba(128, 128, 128, 0.45); overflow: hidden; }
.board-progress > span[b-asya0wgfzl] { display: block; height: 100%; background: #800080; }
/* Owner request 2026-10-17: the card's "more options" button (Lucide ellipsis) in its top right corner, drawn small with
   a 44px touch target (its ::after area) in the regular style. */
.board-card-more[b-asya0wgfzl] {
	position: absolute;
	top: 0.2rem;
	right: 0.2rem;
	display: grid;
	place-items: center;
	width: 1.9rem;
	min-width: 0;
	height: 1.9rem;
	min-height: 0;
	padding: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--tone-text-2);
}
.board-card-more[b-asya0wgfzl]::after { content: ""; position: absolute; inset: -0.425rem; }
.board-card-more[b-asya0wgfzl]  .icon { width: 1.15rem; height: 1.15rem; }
.board-card-more:hover:not(:disabled)[b-asya0wgfzl] { background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.12)); color: var(--tone-text); }
.board-card-more:focus-visible[b-asya0wgfzl] { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.board-card-more:disabled[b-asya0wgfzl] { opacity: 0.4; cursor: default; }
/* Small cards show no overview: the More button sits in the bottom corner, so the head keeps its width for the ID. */
.sprint-board[data-size="small"] .board-card-head[b-asya0wgfzl] { padding-right: 0; }
.sprint-board[data-size="small"] .board-card-owner[b-asya0wgfzl] { padding-right: 1.6rem; }
.sprint-board[data-size="small"] .board-card-more[b-asya0wgfzl] { top: auto; bottom: 0.2rem; }
.board-card-working[b-asya0wgfzl] {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border-radius: 10px;
	background: light-dark(rgba(255, 255, 255, 0.7), rgba(28, 28, 30, 0.75));
	color: var(--text);
	font-weight: 600;
}

/* The filter menus (the card menu is SprintBoardMenu, with its own copy of these rules). */
.board-menu[b-asya0wgfzl] { width: max-content; min-width: 14rem; max-width: min(20rem, calc(100vw - 2rem)); max-height: min(70vh, 34rem); overflow-y: auto; }

/* Phones: one column at a time, chosen with the switch; the column chips stay for the desktop layout only. */
.board-phone-switch[b-asya0wgfzl] { display: none; }
@media (max-width: 600px) {
	.board-phone-switch[b-asya0wgfzl] { display: flex; width: 100%; }
	.board-phone-switch button[b-asya0wgfzl] { flex: 1; }
	.board-columns[b-asya0wgfzl] { grid-template-columns: minmax(0, 1fr); }
	.board-column[data-phone="hidden"][b-asya0wgfzl] { display: none; }
	.board-chips .board-chip[b-asya0wgfzl] { display: none; }
	/* Cards still wrap where two fit the screen; otherwise one card fills the width. */
	.board-row[b-asya0wgfzl] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-width)), 1fr)); }
	.board-card[b-asya0wgfzl] { width: auto; }
	/* The filter menus open as a sheet from the bottom of the screen, like the card menu (SprintBoardMenu.razor.css). */
	.board-menu[b-asya0wgfzl] {
		position: fixed;
		inset: auto 0 0 0;
		width: 100%;
		max-width: none;
		max-height: 75vh;
		margin: 0;
		border-radius: 16px 16px 0 0;
	}
}

/* Compact display style (desktop widths only, as the app's other compact rules). */
@media (min-width: 601px) {
	:root[data-display-style="compact"] .sprint-board[b-asya0wgfzl] { gap: 0.4rem; margin-top: 0.5rem; }
	:root[data-display-style="compact"] .board-card-main[b-asya0wgfzl] { padding: 0.3rem 0.45rem 0.4rem; font-size: 0.78rem; }
	:root[data-display-style="compact"] .board-card-head[b-asya0wgfzl] { padding-right: 18px; }
	:root[data-display-style="compact"] .board-card-more[b-asya0wgfzl] { top: 2px; right: 2px; width: 20px; height: 20px; min-height: 0; padding: 0; }
	:root[data-display-style="compact"] .board-card-more[b-asya0wgfzl]::after { inset: 0; }
	:root[data-display-style="compact"] .sprint-board[data-size="small"] .board-card-head[b-asya0wgfzl] { padding-right: 0; }
	:root[data-display-style="compact"] .sprint-board[data-size="small"] .board-card-owner[b-asya0wgfzl] { padding-right: 18px; }
	:root[data-display-style="compact"] .sprint-board[data-size="small"] .board-card-more[b-asya0wgfzl] { top: auto; bottom: 2px; }
	:root[data-display-style="compact"] .board-card-more[b-asya0wgfzl]  .icon { width: 14px; height: 14px; }
	:root[data-display-style="compact"] .board-column-header[b-asya0wgfzl] { padding: 0.35rem 0.6rem; font-size: 0.82rem; }
	:root[data-display-style="compact"] .board-column-body[b-asya0wgfzl] { padding: 0.4rem; gap: 0.35rem; }
	:root[data-display-style="compact"] .board-row[b-asya0wgfzl] { gap: 0.35rem; }
	:root[data-display-style="compact"] .board-segment button[b-asya0wgfzl] { min-height: 1.5rem; padding: 0.1rem 0.5rem; font-size: 0.78rem; }
}
/* /Components/SprintBoardMenu.razor.rz.scp.css */
/* The Sprint Board's card menu (owner request 2026-10-17: one shared popover; moved here from SprintBoardFormTab.razor.css
   with the markup). */
.board-menu[b-1iqqn3zkec] { width: max-content; min-width: 14rem; max-width: min(20rem, calc(100vw - 2rem)); max-height: min(70vh, 34rem); overflow-y: auto; }
.board-menu-tip[b-1iqqn3zkec] { margin: 0.2rem 0.65rem 0.4rem; color: var(--text-2); font-size: 0.8rem; }
.board-submenu summary[b-1iqqn3zkec] {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.25rem;
	padding: 0.4rem 0.65rem;
	border-radius: 8px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
}
.board-submenu summary[b-1iqqn3zkec]::-webkit-details-marker { display: none; }
.board-submenu summary:hover[b-1iqqn3zkec] { background: var(--surface-hover); }
.board-submenu summary[b-1iqqn3zkec]  .icon { color: var(--text-2); }
.board-submenu button[b-1iqqn3zkec] { padding-left: 1.6rem; }

/* Phones: the menu opens as a sheet from the bottom of the screen. */
@media (max-width: 600px) {
	.board-menu[b-1iqqn3zkec] {
		position: fixed;
		inset: auto 0 0 0;
		width: 100%;
		max-width: none;
		max-height: 75vh;
		margin: 0;
		border-radius: 16px 16px 0 0;
	}
}
