/* DEV-3.04 | 04-B02-C Test Data */
.patient-create-test {
    padding: 18px 20px 24px;
    color: #14344d;
}

.patient-create-test[hidden] { display: none !important; }

.patient-create-test__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 14px;
}

.patient-create-test__header h1 {
    margin: 0;
    font-size: 24px;
    color: #0d2c4b;
}

.patient-create-test__back {
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    background: #0b6e84;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.patient-create-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-create-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-create-test__tab:last-child { border-right: 0; }
.patient-create-test__tab.is-active {
    color: #087946;
    background: #eef9f5;
    box-shadow: inset 0 -3px #6fb99c;
}
.patient-create-test__tab:disabled {
    cursor: not-allowed;
    color: #8b98a5;
    background: #f3f6f8;
}
.patient-create-test__tab.is-ready:not(.is-active) {
    color: #0b6f85;
    background: #f3fbfd;
}

.patient-create-test__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 2px 12px;
    font-size: 12px;
    color: #5d7588;
}

.patient-test-profile-text[data-state="BLOCKED"] {
    color: #b5472c;
    font-weight: 700;
}

.patient-test-error-summary {
    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-test-card {
    margin-bottom: 14px;
    border: 1px solid #d8e2e9;
    border-radius: 12px;
    background: #fff;
    overflow: visible;
}

.patient-test-card[hidden] { display: none !important; }

.patient-test-card__title {
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #d8e2e9;
    background: #f6fafc;
    font-size: 18px;
    color: #12657a;
}

.patient-test-card--rv .patient-test-card__title {
    color: #087847;
    background: #f2f9f5;
}

.patient-test-card--sicd .patient-test-card__title {
    color: #7b5217;
    background: #fff9ee;
}

.patient-test-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 18px 20px;
}

.patient-test-field {
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid #d8e2e9;
}
.patient-test-field:first-child { padding-left: 0; }
.patient-test-field:last-child { border-right: 0; padding-right: 0; }
.patient-test-field[hidden] { display: none !important; }

.patient-test-field label {
    display: block;
    margin-bottom: 8px;
    color: #173b59;
    font-weight: 700;
    font-size: 14px;
}

.patient-test-required { color: #d4291e; }

.patient-test-input-wrap {
    position: relative;
}

.patient-test-field input,
.patient-test-field select,
.patient-test-note textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c6d6e2;
    border-radius: 8px;
    background: #fff;
    color: #14344d;
    font: inherit;
}

.patient-test-field input,
.patient-test-field select {
    min-height: 44px;
    padding: 9px 44px 9px 12px;
}

.patient-test-field select { padding-right: 12px; }

.patient-test-unit {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: #39556c;
    font-weight: 700;
    pointer-events: none;
}

.patient-test-note {
    padding: 16px 20px 14px;
}

.patient-test-note label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.patient-test-note textarea {
    min-height: 92px;
    resize: vertical;
    padding: 12px;
}

.patient-test-note__count {
    margin-top: 5px;
    text-align: right;
    color: #60778a;
    font-size: 12px;
}

.patient-create-test__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 4px 0 2px;
}

.patient-test-save-status {
    margin-right: auto;
    color: #60778a;
    font-size: 12px;
}
.patient-test-save-status.is-dirty { color: #b66a10; }

.patient-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-test-action--save {
    border-color: #5bb88a;
    color: #087b49;
}
.patient-test-action--complete {
    border-color: #0a7488;
    background: #0a7488;
    color: #fff;
}
.patient-test-action:disabled {
    cursor: not-allowed;
    opacity: .48;
}

@media (max-width: 1050px) {
    .patient-test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .patient-test-field { border-right: 0; padding: 0; }
}

@media (max-width: 700px) {
    .patient-create-test { padding: 12px; }
    .patient-create-test__tabs { grid-template-columns: 1fr; }
    .patient-create-test__tab { border-right: 0; border-bottom: 1px solid #ccd9e3; }
    .patient-create-test__tab:last-child { border-bottom: 0; }
    .patient-test-grid { grid-template-columns: 1fr; }
    .patient-create-test__footer { flex-wrap: wrap; }
    .patient-test-save-status { width: 100%; margin-right: 0; }
    .patient-test-action { flex: 1 1 120px; }
}
