@import 'mobile.css' screen and (max-width: 768px);
@import 'desktop.css' screen and (min-width: 769px);

:root {
    --hac-green: #32653A;
    --light-green: #468c50;
    --dark-green: #274f2d;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #eee;
    font-size: 15px;
}

body, input, textarea, select  {
    font-family: sans-serif;
}

input, textarea, select {
    font-size: 13px;
}

textarea {
    resize: vertical;
}

button { font: inherit; }

h1 {
    margin: 0;
    text-align: center;
}

#header {
    background-color: var(--hac-green);
    color: #ffffff;
    background-image: url(logo.png);
    background-repeat: no-repeat;
}

.header-button {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 4px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    height: 32px;
    width: 32px;
    line-height: 25px;
    text-align: center;
    background: var(--light-green);
    box-shadow: 0 0 3px 0 #444;
}

#main a {
    color: var(--hac-green);
}

.form-section {
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
}

.form-section-name {
    margin-top: 20px;
    font-weight: bold;
    display: block;
    background: #ddd;
    border: 1px solid #ccc;
    border-bottom: none;
    color: #444;
    padding: 10px;
}

.form-field.hide {
    display: none;
}

.form-field + .form-field {
    margin-top: 10px;
}

.form-label {
    display: block;
    padding-bottom: 10px;
}

.form-input, .form-compound {
    border: 1px solid #ccc;
    padding: 9px;
    box-shadow: inset 0 0 2px 0 #ccc;
}


.form-compound {
    display: flex; 
    padding: 0;
}
.form-compound-fixed, .form-compound-input {
    padding: 10px;
    border: none;
    background: transparent;
}
.form-compound-fixed {
    flex: 0 0 auto;
}
.form-compound-input {
    flex: 1 1 auto;
}

.form-input, .form-group {
    width: 100%;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-group .form-input {
    flex: 1 1 auto;
    width: auto;
}

.form-group .form-input + .form-input {
    margin-left: 10px;
}

.form-button, .inline-button {
    background: var(--hac-green);
    color: #ffffff !important;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 3px #ccc;
    display: inline-block;
    border: 1px solid var(--dark-green);
}

.form-button.error, .inline-button.error {
    background: #a34646;
    border-color: #621d1d;
}

.form-button.error:hover,
.inline-button.error:hover { background: #b15151; }

form .form-button:last-child {
    margin-bottom: 20px;
}

.inline-button {
    padding: 5px;
}

.form-button {
    margin-top: 15px;
    padding: 10px;
}

.form-button:hover, .form-button:focus {
    background: var(--light-green);
}

.table {
    border-collapse: collapse;
    width: 100%;
}

.table td, .table th { padding: 5px;}
.table td + td, .table th + td, .table th + th, .table td + th { 
    border-left: 1px solid #ddd }

.table tr:nth-child(even) td {
    background: #eee;
}

.table td.overdue {
    color: red;
}

.error-message {
    box-shadow: inset 0 0 2px rgba(0,0,0,0.5);
    color: darkred;
    background: pink;
    padding: 10px;
    margin: 10px 0;
}
