/* 앵글/바구니 관리 (PHP slots.php 미러) */

.page-subtitle { font-size: 14px; color: #718096; margin-top: 6px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; padding: 16px; text-align: center; }
.stat-box .number { font-size: 24px; font-weight: 700; color: #1a202c; }
.stat-box .label { font-size: 12px; color: #718096; margin-top: 4px; }
.stat-box.success .number { color: #38a169; }
.stat-box.warning .number { color: #dd6b20; }

.tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid #e2e8f0; }
.tab { padding: 12px 24px; background: none; border: none; font-size: 15px; font-weight: 500; color: #718096; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab:hover { color: #2d3748; }
.tab.active { color: #3182ce; border-bottom-color: #3182ce; }.tab.active{ color: #946200; border-bottom-color: #FFC21A; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.toolbar { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; padding: 16px 20px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.search-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field-input, .field-select { padding: 8px 12px; border: 1px solid #cbd5e0; border-radius: 3px; font-size: 14px; color: #2d3748; background: #fff; }
.field-input:focus, .field-select:focus { outline: none; border-color: #4299e1; }.field-input:focus, .field-select:focus{ outline: none; border-color: #FFC21A; }
.btn-group { display: flex; gap: 8px; }

.table-container { background: #fff; border: 1px solid #e2e8f0; border-radius: 4px; overflow: hidden; }
.table-container .data-table th, .table-container .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; font-size: 14px; }.table-container .data-table th, .table-container .data-table td{ padding: 12px 16px; text-align: left; border-bottom: 1px solid #FFD24D; font-size: 14px; }
.table-container .data-table th { background: #f7fafc; font-weight: 600; color: #4a5568; font-size: 13px; text-transform: uppercase; letter-spacing: normal; }
.empty-state { text-align: center; padding: 48px 20px; color: #a0aec0; }
.status-badge { padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.status-empty { background-color: #f0fff4; color: #22543d; }
.status-occupied, .status-placed, .status-assigned, .status-picking, .status-pick_complete, .status-packing { background-color: #fef5e7; color: #744210; }
.zone-badge { background-color: #ebf8ff; color: #2b6cb0; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }.zone-badge{ background-color: #FFF4D1; color: #946200; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.action-buttons { display: flex; gap: 4px; }

.data-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.data-table th.sortable:hover { background: #edf2f7; }.data-table th.sortable:hover{ background: #FFF4D1; }
.data-table th.sortable a { color: inherit; text-decoration: none; display: block; }
.data-table th.sortable .sort-icon { margin-left: 4px; font-size: 12px; color: #a0aec0; }
.data-table th.sortable.sort-desc .sort-icon, .data-table th.sortable.sort-asc .sort-icon { color: #3182ce; }.data-table th.sortable.sort-desc .sort-icon, .data-table th.sortable.sort-asc .sort-icon{ color: #946200; }

.pagination a, .pagination span { padding: 8px 12px; border: 1px solid #e2e8f0; color: #4a5568; text-decoration: none; border-radius: 3px; font-size: 14px; cursor: pointer; }
.pagination a:hover { background: #f7fafc; }
.pagination .current { background: #3182ce; color: #fff; border-color: #3182ce; }.pagination .current{ background: #FFC21A; color:#2B1D00; border-color: #FFC21A; }
.pagination .disabled { color: #cbd5e0; cursor: not-allowed; }

/* 모달 */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-content { background: #fff; border-radius: 4px; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; border: 1px solid #e2e8f0; }
.modal-header { padding: 20px 24px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f7fafc; }
.modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: #2d3748; }
.modal-close { background: none; border: none; font-size: 20px; color: #718096; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid #e2e8f0; display: flex; gap: 8px; justify-content: flex-end; background: #f7fafc; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #4a5568; font-size: 14px; }
.form-group .field-input, .form-group .field-select { width: 100%; padding: 10px 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .toolbar { flex-direction: column; align-items: stretch; }
    .table-container { overflow-x: auto; }
    .form-row { grid-template-columns: 1fr; }
}
