@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;
}

hr {
    margin: 2px 0;
}

strong, h2, h3 {
    color: var(--header-text-color);
}

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

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

.search {
    padding: .5rem;
    margin-top: .5rem;
}

.search input {
    width: 100%;
}

input[type="search"] {
    height: 2.5rem;
    margin: 0;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    background-position: .5rem center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> <path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /> </svg>');
    padding-left: 2rem;
}

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

.btn-success {
    color: #fff;
    background-color: var(--primary-button-color);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    border-bottom: 1px solid #ddd;
}

.top-row {
    justify-content: flex-end;
    height: 4.5rem;
    display: flex;
    align-items: center;
}

    .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;
    }
    
    .top-row button {
        padding: 12px;
    }
    
    .top-row > div {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .top-row > div span {
        font-size: .95rem;
        color: #777;
    }

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

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

fieldset {
    border: 1px solid #DDD;
    border-radius: 0;
    padding: 0 1.4em 1.4em 1.4em;
    margin: 0 0 1.5em 0;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
}

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

a {
    cursor: pointer;
}

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

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

input {
    border-radius: 0;
}

select {
    border-radius: 0;
}

@media (max-width: 640.98px) {
    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }

    .top-row {
        padding: 12px;
    }

    h1 { text-align: center; }
}

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

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

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

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

.assignment {
    display: block;
    color: black;
    background-color: #ddd;
    border: 1px solid #bbb;
    padding: 8px;
    margin: 12px;
    box-shadow: 4px 4px 4px #ddd;
    cursor: pointer;
}

.assignment h2 {
    font-size: 1.35rem;
    margin: 4px 0;
}

.lot {
    background-color: #ddd;
    border: 1px solid #ccc;
    padding: 8px;
    margin: 12px;
    padding-left: 12px;
    box-shadow: 4px 4px 4px #ddd;
}

.lot.queued {
    background-color: rgb(187, 211, 255);
}

.lot .lot--heading {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.lot--quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    justify-content: center;
    align-items: center;
    margin-right: 6px;
}

.lot--toggle-form {
    text-align: center;
    border: 1px dashed var(--link-color);
    padding: 8px 0;
    position: relative;
    top: -3px;
}

.lot--heading .submitted {
    color: #1e7e34;
}

.lot--heading .in-progress {
    color: #ba8b00;
}

.lot--heading .failed {
    color: #721c24;
}

.lot textarea {
    border-radius: 0;
    margin-right: 6px;
    margin-bottom: 8px;
}

.lot .lot--materials {
    display: grid;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: 30% 20% 20% 20%;
}

.lot .lot--materials.phase {
    grid-template-columns: 50% 50%;
}

.lot button {
    width: calc(100% - 6px);
}

.lot .lot--worklog {
    display: block;
    border-color: #aaa;
}

.lot--worklog .lot--worklog-item {
    display: grid;
    grid-template-columns: 60% 24% 10% 10%;
    align-items: center;
}

.lot--worklog .lot--worklog-add-item {
    margin: 12px 0;
}

.lots {
}

.lots .lots--help {
    margin-left: 12px;
    display: block;
}

.lots .lots--resubmit {
    border: 2px solid darkred;
    background-color: #f69696;
    margin: 12px;
    padding: 12px;
}

.lots--resubmit h2 {
    margin-top: 0;
}

.lots .community-instructions h2 {
    margin: 12px 0;
}

.lots--special-instructions strong {
    display: block;
}

.lots--special-instructions {
    background: #eee;
    padding: 12px;
    margin-right: 6px;
    margin-bottom: 8px;
}

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

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

.add-lot--heading {
    margin: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login {
    padding: 12px;
}

.login input {
    width: 100%;
}

.login button {
    margin-top: 12px;
    width: 100%;
}

.back-button {
    margin-left: 12px;
    font-weight: bold;
}

.assignments {
    margin: 0 12px;
}

.worklog-item {
    display: grid;
    grid-template-columns: 80% 20%;
    padding: 4px 0;
    border-bottom: 1px solid #aaa;
}

.worklog-item:last-child {
    border: none;
}

.worklog-item span {
    margin: 0;
}

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

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

.lots .worklog-item td span {
    margin: 0;
    display: inline;
}

tr.edit .number-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100px;
    justify-content: space-between;
}

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

tr.edit .data-grid--actions a {
    position: relative;
    margin: 0 5px;
}

.worklog {
    padding: 12px;
}

.worklog dd {
    text-align: right;
}

.worklog dt {
    text-decoration: underline;
    font-style: italic;
}

.worklog dl {
    margin: 12px 0;
}

.worklog input {
    width: 100%;
}

.worklog button {
    width: 100%;
}

.input-group {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: 10% 20%;
}

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

.lot--worklog tbody p {
    padding: 8px 0;
}

.lot--worklog .add {
    padding-top: 8px;
}

.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;
}

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

.tabs .tab.selected {
    background-color: #1b6ec2;
}

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

.tab-body {
    height: calc(100vh - 130px);
    overflow: scroll;
    overflow-x: hidden;
}

.time-entry {
    display: grid;
    grid-template-columns: 42px auto;
}

.time-entry input, .time-entry .icon {
    height: 42px
}

.time-entry .icon {
    position: relative;
    top: 0;
    padding: 12px;
    border: 1px solid #aaa;
    background-color: #eee;
}

.navigation {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.navigation .back-button {
    width: 70px;
    white-space: nowrap;
    text-overflow: clip;
    overflow: hidden;
    font-size: 1.10rem;
}
 
.navigation .navigation--title {
    margin: 0 8px;
    padding: 0;
    font-size: 1.10rem;
    text-align: center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.upgrade-prompt {
    background-color: yellow;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
}

.upgrade-prompt p {
    font-weight: bold;
}

.expandable--toggle {
    display: block;
    border: 1px solid #ddd;
    padding: 8px 4px;
    color: var(--primary-button-color);
}

.expandable--toggle .expandable--icon {
    float: right;
    padding: 2px;
} 

.lots .expandable {
    margin: 8px 0;
}

.lots .expandable--toggle {
    border-left: none;
    border-right: none;
    display: grid;
    grid-template-columns: 60% 30% 10%;
    grid-gap: 8px;
    
}

.lots .expandable .lots--group-remaining {
    text-align: right;
}

.spinner {
    border: 8px solid silver;
    border-top: 8px solid #337AB7;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.reload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.reload:active, .reload:visited, .reload:link, .reload:hover {
    text-decoration: none;
}

.reload .oi {
    font-size: 48px;
    margin: 12px 0;
}

.edit-worklog-form .blazored-typeahead {
    border: none;
}

.blazored-modal-title {
    margin: 3px
}

.blazored-toast-container {
    z-index: 100;
}

.edit-worklog-form .edit-worklog-form--quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.edit-worklog-form--quantity .edit-worklog-form--increments {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 60px;
}

.edit-worklog-form--increments a {
    border: 1px solid var(--link-color);
    border-radius: 4px;
    padding: 4px;
    margin-bottom: 2px;
}

.error {
    color: red;
    width: 240px;
}

.attachments {
    margin: 0 8px;
}

.attachments--file {
    border: 1px dashed #aaa;
    padding: 12px;
    margin-bottom: 8px;
}

.modal-form .lots--special-instructions {
    max-height: 600px;
    overflow-y: scroll;
    background: #ddd;
}

.modal-form .lots--special-instructions-list {
    background: #eee;
    padding: 12px;
    margin: 8px 0;
}

.modal-form--actions {
    display: grid;
    grid-template-columns: 50% 50%;
}

.lots--special-instructions-list li {
    border: 1px solid #bbb;
    border-radius: 8px;
    padding: 8px;
    margin: 4px 0;
    display: grid;
    align-items: center;
}

.modal-form .lots--special-instructions-list li {
    grid-template-columns: 10% 90%;
}

.lots--special-instructions-list li input[type='checkbox'] {
    transform: scale(1.25);
}

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

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

.floating-division-banner {
    position: absolute;
    top: 44px;
    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;
}

.directions {
    margin: 0 8px;
}

.directions .btn-success a {
    color: white;
}

fieldset {
    padding-top: 12px;
}

.lots__swppp-action-item {
    display: grid;
    grid-template-columns: 32px 240px 32px;
    align-items: center;
    grid-gap: 12px;
    margin: 8px 0;
    padding: 8px;
}

.lots__swppp-action-items .oi-pencil {
    font-size: 1.55rem;
    color: var(--link-color);
}

.lots__swppp-action-items p {
    margin: 12px 0;
}

.lots__swppp-action-items input[type='checkbox'] {
    transform: scale(2);
    margin: 6px;
}

.add-note-modal input[type='checkbox'] {
    transform: scale(2);
    margin: 12px 12px 18px 8px;
}

.add-note-modal input[type='checkbox'] + label {
    position: relative;
    top: 8px;
}

.lots__swppp-action-item.--blocked {
    background-color: pink;
}

.add-note-modal__action-details {
    max-width: 300px;
    margin: 0 0 12px;
}

.equipment-list {
    margin-top: 12px;
}

.equipment-list dt {
    font-weight: bold;
    padding: 4px 12px;
    background: lightblue;
    margin-bottom: 4px; 
}

.equipment-list dd {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 6px;
    font-size: 1.3rem;

}

.assignment-notes { 
    margin: 8px;
    background: #FFFDD0;
    font-style: italic;
}