/* Shared by the Job, Work Order, and Job Site editors. */
.work-record-editor,
.work-record-editor-shell,
.work-record-editor-frame {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.work-record-editor {
    height: 100%;
    padding: .65rem 1rem .8rem;
    color: var(--im-grid-ink);
    background: var(--im-grid-page);
}

.work-record-editor-frame {
    gap: .65rem;
    padding: .8rem 1rem;
}

.work-record-editor-header {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem 1rem;
}

.work-record-editor-heading {
    display: grid;
    flex: 1 1 12rem;
    gap: .2rem;
    min-width: 0;
}

.work-record-editor-eyebrow {
    margin: 0;
    color: var(--im-grid-link);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.work-record-editor-subtitle,
.work-record-editor-note {
    margin: 0;
    color: var(--im-grid-muted);
    font-size: .8rem;
}

.work-record-editor-actions,
.work-record-editor-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.work-record-editor-actions {
    justify-content: flex-end;
    max-width: 100%;
}

.work-record-editor-tabs {
    flex: 0 0 auto;
    padding-inline: .15rem;
}

.work-record-editor-tabs > button {
    flex: 0 0 auto;
    padding-inline: .65rem;
}

.work-record-editor-panel {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

.work-record-editor-panel[hidden] {
    display: none !important;
}

.work-record-editor-form {
    display: grid;
    grid-template-columns: var(--work-record-form-columns, repeat(3, minmax(0, 1fr)));
    gap: .65rem .85rem;
    min-width: 0;
}

.work-record-editor-form > label,
.work-record-editor-field {
    display: grid;
    align-content: start;
    gap: .25rem;
    min-width: 0;
}

.work-record-editor :is(.work-record-editor-form > label, .work-record-editor-field) > span:first-child {
    color: var(--im-grid-muted);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.work-record-editor-form :is(.form-control, .form-select),
.work-record-editor-field .form-control {
    padding-block: .32rem;
    font-size: .85rem;
}

.work-record-editor-field textarea {
    min-height: 4.8rem;
    resize: vertical;
}

@media (max-width: 1020px) {
    .work-record-editor-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .work-record-editor { padding: .4rem; }
    .work-record-editor-frame { gap: .5rem; padding: .55rem; }
    .work-record-editor-actions { justify-content: flex-start; }
    .work-record-editor-form { grid-template-columns: minmax(0, 1fr); }
}
