.body {
    margin: 0 auto;
    width: 1450px;
    position: relative;
    min-height: 100vh;
}

label.pure-radio input {
    margin-right: 0.4em;
    margin-left: 0.3em;
}

.pure-form-aligned .pure-control-group label,
.pure-form-aligned .pure-control-group.grouped label {
    width: 14em;
}

.pure-form-aligned .pure-control-group.grouped label.alt {
    text-align: left;
    padding-left: 1em;
    margin-right: 0;
}

span.altsep {
    display: inline-block;
    margin: 0 0.5em;
}

body {
    line-height: 1.6;
}

footer {
    margin-top: 2em;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}

.spacer {
    margin: 0 0.1em;
    color: #aaa;
}

footer a,
footer a:visited {
    color: #666;
}

hr.divider {
    margin: 1.5em 0;
    border: none;
    border-top: 2px dashed #666;
    height: 1px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

a.current {
    font-weight: bold;
}

div.table div.field {
    margin-left: 3em;
}

div.error:empty {
    display: none;
}

div.error {
    border-radius: 10px;
    border: solid 1px #aaa;
    background-color: #fbb;
    padding: 0.8em;
    margin: 0.8em 0;
}

.pure-control-group input,
.pure-control-group textarea {
    min-width: 17em;
}

.pure-control-group.grouped input,
.pure-control-group.grouped select {
    min-width: 6em;
    width: 6em;
}

.pure-control-group.grouped {
    display: inline-block;
}

#app-content input:invalid,
#app-content select:invalid,
#app-content textarea:invalid {
    border-color: red;
}

.button-row {
    margin: 1em 0;
}

.pure-form-aligned div.chkbox {
    margin-top: 0;
}

.pure-form-aligned .pure-control-group {
    margin-top: 0.5em;
}

button.copy {
    font-size: 0.7em;
    background-color: transparent;
}

td.status-work {
    background-color: #ccf;
}

td.status-fabrics {
    background-color: rgb(120, 120, 255);
}

td.status-submitted {
    background-color: #fbb;
}

td.status-problem {
    background-color: rgb(255, 77, 77);
}

td.status-archive {
    background-color: #ddd;
}

td.status-done {
    background-color: #bfb;
}

.toggle {
    display: block;
    margin: 10px 0;
}

.hidden {
    display: none;
}

#app-content input[disabled],
#app-content select[disabled],
#app-content textarea[disabled] {
    color: #000;
    opacity: 1;
}

#attch img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    overflow: hidden;
}

#attch a {
    vertical-align: middle;
}

.attch-holder {
    display: inline-block;
    position: relative;
    margin: 0.5em;
}

.item-header {
    position: relative;
    padding-left: 2em;
}

.clear,
.attch-remove {
    position: absolute;
    padding: 0.2em 0.4em;
    color: white;
    border-radius: 30px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    background: rgba(202, 60, 60, 1);
}

.attch-remove {
    top: -10px;
    left: -10px;
}

.clear {
    top: 0px;
    left: 0px;
}

.search {
    display: inline-block;
    padding: 0 0.5em;
}

.flush-right {
    text-align: right;
}

.comment {
    margin: 1em 0;
}

.comment h4 {
    margin: 0;
}

.pure-form-aligned.inline-email button {
    display: inline-block;
    vertical-align: bottom;
    margin: 0.5em;
}

.pure-form-aligned.inline-email h3 {
    margin: 0;
}

.pure-form-aligned.inline-email .pure-control-group {
    display: inline-block;
}

.pure-form-aligned.inline-email .pure-control-group label {
    display: none;
}

.comment.from-self {
    color: #004988;
    margin-left: 4em;
}

dialog .pure-form-aligned .pure-control-group label {
    width: 10em;
}

/* Tight. */

#app-content table .pure-menu-link {
    padding: 0;
}

#app-content .pure-control-group {
    margin: 0.2em 0em;
}

#app-content .pure-form input[type="text"] {
    padding: 0.2em 0.2em;
}

#app-content .pure-form select {
    padding: 0.2em 0.2em;
    height: 1.8em;
}

#app-content .blocks {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 10px;
}

#app-content .block {
    width: 100%;
    flex: 1;
}

.block-break {
    grid-column: 1 / -1; /* Span the full width of the grid */
}

.set-status {
    display: inline-block;
    margin-left: 2em;
}

.set-status div {
    display: inline-block;
}

@media print {
    body {
        transform: scale(0.78);
        transform-origin: top left;
        width: 100%;
        margin: 0;
    }

    #app-content .block {
        flex: 1;
    }

    #app-content .blocks {
        gap: 3mm;
    }

    .pure-menu,
    .pure-button,
    .button-row {
        display: none;
    }
}
