/* line 5, app/assets/stylesheets/budget_items.scss */
.budget-item-visible-false {
  display: none;
}
/* line 1, app/assets/stylesheets/scaffolds.scss */
body {
  background-color: #fff;
  color: #333;
  margin: 33px;
}

/* line 6, app/assets/stylesheets/scaffolds.scss */
body, p, ol, ul, td {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 13px;
  line-height: 18px;
}

/* line 11, app/assets/stylesheets/scaffolds.scss */
pre {
  background-color: #eee;
  padding: 10px;
  font-size: 11px;
}

/* line 16, app/assets/stylesheets/scaffolds.scss */
a {
  color: #000;
}

/* line 19, app/assets/stylesheets/scaffolds.scss */
a:visited {
  color: #666;
}

/* line 22, app/assets/stylesheets/scaffolds.scss */
a:hover {
  color: #fff;
  background-color: #000;
}

/* line 26, app/assets/stylesheets/scaffolds.scss */
th {
  padding-bottom: 5px;
}

/* line 29, app/assets/stylesheets/scaffolds.scss */
td {
  padding: 0 5px 7px;
}

/* line 32, app/assets/stylesheets/scaffolds.scss */
div.field,
div.actions {
  margin-bottom: 10px;
}

/* line 36, app/assets/stylesheets/scaffolds.scss */
#notice {
  color: green;
}

/* line 39, app/assets/stylesheets/scaffolds.scss */
.field_with_errors {
  padding: 2px;
  background-color: red;
  display: table;
}

/* line 44, app/assets/stylesheets/scaffolds.scss */
#error_explanation {
  width: 450px;
  border: 2px solid red;
  padding: 7px 7px 0;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

/* line 51, app/assets/stylesheets/scaffolds.scss */
#error_explanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px -7px 0;
  background-color: #c00;
  color: #fff;
}

/* line 60, app/assets/stylesheets/scaffolds.scss */
#error_explanation ul li {
  font-size: 12px;
  list-style: square;
}

/* line 64, app/assets/stylesheets/scaffolds.scss */
label {
  display: block;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
	--page-width: 70rem;
	--surface-background: rgba(255, 255, 255, 0.96);
	--surface-border: #d8dee9;
	--text-color: #1f2933;
	--muted-text: #52606d;
	--nav-background: #16324f;
	--accent-color: #0b6e4f;
	--accent-color-dark: #09543d;
	--secondary-color: #e8eef3;
	--danger-color: #b42318;
	--shadow-color: rgba(15, 23, 42, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	margin: 0;
	color: var(--text-color);
	background:
		radial-gradient(circle at top, rgba(11, 110, 79, 0.12), transparent 30%),
		linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	line-height: 1.5;
}

body,
p,
ol,
ul,
td {
	font-family: "Avenir Next", "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3 {
	margin: 0;
	color: #102a43;
	line-height: 1.15;
}

h1 {
	font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
	font-size: 1rem;
}

a {
	color: #0f4c81;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

a:visited {
	color: #0f4c81;
}

a:hover {
	color: #0a365c;
	background-color: transparent;
}

.site-nav {
	background: var(--nav-background);
	box-shadow: 0 0.75rem 2rem rgba(22, 50, 79, 0.18);
}

.site-nav__inner {
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 1rem clamp(1rem, 3vw, 2rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-nav__brand,
.site-nav__brand:visited {
	color: #f0f4f8;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.site-nav__links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.site-nav__links a,
.site-nav__links a:visited {
	color: #d9e2ec;
	text-decoration: none;
}

.page-shell {
	max-width: var(--page-width);
	margin: 0 auto;
	padding: clamp(1rem, 4vw, 2rem);
}

.page,
.page--narrow {
	display: grid;
	gap: 1.5rem;
}

.page--narrow {
	max-width: 48rem;
}

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

.page-subtitle {
	margin: 0.5rem 0 0;
	color: var(--muted-text);
	max-width: 42rem;
}

.surface {
	background: var(--surface-background);
	border: 1px solid var(--surface-border);
	border-radius: 1.1rem;
	box-shadow: 0 1rem 2rem var(--shadow-color);
}

.notice {
	margin: 0;
	padding: 0.9rem 1rem;
	border-radius: 0.9rem;
	border: 1px solid #9bd2b4;
	background: #effcf5;
	color: #166534;
}

.actions-row,
.table-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}

.button-link,
.button-link:visited,
input[type="submit"],
button,
.button_to input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--accent-color);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.button-link:hover,
input[type="submit"]:hover,
button:hover,
.button_to input[type="submit"]:hover {
	background: var(--accent-color-dark);
	color: #fff;
}

.button-link--secondary,
.button-link--secondary:visited {
	background: var(--secondary-color);
	color: #102a43;
}

.button-link--secondary:hover {
	background: #d9e2ec;
	color: #102a43;
}

.button-link--danger,
.button-link--danger:visited {
	background: var(--danger-color);
}

.button-link--danger:hover {
	background: #8f1c12;
}

.inline-button-form {
	display: inline-flex;
	margin: 0;
}

.resource-form {
	padding: clamp(1rem, 3vw, 1.5rem);
}

.field {
	margin-bottom: 1rem;
}

label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: #243b53;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	min-height: 2.75rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid #bcccdc;
	border-radius: 0.8rem;
	background: #fff;
	color: var(--text-color);
	font: inherit;
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

input[disabled] {
	background: #f0f4f8;
	color: #7b8794;
}

#error_explanation {
	width: auto;
	margin-bottom: 1rem;
	border-radius: 0.9rem;
}

.stat-grid {
	padding: clamp(1rem, 3vw, 1.5rem);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.stat-grid p {
	margin: 0.4rem 0 0;
	font-size: clamp(1.35rem, 4vw, 1.8rem);
	font-weight: 700;
}

.section-block {
	display: grid;
	gap: 0.9rem;
}

.detail-grid {
	padding: clamp(1rem, 3vw, 1.5rem);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.detail-row {
	display: grid;
	gap: 0.25rem;
}

.detail-row strong {
	color: #486581;
}

.table-scroll {
	overflow-x: auto;
}

.resource-table {
	width: 100%;
	border-collapse: collapse;
}

.resource-table th,
.resource-table td {
	padding: 1rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #e4e7eb;
}

.resource-table th {
	color: #486581;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.resource-table tbody tr:last-child td {
	border-bottom: 0;
}

.transaction-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.transaction-form-grid__full {
	grid-column: 1 / -1;
}

.transaction-history-item {
	padding: 0.85rem 1rem;
	border-radius: 0.8rem;
	background: #f0f4f8;
}

@media (max-width: 700px) {
	.site-nav__inner,
	.page-header {
		align-items: stretch;
	}

	.site-nav__inner,
	.site-nav__links,
	.actions-row,
	.table-actions,
	.stat-grid,
	.detail-grid,
	.transaction-form-grid {
		grid-template-columns: 1fr;
	}

	.site-nav__inner,
	.site-nav__links {
		display: grid;
	}

	.button-link,
	.button-link:visited,
	input[type="submit"],
	button,
	.button_to input[type="submit"],
	.inline-button-form {
		width: 100%;
	}

	.responsive-table thead {
		display: none;
	}

	.responsive-table,
	.responsive-table tbody,
	.responsive-table tr,
	.responsive-table td {
		display: block;
		width: 100%;
	}

	.responsive-table tbody {
		display: grid;
		gap: 1rem;
		padding: 1rem;
	}

	.responsive-table tr {
		border: 1px solid #d8dee9;
		border-radius: 0.9rem;
		background: #fff;
		overflow: hidden;
	}

	.responsive-table td {
		padding: 0.85rem 1rem;
		border-bottom: 1px solid #e4e7eb;
	}

	.responsive-table td:last-child {
		border-bottom: 0;
	}

	.responsive-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 0.3rem;
		color: #486581;
		font-size: 0.82rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
	}
}
