/* 관리자 페이지 공통 스타일 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f7fa; color: #2d3748; line-height: 1.5; }

.header { background: #2d3748; color: #fff; border-bottom: 1px solid #4a5568; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.header-title { font-size: 18px; font-weight: 600; text-decoration: none; color: inherit; }
.header-nav { display: flex; gap: 6px; align-items: center; }
.header-nav a { color: #cbd5e0; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: 14px; transition: all .2s; }
.header-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.header-nav a.active { background: #4299e1; color: #fff; }.header-nav a.active{ background: #FFC21A; color:#2B1D00; }

.main-container { max-width: 1400px; margin: 0 auto; padding: 24px; }
.page-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 22px; font-weight: 600; }
.page-actions { display: flex; gap: 8px; }

.btn { padding: 8px 16px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; background: #fff; }
.btn-primary { background: #4299e1; color: #fff; border-color: #4299e1; }.btn-primary{ background: #FFC21A; color:#2B1D00; border-color: #FFC21A; }
.btn-primary:hover { background: #3182ce; }.btn-primary:hover{ background: #FFC21A; ;color:#2B1D00}
.btn-success { background: #38a169; color: #fff; border-color: #38a169; }
.btn-success:hover { background: #2f855a; }
.btn-danger { background: #e53e3e; color: #fff; border-color: #e53e3e; }
.btn-danger:hover { background: #c53030; }
.btn-secondary { background: #fff; color: #2d3748; border-color: #e2e8f0; }
.btn-secondary:hover { background: #f7fafc; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.filter-bar { background: #fff; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar input[type=text], .filter-bar input[type=search], .filter-bar input[type=date], .filter-bar input[type=number], .filter-bar select {
    padding: 7px 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; outline: none;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: #4299e1; }.filter-bar input:focus, .filter-bar select:focus{ border-color: #FFC21A; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.card-header { padding: 12px 16px; background: #f7fafc; border-bottom: 1px solid #e2e8f0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th { background: #f7fafc; padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; color: #4a5568; border-bottom: 2px solid #e2e8f0; text-transform: uppercase; letter-spacing: .5px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }.data-table td{ padding: 10px 12px; border-bottom: 1px solid #FFD24D; font-size: 13px; }
.data-table tr:hover td { background: #f7fafc; }
.data-table input[type=checkbox] { cursor: pointer; }
.data-table .status-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.data-table .status-waiting { background: #fefcbf; color: #744210; }
.data-table .status-ready, .data-table .status-assigned { background: #e2e8f0; color: #2d3748; }
.data-table .status-picking { background: #bee3f8; color: #1a365d; }.data-table .status-picking{ background: #FFF4D1; color: #946200; }
.data-table .status-pick_complete { background: #e9d8fd; color: #44337a; }
.data-table .status-packing { background: #fbd38d; color: #7b341e; }
.data-table .status-completed { background: #c6f6d5; color: #22543d; }
.data-table .status-hold { background: #fed7d7; color: #742a2a; }
.data-table .status-canceled, .data-table .status-cancelled { background: #fed7d7; color: #742a2a; }

.empty-state { text-align: center; padding: 40px; color: #a0aec0; font-size: 14px; }
.loading { text-align: center; padding: 40px; }
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #e2e8f0; border-top-color: #4299e1; border-radius: 50%; animation: spin .7s linear infinite; }.spinner{ display: inline-block; width: 24px; height: 24px; border: 3px solid #e2e8f0; border-top-color: #FFC21A; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: flex; gap: 4px; margin-top: 16px; justify-content: center; }
.pagination button { padding: 6px 12px; border: 1px solid #e2e8f0; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.pagination button.active { background: #4299e1; color: #fff; border-color: #4299e1; }.pagination button.active{ background: #FFC21A; color:#2B1D00; border-color: #FFC21A; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; padding: 20px; overflow-y: auto; }
.modal-overlay.show { display: flex; align-items: flex-start; justify-content: center; }
.modal-content { background: #fff; border-radius: 10px; width: 100%; max-width: 600px; margin-top: 40px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #a0aec0; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid #e2e8f0; background: #f7fafc; display: flex; justify-content: flex-end; gap: 8px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: #4a5568; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #4299e1; }.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ border-color: #FFC21A; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.85); color: #fff; padding: 10px 20px;
    border-radius: 8px; font-size: 13px; z-index: 500; display: none;
}
.toast.show { display: block; }
