:root {
    --color-safire: #0f52ba;
    --color-nei: #237227;
    --color-sanip: #982598; /* #f77f00; orange color */
    --color-admin: #088395;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
}
* {
    box-sizing: border-box;
}
table, th, td {
    border: 1px solid rgb(200, 200, 200);
}
table {
    border-collapse: collapse; 
}
th, td {
    padding: 8px; 
}

#maincontent {
    margin: 1em;
    flex-grow: 1;
}

.error {
 color: red;
}
.topheader {
    background: linear-gradient(to right, #016533, #0f52ba);
    color: white;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    &>.header_title {
        flex-grow:1;
        text-align: center;
        font-family: sans-serif;
        font-size: 18pt;
        font-weight: bold;
    }
    &>* {
        flex-grow: 0;
    }
}
footer#mainfooter {
    font-family: sans-serif;
    font-size: 8pt;
    color: #666;
    background-color: #ddd;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 4em;
    border-top: 1px solid #ccc;

    a {
        color: #333;
        text-decoration: none;
        &:hover {
            border-bottom: 1px solid currentcolor;
        }
    }
}
#historydiv {
    padding-left: 10px;
}

button, input[type="submit"] {
	border: 3px solid var(--nei-c1h3);
	background-color: transparent;
	color: var(--nei-c1h3);
	transition: border-color 0.3s, color 0.3s, background-color 0.3s;
	padding: 0.6em 1em;
	cursor: pointer;
	&:hover {
		border-color: var(--nei-c0h3);
		color: white;
		background-color: var(--nei-c0h3);
	}
    margin-top: 1em;
}

a {
	color: var(--nei-c0h3);
	text-decoration: none;
}
/* Adds the underline back when the user hovers over the link */
a:hover {
  text-decoration: underline;
}
label {
	/*display: block;*/
	min-width: 10em;
	color: #333;
	font-size: 0.9em;
}

ul.outcome-grid {
    list-style: none;
    padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1em;
	margin: 1em 0;
}

ul.outcome-grid>li {
    display: contents;
}

.outcome-card>a {
	border: 1px solid #ddd;
	padding: 1em;
	border-radius: 4px;
	background-color: #f9f9f9;
	transition: transform 0.2s, box-shadow 0.2s;
	text-align: center;

    text-decoration: none;
    color: var(--nei-c0h3);
    font-weight: bold;
    font-size: 1.1em;
    display: block;    
}

.outcome-card>a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
