/* DEV-3.08 | 04-B16-C Modify Test Data */
.patient-edit-test {
    padding: 18px 20px 24px;
    color: #14344d;
}
.patient-edit-test[hidden] { display: none !important; }
.patient-edit-test__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 14px;
}
.patient-edit-test__identity { flex: 1 1 auto; min-width: 0; }
.patient-edit-test__identity h1 { margin: 0; font-size: 24px; color: #0d2c4b; }
.patient-edit-test__identity p { margin: 3px 0 0; color: #6b8090; font-size: 12px; }
.patient-edit-test__back {
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    background: #0b6e84;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}
.patient-edit-test__mode-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 11px;
    background: #eef5f8;
    color: #476477;
    font-size: 12px;
    font-weight: 800;
}
.patient-edit-test__mode-chip[data-mode="NEW_DEVICE"] { background: #fff5dc; color: #8b5a09; }
.patient-edit-test__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #ccd9e3;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}
.patient-edit-test__tab {
    height: 54px;
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    border-right: 1px solid #ccd9e3;
    background: #fff;
    color: #17364c;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.patient-edit-test__tab:last-child { border-right: 0; }
.patient-edit-test__tab.is-active { color: #087946; background: #eef9f5; box-shadow: inset 0 -3px #6fb99c; }
.patient-edit-test__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    align-items: center;
    margin: 0 2px 12px;
    padding: 12px 14px;
    border: 1px solid #d8e2e9;
    border-radius: 10px;
    background: #f8fbfd;
}
.patient-edit-test__target { min-width: 0; color: #214861; font-size: 14px; }
.patient-edit-test__profile { color: #5d7588; font-size: 12px; text-align: right; }
.patient-edit-test__profile[data-state="BLOCKED"] { color: #b5472c; font-weight: 700; }
.patient-edit-test__error {
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 1px solid #efaaa0;
    border-radius: 9px;
    background: #fff4f2;
    color: #a43127;
    font-size: 13px;
    font-weight: 700;
}
.patient-edit-test__card {
    margin-bottom: 14px;
    border: 1px solid #d8e2e9;
    border-radius: 12px;
    background: #fff;
    overflow: visible;
}
.patient-edit-test__card[hidden] { display: none !important; }
.patient-edit-test__card-title {
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #d8e2e9;
    background: #f6fafc;
    font-size: 18px;
    color: #12657a;
}
.patient-edit-test__card--rv .patient-edit-test__card-title { color: #087847; background: #f2f9f5; }
.patient-edit-test__card--sicd .patient-edit-test__card-title { color: #7b5217; background: #fff9ee; }
.patient-edit-test__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 18px 20px;
}
.patient-edit-test__field { min-width: 0; padding: 0 20px; border-right: 1px solid #d8e2e9; }
.patient-edit-test__field:first-child { padding-left: 0; }
.patient-edit-test__field:last-child { border-right: 0; padding-right: 0; }
.patient-edit-test__field[hidden] { display: none !important; }
.patient-edit-test__field label { display: block; margin-bottom: 8px; color: #173b59; font-weight: 700; font-size: 14px; }
.patient-edit-test__required { color: #d4291e; }
.patient-edit-test__input-wrap { position: relative; }
.patient-edit-test__field input,
.patient-edit-test__field select,
.patient-edit-test__note textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c6d6e2;
    border-radius: 8px;
    background: #fff;
    color: #14344d;
    font: inherit;
}
.patient-edit-test__field input,
.patient-edit-test__field select { min-height: 44px; padding: 9px 44px 9px 12px; }
.patient-edit-test__field select { padding-right: 12px; }
.patient-edit-test__unit {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: #39556c;
    font-weight: 700;
    pointer-events: none;
}
.patient-edit-test__field.is-changed input,
.patient-edit-test__field.is-changed select,
.patient-edit-test__note.is-changed textarea {
    border-color: #e2b15f;
    background: #fffaf0;
    box-shadow: inset 3px 0 #e2b15f;
}
.patient-edit-test__field.is-error input,
.patient-edit-test__field.is-error select { border-color: #df7569; background: #fff5f3; }
.patient-edit-test__note { padding: 16px 20px 14px; }
.patient-edit-test__note label { display: block; margin-bottom: 8px; font-weight: 700; }
.patient-edit-test__note textarea { min-height: 92px; resize: vertical; padding: 12px; }
.patient-edit-test__note-count { margin-top: 5px; text-align: right; color: #60778a; font-size: 12px; }
.patient-edit-test__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 4px 0 2px;
}
.patient-edit-test__status { margin-right: auto; color: #60778a; font-size: 12px; }
.patient-edit-test__status.is-dirty { color: #b66a10; font-weight: 700; }
.patient-edit-test__action {
    min-width: 108px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid #bfd0dc;
    border-radius: 8px;
    background: #fff;
    color: #183b57;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.patient-edit-test__action--save { border-color: #0a7488; background: #0a7488; color: #fff; }
.patient-edit-test__action:disabled { cursor: not-allowed; opacity: .48; }
@media (max-width: 1050px) {
    .patient-edit-test__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .patient-edit-test__field { border-right: 0; padding: 0; }
}
@media (max-width: 700px) {
    .patient-edit-test { padding: 12px; }
    .patient-edit-test__header { align-items: flex-start; flex-wrap: wrap; }
    .patient-edit-test__tabs { grid-template-columns: 1fr; }
    .patient-edit-test__tab { border-right: 0; border-bottom: 1px solid #ccd9e3; }
    .patient-edit-test__tab:last-child { border-bottom: 0; }
    .patient-edit-test__meta { grid-template-columns: 1fr; }
    .patient-edit-test__profile { text-align: left; }
    .patient-edit-test__grid { grid-template-columns: 1fr; }
    .patient-edit-test__footer { flex-wrap: wrap; }
    .patient-edit-test__status { width: 100%; margin-right: 0; }
    .patient-edit-test__action { flex: 1 1 120px; }
}
