/* ========================================
   검사결과 조회 페이지
   ======================================== */

.sl-section {
    background: #fff;
    padding: 64px 0 96px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    min-height: 60vh;
}
.sl-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 60px;
    background: #fff;
    border-radius: 30px 30px 0 0;
}
.sl-section .container { position: relative; z-index: 1; }

.sl-intro {
    text-align: center;
    margin-bottom: 36px;
}
.sl-intro h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}
.sl-intro p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.sl-form-wrap {
    max-width: 560px;
    margin: 0 auto 48px;
    padding: 20px 0;
}

/* ===== 폼 ===== */
.sl-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sl-input-group {
    position: relative;
}
.sl-input-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.05rem;
    pointer-events: none;
}
.sl-input-group input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 1.5px solid #e8e5dd;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
    transition: all 0.2s;
    font-family: inherit;
}
.sl-input-group input::placeholder { color: #bbb; }
.sl-input-group input:focus {
    outline: none;
    border-color: var(--color-sub-accent);
    box-shadow: 0 0 0 3px rgba(184,148,104,0.12);
}

.sl-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--color-sub-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.sl-submit-btn:hover:not(:disabled) {
    background: var(--color-sub-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184,148,104,0.3);
}
.sl-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sl-helper {
    text-align: center;
    margin-top: 22px;
    font-size: 0.83rem;
    color: #888;
    line-height: 1.7;
}
.sl-helper i {
    color: var(--color-sub-accent);
    margin-right: 4px;
}

/* ===== 결과 영역 ===== */
.sl-result-area {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}
.sl-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0ebe0;
}
.sl-result-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sl-result-count {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}
.sl-result-count strong { color: var(--color-sub-accent); font-weight: 700; }

.sl-table-wrap {
    background: #fff;
    border: 1px solid #eae4d8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.sl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.sl-table thead {
    background: #f8f6f0;
}
.sl-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 700;
    color: #555;
    font-size: 0.88rem;
    border-bottom: 1px solid #eae4d8;
    letter-spacing: -0.3px;
}
.sl-table td {
    padding: 14px 12px;
    text-align: center;
    color: #444;
    border-bottom: 1px solid #f3efe6;
    vertical-align: middle;
}
.sl-table tr:last-child td { border-bottom: none; }
.sl-table tbody tr:hover { background: #faf9f5; }
.sl-table .sl-col-name { text-align: left; }
.sl-table .sl-bdt { color: #888; font-size: 0.88rem; }

.sl-preview-btn {
    padding: 6px 12px;
    background: #fff;
    border: 1.5px solid var(--color-sub-accent);
    color: var(--color-sub-accent);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sl-preview-btn:hover {
    background: var(--color-sub-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(184,148,104,0.25);
}

.sl-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.sl-empty i {
    font-size: 2.5rem;
    color: #d4cbbc;
    display: block;
    margin-bottom: 12px;
}
.sl-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* ===== 로딩/에러 ===== */
.sl-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 0.95rem;
}
.sl-loading .spinner-border {
    color: var(--color-sub-accent);
}

.sl-alert {
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sl-alert-error { background: #fef2f2; color: #b91c1c; }
.sl-alert i { font-size: 1.1rem; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .sl-section { padding: 40px 0 60px; }
    .sl-intro h2 { font-size: 1.3rem; }
    .sl-table { font-size: 0.82rem; }
    .sl-table th, .sl-table td { padding: 10px 8px; }
    .sl-table .sl-col-name { white-space: normal; }
}

@media (max-width: 575px) {
    .sl-table-wrap { border-radius: 8px; overflow-x: auto; }
    .sl-table { min-width: 640px; }
}
