.purchase-request-page {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 24px;
}

.back-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 16px;
}

.back-btn:hover {
    text-decoration: underline;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.subtitle {
    color: #6c757d;
    margin: 0;
}

.main-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
}

/* 구매신청 목록 패널 */
.requests-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.panel-header {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.requests-list {
    max-height: 600px;
    overflow-y: auto;
}

.request-card {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.2s;
}

.request-card:hover {
    background: #f8f9fa;
}

.request-card.selected {
    background: #e7f3ff;
}

.request-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.request-no {
    font-weight: 600;
    font-size: 14px;
    color: #007bff;
}

.request-date {
    font-size: 12px;
    color: #6c757d;
}

.request-info {
    font-size: 13px;
    color: #495057;
    margin-bottom: 8px;
}

.material-count {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.requested-by {
    font-size: 11px;
    color: #6c757d;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
}

.download-btn:hover {
    background: #218838;
}

/* 상세 패널 */
.details-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.excel-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.excel-btn:hover {
    background: #218838;
}

.materials-table {
    padding: 16px;
    overflow: auto;
}

.materials-table table {
    width: 100%;
    border-collapse: collapse;
}

.materials-table th {
    background: #f8f9fa;
    padding: 8px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.materials-table td {
    padding: 8px;
    font-size: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.category-badge {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #6c757d;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.loading {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}
