/* ============================================================
   CRO 의뢰 페이지 전용 스타일 (order.css 위에 얹는 추가 규칙)
   ============================================================ */

.cro-form-wrapper .order-form-section {
    margin-bottom: 24px;
}

.cro-form .order-form-section-title {
    font-size: 16px;
    font-weight: 600;
}

/* 시험 구성 그룹 테이블 */
.cro-group-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.cro-group-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.cro-group-table thead th {
    background: #f9fafb;
    text-align: left;
    padding: 8px 10px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.cro-group-table tbody td {
    padding: 6px 8px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.cro-group-table tbody tr:last-child td {
    border-bottom: none;
}

.cro-group-table input,
.cro-group-table select {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.cro-group-table input:focus,
.cro-group-table select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.cro-col-g {
    width: 48px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.cro-col-n {
    max-width: 64px;
}

.cro-col-remove {
    width: 36px;
    text-align: center;
}

.cro-group-remove {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cro-group-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.cro-group-remove[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.cro-group-remove i {
    width: 14px;
    height: 14px;
}

/* 날짜 입력: 다른 input/select와 통일 */
.order-field input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    color: #111827;
    font-family: inherit;
    transition: border-color 0.2s ease;
    height: 36px;
    -webkit-appearance: none;
    appearance: none;
}

.order-field input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
}

.order-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    padding: 2px;
    transition: opacity 0.2s ease;
}

.order-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.order-field input[type="date"]:invalid,
.order-field input[type="date"]:not(:valid):not(:focus) {
    color: #9ca3af;
}

/* 인라인 라디오 (CoA/MSDS 등) */
.order-radio-inline {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.order-radio-inline .order-radio {
    margin: 0;
}

/* 특이사항 textarea */
.cro-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.cro-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

@media (max-width: 768px) {
    .cro-group-table {
        font-size: 12px;
        min-width: 760px;
    }

    .cro-group-table thead th,
    .cro-group-table tbody td {
        padding: 6px 6px;
    }
}