﻿.inquiry-page {
    background: #f5f5f5;
    min-height: calc(100vh - 60px);
    padding-bottom: 40px;
}

.inquiry-container {
    padding-top: var(--site-nav-height, 50px);
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
}

.inquiry-panel {
    background: #fff;
    border: 1px solid #e4e4e4;
    padding: 32px 40px 40px;
    margin: 20px 0;
}

.inquiry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.inquiry-title {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
}

.inquiry-desc {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.inquiry-header__actions {
    flex-shrink: 0;
}

.inquiry-upload-card {
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    padding: 32px 24px 24px;
    background: #fafafa;
    margin-bottom: 24px;
}

.inquiry-upload-zone {
    text-align: center;
    padding: 24px 16px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border-radius: 4px;
}

.inquiry-upload-zone:hover,
.inquiry-upload-zone.is-dragover {
    background: #f0f7ff;
}

.inquiry-upload-zone__icon {
    font-size: 48px;
    color: #52c41a;
    margin-bottom: 12px;
}

.inquiry-upload-zone__title {
    font-size: 16px;
    color: #333;
    margin: 0 0 8px;
}

.inquiry-upload-zone__hint {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.inquiry-upload-zone__file {
    font-size: 14px;
    color: #2e91f6;
    margin: 12px 0 0;
    min-height: 20px;
}

.inquiry-upload-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.inquiry-upload-progress {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
}

.inquiry-btn:hover:not(:disabled) {
    border-color: #2e91f6;
    color: #2e91f6;
}

.inquiry-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.inquiry-btn--primary {
    background: #2e91f6;
    border-color: #2e91f6;
    color: #fff;
}

.inquiry-btn--primary:hover:not(:disabled) {
    background: #1a7de8;
    border-color: #1a7de8;
    color: #fff;
}

.inquiry-btn--outline {
    background: #fff;
}

.inquiry-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    padding: 16px 20px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 16px;
}

.inquiry-summary__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.inquiry-summary__label {
    font-size: 13px;
    color: #888;
}

.inquiry-summary__item strong {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.inquiry-summary__item--high strong { color: #52c41a; }
.inquiry-summary__item--mid strong { color: #faad14; }
.inquiry-summary__item--low strong { color: #ff7a45; }
.inquiry-summary__item--none strong { color: #ff4d4f; }

.inquiry-summary__actions {
    margin-left: auto;
}

.inquiry-result-wrap {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.inquiry-result-scroll {
    overflow-x: auto;
    max-height: 520px;
    overflow-y: auto;
}

.inquiry-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 13px;
}

.inquiry-table th,
.inquiry-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-table th {
    background: #fafafa;
    color: #666;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1;
}

.inquiry-table tbody tr:hover {
    background: #f9fcff;
}

.inquiry-table .col-name,
.inquiry-table .col-spec {
    white-space: normal;
    max-width: 160px;
}

.inquiry-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.5;
}

.inquiry-tag--high {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.inquiry-tag--mid {
    background: #fffbe6;
    color: #d48806;
    border: 1px solid #ffe58f;
}

.inquiry-tag--low {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.inquiry-tag--none,
.inquiry-tag--pending {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
}

.inquiry-placeholder {
    text-align: center;
    padding: 48px 20px;
    color: #bbb;
}

.inquiry-placeholder__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.inquiry-placeholder p {
    margin: 0;
    font-size: 14px;
}

.inquiry-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    color: #888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .inquiry-container {
        padding-top: 64px;
    }

    .inquiry-panel {
        padding: 20px 16px 24px;
    }

    .inquiry-header {
        flex-direction: column;
    }

    .inquiry-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .inquiry-summary__actions {
        margin-left: 0;
        width: 100%;
    }

    .inquiry-summary__actions .inquiry-btn {
        width: 100%;
        justify-content: center;
    }

    .inquiry-upload-actions {
        flex-direction: column;
    }

    .inquiry-upload-actions .inquiry-btn {
        width: 100%;
        justify-content: center;
    }
}

.inquiry-list-section {
    margin-top: 32px;
    border-top: 1px solid #eee;
    padding-top: 28px;
}

.inquiry-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.inquiry-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 14px;
}

.inquiry-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inquiry-filter-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.inquiry-filter-input {
    height: 32px;
    padding: 4px 10px;
    font-size: 13px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #333;
}

.inquiry-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.inquiry-list-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.inquiry-btn--sm {
    padding: 6px 12px;
    font-size: 13px;
}

.inquiry-list-wrap {
    overflow-x: auto;
}

.inquiry-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.inquiry-list-table th,
.inquiry-list-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
}

.inquiry-list-table th {
    background: #fafafa;
    color: #666;
    font-weight: 500;
}

.inquiry-list-table .col-filename {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inquiry-list-hint {
    color: #999;
    font-size: 13px;
}

.inquiry-guest-notice { padding: 16px; margin-bottom: 20px; background: #f0f7ff; border: 1px solid #c7def4; border-radius: 6px; line-height: 1.7; }
.inquiry-guest-notice input { max-width: 100%; padding: 6px; }
#inquiry-issued-key { width: 100%; overflow-wrap: anywhere; }
#inquiry-guest-message { scroll-margin-top: calc(var(--site-nav-height, 120px) + 20px); }
.inquiry-guest-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
