:root {
	--operandi-green-dark: hsl(from var(--bs-success) h s calc(l - 5));
	--operandi-green-light: hsl(from var(--bs-success) h s calc(l + 5));
}

/* body font now in ogio-common.css */

/* Custom CSS for Operandi checkboxes and radio buttons */
input:is([type="radio"], [type="checkbox"]).custom {
	display: none;
}

input:is([type="radio"], [type="checkbox"]).custom:checked+label {
	border: 1px solid #101828;
	color: #101828;
}

input:is([type="radio"], [type="checkbox"]).custom+label {
	border-radius: 5px;
	border: 1px solid rgba(16, 24, 40, 0.5);
	padding: 5px 15px;
	color: rgba(16, 24, 40, 0.5);
}

input:is([type="radio"], [type="checkbox"]).custom+label:hover {
	background-color: rgba(239, 247, 255, 0.5);
	border: 1px solid #101828;
	color: #101828;
}

/* ----- */


.operandi-edition {
	background: linear-gradient(var(--bs-light), transparent);
	border-radius: 5px;
}

.show-on-hover {
	display: none;
	position: absolute;
	z-index: 1;
}

.show-on-hover-link:hover+.show-on-hover {
	display: block;
}


.nav-item .active {
	font-weight: 600;
}



/* btn-primary now in ogio-common.css */

#deals-search h5 {
	display: inline !important;
	font-size: 105%;
	font-weight: 600;
	color: var(--bs-secondary);
}


#deals-search h6 {
	font-size: 101%;
}

#deals-search small {
	font-size: 70%;
	font-weight: 300;
	opacity: 0.7;
}

/* h1 styling now in ogio-common.css */

.verdana {
	font-family: verdana, sans-serif;
}

a {
	color: var(--operandi-green-dark);
	text-decoration: none;
}

a img {
	height: 24px;
	width: 24px;
}

/* .home h3 styling now in ogio-common.css */

summary>h3 {
	font-size: 1.2rem;
	display: unset;
}

/* Remove the default triangle */
details[name*="search"]>summary {
	display: block;
}


details[name*="search"]>div {
	margin-top: 1em;
}

details[name*="search"] {
	background-color: rgba(239, 247, 255, 0.5);
	margin: 1em;
	padding: 1em;
	border-radius: 10px;
	border: 1px solid rgb(from var(--operandi-green-dark) r g b / 0.25);
}


.workform input {
	border: 0;
	font-size: 110%;
}

.workform input:focus,
.workform .empty_input {
	border: var(--bs-border-width) solid var(--bs-border-color);
}

.week_nav {
	border: 0;
	background: none;
}

.week_nav img {
	height: 24px;
	width: 24px;
}

.btn-user,
.btn-select {
	border-color: rgb(from var(--operandi-green-dark) r g b / .25);
	background-color: rgb(from var(--operandi-green-light) r g b / .25);
	color: var(--operandi-green-dark);
	font-size: 155%;
	font-weight: 500;
}

.btn-user:hover,
.btn-select:hover {
	border-color: rgba(56, 122, 71, 0.4);
	background-color: rgba(56, 122, 71, 0.4);
}

.btn-topnav {
	border: 1px solid var(--operandi-green-dark);
	;
	border-radius: 14px;
	background: transparent;
	color: var(--operandi-green-dark);
	box-shadow: 0 1px 2px 2px rgba(0, 0, 0, .2)
}

.btn-topnav:hover {
	border: 1px solid var(--operandi-green-dark);
	;
	border-radius: 14px;
	background: transparent;
	color: var(--operandi-green-dark);
	box-shadow: none;
}

.add-entry,
.del-entry,
.week_nav {
	border: 0;
	background: none;
}

.add-entry img,
.del-entry img,
.week_nav img {
	height: 24px;
	width: 24px;
}

.min_used_input {
	width: 70px;
	text-align: right;
}

#saveresult {
	color: var(--operandi-green-light);
	font-size: 85%;
}

#saveresult.error {
	color: var(--bs-danger);
	font-size: 115%;
}

.navbar-nav .navlink.active {
	font-weight: 600;
}


.verdana {
	font-family: verdana, sans-serif;
}

.home-button {
	background: radial-gradient(rgb(from var(--operandi-green-light) r g b / .5), transparent 75%);
	position: absolute;
	align-items: center;
	justify-content: center;
	display: flex;
	top: 1em;
	left: 1em;
	width: 40px;
	height: 40px;
	overflow: display;
}


/* spinner stuff */

.spinner-container {
	display: grid;
}

.load-spinner,
.replaced-by-spinner {
	grid-column: 1;
	grid-row: 1;
}

.load-spinner {
	opacity: 0;
	align-self: center;
	justify-self: center;
}

.htmx-request .load-spinner {
	opacity: 1;
}

.htmx-request .replaced-by-spinner {
	opacity: 0;
}