/* 内職業務管理システム 共通スタイル */
body { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ordered { background: #dbeafe; color: #1d4ed8; }
.badge-working { background: #fef3c7; color: #b45309; }
.badge-done { background: #d1fae5; color: #047857; }
.badge-shipped { background: #e0e7ff; color: #4338ca; }
.badge-invoiced { background: #f3e8ff; color: #7e22ce; }
.badge-draft { background: #f3f4f6; color: #6b7280; }
.badge-issued { background: #dbeafe; color: #1d4ed8; }
.badge-paid { background: #d1fae5; color: #047857; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }
.badge-dm { background: #fce7f3; color: #be185d; }
.badge-packing { background: #ccfbf1; color: #0f766e; }
.badge-other { background: #f3f4f6; color: #6b7280; }
.badge-inactive { background: #f3f4f6; color: #9ca3af; }

.nav-item { transition: all 0.15s; }
.nav-item.active { background: #1e40af; color: white; }
.nav-item:not(.active):hover { background: #eff6ff; }

table.data-table th { background: #f8fafc; font-size: 12px; color: #64748b; text-transform: none; padding: 10px 12px; text-align: left; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
table.data-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
table.data-table tbody tr:hover { background: #f8fafc; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal-box { background: white; border-radius: 12px; max-width: 640px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }

.form-label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 4px; }
.form-input { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all 0.15s; cursor: pointer; white-space: nowrap; }
.btn-primary { background: #1e40af; color: white; }
.btn-primary:hover { background: #1e3a8a; }
.btn-secondary { background: white; color: #475569; border: 1px solid #cbd5e1; }
.btn-secondary:hover { background: #f8fafc; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

@media print {
  #sidebar, #topbar, .no-print { display: none !important; }
  #main-content { margin-left: 0 !important; padding: 0 !important; }
  body { background: white; }
  .print-area { box-shadow: none !important; border: none !important; }
}
