/* Organisation Search */

#content-container > #tasks > #organisation-search {
    align-items: center;
    display: flex;
    justify-content: center;
}

#content-container > #tasks > #organisation-search > label {
    display: block;
    font-weight: bold;
    margin-right: 1.25rem;  /* 20px */
    width: 6.5625rem;  /* 105px */
}

#content-container > #tasks > #organisation-search > a {
    align-items: center;
    background: #666;
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 1.5rem;  /* 24px */
    justify-content: center;
    margin-right: 1.25rem;  /* 20px */
    text-decoration: none;
    width: 1.5rem;  /* 24px */
}

#content-container > #tasks > #organisation-search > a:hover {
    background: #777;
    cursor: help;
}

#content-container > #tasks > #organisation-search > input {
    background: #eee;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    display: block;
    font: inherit;
    padding: 0.625rem;  /* 10px */
    width: 25rem;  /* 400px */
}

#content-container > #tasks > #organisation-search > input:focus {
    background: #def;
    outline: 0;
}

#content-container > #tasks > #organisation-suggestions {
    display: none;
    position: relative;
    width: 23.75rem;  /* 380px */
}

#content-container > #tasks > #organisation-suggestions > ul {
    background: #ddd;
    border-radius: 0 0 0.625rem 0.625rem;  /* 10px */
    list-style: none;
    position: absolute;
    width: 100%;
}

#content-container > #tasks > #organisation-suggestions > ul > li {
    overflow: hidden;
    padding: 0.625rem;  /* 10px */
    text-overflow: ellipsis;
    white-space: nowrap;
}

#content-container > #tasks > #organisation-suggestions > ul > li:last-child {
    border-radius: 0 0 0.625rem 0.625rem;  /* 10px */
}

#content-container > #tasks > #organisation-suggestions > ul > li:hover {
    background: rgba(0, 0, 0, 0.05);  /* #000 @ 5% */
    cursor: pointer;
}


/* Tasks Tiles */

#content-container > #tasks > #tasks-list {
    display: flex;
    justify-content: center;
    list-style: none;  /* Assumes the ID has been assigned to a list. */
}

#content-container > #tasks > #tasks-list:not(:first-child) {
    margin-top: 3.75rem;  /* 60px */
}

#content-container > #tasks > #tasks-list > li:not(:last-of-type) {
    margin-right: 1.875rem;  /* 30px */
}

#content-container > #tasks > #tasks-list > li > a {
    align-items: center;
    background-color: #555;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.625rem;  /* 10px */
    box-sizing: border-box;
    color: #ccc;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    height: 17.5rem;  /* 280px */
    justify-content: flex-end;
    padding: 1.875rem;  /* 30px */
    text-decoration: none;
    width: 17.5rem;  /* 280px */
}

#content-container > #tasks > #tasks-list > li > a:visited {
    color: #ccc;
}

#content-container > #tasks > #tasks-list > li > a:hover {
    background-color: #444;
    color: #eee;
}

#content-container > #tasks > #tasks-list > li > a#task-activities {
    background-image: url("../images/activities-icon.svg");
}

#content-container > #tasks > #tasks-list > li > a#task-agreements {
    background-image: url("../images/agreements-icon.svg");
}

#content-container > #tasks > #tasks-list > li > a#task-sites {
    background-image: url("../images/sites-icon.svg");
}

#content-container > #tasks > #tasks-list > li > a#task-transactions {
    background-image: url("../images/transactions-icon.svg");
}


/* Grids Navigation and Headings */

#content-container > #grid-menu > #grid-nav {
    display: flex;
    justify-content: center;
    list-style: none;  /* Assumes the ID has been assigned to a list. */
}

#content-container > #grid-menu > #grid-nav > li > a {
    background: #555;
    color: #ccc;
    display: block;
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
    text-decoration: none;
}

#content-container > #grid-menu > #grid-nav > li > a.active {
    color: #fff;
}

#content-container > #grid-menu > #grid-nav > li:first-child > a {
    border-radius: 0.625rem 0 0 0.625rem;  /* 10px */
}

#content-container > #grid-menu > #grid-nav > li:last-child > a {
    border-radius: 0 0.625rem 0.625rem 0;  /* 10px */
}

#content-container > #grid-menu > #grid-nav > li > a:hover {
    background: #444;
}

#content-container h2 {
    margin: 3.75rem 0 2.5rem 0;  /* 60px 40px */
    text-align: center;
    text-transform: capitalize;
}


/* Grid Containers */

#activity-selector,
#agreement-selector,
#site-selector {
    width: 100%;
}

#activityGridContainer,
#agreementGridContainer,
#siteGridContainer {
    margin-top: 1.25rem;  /* 20px */
    position: relative;
}


/* Grid Search */

.search-container {
    align-items: center;
    display: flex;
}

.search-container form {
    align-items: center;
    display: flex;
    border: 0.0625rem solid lightgray;  /* 1px */
    padding: 0.3125rem;  /* 5px */
}

.search-container form > :not(:first-child) {
    margin-left: 0.625rem;  /* 10px */
}

.search-container input {
    background: #eee;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    display: block;
    font: inherit;
    padding: 0.625rem;  /* 10px */
}

.search-container input:focus {
    background: #def;
    outline: 0;
}

.search-container button {
    background: #026;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    color: #eee;
    display: block;
    font: inherit;
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
    text-transform: capitalize;
}

.search-container button:focus {
    outline: 0;
}

.search-container button:hover {
    background: #137;
    color: #fff;
    cursor: pointer;
}

.search-container > button {
    margin-left: auto;  /* Pushes the 'add' button to the right side. */
}


/* Grid Tables */

.gj-grid-md {
    border-color: #eee;
    font: inherit;
}

.gj-grid-md thead {
    background: #eee;
}

.gj-grid-md th {
    color: inherit;
    font: inherit;
    font-weight: bold;
    height: auto;
    padding: 0.9375rem;  /* 15px */
}

.gj-grid-md th:first-of-type {
    padding: 0.9375rem;  /* 15px */
}

.gj-grid-md tbody tr {
    height: auto;
}

.gj-grid-md tbody tr:hover {
    background: rgba(0, 0, 0, 0.025);  /* #000 @ 2.5% */
}

.gj-grid-md tbody tr.gj-grid-md-select {
    background: #def;
}

.gj-grid-md td {
    border-color: #eee;
    color: inherit;
    font-size: 0.875rem;  /* 14px */
    height: auto;
    line-height: 1.25;  /* 20px */
    padding: 0.9375rem;  /* 15px */
}

.gj-grid-md td:first-of-type {
    padding: 0.9375rem;  /* 15px */
}

table.gj-grid > tbody > tr > td > div {
    padding: 0;
}

.gj-grid-md tfoot {
    background: #eee;
    font-size: 0.875rem;  /* 14px */
}

table.gj-grid tfoot div[data-role="display"] {
    align-items: center;
}


/* Grid Drop Down Menu */

.gj-grid-md tfoot tr[data-role="pager"] .gj-dropdown-md {
    color: inherit;
    margin-left: 0.625rem;  /* 10px */
}

.gj-dropdown-md [role="presenter"] {
    border-color: #ccc;
    font: inherit;
    letter-spacing: normal;
}

.gj-dropdown-md [role="presenter"]:active,
.gj-dropdown-md [role="presenter"]:focus {
    border-bottom: 0.0625rem solid #ccc;  /* 1px */
}

.gj-grid-md tfoot tr[data-role="pager"] .gj-dropdown-md [role="presenter"] {
    color: #666;
}

.gj-dropdown-list-md {
    background: #eee;
}

.gj-dropdown-list-md li.active,
.gj-dropdown-list-md li:hover {
    background: #ddd;
}

ul.gj-list-md {
    color: #666;
}

ul.gj-list-md li {
    border-bottom: 0.0625rem solid #ccc;  /* 1px */
    font: inherit;
    letter-spacing: normal;
}

ul.gj-list-md li [data-role="display"] {
    color: inherit;
    font-weight: bold;
}

.gj-list-md-active {
    background: #ddd;
    color: #666;
}


/* Grid Nav Buttons */

.gj-button-md {
    border-radius: 50%;
    color: inherit;
    font: inherit;
}

.gj-button-md:not(:disabled):hover {
    background: #ddd;
}

.gj-button-md:disabled {
    color: #999;
    cursor: not-allowed;
}


/* Grid Icons */
.material-icons {
    color: #026;
    font-size: 1.25rem;  /* 20px */
}

.material-icons:hover {
    color: #137;
}


/* Forms */

#activity-editor,
#agreement-editor,
#site-editor {
    position: relative;
    width: 100%;
}

.field-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
}

.radio-group {
    margin: 0.625rem 0;  /* 10px */
}

.radio-group > label {
    display: block;
}

.radio-group > input {
    display: block;
    margin-right: 0.625rem;  /* 10px */
}

.radio-group > input:not(:first-child) {
    margin-left: 0.625rem;  /* 10px */
}

.field {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;  /* 20px */
    width: calc(100% / 3);
}

.field.form-error {
    background: rgba(221, 17, 51, 0.15);  /* #d13 @ 15% */
}

.field > label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.625rem;  /* 10px */
}

.field > input {
    background: #eee;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    font: inherit;
    padding: 0.625rem;  /* 10px */
}

.field > input.form-error {
    background: rgba(221, 17, 51, 0.15);  /* #d13 @ 15% */
}

.field > input:disabled {
    background: transparent;
    padding: 0.625rem 0;  /* 10px */
}

.field > input:focus {
    outline: 0;
}

.field > input:not(.form-error):focus {
    background: #def;
}

.field > p {
    font-size: 0.875rem;  /* 14px */
    margin-top: 0.625rem;  /* 10px */
}

.form-section {
    border: 0.125rem solid #eee;  /* 2px */
    border-radius: 0.625rem;  /* 10px */
    box-sizing: border-box;
    margin-top: 1.25rem;  /* 20px */
}

.form-section > h3 {
    margin: 1.25rem 0 1.25rem 1.25rem;  /* 20px */
}

.editor-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;  /* 40px */
}

.editor-button-container > button {
    background: #026;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    color: #eee;
    display: block;
    font: inherit;
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
    text-transform: capitalize;
}

.editor-button-container > button:not(:last-child) {
    margin-right: 0.625rem;  /* 10px */
}

.editor-button-container > button:focus {
    outline: 0;
}

.editor-button-container > button:hover {
    background: #137;
    color: #fff;
    cursor: pointer;
}

.editor-button-container > button:disabled {
    background: #999;
    cursor: not-allowed;
}

.display-none {
    display: none !important;
}


/* Loading Animation */

.grid-loading-message {
    align-items: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    left: 0;
    min-height: 100%;
    padding-top: 2.5rem;  /* 40px */
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.grid-loading-message > p {
    font-weight: bold;
    text-transform: capitalize;
}

.grid-loading-message > img {
    display: block;
    margin-top: 1.25rem;  /* 20px */
}


/* NSW Point Widget */

.ui-menu {
    box-sizing: border-box;
    list-style: none;
    max-width: 24.0625rem;  /* 385px */
    padding: 0 1.25rem;  /* 20px */
    position: absolute;
}

.ui-menu-item {
    background: #ddd;
}

.ui-menu-item:last-child {
    border-radius: 0 0 0.625rem 0.625rem;  /* 10px */
}

.ui-menu-item-wrapper {
    overflow: hidden;
    padding: 0.625rem;  /* 10px */
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-menu-item:last-child > .ui-menu-item-wrapper {
    border-radius: 0 0 0.625rem 0.625rem;  /* 10px */
}

.ui-menu-item-wrapper:hover {
    background: rgba(0, 0, 0, 0.05);  /* #000 @ 5% */
    cursor: pointer;
}

.ui-helper-hidden-accessible {
    display: none;
}

.descriptionDiv {
    line-height: 1.25;  /* 20px */
    padding-bottom: 2.5rem;  /* 40px */
}

.descriptionDiv > p:not(:last-child) {
    margin-bottom: 1.25rem;  /* 20px */
}