@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* resetting water.css */
    max-width: initial;
    margin: 0;
    padding: 0;
    --primary-button-color: #5fa931;
    --header-text-color: #335431;
    --page-header-color: #224320;
    --link-color: #0366d6;
    --completed-bg-color: #bdb;
    --secondary-background: #eee;
    
    --dark-yellow: #fab005;
    --dark-green: #40c057;
    --dark-cyan: #15aabf;
    --dark-gray: #495057;
    --dark-red: #c92a2a;
    --cream: #FFFDD0;
}

a, .btn-link {
    color: var(--link-color);
}

[hidden] {
    display: none;
}

.content {
    padding-top: 1.1rem;
    position: relative;
}

footer {
    margin-top: 100px;
    height: 100px;
}

hr {
    margin-bottom: 6px;
}

input {
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 4px;
    background: white;
    margin: 0;
    height: 42px;
}
input[type=file]
{
    padding: 8px 10px 10px 10px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(0, 0, 0, .85) 60%, #3B7238 100%);
}

.sidebar ul {
    margin: 0 18px;
}

.sidebar .top-row {
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
}

.main .top-row {
    justify-content: space-between;
}

.top-row {
    justify-content: flex-end;
    height: 5.5rem;
    display: flex;
    align-items: center;
    background-color: rgba(0,0,0,.91);
    border-bottom: 1px solid #777;
    color: white;
}

    .top-row ::deep a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.navbar-brand {
    font-size: 1.1rem;
}

.nav-header {
    border-bottom: 1px solid #aaa;
    color: #aaa;
    margin-top: 2px;
    margin-bottom: 4px;
    text-indent: 2px;
}

table.selectable tbody tr:hover {
    cursor: pointer;
    background-color: #ccc;
}

fieldset {
    border: 1px solid #aaa;
    border-radius: 0;
    padding: 8px 1.4em 1.4em 1.4em;
    margin: 0 0 2em 0;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    width: 82.5%;
    border-color: #aaa;
}

a svg, a .icon {
    width: 32px;
    vertical-align: middle;
    margin-top: -6px;
}

a {
    cursor: pointer;
}

h1 {
    color: var(--page-header-color);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2 !important;
    border-color: #1861ac;
}

.btn-success, tbody tr:nth-child(even) button.btn-success {
    color: #fff;
    background-color: var(--primary-button-color);
}

.btn-danger {
    color: #fff;
    background-color: #b23735;
    border-color: #b23735;
}

.btn-danger:hover {
    background-color: #b33836;
}

/* resetting water.css */
button {
    border-radius: 2px;
    background-color: white;
    border: 1px solid var(--primary-button-color);
    color: var(--primary-button-color);
}

button:hover {
    background-color: #7bc74d;
    color: white;
}

p {
    margin-bottom: 16px;
}

th {
    vertical-align: middle;
}

/* any changes/fixes needed for Blazored.Toasts */
.blazored-toast-container {
    z-index: 100;
}

.blazored-toast-heading {
    margin-top: 8px;
}

.blazored-modal-title {
    margin-top: 8px
}

@media (max-width: 640.98px) {
    .top-row.auth {
        justify-content: space-between;
    }
    
    .main .top-row {
        padding: 0 12px;
    }
    
    .sidebar .top-row {
        justify-content: flex-start;
        border: none;
        background-color: initial;
    }
    
    .sidebar .navbar-brand {
        margin-left: 10%;
    }
    
    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }
    
    .collapse {
        display: none; 
    }
    
    .navbar-toggler {
        width: 48px;
        padding: 12px 0;
        margin-left: 12px;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow: auto;
    }

    .top-row {
        z-index: 1;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

@media print {
    .sidebar, .top-row, .hide-print, .unallocated-assets {
        display: none;
    }

    .crew-allocations {
        display: block;
    }
}
    

.lots tbody {
    overflow: scroll;
}

.lot.completed {
    background-color: #bdb;
}

.lot.new-lot {
    background-color: #9fcdff;
}

.lot:hover {
    background-color: #ccc;
}

.lot .lot--completed-text {
    display: inline-block;
    margin: 0 8px;
    text-decoration: underline;
    font-style: italic;
    font-size: 14px;
}

.lot section {
    background: rgba(239, 239, 239, 0.7);
    padding: 8px;
    border: 1px solid #ccc;
    width: 90%;
}

.lot section div {
    display: grid;
    grid-template-columns: 30% 40% 30%;
}

.lot--materials .difference {
    color: forestgreen;
    display: inline-block;
    padding: 0 4px;
}

.lot--heading {
    grid-column-start: span 2;
    margin-bottom: 4px;
}

.lot--heading i {
    margin-left: 20px;
    font-size: 14px;
}

.lot--status {
    width: 32px;
}

.lot--status i.in-service {
    color: rgb(202, 189, 0);
}

.lot--status i.complete {
    color: yellowgreen;
}

.lot--expanded td {
    background-color: white;
}

.lot--expanded-actions {
    display: grid;
}

.lot--expanded td fieldset {
    display: grid;
    grid-template-columns: 48% 48%;
    justify-content: space-between;
}

.assigned-crew {
    display: flex;
    align-items: center;
}

.assigned-crew img {
    width: 128px;
    margin-right: 12px;
}

.assigned-crew h2 {
    font-size: 1.45rem;
    font-weight: normal;
}

.assigned-crew button {
    position: relative;
    top: 8px;
    left: 24px;
}

.assigned-crew .show-completed {
    position: relative;
    top: 8px;
    /* TIL: https://stackoverflow.com/questions/33924655/position-last-flex-item-at-the-end-of-container */
    margin-left: auto;
    font-size: 1.25rem;
    font-weight: bold;
}

.assigned-crew .show-completed label {
    position: relative;
    top: -2px;
}

.choose-crew--crews {
    display: grid;
    grid-template-columns: 32% 32% 32%;
    grid-gap: 12px;
}

.choose-crew h2 {
    font-size: 1.35rem;
    color: var(--page-header-color);
}

.choose-crew .choose-crew--crew {
    display: grid;
    align-items: center;
    padding: 8px;
    grid-template-columns: 20% 80%;
    text-align: center;
    background-color: #eee;
    font-weight: bold;
    color: var(--header-text-color);
    margin-bottom: var(--bottom-gutter);
}

.choose-crew--crew.highlight {
    background-color: #cec;
}

.choose-crew .choose-crew--crew img {
    width: 64px;
    margin: 0 12px;
}

.pending-worklogs .choose-crew--crews {
    grid-template-columns: repeat(auto-fit, 180px);
}

.add-lot {
    margin: 24px;
    display: block;
}

.add-content {
    margin-top: 12px;
}

.edit-content > form {
    padding-left: 72px;
    display: block;
}

.edit-content > form strong {
    margin-bottom: 8px;
    display: block;
}

.edit-content > form > div {
    display: flex; 
    margin-top: 0;
    width: 100%;
}

tr.edit > td {
    padding: 4px;
    vertical-align: middle;
}

tr.edit input {
    width: 80%;
    height: 32px;
    margin: 0;
    border: 1px solid #ddd;
}

tr.edit input[type="checkbox"] {
    height: 18px;
    width: 18px;
    margin-left: 10px;
}

tr.edit select {
    width: 80%;
    border-radius: 0;
    height: 32px;
    padding: 2px 4px;
    margin: 0;
    border: 1px solid #ddd;
}

tr.selected > td {
    background-color: rgb(187, 211, 255);
}

tr td, tr th {
    padding-left: 15px;
    vertical-align: middle;
}

tfoot tr.add td {
    padding-top: 12px;
}

.hb-data-grid tbody {
    display: block;
    min-height: 280px;
    overflow: auto; 
}

.hb-data-grid tfoot {
    border: none;
}

.hb-data-grid thead, .hb-data-grid tfoot, .hb-data-grid tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.data-grid--actions {
    text-align: right;
    padding-right: 24px;
}

.data-grid--actions a {
    margin: 0 6px;
    color: #2196F3;
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 4px;
}

.data-grid--actions a:hover {
    background-color: #2196F3;
    color: white;
}

tr.edit .data-grid--actions {
    padding-right: 24px;
}

.checkbox-label {
    position: relative;
    top: -3px;
    margin-right: 4px;
}

.search {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    grid-column-gap: 12px;
    margin-bottom: 6px;
}

.search--filter-category {
    margin: 8px 0;
    display: inline-block;
}

.search .search--text {
    flex-grow: 1;
}

.search input[type='text'] {
    width: 100%;
    border: 1px solid #ddd;
    padding-left: 34px;
    border-radius: 6px;
    background-color: white;
}

.search .search--icons {
    position: absolute;
    margin-top: 10px;
    margin-left: 10px;
}

.assignment {
    background-color: #eee;
    padding: 8px;
    margin: 12px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
}

.lots--assignments .assignment {
    grid-template-columns: 30% 50% 20%;
}

.assignment.has-work {
    background-color: #bdb;
}

.assignment a {
    display: inline-block;
}

.assignment div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.assignment div strong {
    font-size: 1.25rem;
    color: var(--header-text-color);
}

.assignment div span {
    color: #777;
    font-style: italic;
    font-size: .95rem;
}

.assignment div:last-child {
    align-items: flex-start;
}

.assignment div a span {
    color: inherit;
    font-style: inherit;
}

.assignment .assignment--actions {
    margin-top: 8px;
}

.assignments .draggable--anchor {
    padding: 0 18px;
    background: #c5f6fa;
    color: #0f6674;
}

.assignments .draggable {
    margin-bottom: 12px;
}

.assignments.today .assignment {
    margin: 0;
}

.worklog legend {
    font-size: 1.25rem;
    color: var(--page-header-color);
}

.worklog .worklog--meta {
    display: flex;
    background-color: var(--secondary-background);
    padding: 12px;
    margin-bottom: 8px;
}

.worklog .worklog--time {
    display: grid;
    grid-template-columns: 80px 180px 80px 180px 80px;
    align-items: center;
}

.worklog .worklog--time input {
    height: 32px;
    font-weight: bold;
}

.worklog .code {
    width: 80px;
}

.worklog .code input {
    width: 100%;
}

/* TODO: temporary fix to cover these up.  Long term fix is to pull the pager and search into their own components */
.worklog--group .search, .worklog--group .pager {
    display: none;
}

.worklog--group .hb-data-grid tbody {
    display: table; 
    overflow: auto;
}

.worklog--group .hb-data-grid tbody {
    min-height: auto;
}

.worklog--group {
    margin: 6px 0;
    padding: 2px;
}

.worklog--group h2 {
    margin: 2px;
    color: var(--page-header-color);
    text-transform: capitalize;
}

.input-group {
    display: flex;
    align-items: center;
    grid-template-columns: 10% 20%;
}

.input-group > * {
    margin-right: 12px;
}

.modal-form .input-group input {
    width: auto;
}

.job--details { 
    background: #eee;
    margin-bottom: 12px;
    padding: 8px 4px;
    display: grid;
    grid-template-columns: 33% 33% 33%;
    text-align: center;
}

@media (max-width: 640.98px) {
    .job--details {
        grid-template-columns: 100%;
    }
    
    .job--detail {
        margin-top: 12px;
    }
    
    h1 {
        padding: 8px 12px;
        text-align: center;
    }
    
    .input-group {
        justify-content: space-between;
        padding: 8px 12px;
    }
    
    .expandable--toggle {
        padding: 8px 12px;
    }
}

.job--detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.job--detail strong {
    padding: 2px 4px;
    font-size: 2rem;
    color: #335431;
}

.job--matching-lot {
    background: #eee;
    margin-bottom: 12px;
    padding: 8px 4px;
    display: grid;
    grid-template-columns: 33% 33% 33%;
    text-align: center;
}

.job--matching-lot-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.job {
    display: grid;
    padding: 8px
}

.job--prediction {
    margin-bottom: 8px;
}

.job--separator {
    margin: 12px -40px;
}

.job--actions {
    margin: 8px 0;
}

.job--subject {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--links);
}

.job--subject h2 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: lighter;
}

.job--email-fields {
    background: #eee;
}

.job--email-field {
    display: grid;
    grid-template-columns: 20% 80%;
}

.job--email-field strong {
    background: #ddd;
    padding: 2px 4px;
}

.job--email-body {
    width: 100%;
    overflow-x: scroll;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    align-items: center;
}

.tabs .tab {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #eee;
}

.tabs .tab:hover {
    background-color: #ddd;
}

.tabs .tab a {
    text-align: center;
    padding: 12px 0;
    text-decoration: none;
}

.tabs .tab.selected {
    background-color: var(--primary-button-color);
    font-weight: bold;
}

.tabs .tab.selected a {
    color: #fff;
}

.tabs--body {
    border: 1px solid #eee;
    padding: 24px 8px 8px;
    border-top: none;
}

.actions {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.actions > * {
    margin: 4px;
}

.positive {
    color: var(--primary-button-color);
}

.receipt tbody tr:nth-child(even) {
    background-color: initial;
}

.receipt tbody tr:first-child td {
    padding-top: 4px;
}

.receipt td {
    padding: 0 12px 0
}

.purchase-order--filters button {
    margin: 10px 10px 20px;
}

.purchase-order--filters .selected {
    outline: 10px solid #ddd;
    border-radius: 0;
}

html {
    --container-padding: 12px;
    --bottom-gutter: 12px;
}

.route--stops .route--stop {
    background-color: #eee;
    padding: var(--container-padding);  
    display: flex;
    margin-bottom: var(--bottom-gutter);
}

.route--stop:hover {
    background-color: #bcb;
}

.route--stop .actions {
    margin-left: auto;
}

.route--create {
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    color: var(--header-text-color);
}

.route--create .oi {
    position: relative;
    margin-right: 8px;
    top: -2px
}

.route--create:hover {
    text-decoration: none;
    background-color: #bcb;
}

.property {
    display: flex;
    flex-direction: column-reverse;
    width: 24%;
    text-align: center;
}

.property strong {
    font-size: 1.25rem;
    color: var(--header-text-color);
}

.property span {
    font-style: italic;
    color: #555;
}

.route--stop button {
    margin-left: auto;
}

.fixed-bids--pending tr td:first-child,
.fixed-bids--pending tr th:first-child
{
    width: 64px;
}

.fixed-bids--completed tr td:first-child,
.fixed-bids--completed tr th:first-child
{
    width: 64px;
}

.fixed-bids--total {
    display: flex;
    clear: both;
    justify-content: space-evenly;
    background-color: #eee;
    padding: 12px;
}

.fixed-bids--notes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--cream);
    box-shadow: 2px 2px 2px #ddd;
    border-radius: 8px;
    margin: 0 8px;
    padding: 6px;
}

.fixed-bids--notes a {
    padding-left: 12px;
}

@media print {
    .fixed-bids--pending input[type='checkbox'] {
        display: none;
    }

    .fixed-bids--pending tr td:first-child,
    .fixed-bids--pending tr th:first-child
    {
        display: none;
    }
    
    .fixed-bids--pending .fixed-bids--bid {
        break-before: auto;
    }
}

.space-between {
    display: flex;
    justify-content: space-between;
}

.modal-form input, .modal-form select {
    width: 100%;
}

.modal-form input[type='checkbox'] {
    width: initial;
    position: relative;
    top: 3px;
    transform: scale(1.2);
}

.modal-form input[type='radio'] {
    width: initial;
    position: relative;
    top: 3px;
    transform: scale(1.5);
    margin: 0 8px;
}

.modal-form .radio-select {
    margin: 6px 0;
}


/* TODO: temporary fix to cover these up.  Long term fix is to pull the pager and search into their own components */
.fixed-bids--bid .search, .fixed-bids--bid .pager, .fixed-bids--bid .add {
    display: none;
}

.fixed-bids--bid .hb-data-grid tbody {
    display: table;
    overflow: auto;
    min-height: auto;
}

.fixed-bids--status span, .worklogs--status span {
    display: inline-block;
    font-weight: bold;
    padding: 4px;
    width: 100%;
    text-align: center;
    background-color: #999;
    border-radius: 12px;
}

.fixed-bids--status.pending span {
    background-color: var(--dark-yellow);
}

.fixed-bids--status.rejected span {
    background-color: var(--dark-red);
    color: #ddd;
}

.fixed-bids--status.approved span {
    background-color: var(--dark-green);
}

.fixed-bids--status.paid.not.billed span {
    background-color: var(--dark-cyan);
}

.worklogs--status.draft span {
    background-color: var(--dark-yellow);
}

.worklogs--status.review span {
    background-color: var(--dark-green);
}

.fixed-bids--pending .show-rejected, .fixed-bids--completed .show-others {
    float: right;
    margin-right: 32px;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.finished-houses {
    --grid-columns: repeat(auto-fit, minmax(48px, 1fr));
}

.finished-houses--select {
    align-self: center;
    justify-self: center;
    margin-bottom: -4px;
}

.finished-houses--list-link {
    float: right;
    margin: 0 12px;
}

.bottom-gutter {
    height: 200px;
}

.loading-message {
    display: flex;
    align-items: center;
    margin: 12px;
}

.loading-message .spinner {
    margin-right: 12px;
}

.error-banner {
    background: #ee9;
    padding: 12px;
}

.error-banner h2 {
    margin: 0 0 8px
}

.swppp-report {
    margin-bottom: 8px;
}

.swppp-report--attachments {
    display: flex;
    flex-wrap: wrap;
}

.swppp-report--attachments .swppp-report--attachment {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    margin: 8px 8px 0 0;
    display: flex;
    align-items: center;
}

.swppp-report--attachment i {
    transform: scale(1.5);
    padding: 10px
}


.swppp-feed .group-grid {
    --grid-columns: 20% 35% repeat(auto-fit, minmax(48px, 1fr));
}

.swppp-feed .group-grid--row {
    font-size: 0.9rem;
}

.swppp-feed--list-link {
    float: right;
    margin: 0 12px;
}

.swppp-feed__repeat {
    font-weight: bold;
    color: var(--dark-red);
}

.lot-search {
    display: grid;
    grid-template-columns: 18% 82%;
}

.lot-search .group-grid {
    --grid-columns: repeat(auto-fit, minmax(48px, 1fr)) 100px;
}

.lot-search .search--filter {
    margin: 4px 0;
}

.search--filters select {
    background-color: #ddd;
    width: 100%;
}

.search--filters h2 {
    margin: 0 0 8px;
}

.search--filter-range {
    display: grid;
    grid-template-columns: 42% 14% 42%;
    align-items: center;
    font-size: .85rem;
}

.search--filter-range input[type="number"] {
    background-color: #ddd;
    border-radius: 4px;
    text-align: center;
}

.lot-search .completed {
    background: var(--completed-bg-color);
}

.lot-search .actions .fas {
    transform: scale(1.5);
}

.special-requests .special-request {
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.special-request .cancel {
    margin: 0 12px;
    transform: scale(1.2);
}

.attachments {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-column-gap: 12px;
}

.attachments--file {
    border: 1px dashed #aaa;
    padding: 12px;
    font-size: 1.25rem;
}

.attachments--add {
    padding: 12px;
}

.pricelists .important {
    font-weight: bold;
    color: var(--header-text-color);
    text-decoration: underline;
}

.pricelists dl dd {
    text-indent: 32px;
}

.pricelists dl dt {
    font-weight: bold;
    color: var(--header-text-color);
    text-decoration: underline;
}

.error {
    color: red;
    font-weight: bold;
    text-decoration: underline;
}

.special-request--text-entry {
    display: grid;
    grid-template-columns: 90% 10%;
    align-items: center;
    grid-column-gap: 12px;
}

.special-request--text-entry textarea {
    height: 80px;
}

.special-request--add {
    margin: 8px 0;
    display: inline-block;
}

.special-requests {
    background: #eee;
    padding: 12px;
}

.special-requests ul li {
    border: 1px solid #bbb;
    border-radius: 8px;
    padding: 6px;
    margin: 4px 0;
}

.special-request-search {
    display: grid;
    grid-template-columns: 14% 86%;
}

.special-request-search .group-grid {
    --grid-columns: 20% 80%;
}

.special-request-search .special-requests {
    padding: 0;
    background: initial;
}

.special-request-search .search--filter {
    margin: 4px 0;
}

.bid-search {
    display: grid;
    grid-template-columns: 18% 82%;
}

.search--filters {
    background: #eee;
    padding: var(--container-padding);
    margin-right: 8px;
    border: 1px solid #ddd;
}

.group-grid .finished-houses--list-link .oi {
    color: var(--link-color);
}

.blazored-typeahead input[type="text"] {
    background: initial;
    height: initial;
    margin: initial;
    outline: none;
}

.blazored-typeahead input[type="text"]:focus {
    outline: none;
    box-shadow: none;
}

.inline-form {
    display: flex;
}

.page-actions h2 {
    margin: 0 0 8px;
}

.page-actions--actions {
    background: #eee;
    padding: 12px 8px 8px;
    margin-bottom: 12px;
}

.fullscreen-spinner {
    background: rgba(200, 200, 200, 0.3);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.division-banner {
    text-align: center;
}

.division-banner strong {
    color: white;
}

.division-banner a {
    color: var(--primary-button-color);
}

.floating-division-banner {
    position: absolute;
    top: 58px;
    border: 1px solid #eee;
    padding: 2px 3px;
    background-color: #ece7c3;
    border-radius: 4px;
    color: black;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: bold;
}

.payments {
    margin-bottom: 6px;
}

.payments .group-grid {
    --grid-columns: repeat(auto-fit, minmax(48px, 1fr)) 100px;
}

.payments--total {
    display: flex;
    clear: both;
    justify-content: space-evenly;
    background-color: #eee;
    padding: 12px;
    margin-bottom: 6px;
}

.payments .data-grid--actions {
    padding-right: 0;
}

.no-results {
    margin: 12px;
}

a.grid-action {
    display: inline-block;
    margin: 0 8px;
}

.draw-history {
    width: 640px;
    --border-color: #bbd;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.draw-history--entry {
    padding: 4px 0 4px 4px;
    border-bottom: 1px solid var(--border-color);
    background-color: #dde;
}

fieldset {
    --background-color: white;
    background-color: var(--background-color);
    margin-top: 26px;
    border-radius: 4px;
    box-shadow: 2px 2px 2px #ddd;
}

fieldset legend {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px 24px;
    position: relative;
    top: -21px;
    z-index: 10;
    border-bottom: none;
}

.worklog--meta {
    margin-top: 8px;
}

.paid-not-billed {
    margin-top: 6px;
}

.filters--preselected {
    background-color: #eee;
    padding: 12px;
    margin-bottom: 6px;
}

.filters--preselected h2 {
    margin: 0 0 12px;
}

.show-email-modal {
    max-width: 1024px;
    max-height: 728px;
    overflow-y: scroll;
}

.worklog--group-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    grid-template-rows: auto;
    border: 2px dashed #eee;
    padding: 6px 0;
}

.worklog--group-requests {
    margin-right: 6px;
    padding: 6px;
}

.worklog--group-request {
    padding: 6px;
    box-shadow: 2px 2px 2px #ddd;
    background-color: #FFFDD0;
    margin: 6px 0;
}

.worklog--group-request .complete {
    color: green;
}

.worklog--group-requests .no-results {
    margin: 6px 0 0;
    font-size: 0.9rem;
}

.worklog--columns {
    display: grid;
    grid-template-columns: 180px 300px repeat(auto-fit, minmax(48px, 1fr));
}

.worklog--columns strong {
    padding: 8px;
}

.worklog--group-items ul li {
    display: grid;
    grid-template-columns: 300px repeat(auto-fit, minmax(48px, 1fr));
}

.worklog--group-items ul li:nth-child(even) {
    background-color: #eee;
}

.worklog--group-items ul li > * {
    padding: 8px;
}

:root {
    --panel-background-color: #e0e0d9;
    --panel-text-color: #326617
}

.panel {
    background: var(--panel-background-color);
    color: var(--panel-text-color);
    padding: 12px;
    border-radius: 4px;
    box-shadow: 2px 2px 2px #ccc;
    margin: 6px 0;
}

.panel h2 {
    color: var(--panel-text-color);
    margin: 0;
}

.panel header {
    margin-bottom: 20px;
}

ul.properties {
    display: flex;
    justify-content: space-between;
    background-color: #eee;
    padding: 12px;
    margin: 6px 0;
}

ul.properties li {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    width: 24%;
    text-align: center;
}

ul.properties li strong {
    font-size: 1.25rem;
    color: var(--header-text-color);
}

ul.properties li span {
    font-style: italic;
    color: #555;
}

/* TODO: This inadvertently depends on bonsai's .expandable class. Need to separate the two */
fieldset.expandable {
    background-color: #dfd2cb;
    border-color: #aaa;
    margin-top: -4px;
    width: 100%;
    position: absolute;
    height: 80px;
}

.foldable-fieldset {
    position: relative;
}

.expandable.expanded {
    height: auto;
    margin-bottom: 12px;
    background-color: white;
    position: initial;
    /* this defaults to min-content for fieldsets.  Overriding to avoid changing too much stuff. */
    min-inline-size: auto;
}

.expandable.header {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 6px 24px;
    position: relative;
    left: 24px;
    z-index: 10;
    border-bottom: none;
    background-color: white;
    width: 80%;
    text-overflow: ellipsis;
    overflow-x: hidden;
}

.expandable.header .expandable--toggle {
    border: none;
}

.clamp-one-line {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 90%;
    display: inline-block;
    overflow-x: hidden;
}

.division-managers .expandable {
    position: relative;
}

.worklog--group-view .group-grid {
    --grid-columns: 32px 500px repeat(auto-fit, minmax(48px, 1fr));
}

.worklog--notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, 180px);
    grid-gap: 12px;
}

.worklog--note {
    padding: 6px;
    box-shadow: 2px 2px 2px #ddd;
    background-color: #FFFDD0;
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.worklog--note.add {
    text-align: right;
    box-shadow: none;
    background-color: initial;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    border: 2px dashed #aaa;
}

.worklog--note.add i {
    margin: 6px;
}

.worklog--note-footer {
    text-align: right;
}

.worklog--note-pill {
    border-radius: 4px;
    border: 1px solid #777;
    display: flex;
    justify-content: space-between;
    padding: 6px;
    background: #FFFDD0;
}

.grouped-grid--group .worklog--notes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.worklog--note-pill a, .worklog--note-pill span {
    color: #777;
    font-style: italic;
    font-size: .85rem;
    margin: 0 4px;
}

.worklog--group-view .expandable--toggle {
    display: flex;
    align-items: center;
}

.show-billed {
    float: right;
    margin-right: 32px;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: 1px solid #777;
    background: var(--cream);
    border-radius: 12px;
    padding: 8px 8px 6px 8px;
}

.show-billed input {
    position: relative;
    top: -2px;
}


.worklog-search {
    display: grid;
    grid-template-columns: 18% 82%;
}

.search-main .panel header {
    font-size: 1.5rem;
}

.maintenance-list__top {
    display: grid;
    grid-template-columns: 49% 50%;
    grid-column-gap: 12px;
}

.crews-by-subdivision {
    margin-bottom: 112px;
}

.crews-by-subdivision__content {
    display: flex;
    overflow-x: auto;
    max-width: 78vw;
    box-shadow: 6px 0 2px #ccc;
}

.crews-by-subdivision__column {
    min-width: 300px;
    padding: 4px;
}

.crews-by-subdivision__column ul li {
    background: var(--cream);
    margin-bottom: 4px;
    padding: 2px 8px;
}

.empty-message {
    font-size: 2rem;
    text-align: center;
    padding: 24px;
    color: var(--header-text-color);
}

.worklog input {
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    margin: 0;
    height: 40px;
}

button {
    font-size: 1.1rem;
    border-radius: 4px;
    box-shadow: 2px 2px 2px #ccc;
}

.blazored-modal-close, .blazored-toast-close {
    box-shadow: none;
}

.worklog .group-grid {
    --grid-columns: 15% 25% 120px 120px 120px repeat(auto-fit, minmax(48px, 1fr));
}

.worklog .group-grid--row {
    align-items: center;
}

.worklog .group-grid--header, .worklog .group-grid--footer {
    grid-gap: 3px;
}

.worklog__add-item {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: 20% 25% 10% 200px;
    margin: 12px 0 6px;
    border: 1px solid #eee;
    padding: 8px;
    font-size: 0.9rem;
    align-items: center;
}

.worklog__work-items {
    margin-top: 6px;
}

.worklog__work-items .overage {
    font-style: italic;
    font-weight: bold;
    color: #ba8b00;
}

.worklog__work-items span {
    font-size: 0.9rem;
}

.worklog__work-items .total {
    font-weight: bold;
    height: 100%;
    color: var(--header-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.worklog__work-items.--readonly .editable-row__actions {
    display: none;
}

.worklog__address {
    text-decoration: underline;
    font-style: italic;
    color: var(--header-text-color);
}

.worklog__overages {
    display: flex;
    grid-gap: 12px;
}

.worklog__overage {
    border-radius: 4px;
    border: 1px solid #777;
    padding: 6px 16px;
    background: #FFFDD0;
}

.worklog__overage.applied {
    background: #bbb;
}

.worklog__header {
    display: flex;
    grid-gap: 12px;
}

.worklog__header h3 {
    margin: 0 0 8px;
}

.worklog__adjustment-button {
    font-size: 0.9rem;
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 4px;
    margin-left: 8px;
}

.worklog__share {
    display: inline-block;
    margin-bottom: 8px;
}

.overage-settings__add-setting {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: 20% 92px 92px 92px 92px 200px;
    margin-bottom: 12px;
    border: 1px solid #eee;
    padding: 10px 8px 10px 8px;
    font-size: 0.9rem;
    align-items: center;
}

.overage-settings__add-setting input {
    width: 100%;
}

.overage-settings input[type="number"] {
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    position: relative;
    margin: 0;
    height: 42px;
}

.overage-settings__add-setting button {
    margin-top: 8px;
}

.overage-settings .group-grid {
    --grid-columns: repeat(auto-fit, minmax(48px, 1fr));
}

.swppp-report__subdivision {
    display: flex;
    grid-gap: 12px;
    align-items: center;
    margin: 12px 0;
    border: 1px solid #ddd;
    padding: 8px;
}

.swppp-report__add-item {
    display: flex;
    grid-gap: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    padding: 10px 8px 10px 8px;
    font-size: 0.9rem;
    align-items: center;
}

.swppp-report input {
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    margin: 0;
    height: 40px;
}

.swppp-report__header {
    display: grid;
    grid-template-columns: 59% 40%;
    grid-gap: 12px;
}

.swppp-report__status {
    font-weight: bold;
    color: #111;
    --status-color: #ddd;
}

.swppp-report__status i {
    border: 8px solid var(--status-color);
    border-radius: 10px;
    width: 8px;
    height: 8px;
    display: inline-block;
    position: relative;
    top: 4px;
    margin-right: 2px;
}

.swppp-report__status.--complete {
    --status-color: var(--dark-green);
}

.swppp-report__status.--blocked {
    --status-color: var(--dark-red);
}

.swppp-feed__filter {
    display: flex;
    grid-gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.crew-worklog nav {
    display: flex;
    grid-gap: 12px;
}

.crew-worklog legend {
    border: none;
    padding: 0;
    width: auto;
}

.crew-worklog .tab {
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px;
    padding: 8px;
    background: #ccc;
}

.crew-worklog .tab.active {
    color: #111;
    background: white;
}

/* the classic */
.blazored-typeahead__results {
    z-index: 11;
}

.select-address {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 11;
    box-shadow: 2px 2px 2px #eee;
}

.select-address li {
    border-bottom: 1px solid #ccc;
    padding: 8px;
}

.select-address .--active {
    background-color: blue;
    color: white;
}

.crew-allocations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    overflow: initial;
    position: relative;
}

.crew-allocations h3 {
    margin: 0;
    height: 42px;
    font-size: 1.3rem;
}

.allocation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    font-size: 1.05rem;
    margin-bottom: 64px;
}

.allocation h3 {
    grid-column: 1/ span 2;
    font-size: 1.5rem;
}

.allocation button {
    padding: 4px;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

    .crew-allocations h4 {
        background: lightblue;
        padding: 2px;
        font-size: 1.15rem;
        text-align: center;
        margin-top: 0;
        color: #555;
    }

    .crew-allocations h3 {
        color: #555;
    }

.crew-allocations .unavailable {
    background: #ecc;
    color: #555;
    border: 1px solid #dbb;
}

.crew-allocations .borrowed {
    background: #ccc;
    color: #555;
}

.trucks h4 {
    background: lightsalmon;
}

.trailers h4 {
    background: lightgray;
}

.sweepers h4 {
    background: lightpink;
}

.unallocated-assets {
    height: 80vh;
    overflow-y: scroll;
    position: sticky;
    top: 32px;
    padding-right: 12px;
}

.unallocated-assets h3 {
    text-align: center;
    color: #555;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.unallocated-assets ul, .allocation ul {
    margin: 4px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.unallocated-assets > div > div:has(ul:empty) .search {
    display: none;
}

.unallocated-assets ul:empty:after {
    content: "No assets available";
    color: #555;
    font-style: italic;
}

.unallocated-assets li, .allocation li {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 16px;
}

.unallocated-assets label {
    margin: 0;
}

.unallocated-assets h3 label {
    margin-bottom: 4px;
}

.unallocated-assets label input {
    position: relative;
    top: 3px;
    margin: 0;
}

.deallocate {
    display: inline-block;
    color: gray;
    line-height: 18px;
    height: 18px;
    vertical-align: middle;
}

.allocation-legend {
    font-size: 1.3rem;
    margin: 24px 0;
    display: flex;
    gap: 24px;
}

.red {
    color: red;
}

.date-picker {
    margin-bottom: 6px;
}