/* ============================================================
   MTCF — Forest Canopy theme (light + dark)
   ============================================================ */
:root,
[data-theme="light"] {
	--color-bg:         #faf9f6;
	--color-surface:    #ffffff;
	--color-surface-2:  #f3f1ea;
	--color-border:     #e2dfd3;
	--color-border-strong:#c8c4b2;
	--color-text:       #1f2a1d;
	--color-text-muted: #5e6a55;
	--color-text-subtle:#8c9182;

	--color-primary:    #2d4a2b;
	--color-primary-hover:#3a5e37;
	--color-primary-soft:#dfe6dc;
	--color-accent:     #7d8471;
	--color-accent-2:   #a4ac86;

	--color-success:    #3d6b3b;
	--color-warning:    #b58a3b;
	--color-danger:     #a4493f;
	--color-danger-soft:#f5e1de;

	--shadow-sm: 0 1px 2px rgba(31, 42, 29, 0.04), 0 1px 3px rgba(31, 42, 29, 0.06);
	--shadow-md: 0 4px 12px rgba(31, 42, 29, 0.07), 0 2px 4px rgba(31, 42, 29, 0.04);
	--shadow-lg: 0 12px 32px rgba(31, 42, 29, 0.12);
}

[data-theme="dark"] {
	--color-bg:         #14201a;
	--color-surface:    #1c2a22;
	--color-surface-2:  #243528;
	--color-border:     #2f4232;
	--color-border-strong:#43583f;
	--color-text:       #f3f1ea;
	--color-text-muted: #b8bcae;
	--color-text-subtle:#8c9182;

	--color-primary:    #a4ac86;
	--color-primary-hover:#bcc49e;
	--color-primary-soft:#2a3a29;
	--color-accent:     #7d8471;
	--color-accent-2:   #a4ac86;

	--color-success:    #8aaf78;
	--color-warning:    #d4a85e;
	--color-danger:     #d68b80;
	--color-danger-soft:#3a2522;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
	--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
	height: 100%;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	font-size: 16px;
	background: var(--color-bg);
	color: var(--color-text);
	transition: background 0.25s ease, color 0.25s ease;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: 'tnum' 1, 'ss01' 1;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: var(--color-text); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* LOGIN */
.login {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		radial-gradient(circle at 20% 20%, rgba(164, 172, 134, 0.12), transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(45, 74, 43, 0.08), transparent 50%),
		var(--color-bg);
}
.login__card {
	width: 100%;
	max-width: 420px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 16px;
	padding: 40px;
	box-shadow: var(--shadow-lg);
}
.login__brand { text-align: center; margin-bottom: 28px; }
.login__brand-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 12px;
	background: var(--color-primary); color: var(--color-bg);
	font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
	margin-bottom: 12px;
}
.login__title { font-size: 32px; margin-bottom: 4px; }
.login__subtitle { color: var(--color-text-muted); font-size: 14.5px; }
.login__form { display: flex; flex-direction: column; gap: 16px; }
.login__error {
	background: var(--color-danger-soft);
	color: var(--color-danger);
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	display: none;
}
.login__error--visible { display: block; }

/* FORM ELEMENTS */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group__label {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.form-control {
	width: 100%;
	padding: 12px 14px;
	font-size: 15.5px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	color: var(--color-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.form-control:disabled,
.form-control[readonly] { background: var(--color-surface-2); cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 70px; }

/* BUTTONS */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 18px;
	font-size: 14.5px;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--color-surface-2);
	color: var(--color-text);
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}
.btn:hover { background: var(--color-border); }
.btn--primary {
	background: var(--color-primary);
	color: var(--color-bg);
	border-color: var(--color-primary);
}
[data-theme="dark"] .btn--primary { color: #14201a; }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn--ghost { background: transparent; border-color: var(--color-border); }
.btn--ghost:hover { background: var(--color-surface-2); }
.btn--danger { background: transparent; color: var(--color-danger); border-color: var(--color-border); }
.btn--danger:hover { background: var(--color-danger-soft); border-color: var(--color-danger); }
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--icon { padding: 8px; width: 38px; height: 38px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* APP SHELL */
.app { display: none; min-height: 100vh; }
.app--active { display: flex; }

.sidebar {
	width: 240px;
	background: var(--color-surface);
	border-right: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	padding: 20px 0;
	position: sticky;
	top: 0;
	height: 100vh;
}
.sidebar__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px 20px;
	border-bottom: 1px solid var(--color-border);
	margin-bottom: 12px;
}
.sidebar__brand-mark {
	width: 42px; height: 42px;
	border-radius: 9px;
	background: var(--color-primary);
	color: var(--color-bg);
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
}
[data-theme="dark"] .sidebar__brand-mark { color: #14201a; }
.sidebar__brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.sidebar__brand-tag {
	font-size: 11px;
	color: var(--color-text-subtle);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.sidebar__nav { flex: 1; display: flex; flex-direction: column; padding: 8px 12px; gap: 2px; }
.sidebar__section-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-subtle);
	padding: 14px 12px 8px;
}
.sidebar__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 7px;
	color: var(--color-text-muted);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
	font-family: inherit;
}
.sidebar__link:hover { background: var(--color-surface-2); color: var(--color-text); }
.sidebar__link--active { background: var(--color-primary-soft); color: var(--color-primary); }
[data-theme="dark"] .sidebar__link--active { color: var(--color-primary); background: var(--color-primary-soft); }
.sidebar__link-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }

.sidebar__footer {
	padding: 12px 16px;
	border-top: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	gap: 10px;
}
.sidebar__user { flex: 1; min-width: 0; }
.sidebar__user-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user-role { font-size: 12.5px; color: var(--color-text-subtle); text-transform: capitalize; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 32px;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
	position: sticky;
	top: 0;
	z-index: 10;
}
.topbar__title { font-size: 30px; font-weight: 600; }
.topbar__subtitle { font-size: 14px; color: var(--color-text-muted); margin-top: 2px; font-weight: 400; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

/* PAGES */
.page { padding: 32px; flex: 1; display: none; }
.page--active { display: block; }
.page__section { margin-bottom: 32px; }
.page__section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 12px;
	flex-wrap: wrap;
}
.page__section-title { font-size: 22px; font-weight: 600; }

/* KPI / CARDS */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.kpi {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 22px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.kpi__label {
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-subtle);
	margin-bottom: 10px;
}
.kpi__value {
	font-size: 34px;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.15;
	margin-bottom: 8px;
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
	font-feature-settings: 'tnum' 1;
}
.kpi__meta { font-size: 13.5px; color: var(--color-text-muted); }
.kpi__meta--up { color: var(--color-success); }
.kpi__meta--down { color: var(--color-danger); }

.card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 20px;
	box-shadow: var(--shadow-sm);
}
.card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	gap: 12px;
}
.card__title { font-size: 19px; font-weight: 600; }
.card__subtitle { font-size: 13.5px; color: var(--color-text-muted); margin-top: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }

/* TABLES */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--color-border); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--color-surface); }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
.table th {
	background: var(--color-surface-2);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-muted);
	position: sticky;
	top: 0;
}
.table tbody tr { transition: background 0.1s ease; }
.table tbody tr:hover { background: var(--color-surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table__amount { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.table__empty { text-align: center; padding: 40px 20px; color: var(--color-text-subtle); font-style: italic; }
.table__actions { display: flex; gap: 6px; justify-content: flex-end; }

/* PAGINATION */
.pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 4px 0;
	font-size: 14px;
	color: var(--color-text-muted);
	gap: 12px;
	flex-wrap: wrap;
}
.pagination__info { font-variant-numeric: tabular-nums; }
.pagination__controls { display: flex; gap: 4px; align-items: center; }
.pagination__btn {
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 6px;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 14px;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: all 0.15s ease;
}
.pagination__btn:hover:not(:disabled) { background: var(--color-surface-2); border-color: var(--color-border-strong); }
.pagination__btn--active { background: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }
[data-theme="dark"] .pagination__btn--active { color: #14201a; }
.pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination__ellipsis { padding: 0 4px; color: var(--color-text-subtle); }

/* BADGES */
.badge {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	background: var(--color-surface-2);
	color: var(--color-text-muted);
	white-space: nowrap;
}
.badge--tithe { background: var(--color-primary-soft); color: var(--color-primary); }
.badge--offering { background: rgba(164, 172, 134, 0.25); color: #6b7556; }
[data-theme="dark"] .badge--offering { color: #c5cea5; }
.badge--special { background: rgba(181, 138, 59, 0.18); color: var(--color-warning); }
.badge--donation { background: rgba(125, 132, 113, 0.22); color: var(--color-accent); }
.badge--other { background: var(--color-surface-2); color: var(--color-text-muted); }
.badge--role-admin { background: var(--color-primary-soft); color: var(--color-primary); }
.badge--role-treasurer { background: rgba(181, 138, 59, 0.18); color: var(--color-warning); }
.badge--role-viewer { background: var(--color-surface-2); color: var(--color-text-muted); }

/* PILL (v4 — used for people-group labels in tables) */
.pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	background: var(--color-surface-2);
	color: var(--color-text-muted);
	white-space: nowrap;
	letter-spacing: 0.01em;
}
.pill--group {
	background: var(--color-primary-soft);
	color: var(--color-primary);
}

/* TABLE footer/totals row (v4 — used by the By Group totals row) */
.table__footrow td {
	background: var(--color-surface-2);
	border-top: 1px solid var(--color-border, rgba(0,0,0,0.06));
	font-weight: 600;
}

/* v5 — Weekly Summary multi-line cells (per-currency totals stacked) */
#weeklySummaryTable td.u-right {
	line-height: 1.4;
}
#weeklySummaryTable td.table__amount {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

/* FORM GRID */
.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}
.form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* CHARTS */
.chart-wrap { position: relative; height: 280px; }
.chart-wrap--lg { height: 320px; }

/* MODAL */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(20, 32, 26, 0.5);
	z-index: 100;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.modal--open { display: flex; }
.modal__box {
	background: var(--color-surface);
	border-radius: 12px;
	padding: 24px;
	max-width: 420px;
	width: 100%;
	box-shadow: var(--shadow-lg);
	max-height: 90vh;
	overflow-y: auto;
}
.modal__box--lg { max-width: 720px; }
.modal__close {
	background: transparent;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: var(--color-text-subtle);
	cursor: pointer;
	padding: 0 4px;
}
.modal__close:hover { color: var(--color-text); }
.modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.modal__title { font-size: 20px; margin-bottom: 8px; }
.modal__body { font-size: 13.5px; color: var(--color-text-muted); margin-bottom: 20px; line-height: 1.6; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; }

.stat-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid var(--color-border);
	gap: 16px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row__label { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-row__value { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.delta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	margin-left: 8px;
}
.delta--up { background: rgba(61, 107, 59, 0.15); color: var(--color-success); }
.delta--down { background: var(--color-danger-soft); color: var(--color-danger); }
.delta--flat { background: var(--color-surface-2); color: var(--color-text-subtle); }

.member-link {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	color: var(--color-primary);
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
}
.member-link:hover { text-decoration: underline; }
[data-theme="dark"] .member-link { color: var(--color-primary); }

.file-upload { display: inline-block; position: relative; cursor: pointer; }
.file-upload input[type="file"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

.audit-action {
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-size: 11.5px;
	padding: 2px 6px;
	background: var(--color-surface-2);
	border-radius: 4px;
	color: var(--color-text-muted);
}

.empty-state { text-align: center; padding: 28px 16px; color: var(--color-text-subtle); font-style: italic; font-size: 13px; }

/* QUICK ACTIONS */
.quick-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}
.quick-action {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: left;
	font-family: inherit;
	color: var(--color-text);
	width: 100%;
}
.quick-action:hover {
	background: var(--color-primary-soft);
	border-color: var(--color-primary);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}
.quick-action__icon {
	width: 44px; height: 44px; border-radius: 10px;
	background: var(--color-primary); color: var(--color-bg);
	display: flex; align-items: center; justify-content: center;
	font-size: 22px; flex-shrink: 0; font-weight: 700;
}
[data-theme="dark"] .quick-action__icon { color: #14201a; }
.quick-action__label { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.quick-action__hint { font-size: 13px; color: var(--color-text-muted); }

/* LAST 4 SUNDAYS — now a table, delta spans kept for the delta cell */
.sunday-row--current td { background: var(--color-primary-soft); }
.sunday-stat__delta {
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}
.sunday-stat__delta--up { color: var(--color-success); }
.sunday-stat__delta--down { color: var(--color-danger); }
.sunday-stat__delta--flat { color: var(--color-text-subtle); }

/* KPI extra line (used for delta text under value) */
.kpi__extra {
	font-size: 12px;
	color: var(--color-text-muted);
	margin-top: 4px;
	font-variant-numeric: tabular-nums;
}
.kpi__extra.kpi__meta--up { color: var(--color-success); }
.kpi__extra.kpi__meta--down { color: var(--color-danger); }

/* THIS SUNDAY vs LAST SUNDAY STRIP */
.sunday-vs-strip { }
.sunday-vs {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 18px 22px;
	box-shadow: var(--shadow-sm);
}
.sunday-vs__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-subtle);
	margin-bottom: 14px;
}
.sunday-vs__cols {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}
.sunday-vs__col { }
.sunday-vs__col--curr .sunday-vs__total { color: var(--color-primary); }
.sunday-vs__date {
	font-size: 12.5px;
	color: var(--color-text-muted);
	margin-bottom: 4px;
}
.sunday-vs__total {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	margin-bottom: 4px;
}
.sunday-vs__sub { font-size: 12.5px; color: var(--color-text-muted); }
.sunday-vs__arrow {
	text-align: center;
	font-size: 20px;
}
.sunday-vs__delta {
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.sunday-vs__delta--up   { color: var(--color-success); }
.sunday-vs__delta--down { color: var(--color-danger); }
.sunday-vs__delta--flat { color: var(--color-text-subtle); }
@media (max-width: 600px) {
	.sunday-vs__cols { grid-template-columns: 1fr; }
	.sunday-vs__arrow { text-align: left; }
}

/* u-mb utility */
.u-mb-24 { margin-bottom: 24px; }

/* SIDEBAR THEME TOGGLE */
.sidebar__theme {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	margin: 0 12px 8px;
	background: var(--color-surface-2);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	color: var(--color-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	width: calc(100% - 24px);
}
.sidebar__theme:hover { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); }
.sidebar__theme-icon { font-size: 16px; }

/* EDITABLE LIST (Settings → methods, categories) */
.list-edit { list-style: none; padding: 0; margin: 0; }
.list-edit__row {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 6px 0;
}
.list-edit__row .form-control {
	flex: 1;
	padding: 8px 12px;
	font-size: 14.5px;
}
.list-edit__row .btn--icon { flex-shrink: 0; }
.list-edit__empty {
	padding: 14px;
	text-align: center;
	color: var(--color-text-subtle);
	font-size: 13px;
	font-style: italic;
}

/* SUNDAY COUNT entry rows */
.sunday-row__amount { width: 140px; }
.sunday-row__method { width: 130px; }
#sundayRows td { padding: 8px 10px; }
#sundayRows .form-control { padding: 8px 10px; font-size: 14.5px; }
#sundayRows tr.is-invalid .form-control { border-color: var(--color-danger); }

/* TOAST */
.toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-primary);
	padding: 14px 20px;
	border-radius: 8px;
	box-shadow: var(--shadow-md);
	font-size: 14.5px;
	z-index: 1000;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
	max-width: 380px;
}
.toast--visible { opacity: 1; transform: translateY(0); }
.toast--error { border-left-color: var(--color-danger); }
.toast--warn { border-left-color: var(--color-warning); }

/* UTILITIES */
.u-mt-12 { margin-top: 12px; }
.u-mt-24 { margin-top: 24px; }
.u-mb-16 { margin-bottom: 16px; }
.u-flex { display: flex; }
.u-flex-end { justify-content: flex-end; }
.u-gap-8 { gap: 8px; }
.u-muted { color: var(--color-text-muted); }
.u-small { font-size: 13px; }
.u-hidden { display: none !important; }
.u-mono { font-variant-numeric: tabular-nums; }
.u-right { text-align: right; }

/* RESPONSIVE */
@media (max-width: 768px) {
	.sidebar { width: 64px; padding: 12px 0; }
	.sidebar__brand-name,
	.sidebar__brand-tag,
	.sidebar__section-label,
	.sidebar__user { display: none; }
	.sidebar__brand { justify-content: center; padding: 0 0 16px; }
	.sidebar__link { justify-content: center; padding: 10px; }
	.sidebar__link span:not(.sidebar__link-icon) { display: none; }
	.page, .topbar { padding-left: 20px; padding-right: 20px; }
	.topbar__subtitle { display: none; }
}
