.observation-group-page {
    padding: 20px 0;
    font-size: 14px
}

.obs-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px
}

.obs-page-header h2 {
    margin: 0
}

.obs-page-controls {
    display: flex;
    align-items: center;
    gap: 10px
}

.obs-page-controls label {
    font-weight: 700
}

.obs-page-controls select {
    min-height: 34px;
    min-width: 220px;
    padding: 6px 9px;
    border: 1px solid #bbb;
    border-radius: 3px
}

.obs-table-wrap {
    overflow: auto;
    max-height: 72vh;
    border: 1px solid #d5d5d5;
    background: #fff
}

#obs-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px
}

#obs-table th,
#obs-table td {
    padding: 2px 9px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap
}

#obs-table th {
    position: sticky;
    top: 0;
    background: #eef2f3;
    z-index: 1
}

#obs-table tbody tr:nth-child(even) {
    background: #f8f9f9
}

.obs-row-actions {
    display: flex;
    gap: 6px
}

.obs-row-actions button {
    white-space: nowrap
}

.obs-message {
    min-height: 24px;
    color: #245b39
}

.obs-message.error {
    color: #a32626
}

.obs-modal[hidden] {
    display: none
}

.obs-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .45)
}

.obs-modal-card {
    width: min(680px, 100%);
    max-height: 85vh;
    overflow: auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .24)
}

.obs-modal-card h3 {
    margin: 0 0 16px
}

.obs-editor-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.obs-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 700;
    color: #444
}

.obs-field input,
.obs-field textarea {
    min-height: 35px;
    padding: 7px 9px;
    border: 1px solid #bbb;
    border-radius: 3px;
    font: inherit;
    font-weight: 400
}

.obs-field textarea {
    min-height: 80px;
    resize: vertical
}

.obs-field input[type=checkbox] {
    min-height: auto;
    width: 18px;
    height: 18px
}

.obs-check-field {
    flex-direction: row;
    align-items: center
}

.obs-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px
}

.obs-danger {
    background: #dc3545;
    color: #fff;
    border-color: #c82333
}

@media(max-width:650px) {
    .obs-editor-fields {
        grid-template-columns: 1fr
    }

    .obs-page-header {
        align-items: flex-start;
        flex-direction: column
    }

    .obs-page-controls {
        flex-wrap: wrap
    }
}

.observation-group-page .btn-grey {
    border: 0;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    background: #757575;
    color: #fff
}

.observation-group-page .btn-grey:hover {
    background: #616161
}

.obs-row-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #005068;
    padding: 4px 6px;
    font-size: .95rem;
    border-radius: 4px
}

.obs-row-actions button:hover {
    background: #eef2f4
}

.obs-row-actions .obs-delete-row {
    color: #c82333
}